TransactionInfo Stay organized with collections Save and categorize content based on your preferences.
Page Summary
TransactionInfo is a Parcelable class representing detailed information about a transaction.
It includes a nested Builder class to facilitate the creation of TransactionInfo objects.
Key methods include retrieving the currency code, total price, and total price status.
The class also provides a static method to obtain a new Builder instance.
Parcelable representing the detailed info about the transaction.
Nested Class Summary
| class | TransactionInfo.Builder | Builder to create aTransactionInfo. | |
Inherited Constant Summary
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Field Summary
| public static finalCreator<TransactionInfo> | CREATOR |
Public Method Summary
| String | getCurrencyCode() Returns the currency code. |
| String | getTotalPrice() Returns the total price, or null if not set. |
| int | getTotalPriceStatus() Returns the total price status. |
| staticTransactionInfo.Builder | newBuilder() Builder to create a TransactionInfo. |
| void | writeToParcel(Parcel out, int flags) |
Inherited Method Summary
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Fields
public static finalCreator<TransactionInfo>CREATOR
Public Methods
publicStringgetCurrencyCode()
Returns the currency code.
publicStringgetTotalPrice()
Returns the total price, ornull if not set.
public intgetTotalPriceStatus()
Returns the total price status. See WalletConstants.TotalPriceStatus for available options.
public staticTransactionInfo.BuildernewBuilder()
Builder to create aTransactionInfo.
public voidwriteToParcel(Parcel out, int flags)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.