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 Nov 8, 2024
1 parent c7b5175 commit 6229fde
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-melons-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(api-definitions, backend): Add JWT to DepositRequest response Rebilly/rebilly#8345
18 changes: 18 additions & 0 deletions src/Model/DepositRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public function __construct(array $data = [])
if (array_key_exists('notificationUrl', $data)) {
$this->setNotificationUrl($data['notificationUrl']);
}
if (array_key_exists('cashierToken', $data)) {
$this->setCashierToken($data['cashierToken']);
}
if (array_key_exists('customFields', $data)) {
$this->setCustomFields($data['customFields']);
}
Expand Down Expand Up @@ -260,6 +263,11 @@ public function setNotificationUrl(null|string $notificationUrl): static
return $this;
}

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

public function getCustomFields(): ?array
{
return $this->fields['customFields'] ?? null;
Expand Down Expand Up @@ -351,6 +359,9 @@ public function jsonSerialize(): array
if (array_key_exists('notificationUrl', $this->fields)) {
$data['notificationUrl'] = $this->fields['notificationUrl'];
}
if (array_key_exists('cashierToken', $this->fields)) {
$data['cashierToken'] = $this->fields['cashierToken'];
}
if (array_key_exists('customFields', $this->fields)) {
$data['customFields'] = $this->fields['customFields'];
}
Expand Down Expand Up @@ -413,6 +424,13 @@ private function setProperties(null|array $properties): static
return $this;
}

private function setCashierToken(null|string $cashierToken): static
{
$this->fields['cashierToken'] = $cashierToken;

return $this;
}

private function setCreatedTime(null|DateTimeImmutable|string $createdTime): static
{
if ($createdTime !== null && !($createdTime instanceof DateTimeImmutable)) {
Expand Down

0 comments on commit 6229fde

Please sign in to comment.