diff --git a/src/Authorization/TokenAuthorization.php b/src/Authorization/TokenAuthorization.php index a149ff4..ef949ed 100644 --- a/src/Authorization/TokenAuthorization.php +++ b/src/Authorization/TokenAuthorization.php @@ -7,7 +7,9 @@ class TokenAuthorization { private readonly string $token; + private readonly string $sign; + private readonly Carbon $expiresAt; public function __construct(string $token, string $sign, Carbon $expiresAt) diff --git a/src/Authorization/TokenAuthorizationFactory.php b/src/Authorization/TokenAuthorizationFactory.php index 65113fe..07522bf 100644 --- a/src/Authorization/TokenAuthorizationFactory.php +++ b/src/Authorization/TokenAuthorizationFactory.php @@ -31,6 +31,7 @@ public static function for(AfipService $service): self public function with(AfipConfiguration $configuration): self { $this->configuration = $configuration; + return $this; } diff --git a/src/Enum/AfipService.php b/src/Enum/AfipService.php index 63dd0ef..3823ed3 100644 --- a/src/Enum/AfipService.php +++ b/src/Enum/AfipService.php @@ -38,7 +38,7 @@ public function getUrl(AfipConfiguration $configuration): string public function getWsdl(AfipConfiguration $configuration): string { - $baseWsdlDirectory = __DIR__ . '/../wsdl'; + $baseWsdlDirectory = __DIR__.'/../wsdl'; $filename = $this->value;