Page Summary
-
TransactionInfo.Builder is used to create a TransactionInfo object.
-
The builder has methods to set the currency code, total price, and total price status of the transaction.
-
The build() method returns the final TransactionInfo object.
Builder to create a TransactionInfo
.
Public Method Summary
| TransactionInfo | |
| TransactionInfo.Builder | setCurrencyCode
( String
currencyCode)
Sets the ISO 4217 alphabetic currency code of the transaction.
|
| TransactionInfo.Builder | |
| TransactionInfo.Builder |
Inherited Method Summary
Public Methods
public TransactionInfo build ()
Returns the actual TransactionInfo
created using the data passed to the Builder object.
public TransactionInfo.Builder setCurrencyCode ( String currencyCode)
Sets the ISO 4217 alphabetic currency code of the transaction.
This is a required field.
public TransactionInfo.Builder setTotalPrice ( String totalPrice)
Sets the total price of this transaction. The format of this string should follow the regex format: [0-9]+(\.[0-9][0-9])? (e.g., "10.45")
This field is required if total price status is set to WalletConstants.TOTAL_PRICE_STATUS_ESTIMATED
or WalletConstants.TOTAL_PRICE_STATUS_FINAL
.
public TransactionInfo.Builder setTotalPriceStatus (int totalPriceStatus)
Sets the status of this transaction's total price. See WalletConstants.TotalPriceStatus
for available options.
This is a required field.

