1
0
mirror of synced 2025-01-18 08:51:42 +03:00

Add discount amount for update payment request

Add discount amount for update payment request
This commit is contained in:
Uryvskiy Dima 2024-12-10 15:07:42 +03:00 committed by GitHub
commit 47edbda927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,14 @@ class ApiUpdateInvoiceRequest
*/
public $amount;
/**
* @var float
*
* @JMS\Type("float")
* @JMS\SerializedName("discountAmount")
*/
public $discountAmount;
/**
* @var string
*

View File

@ -99,6 +99,7 @@ EOF;
$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);