From 6c95e90983000fd5f73f45a1daff88da96f0d41f Mon Sep 17 00:00:00 2001 From: rebilly-machine-user Date: Tue, 20 Aug 2024 10:14:17 +0000 Subject: [PATCH] update SDK from api-definitions --- .changeset/afraid-pigs-confess.md | 5 +++++ src/Model/OrganizationSettingsBilling.php | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .changeset/afraid-pigs-confess.md diff --git a/.changeset/afraid-pigs-confess.md b/.changeset/afraid-pigs-confess.md new file mode 100644 index 000000000..690b1a42b --- /dev/null +++ b/.changeset/afraid-pigs-confess.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(api-definitions): Add orderDelinquencyPeriod to Organization settings. Rebilly/rebilly#7016 diff --git a/src/Model/OrganizationSettingsBilling.php b/src/Model/OrganizationSettingsBilling.php index b3c0333b7..228399a0b 100644 --- a/src/Model/OrganizationSettingsBilling.php +++ b/src/Model/OrganizationSettingsBilling.php @@ -24,6 +24,9 @@ public function __construct(array $data = []) if (array_key_exists('pendingOrderTtl', $data)) { $this->setPendingOrderTtl($data['pendingOrderTtl']); } + if (array_key_exists('orderDelinquencyPeriod', $data)) { + $this->setOrderDelinquencyPeriod($data['orderDelinquencyPeriod']); + } } public static function from(array $data = []): self @@ -43,12 +46,27 @@ public function setPendingOrderTtl(null|string $pendingOrderTtl): static return $this; } + public function getOrderDelinquencyPeriod(): ?string + { + return $this->fields['orderDelinquencyPeriod'] ?? null; + } + + public function setOrderDelinquencyPeriod(null|string $orderDelinquencyPeriod): static + { + $this->fields['orderDelinquencyPeriod'] = $orderDelinquencyPeriod; + + return $this; + } + public function jsonSerialize(): array { $data = []; if (array_key_exists('pendingOrderTtl', $this->fields)) { $data['pendingOrderTtl'] = $this->fields['pendingOrderTtl']; } + if (array_key_exists('orderDelinquencyPeriod', $this->fields)) { + $data['orderDelinquencyPeriod'] = $this->fields['orderDelinquencyPeriod']; + } return $data; }