Skip to content

Commit

Permalink
update SDK from api-definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
rebilly-machine-user authored Dec 20, 2024
1 parent a0aec51 commit 87864c4
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-bees-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be): Add merchant feature to skip notificationUrl webhooks for abandoned transactions Rebilly/rebilly#9311
5 changes: 5 additions & 0 deletions .changeset/metal-parrots-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions): Add isDigitallyTampered to KycIdentityMatches.yaml Rebilly/rebilly#9309
5 changes: 5 additions & 0 deletions .changeset/silver-cheetahs-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be, api-definitions): separate monthly and annual QB journal entries Rebilly/rebilly#8292
18 changes: 0 additions & 18 deletions src/Model/DepositRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down Expand Up @@ -132,11 +129,6 @@ public function setCustomerId(string $customerId): static
return $this;
}

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

/**
* @return null|string[]
*/
Expand Down Expand Up @@ -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'];
}
Expand Down Expand Up @@ -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;
Expand Down
18 changes: 18 additions & 0 deletions src/Model/JournalEntry.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('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']);
}
Expand Down Expand Up @@ -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'];
Expand Down Expand Up @@ -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'];
}
Expand Down
18 changes: 18 additions & 0 deletions src/Model/KycIdentityMatches.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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'];
}
Expand Down

0 comments on commit 87864c4

Please sign in to comment.