TransactionInfo.Builder | Doclava
public final class

TransactionInfo.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.wallet.TransactionInfo.Builder

Class Overview

Builder to create a TransactionInfo.

Summary

Public Methods
TransactionInfo build()
TransactionInfo.Builder setCurrencyCode(String currencyCode)
Sets the ISO 4217 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public TransactionInfo build ()

Returns
TransactionInfo the actual TransactionInfo created using the data passed to the Builder object.

public TransactionInfo.Builder setCurrencyCode (String currencyCode)

Sets the ISO 4217 currency code of the transaction.

This is a required field.

Parameters
currencyCode String
Returns
TransactionInfo.Builder

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 TOTAL_PRICE_STATUS_ESTIMATED or TOTAL_PRICE_STATUS_FINAL.

Parameters
totalPrice String
Returns
TransactionInfo.Builder

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.

Parameters
totalPriceStatus int
Returns
TransactionInfo.Builder