Skip to content

Commit

Permalink
update SDK from api-definitions (#707)
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 Jul 17, 2024
1 parent 05f9635 commit 8686836
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-frogs-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add currencyAccountIds credential field to Skrill gateway Rebilly/rebilly#6310
18 changes: 18 additions & 0 deletions src/Model/SkrillCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public function __construct(array $data = [])
if (array_key_exists('mqiPassword', $data)) {
$this->setMqiPassword($data['mqiPassword']);
}
if (array_key_exists('currencyAccountIds', $data)) {
$this->setCurrencyAccountIds($data['currencyAccountIds']);
}
}

public static function from(array $data = []): self
Expand Down Expand Up @@ -73,6 +76,18 @@ public function setMqiPassword(null|string $mqiPassword): static
return $this;
}

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

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

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand All @@ -85,6 +100,9 @@ public function jsonSerialize(): array
if (array_key_exists('mqiPassword', $this->fields)) {
$data['mqiPassword'] = $this->fields['mqiPassword'];
}
if (array_key_exists('currencyAccountIds', $this->fields)) {
$data['currencyAccountIds'] = $this->fields['currencyAccountIds'];
}

return $data;
}
Expand Down

0 comments on commit 8686836

Please sign in to comment.