Add discount amount for update payment request
Add discount amount for update payment request
This commit is contained in:
commit
47edbda927
@ -43,6 +43,14 @@ class ApiUpdateInvoiceRequest
|
|||||||
*/
|
*/
|
||||||
public $amount;
|
public $amount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var float
|
||||||
|
*
|
||||||
|
* @JMS\Type("float")
|
||||||
|
* @JMS\SerializedName("discountAmount")
|
||||||
|
*/
|
||||||
|
public $discountAmount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
|
@ -99,6 +99,7 @@ EOF;
|
|||||||
$invoiceRequest->paymentId = 'd6458333-fff3-4fd0-9b23-4e6344451f8e';
|
$invoiceRequest->paymentId = 'd6458333-fff3-4fd0-9b23-4e6344451f8e';
|
||||||
$invoiceRequest->invoiceUuid = '5b1b2e9d-b7f1-48f4-acb9-4bfce04b30cf';
|
$invoiceRequest->invoiceUuid = '5b1b2e9d-b7f1-48f4-acb9-4bfce04b30cf';
|
||||||
$invoiceRequest->invoiceUrl = 'https://example.com/newUrl';
|
$invoiceRequest->invoiceUrl = 'https://example.com/newUrl';
|
||||||
|
$invoiceRequest->discountAmount = 20.0;
|
||||||
|
|
||||||
$request = new PaymentUpdateInvoiceRequest($invoiceRequest);
|
$request = new PaymentUpdateInvoiceRequest($invoiceRequest);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user