Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#660)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
  • Loading branch information
rebilly-machine-user and rebilly-machine-user authored Nov 22, 2023
1 parent 39d4be7 commit 06e0981
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-lamps-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

Add missing Application.logoId type Rebilly/api-definitions#1698
5 changes: 5 additions & 0 deletions .changeset/swift-grapes-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

Add Checkout.com processing channel ID Rebilly/api-definitions#1687
4 changes: 2 additions & 2 deletions src/Model/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ public function setName(string $name): static
return $this;
}

public function getLogoId(): mixed
public function getLogoId(): string
{
return $this->fields['logoId'];
}

public function setLogoId(mixed $logoId): static
public function setLogoId(string $logoId): static
{
$this->fields['logoId'] = $logoId;

Expand Down
36 changes: 36 additions & 0 deletions src/Model/CheckoutComSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public function __construct(array $data = [])
if (array_key_exists('markAsWaitingGatewayOnPendingPayout', $data)) {
$this->setMarkAsWaitingGatewayOnPendingPayout($data['markAsWaitingGatewayOnPendingPayout']);
}
if (array_key_exists('subEntityIdWebsiteCustomField', $data)) {
$this->setSubEntityIdWebsiteCustomField($data['subEntityIdWebsiteCustomField']);
}
if (array_key_exists('processingChannelId', $data)) {
$this->setProcessingChannelId($data['processingChannelId']);
}
}

public static function from(array $data = []): self
Expand All @@ -43,12 +49,42 @@ public function setMarkAsWaitingGatewayOnPendingPayout(null|bool $markAsWaitingG
return $this;
}

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

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

return $this;
}

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

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

return $this;
}

public function jsonSerialize(): array
{
$data = [];
if (array_key_exists('markAsWaitingGatewayOnPendingPayout', $this->fields)) {
$data['markAsWaitingGatewayOnPendingPayout'] = $this->fields['markAsWaitingGatewayOnPendingPayout'];
}
if (array_key_exists('subEntityIdWebsiteCustomField', $this->fields)) {
$data['subEntityIdWebsiteCustomField'] = $this->fields['subEntityIdWebsiteCustomField'];
}
if (array_key_exists('processingChannelId', $this->fields)) {
$data['processingChannelId'] = $this->fields['processingChannelId'];
}

return $data;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/UserApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ public function setName(string $name): static
return $this;
}

public function getLogoId(): mixed
public function getLogoId(): string
{
return $this->fields['logoId'];
}

public function setLogoId(mixed $logoId): static
public function setLogoId(string $logoId): static
{
$this->fields['logoId'] = $logoId;

Expand Down

0 comments on commit 06e0981

Please sign in to comment.