diff --git a/src/Webpay/TransaccionCompleta/Responses/MallTransactionCreateResponse.php b/src/Webpay/TransaccionCompleta/Responses/MallTransactionCreateResponse.php index 4767aa65..3ef51d37 100644 --- a/src/Webpay/TransaccionCompleta/Responses/MallTransactionCreateResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/MallTransactionCreateResponse.php @@ -6,7 +6,7 @@ class MallTransactionCreateResponse { - public string $token; + public ?string $token; public function __construct(array $json) { diff --git a/src/Webpay/TransaccionCompleta/Responses/MallTransactionInstallmentsResponse.php b/src/Webpay/TransaccionCompleta/Responses/MallTransactionInstallmentsResponse.php index e9ef4a1f..b826cef3 100644 --- a/src/Webpay/TransaccionCompleta/Responses/MallTransactionInstallmentsResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/MallTransactionInstallmentsResponse.php @@ -7,8 +7,8 @@ class MallTransactionInstallmentsResponse { public ?float $installmentsAmount; - public string $idQueryInstallments; - public array $deferredPeriods; + public ?string $idQueryInstallments; + public ?array $deferredPeriods; public function __construct(array $json) { @@ -26,17 +26,17 @@ public function getInstallmentsAmount(): ?float } /** - * @return string + * @return ?string */ - public function getIdQueryInstallments(): string + public function getIdQueryInstallments(): ?string { return $this->idQueryInstallments; } /** - * @return array + * @return ?array */ - public function getDeferredPeriods(): array + public function getDeferredPeriods(): ?array { return $this->deferredPeriods; } diff --git a/src/Webpay/TransaccionCompleta/Responses/MallTransactionRefundResponse.php b/src/Webpay/TransaccionCompleta/Responses/MallTransactionRefundResponse.php index 1ae9f210..c038b4f3 100644 --- a/src/Webpay/TransaccionCompleta/Responses/MallTransactionRefundResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/MallTransactionRefundResponse.php @@ -6,12 +6,12 @@ class MallTransactionRefundResponse { - public string $type; + public ?string $type; public ?string $authorizationCode; public ?string $authorizationDate; public ?float $nullifiedAmount; public ?float $balance; - public int $responseCode; + public ?int $responseCode; public function __construct(array $json) { @@ -24,9 +24,9 @@ public function __construct(array $json) } /** - * @return string + * @return ?string */ - public function getType(): string + public function getType(): ?string { return $this->type; } @@ -64,10 +64,10 @@ public function getBalance(): ?float } /** - * @return int + * @return ?int */ - public function getResponseCode(): int + public function getResponseCode(): ?int { - return (int) $this->responseCode; + return $this->responseCode; } } diff --git a/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php b/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php index 5b20be91..682dce26 100644 --- a/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/MallTransactionStatusResponse.php @@ -6,12 +6,12 @@ class MallTransactionStatusResponse { - protected string $buyOrder; - protected array $cardDetail; - protected string $cardNumber; - protected string $accountingDate; - protected string $transactionDate; - protected array $details; + protected ?string $buyOrder; + protected ?array $cardDetail; + protected ?string $cardNumber; + protected ?string $accountingDate; + protected ?string $transactionDate; + protected ?array $details; public function __construct(array $json) { @@ -30,49 +30,49 @@ public function __construct(array $json) } /** - * @return string + * @return ?string */ - public function getBuyOrder(): string + public function getBuyOrder(): ?string { return $this->buyOrder; } /** - * @return array + * @return ?array */ - public function getCardDetail(): array + public function getCardDetail(): ?array { return $this->cardDetail; } /** - * @return string + * @return ?string */ - public function getAccountingDate(): string + public function getAccountingDate(): ?string { return $this->accountingDate; } /** - * @return string + * @return ?string */ - public function getTransactionDate(): string + public function getTransactionDate(): ?string { return $this->transactionDate; } /** - * @return array + * @return ?array */ - public function getDetails(): array + public function getDetails(): ?array { return $this->details; } /** - * @return string + * @return ?string */ - public function getCardNumber(): string + public function getCardNumber(): ?string { return $this->cardNumber; } diff --git a/src/Webpay/TransaccionCompleta/Responses/TransactionCreateResponse.php b/src/Webpay/TransaccionCompleta/Responses/TransactionCreateResponse.php index c17b0a44..ab5d9b41 100644 --- a/src/Webpay/TransaccionCompleta/Responses/TransactionCreateResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/TransactionCreateResponse.php @@ -6,7 +6,7 @@ class TransactionCreateResponse { - public string $token; + public ?string $token; public function __construct(array $json) { @@ -14,9 +14,9 @@ public function __construct(array $json) } /** - * @return string + * @return ?string */ - public function getToken(): string + public function getToken(): ?string { return $this->token; } diff --git a/src/Webpay/TransaccionCompleta/Responses/TransactionInstallmentsResponse.php b/src/Webpay/TransaccionCompleta/Responses/TransactionInstallmentsResponse.php index 90807759..96a8eac0 100644 --- a/src/Webpay/TransaccionCompleta/Responses/TransactionInstallmentsResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/TransactionInstallmentsResponse.php @@ -7,8 +7,8 @@ class TransactionInstallmentsResponse { public ?float $installmentsAmount; - public string $idQueryInstallments; - public array $deferredPeriods; + public ?string $idQueryInstallments; + public ?array $deferredPeriods; public function __construct(array $json) { @@ -20,23 +20,23 @@ public function __construct(array $json) /** * @return ?float */ - public function getInstallmentsAmount(): float + public function getInstallmentsAmount(): ?float { return $this->installmentsAmount; } /** - * @return string + * @return ?string */ - public function getIdQueryInstallments(): string + public function getIdQueryInstallments(): ?string { return $this->idQueryInstallments; } /** - * @return array + * @return ?array */ - public function getDeferredPeriods(): array + public function getDeferredPeriods(): ?array { return $this->deferredPeriods; } diff --git a/src/Webpay/TransaccionCompleta/Responses/TransactionRefundResponse.php b/src/Webpay/TransaccionCompleta/Responses/TransactionRefundResponse.php index 18d34cff..1ffb959f 100644 --- a/src/Webpay/TransaccionCompleta/Responses/TransactionRefundResponse.php +++ b/src/Webpay/TransaccionCompleta/Responses/TransactionRefundResponse.php @@ -6,7 +6,7 @@ class TransactionRefundResponse { - public string $type; + public ?string $type; public ?string $authorizationCode; public ?string $authorizationDate; public ?float $nullifiedAmount; @@ -24,9 +24,9 @@ public function __construct(array $json) } /** - * @return string + * @return ?string */ - public function getType(): string + public function getType(): ?string { return $this->type; }