diff --git a/.changeset/afraid-pigs-confess.md b/.changeset/afraid-pigs-confess.md new file mode 100644 index 00000000..690b1a42 --- /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 b3c0333b..228399a0 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; }