TransactionInfo

  • 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.

public final classTransactionInfo extendsObject
implementsParcelable

Parcelable representing the detailed info about the transaction.

Nested Class Summary

classTransactionInfo.BuilderBuilder to create aTransactionInfo

Inherited Constant Summary

From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_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, ornull if not set.
int
getTotalPriceStatus()
Returns the total price status.
staticTransactionInfo.Builder
newBuilder()
Builder to create aTransactionInfo.
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
From interface android.os.Parcelable
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.