public class PaymentDataSource extends java.lang.Object implements PaymentDataSource
| Modifier and Type | Class and Description |
|---|---|
private static class |
PaymentDataSource.SingletonCreationAdmin |
| Modifier and Type | Field and Description |
|---|---|
private java.math.BigDecimal |
amount |
private AuthorizeAction |
authorizeAction |
private android.content.Context |
context |
private TapCurrency |
currency |
private Customer |
customer |
private Destinations |
destination |
private java.util.ArrayList<PaymentItem> |
items |
private java.lang.String |
paymentDescription |
private java.util.HashMap<java.lang.String,java.lang.String> |
paymentMetadata |
private Reference |
paymentReference |
private java.lang.String |
paymentStatementDescriptor |
private java.lang.String |
postURL |
private Receipt |
receiptSettings |
private boolean |
requires3DSecure |
private java.util.ArrayList<Shipping> |
shipping |
private java.util.ArrayList<Tax> |
taxes |
private TransactionMode |
transactionMode |
private java.lang.String |
trx_curr |
private java.lang.String |
trx_mode |
| Constructor and Description |
|---|
PaymentDataSource()
Instantiates a new Payment data source.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getAmount()
Amount.
|
AuthorizeAction |
getAuthorizeAction()
Action to perform after authorization succeeds.
|
TapCurrency |
getCurrency()
Transaction currency.
|
Customer |
getCustomer()
Customer.
|
Destinations |
getDestination()
The Destination array contains list of Merchant desired destinations accounts to receive money from payment transactions
|
static PaymentDataSource |
getInstance()
Get instance payment data source.
|
java.util.ArrayList<PaymentItem> |
getItems()
List of items to pay for.
|
java.lang.String |
getPaymentDescription()
Description of the payment.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getPaymentMetadata()
If you would like to pass additional information with the payment, pass it here.
|
Reference |
getPaymentReference()
Payment reference.
|
java.lang.String |
getPaymentStatementDescriptor()
Payment statement descriptor.
|
java.lang.String |
getPostURL()
Tap will post to this URL after transaction finishes.
|
Receipt |
getReceiptSettings()
Receipt dispatch settings.
|
boolean |
getRequires3DSecure()
Defines if 3D secure check is required.
|
java.util.ArrayList<Shipping> |
getShipping()
Shipping list.
|
java.util.ArrayList<Tax> |
getTaxes()
List of taxes.
|
TransactionMode |
getTransactionMode()
Transaction mode.
|
void |
isRequires3DSecure(boolean requires3DSecure)
Is requires 3 d secure.
|
void |
setAmount(java.math.BigDecimal amount)
Set amount.
|
void |
setAuthorizeAction(AuthorizeAction authorizeAction)
Set authorize action.
|
void |
setCustomer(Customer customer)
Set customer.
|
void |
setDestination(Destinations destination)
set Destination
|
void |
setPaymentDescription(java.lang.String paymentDescription)
Set payment description.
|
void |
setPaymentItems(java.util.ArrayList<PaymentItem> paymentItems)
Set payment items.
|
void |
setPaymentMetadata(java.util.HashMap<java.lang.String,java.lang.String> paymentMetadata)
Set payment metadata.
|
void |
setPaymentReference(Reference paymentReference)
Set payment reference.
|
void |
setPaymentStatementDescriptor(java.lang.String paymentDescription)
Set payment statement descriptor.
|
void |
setPostURL(java.lang.String postURL)
Set post url.
|
void |
setReceiptSettings(Receipt receipt)
Set receipt settings.
|
void |
setShipping(java.util.ArrayList<Shipping> shippingList)
Set shipping.
|
void |
setTaxes(java.util.ArrayList<Tax> taxes)
Set taxes.
|
void |
setTransactionCurrency(TapCurrency tapCurrency)
Set transaction currency.
|
void |
setTransactionMode(TransactionMode transactionMode)
Set transaction mode.
|
@NonNull private TapCurrency currency
@NonNull private Customer customer
@Nullable private java.math.BigDecimal amount
@Nullable private java.util.ArrayList<PaymentItem> items
@Nullable private TransactionMode transactionMode
@Nullable private java.util.ArrayList<Tax> taxes
@Nullable private java.util.ArrayList<Shipping> shipping
@Nullable private java.lang.String postURL
@Nullable private java.lang.String paymentDescription
@Nullable private java.util.HashMap<java.lang.String,java.lang.String> paymentMetadata
@Nullable private Reference paymentReference
@Nullable private java.lang.String paymentStatementDescriptor
@Nullable private boolean requires3DSecure
@Nullable private Receipt receiptSettings
@Nullable private AuthorizeAction authorizeAction
@Nullable private Destinations destination
@NonNull private android.content.Context context
@NonNull private java.lang.String trx_curr
@NonNull private java.lang.String trx_mode
public PaymentDataSource()
public static PaymentDataSource getInstance()
public void setTransactionCurrency(@NonNull
TapCurrency tapCurrency)
tapCurrency - the tap currencypublic void setCustomer(@NonNull
Customer customer)
customer - the customerpublic void setAmount(@Nullable
java.math.BigDecimal amount)
amount - the amountpublic void setPaymentItems(@Nullable
java.util.ArrayList<PaymentItem> paymentItems)
paymentItems - the payment itemspublic void setTransactionMode(@Nullable
TransactionMode transactionMode)
transactionMode - the transaction modepublic void setTaxes(@Nullable
java.util.ArrayList<Tax> taxes)
taxes - the taxespublic void setShipping(@Nullable
java.util.ArrayList<Shipping> shippingList)
shippingList - the shipping listpublic void setPostURL(@Nullable
java.lang.String postURL)
postURL - the post urlpublic void setPaymentDescription(@Nullable
java.lang.String paymentDescription)
paymentDescription - the payment descriptionpublic void setPaymentMetadata(@Nullable
java.util.HashMap<java.lang.String,java.lang.String> paymentMetadata)
paymentMetadata - the payment metadatapublic void setPaymentReference(@Nullable
Reference paymentReference)
paymentReference - the payment referencepublic void setPaymentStatementDescriptor(@Nullable
java.lang.String paymentDescription)
paymentDescription - the payment descriptionpublic void isRequires3DSecure(@Nullable
boolean requires3DSecure)
requires3DSecure - the requires 3 d securepublic void setReceiptSettings(@Nullable
Receipt receipt)
receipt - the receiptpublic void setAuthorizeAction(@Nullable
AuthorizeAction authorizeAction)
authorizeAction - the authorize actionpublic void setDestination(Destinations destination)
@NonNull public TapCurrency getCurrency()
PaymentDataSourcegetCurrency in interface PaymentDataSource@NonNull public Customer getCustomer()
PaymentDataSourcegetCustomer in interface PaymentDataSource@Nullable public java.math.BigDecimal getAmount()
PaymentDataSourcegetAmount in interface PaymentDataSource@Nullable public java.util.ArrayList<PaymentItem> getItems()
PaymentDataSourcegetItems in interface PaymentDataSource@Nullable public TransactionMode getTransactionMode()
PaymentDataSourcegetTransactionMode in interface PaymentDataSource@Nullable public java.util.ArrayList<Tax> getTaxes()
PaymentDataSourcegetTaxes in interface PaymentDataSource@Nullable public java.util.ArrayList<Shipping> getShipping()
PaymentDataSourcegetShipping in interface PaymentDataSource@Nullable public java.lang.String getPostURL()
PaymentDataSourcegetPostURL in interface PaymentDataSource@Nullable public java.lang.String getPaymentDescription()
PaymentDataSourcegetPaymentDescription in interface PaymentDataSource@Nullable public java.util.HashMap<java.lang.String,java.lang.String> getPaymentMetadata()
PaymentDataSourcegetPaymentMetadata in interface PaymentDataSource@Nullable public Reference getPaymentReference()
PaymentDataSourcegetPaymentReference in interface PaymentDataSource@Nullable public java.lang.String getPaymentStatementDescriptor()
PaymentDataSourcegetPaymentStatementDescriptor in interface PaymentDataSource@Nullable public boolean getRequires3DSecure()
PaymentDataSourcegetRequires3DSecure in interface PaymentDataSource@Nullable public Receipt getReceiptSettings()
PaymentDataSourcegetReceiptSettings in interface PaymentDataSource@Nullable public AuthorizeAction getAuthorizeAction()
PaymentDataSourcegetAuthorizeAction in interface PaymentDataSource@Nullable public Destinations getDestination()
PaymentDataSourcegetDestination in interface PaymentDataSource