From 588a22fac65c5d7f80f9f8c887447e82f170a080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Sun, 27 Apr 2025 19:19:19 +0200 Subject: [PATCH] Add checkoutIntentId property to Order object --- src/Models/Statistics/Order.php | 14 ++++++++++++++ src/Models/Statistics/OrderLight.php | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/Models/Statistics/Order.php b/src/Models/Statistics/Order.php index 4cb9c80..5299297 100644 --- a/src/Models/Statistics/Order.php +++ b/src/Models/Statistics/Order.php @@ -30,6 +30,8 @@ class Order implements HelloassoObject private string $organizationSlug; private MetaModel $meta; + private ?int $checkoutIntentId = null; + public function getPayer(): PayerLight { return $this->payer; @@ -173,4 +175,16 @@ public function setMeta(MetaModel $meta): self return $this; } + + public function getCheckoutIntentId(): ?int + { + return $this->checkoutIntentId; + } + + public function setCheckoutIntentId(?int $checkoutIntentId): self + { + $this->checkoutIntentId = $checkoutIntentId; + + return $this; + } } diff --git a/src/Models/Statistics/OrderLight.php b/src/Models/Statistics/OrderLight.php index b8d2c44..2b19481 100644 --- a/src/Models/Statistics/OrderLight.php +++ b/src/Models/Statistics/OrderLight.php @@ -20,6 +20,8 @@ class OrderLight implements HelloassoObject private FormType $formType; private MetaModel $meta; + private ?int $checkoutIntentId = null; + public function getId(): int { return $this->id; @@ -103,4 +105,16 @@ public function setMeta(MetaModel $meta): self return $this; } + + public function getCheckoutIntentId(): ?int + { + return $this->checkoutIntentId; + } + + public function setCheckoutIntentId(?int $checkoutIntentId): self + { + $this->checkoutIntentId = $checkoutIntentId; + + return $this; + } }