java.lang.Object | |
↳ | com.google.android.gms.wallet.TransactionInfo.Builder |
Builder to create a TransactionInfo
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the ISO 4217 currency code of the transaction.
| |||||||||||
Sets the total price of this transaction.
| |||||||||||
Sets the status of this transaction's total price.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns | |
---|---|
TransactionInfo |
the actual TransactionInfo created using the data passed to the Builder
object.
|
Sets the ISO 4217 currency code of the transaction.
This is a required field.
Parameters | |
---|---|
currencyCode |
String |
Returns | |
---|---|
TransactionInfo.Builder |
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 |
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 |