Skip to content

Commit

Permalink
feat(saferpay): api update 1.28 => 1.31
Browse files Browse the repository at this point in the history
* changes according to http://saferpay.github.io/jsonapi/#v1.30.0.0.20220920
* 1.29 and 1.31 do not contain any API interface changes

Closes: #71, #72, #73
  • Loading branch information
giriroub committed Jun 4, 2024
1 parent 638867d commit 8581fb4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions lib/SaferpayJson/Request/Container/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ final class OrderItem
*/
private $discountAmount;

/**
* @var string|null
* @SerializedName("ProductUrl")
*/
private $productUrl;

/**
* @var string|null
* @SerializedName("ImageUrl")
*/
private $imageUrl;


public function getType(): ?string
{
Expand Down Expand Up @@ -257,4 +269,26 @@ public function setDiscountAmount(?string $discountAmount): self

return $this;
}

public function getProductUrl(): ?string
{
return $this->productUrl;
}

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

public function getImageUrl(): ?string
{
return $this->imageUrl;
}

public function setImageUrl(?string $imageUrl): self
{
$this->imageUrl = $imageUrl;
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.28';
private $specVersion = '1.31';

/**
* @var string
Expand Down

0 comments on commit 8581fb4

Please sign in to comment.