From 868683651741b8be1c02779a918f6e343d9816ec Mon Sep 17 00:00:00 2001 From: Rebilly Machine User Date: Thu, 18 Jul 2024 00:36:08 +0300 Subject: [PATCH] update SDK from api-definitions (#707) Co-authored-by: rebilly-machine-user --- .changeset/rotten-frogs-behave.md | 5 +++++ src/Model/SkrillCredentials.php | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .changeset/rotten-frogs-behave.md diff --git a/.changeset/rotten-frogs-behave.md b/.changeset/rotten-frogs-behave.md new file mode 100644 index 000000000..981029840 --- /dev/null +++ b/.changeset/rotten-frogs-behave.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(api-definitions): Add currencyAccountIds credential field to Skrill gateway Rebilly/rebilly#6310 diff --git a/src/Model/SkrillCredentials.php b/src/Model/SkrillCredentials.php index aad6170e5..c0384b120 100644 --- a/src/Model/SkrillCredentials.php +++ b/src/Model/SkrillCredentials.php @@ -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 @@ -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 = []; @@ -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; }