Skip to content

Commit

Permalink
Adds Metadata support for ePayment
Browse files Browse the repository at this point in the history
  • Loading branch information
zaporylie committed Jul 29, 2024
1 parent 31069c7 commit a8b9e66
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Model/EPayment/v1/CreatePaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ class CreatePaymentRequest
*/
protected $receipt;

/**
* @var array
* @Serializer\Type("array")
*/
protected $metadata;


/**
* Gets amount value.
*
Expand Down Expand Up @@ -436,4 +443,16 @@ public function setReceipt(Receipt $receipt)
$this->receipt = $receipt;
return $this;
}

/**
* Sets metadata variable.
*
* @param array $metadata
*
* @return $this
*/
public function setMetadata(array $metadata) {
$this->metadata = $metadata;
return $this;
}
}
15 changes: 15 additions & 0 deletions src/Model/EPayment/v1/GetPaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class GetPaymentResponse
*/
protected $reference;

/**
* @var array
* @Serializer\Type("array")
*/
protected $metadata;

/**
* Gets aggregate value.
*
Expand Down Expand Up @@ -138,4 +144,13 @@ public function getState(): string
{
return $this->state;
}

/**
* Gets metadata value.
*
* @return array
*/
public function getMetadata(): array {
return $this->metadata;
}
}

0 comments on commit a8b9e66

Please sign in to comment.