From 06e09810435b647bd31bdfd4ed3ea7e4ae9b5f58 Mon Sep 17 00:00:00 2001 From: Rebilly Machine User Date: Wed, 22 Nov 2023 10:44:41 +0200 Subject: [PATCH] chore: update SDK from api-definitions (#660) Co-authored-by: rebilly-machine-user --- .changeset/fluffy-lamps-listen.md | 5 +++++ .changeset/swift-grapes-arrive.md | 5 +++++ src/Model/Application.php | 4 ++-- src/Model/CheckoutComSettings.php | 36 +++++++++++++++++++++++++++++++ src/Model/UserApplication.php | 4 ++-- 5 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 .changeset/fluffy-lamps-listen.md create mode 100644 .changeset/swift-grapes-arrive.md diff --git a/.changeset/fluffy-lamps-listen.md b/.changeset/fluffy-lamps-listen.md new file mode 100644 index 000000000..0bf4c5c92 --- /dev/null +++ b/.changeset/fluffy-lamps-listen.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +Add missing Application.logoId type Rebilly/api-definitions#1698 diff --git a/.changeset/swift-grapes-arrive.md b/.changeset/swift-grapes-arrive.md new file mode 100644 index 000000000..0c8a4300a --- /dev/null +++ b/.changeset/swift-grapes-arrive.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +Add Checkout.com processing channel ID Rebilly/api-definitions#1687 diff --git a/src/Model/Application.php b/src/Model/Application.php index 26d363236..bdcbf1d12 100644 --- a/src/Model/Application.php +++ b/src/Model/Application.php @@ -154,12 +154,12 @@ public function setName(string $name): static return $this; } - public function getLogoId(): mixed + public function getLogoId(): string { return $this->fields['logoId']; } - public function setLogoId(mixed $logoId): static + public function setLogoId(string $logoId): static { $this->fields['logoId'] = $logoId; diff --git a/src/Model/CheckoutComSettings.php b/src/Model/CheckoutComSettings.php index 97b29950c..cc2b11ea7 100644 --- a/src/Model/CheckoutComSettings.php +++ b/src/Model/CheckoutComSettings.php @@ -24,6 +24,12 @@ public function __construct(array $data = []) if (array_key_exists('markAsWaitingGatewayOnPendingPayout', $data)) { $this->setMarkAsWaitingGatewayOnPendingPayout($data['markAsWaitingGatewayOnPendingPayout']); } + if (array_key_exists('subEntityIdWebsiteCustomField', $data)) { + $this->setSubEntityIdWebsiteCustomField($data['subEntityIdWebsiteCustomField']); + } + if (array_key_exists('processingChannelId', $data)) { + $this->setProcessingChannelId($data['processingChannelId']); + } } public static function from(array $data = []): self @@ -43,12 +49,42 @@ public function setMarkAsWaitingGatewayOnPendingPayout(null|bool $markAsWaitingG return $this; } + public function getSubEntityIdWebsiteCustomField(): ?string + { + return $this->fields['subEntityIdWebsiteCustomField'] ?? null; + } + + public function setSubEntityIdWebsiteCustomField(null|string $subEntityIdWebsiteCustomField): static + { + $this->fields['subEntityIdWebsiteCustomField'] = $subEntityIdWebsiteCustomField; + + return $this; + } + + public function getProcessingChannelId(): ?string + { + return $this->fields['processingChannelId'] ?? null; + } + + public function setProcessingChannelId(null|string $processingChannelId): static + { + $this->fields['processingChannelId'] = $processingChannelId; + + return $this; + } + public function jsonSerialize(): array { $data = []; if (array_key_exists('markAsWaitingGatewayOnPendingPayout', $this->fields)) { $data['markAsWaitingGatewayOnPendingPayout'] = $this->fields['markAsWaitingGatewayOnPendingPayout']; } + if (array_key_exists('subEntityIdWebsiteCustomField', $this->fields)) { + $data['subEntityIdWebsiteCustomField'] = $this->fields['subEntityIdWebsiteCustomField']; + } + if (array_key_exists('processingChannelId', $this->fields)) { + $data['processingChannelId'] = $this->fields['processingChannelId']; + } return $data; } diff --git a/src/Model/UserApplication.php b/src/Model/UserApplication.php index b4839212b..c2daa4329 100644 --- a/src/Model/UserApplication.php +++ b/src/Model/UserApplication.php @@ -157,12 +157,12 @@ public function setName(string $name): static return $this; } - public function getLogoId(): mixed + public function getLogoId(): string { return $this->fields['logoId']; } - public function setLogoId(mixed $logoId): static + public function setLogoId(string $logoId): static { $this->fields['logoId'] = $logoId;