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;