From e0793900f6470a98b3a22a74c264270802da0c77 Mon Sep 17 00:00:00 2001 From: rebilly-machine-user Date: Wed, 29 Nov 2023 13:28:28 +0000 Subject: [PATCH] update SDK from api-definitions --- .changeset/happy-flowers-bake.md | 5 +++++ .changeset/odd-apricots-dress.md | 5 +++++ src/Model/GatewayAccount.php | 26 ++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .changeset/happy-flowers-bake.md create mode 100644 .changeset/odd-apricots-dress.md diff --git a/.changeset/happy-flowers-bake.md b/.changeset/happy-flowers-bake.md new file mode 100644 index 000000000..41461a469 --- /dev/null +++ b/.changeset/happy-flowers-bake.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +Add readyToPayoutInstruction property Rebilly/api-definitions#1707 diff --git a/.changeset/odd-apricots-dress.md b/.changeset/odd-apricots-dress.md new file mode 100644 index 000000000..b9005f6a6 --- /dev/null +++ b/.changeset/odd-apricots-dress.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +Add detail to create order fields Rebilly/api-definitions#1705 diff --git a/src/Model/GatewayAccount.php b/src/Model/GatewayAccount.php index f184fb5f0..b71f3b965 100644 --- a/src/Model/GatewayAccount.php +++ b/src/Model/GatewayAccount.php @@ -36,6 +36,14 @@ abstract class GatewayAccount implements JsonSerializable public const SETUP_INSTRUCTION_DO_NOTHING = 'do-nothing'; + public const READY_TO_PAYOUT_INSTRUCTION_ALL = 'all'; + + public const READY_TO_PAYOUT_INSTRUCTION_COVERED_PAYOUT = 'covered-payout'; + + public const READY_TO_PAYOUT_INSTRUCTION_APPROVED_PAYMENT = 'approved-payment'; + + public const READY_TO_PAYOUT_INSTRUCTION_NONE = 'none'; + private array $fields = []; protected function __construct(array $data = []) @@ -118,6 +126,9 @@ protected function __construct(array $data = []) if (array_key_exists('setupInstruction', $data)) { $this->setSetupInstruction($data['setupInstruction']); } + if (array_key_exists('readyToPayoutInstruction', $data)) { + $this->setReadyToPayoutInstruction($data['readyToPayoutInstruction']); + } if (array_key_exists('customFields', $data)) { $this->setCustomFields($data['customFields']); } @@ -838,6 +849,18 @@ public function setSetupInstruction(null|string $setupInstruction): static return $this; } + public function getReadyToPayoutInstruction(): ?string + { + return $this->fields['readyToPayoutInstruction'] ?? null; + } + + public function setReadyToPayoutInstruction(null|string $readyToPayoutInstruction): static + { + $this->fields['readyToPayoutInstruction'] = $readyToPayoutInstruction; + + return $this; + } + public function getCustomFields(): ?array { return $this->fields['customFields'] ?? null; @@ -961,6 +984,9 @@ public function jsonSerialize(): array if (array_key_exists('setupInstruction', $this->fields)) { $data['setupInstruction'] = $this->fields['setupInstruction']; } + if (array_key_exists('readyToPayoutInstruction', $this->fields)) { + $data['readyToPayoutInstruction'] = $this->fields['readyToPayoutInstruction']; + } if (array_key_exists('customFields', $this->fields)) { $data['customFields'] = $this->fields['customFields']; }