TransactionInfo.Builder

public final class TransactionInfo.Builder extends Object

Builder to create a TransactionInfo.

Public Method Summary

TransactionInfo
build()
Returns the actual TransactionInfo created using the data passed to the Builder object.
TransactionInfo.Builder
setCurrencyCode(String currencyCode)
Sets the ISO 4217 alphabetic currency code of the transaction.
TransactionInfo.Builder
setTotalPrice(String totalPrice)
Sets the total price of this transaction.
TransactionInfo.Builder
setTotalPriceStatus(int totalPriceStatus)
Sets the status of this transaction's total price.

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.