Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#713)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
  • Loading branch information
rebilly-machine-user and rebilly-machine-user authored Aug 20, 2024
1 parent 5a910e2 commit 88978ce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-pigs-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add orderDelinquencyPeriod to Organization settings. Rebilly/rebilly#7016
18 changes: 18 additions & 0 deletions src/Model/OrganizationSettingsBilling.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down

0 comments on commit 88978ce

Please sign in to comment.