From 87864c46e51c5600f0eb840dbbcebaa037c17d62 Mon Sep 17 00:00:00 2001 From: rebilly-machine-user Date: Fri, 20 Dec 2024 20:15:31 +0000 Subject: [PATCH] update SDK from api-definitions --- .changeset/four-bees-raise.md | 5 +++++ .changeset/metal-parrots-marry.md | 5 +++++ .changeset/silver-cheetahs-help.md | 5 +++++ src/Model/DepositRequest.php | 18 ------------------ src/Model/JournalEntry.php | 18 ++++++++++++++++++ src/Model/KycIdentityMatches.php | 18 ++++++++++++++++++ 6 files changed, 51 insertions(+), 18 deletions(-) create mode 100644 .changeset/four-bees-raise.md create mode 100644 .changeset/metal-parrots-marry.md create mode 100644 .changeset/silver-cheetahs-help.md diff --git a/.changeset/four-bees-raise.md b/.changeset/four-bees-raise.md new file mode 100644 index 00000000..94eaf414 --- /dev/null +++ b/.changeset/four-bees-raise.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(be): Add merchant feature to skip notificationUrl webhooks for abandoned transactions Rebilly/rebilly#9311 diff --git a/.changeset/metal-parrots-marry.md b/.changeset/metal-parrots-marry.md new file mode 100644 index 00000000..66540e5c --- /dev/null +++ b/.changeset/metal-parrots-marry.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(api-definitions): Add isDigitallyTampered to KycIdentityMatches.yaml Rebilly/rebilly#9309 diff --git a/.changeset/silver-cheetahs-help.md b/.changeset/silver-cheetahs-help.md new file mode 100644 index 00000000..13cbff84 --- /dev/null +++ b/.changeset/silver-cheetahs-help.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(be, api-definitions): separate monthly and annual QB journal entries Rebilly/rebilly#8292 diff --git a/src/Model/DepositRequest.php b/src/Model/DepositRequest.php index 6ede9426..0255b35a 100644 --- a/src/Model/DepositRequest.php +++ b/src/Model/DepositRequest.php @@ -45,9 +45,6 @@ public function __construct(array $data = []) if (array_key_exists('customerId', $data)) { $this->setCustomerId($data['customerId']); } - if (array_key_exists('transactionId', $data)) { - $this->setTransactionId($data['transactionId']); - } if (array_key_exists('transactionIds', $data)) { $this->setTransactionIds($data['transactionIds']); } @@ -132,11 +129,6 @@ public function setCustomerId(string $customerId): static return $this; } - public function getTransactionId(): ?string - { - return $this->fields['transactionId'] ?? null; - } - /** * @return null|string[] */ @@ -327,9 +319,6 @@ public function jsonSerialize(): array if (array_key_exists('customerId', $this->fields)) { $data['customerId'] = $this->fields['customerId']; } - if (array_key_exists('transactionId', $this->fields)) { - $data['transactionId'] = $this->fields['transactionId']; - } if (array_key_exists('transactionIds', $this->fields)) { $data['transactionIds'] = $this->fields['transactionIds']; } @@ -394,13 +383,6 @@ private function setId(null|string $id): static return $this; } - private function setTransactionId(null|string $transactionId): static - { - $this->fields['transactionId'] = $transactionId; - - return $this; - } - private function setStatus(null|string $status): static { $this->fields['status'] = $status; diff --git a/src/Model/JournalEntry.php b/src/Model/JournalEntry.php index f0ab8563..25b61123 100644 --- a/src/Model/JournalEntry.php +++ b/src/Model/JournalEntry.php @@ -30,6 +30,9 @@ public function __construct(array $data = []) if (array_key_exists('period', $data)) { $this->setPeriod($data['period']); } + if (array_key_exists('label', $data)) { + $this->setLabel($data['label']); + } if (array_key_exists('currency', $data)) { $this->setCurrency($data['currency']); } @@ -73,6 +76,18 @@ public function setPeriod(JournalEntryPeriod|array $period): static return $this; } + public function getLabel(): ?string + { + return $this->fields['label'] ?? null; + } + + public function setLabel(null|string $label): static + { + $this->fields['label'] = $label; + + return $this; + } + public function getCurrency(): string { return $this->fields['currency']; @@ -124,6 +139,9 @@ public function jsonSerialize(): array if (array_key_exists('period', $this->fields)) { $data['period'] = $this->fields['period']->jsonSerialize(); } + if (array_key_exists('label', $this->fields)) { + $data['label'] = $this->fields['label']; + } if (array_key_exists('currency', $this->fields)) { $data['currency'] = $this->fields['currency']; } diff --git a/src/Model/KycIdentityMatches.php b/src/Model/KycIdentityMatches.php index a27c618f..fb33a69b 100644 --- a/src/Model/KycIdentityMatches.php +++ b/src/Model/KycIdentityMatches.php @@ -128,6 +128,9 @@ public function __construct(array $data = []) if (array_key_exists('isTampered', $data)) { $this->setIsTampered($data['isTampered']); } + if (array_key_exists('isDigitallyTampered', $data)) { + $this->setIsDigitallyTampered($data['isDigitallyTampered']); + } if (array_key_exists('hasCompletedFaceLiveness', $data)) { $this->setHasCompletedFaceLiveness($data['hasCompletedFaceLiveness']); } @@ -346,6 +349,18 @@ public function setIsTampered(null|bool $isTampered): static return $this; } + public function getIsDigitallyTampered(): ?bool + { + return $this->fields['isDigitallyTampered'] ?? null; + } + + public function setIsDigitallyTampered(null|bool $isDigitallyTampered): static + { + $this->fields['isDigitallyTampered'] = $isDigitallyTampered; + + return $this; + } + public function getHasCompletedFaceLiveness(): ?bool { return $this->fields['hasCompletedFaceLiveness'] ?? null; @@ -421,6 +436,9 @@ public function jsonSerialize(): array if (array_key_exists('isTampered', $this->fields)) { $data['isTampered'] = $this->fields['isTampered']; } + if (array_key_exists('isDigitallyTampered', $this->fields)) { + $data['isDigitallyTampered'] = $this->fields['isDigitallyTampered']; + } if (array_key_exists('hasCompletedFaceLiveness', $this->fields)) { $data['hasCompletedFaceLiveness'] = $this->fields['hasCompletedFaceLiveness']; }