Skip to content

Commit

Permalink
feat(saferpay): api update 1.27 => 1.28
Browse files Browse the repository at this point in the history
  • Loading branch information
giriroub committed Jun 4, 2024
1 parent cadfdad commit 638867d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lib/SaferpayJson/Request/Container/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ final class Address
*/
private $phone;

/**
* @var string|null
* @SerializedName("VatNumber")
*/
private $vatNumber;

public function getFirstName(): ?string
{
return $this->firstName;
Expand Down Expand Up @@ -265,4 +271,15 @@ public function setPhone(?string $phone): self

return $this;
}

public function getVatNumber(): ?string
{
return $this->vatNumber;
}

public function setVatNumber(?string $vatNumber): self
{
$this->vatNumber = $vatNumber;
return $this;
}
}
2 changes: 1 addition & 1 deletion lib/SaferpayJson/Request/Container/RequestHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class RequestHeader
* @var string
* @SerializedName("SpecVersion")
*/
private $specVersion = '1.27';
private $specVersion = '1.28';

/**
* @var string
Expand Down
17 changes: 17 additions & 0 deletions lib/SaferpayJson/Response/Container/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ final class Address
*/
private $phone;

/**
* @var string|null
* @SerializedName("VatNumber")
*/
private $vatNumber;

public function getFirstName(): ?string
{
return $this->firstName;
Expand Down Expand Up @@ -181,4 +187,15 @@ public function getPhone(): ?string
{
return $this->phone;
}

public function getVatNumber(): ?string
{
return $this->vatNumber;
}

public function setVatNumber(?string $vatNumber): self
{
$this->vatNumber = $vatNumber;
return $this;
}
}

0 comments on commit 638867d

Please sign in to comment.