Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#726)
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 Nov 18, 2024
1 parent 98d5c55 commit fbe7dbc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-penguins-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

fix(api-definitions): Add missing locale in Customer.yaml Rebilly/rebilly#8662
18 changes: 18 additions & 0 deletions src/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public function __construct(array $data = [])
if (array_key_exists('organizationId', $data)) {
$this->setOrganizationId($data['organizationId']);
}
if (array_key_exists('locale', $data)) {
$this->setLocale($data['locale']);
}
if (array_key_exists('taxNumbers', $data)) {
$this->setTaxNumbers($data['taxNumbers']);
}
Expand Down Expand Up @@ -301,6 +304,18 @@ public function getOrganizationId(): ?string
return $this->fields['organizationId'] ?? null;
}

public function getLocale(): ?string
{
return $this->fields['locale'] ?? null;
}

public function setLocale(null|string $locale): static
{
$this->fields['locale'] = $locale;

return $this;
}

/**
* @return null|TaxNumber[]
*/
Expand Down Expand Up @@ -422,6 +437,9 @@ public function jsonSerialize(): array
if (array_key_exists('organizationId', $this->fields)) {
$data['organizationId'] = $this->fields['organizationId'];
}
if (array_key_exists('locale', $this->fields)) {
$data['locale'] = $this->fields['locale'];
}
if (array_key_exists('taxNumbers', $this->fields)) {
$data['taxNumbers'] = $this->fields['taxNumbers'] !== null
? array_map(
Expand Down

0 comments on commit fbe7dbc

Please sign in to comment.