Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#697)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
Co-authored-by: Arif Kurkchi <[email protected]>
  • Loading branch information
3 people authored Jun 7, 2024
1 parent 0c3fadb commit 33cb6ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-singers-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

Remove Buckaroo debtor code Rebilly/rebilly#5772
18 changes: 0 additions & 18 deletions src/Model/BuckarooCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ class BuckarooCredentials implements JsonSerializable

public function __construct(array $data = [])
{
if (array_key_exists('debtorCode', $data)) {
$this->setDebtorCode($data['debtorCode']);
}
if (array_key_exists('schemeKey', $data)) {
$this->setSchemeKey($data['schemeKey']);
}
Expand All @@ -40,18 +37,6 @@ public static function from(array $data = []): self
return new self($data);
}

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

public function setDebtorCode(null|string $debtorCode): static
{
$this->fields['debtorCode'] = $debtorCode;

return $this;
}

public function getSchemeKey(): ?string
{
return $this->fields['schemeKey'] ?? null;
Expand Down Expand Up @@ -91,9 +76,6 @@ public function setSecretKey(string $secretKey): static
public function jsonSerialize(): array
{
$data = [];
if (array_key_exists('debtorCode', $this->fields)) {
$data['debtorCode'] = $this->fields['debtorCode'];
}
if (array_key_exists('schemeKey', $this->fields)) {
$data['schemeKey'] = $this->fields['schemeKey'];
}
Expand Down

0 comments on commit 33cb6ec

Please sign in to comment.