Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update SDK from api-definitions #713

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading