From 1710004160ab8dc2bfe9f07ef1bf141e0b95a1ae Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Fri, 5 Apr 2024 10:47:57 +0200 Subject: [PATCH] Correct CheckoutIntentResponse --- src/Models/Carts/CheckoutIntentResponse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Models/Carts/CheckoutIntentResponse.php b/src/Models/Carts/CheckoutIntentResponse.php index 05ebf3a..fca32cf 100644 --- a/src/Models/Carts/CheckoutIntentResponse.php +++ b/src/Models/Carts/CheckoutIntentResponse.php @@ -21,7 +21,7 @@ class CheckoutIntentResponse implements HelloassoObject private array $metadata; - private OrderDetail $order; + private ?OrderDetail $order = null; public function getId(): int { @@ -59,12 +59,12 @@ public function setMetadata(array $metadata): self return $this; } - public function getOrder(): OrderDetail + public function getOrder(): ?OrderDetail { return $this->order; } - public function setOrder(OrderDetail $order): self + public function setOrder(?OrderDetail $order): self { $this->order = $order;