public final class PaymentOptionsRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
currency |
private java.lang.String |
customer |
private java.util.ArrayList<PaymentItem> |
items |
private java.util.ArrayList<Shipping> |
shipping |
private java.util.ArrayList<Tax> |
taxes |
private java.math.BigDecimal |
totalAmount |
private TransactionMode |
transactionMode |
Constructor and Description |
---|
PaymentOptionsRequest(TransactionMode transactionMode,
java.math.BigDecimal amount,
java.util.ArrayList<PaymentItem> items,
java.util.ArrayList<Shipping> shipping,
java.util.ArrayList<Tax> taxes,
java.lang.String currency,
java.lang.String customer)
Instantiates a new Payment options request.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPaymentOptionRequestInfo()
Get payment option request info string.
|
TransactionMode |
getTransactionMode()
Gets transaction mode.
|
@SerializedName(value="transaction_mode") @Expose @NonNull private TransactionMode transactionMode
@SerializedName(value="items") @Expose @Nullable private java.util.ArrayList<PaymentItem> items
@SerializedName(value="shipping") @Expose @Nullable private java.util.ArrayList<Shipping> shipping
@SerializedName(value="taxes") @Expose @Nullable private java.util.ArrayList<Tax> taxes
@SerializedName(value="customer") @Expose @Nullable private java.lang.String customer
@SerializedName(value="currency") @Expose @NonNull private java.lang.String currency
@SerializedName(value="total_amount") @Expose @NonNull private java.math.BigDecimal totalAmount
public PaymentOptionsRequest(@Nullable TransactionMode transactionMode, @Nullable java.math.BigDecimal amount, @Nullable java.util.ArrayList<PaymentItem> items, @Nullable java.util.ArrayList<Shipping> shipping, @Nullable java.util.ArrayList<Tax> taxes, @Nullable java.lang.String currency, @Nullable java.lang.String customer)
transactionMode
- the transaction modeamount
- the amountitems
- the itemsshipping
- the shippingtaxes
- the taxescurrency
- the currencycustomer
- the customer@NonNull public TransactionMode getTransactionMode()
public java.lang.String getPaymentOptionRequestInfo()