Skip to content

Commit

Permalink
Add discount amount for update payment request
Browse files Browse the repository at this point in the history
Add discount amount for update payment request
  • Loading branch information
uryvskiy-dima authored Dec 10, 2024
2 parents 16cdc6c + 91c3ca8 commit 47edbda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Model/Entity/Payments/ApiUpdateInvoiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ class ApiUpdateInvoiceRequest
*/
public $amount;

/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("discountAmount")
*/
public $discountAmount;

/**
* @var string
*
Expand Down
1 change: 1 addition & 0 deletions tests/src/ResourceGroup/PaymentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function testUpdateInvoice(): void
$invoiceRequest->paymentId = 'd6458333-fff3-4fd0-9b23-4e6344451f8e';
$invoiceRequest->invoiceUuid = '5b1b2e9d-b7f1-48f4-acb9-4bfce04b30cf';
$invoiceRequest->invoiceUrl = 'https://example.com/newUrl';
$invoiceRequest->discountAmount = 20.0;

$request = new PaymentUpdateInvoiceRequest($invoiceRequest);

Expand Down

0 comments on commit 47edbda

Please sign in to comment.