From dd6bd9d836704c30e9cf8a014db3df8e070e7166 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Thu, 1 Aug 2024 16:47:05 +0200 Subject: [PATCH] Adjust return type around payment details --- src/Model/Checkout/v3/WalletPaymentDetails.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Model/Checkout/v3/WalletPaymentDetails.php b/src/Model/Checkout/v3/WalletPaymentDetails.php index e5de8f0..a9e3069 100644 --- a/src/Model/Checkout/v3/WalletPaymentDetails.php +++ b/src/Model/Checkout/v3/WalletPaymentDetails.php @@ -14,13 +14,13 @@ class WalletPaymentDetails protected $amount; /** - * @var int + * @var string * @Serializer\Type("integer") */ protected $state; /** - * @var \zaporylie\Vipps\Model\Checkout\v3\Aggregate + * @var \zaporylie\Vipps\Model\Checkout\v3\Aggregate|null * @Serializer\Type("zaporylie\Vipps\Model\Checkout\v3\Aggregate") */ protected $aggregate; @@ -43,18 +43,18 @@ public function getAmount(): Amount { /** * Gets state value. * - * @return int + * @return string */ - public function getState(): int { + public function getState(): string { return $this->state; } /** * Gets aggregate value. * - * @return \zaporylie\Vipps\Model\Checkout\v3\Aggregate + * @return \zaporylie\Vipps\Model\Checkout\v3\Aggregate|null */ - public function getAggregate(): Aggregate { + public function getAggregate(): ?Aggregate { return $this->aggregate; }