public final class

MaskedWallet

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.MaskedWallet

Class Overview

Parcelable representing a masked wallet response.

Summary

Nested Classes
class MaskedWallet.Builder Builder to create a MaskedWallet
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<MaskedWallet> CREATOR
Public Methods
int describeContents()
Address getBillingAddress()
This method is deprecated. Use getBuyerBillingAddress() instead.
UserAddress getBuyerBillingAddress()
UserAddress getBuyerShippingAddress()
String getEmail()
String getGoogleTransactionId()
InstrumentInfo[] getInstrumentInfos()
Returns an array of finer grained details about the instruments used in this Google Wallet transaction.
LoyaltyWalletObject[] getLoyaltyWalletObjects()
String getMerchantTransactionId()
OfferWalletObject[] getOfferWalletObjects()
String[] getPaymentDescriptions()
Returns an array of strings used for user-facing messaging about payment instruments used for funding this Google Wallet transaction.
Address getShippingAddress()
This method is deprecated. Use getBuyerShippingAddress() instead.
int getVersionCode()
static MaskedWallet.Builder newBuilderFrom(MaskedWallet maskedWallet)
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<MaskedWallet> CREATOR

Public Methods

public int describeContents ()

public Address getBillingAddress ()

This method is deprecated.
Use getBuyerBillingAddress() instead.

Returns
  • Billing address associated with the payment instrument.

public UserAddress getBuyerBillingAddress ()

Returns
  • address associated with the buyer's payment instrument

public UserAddress getBuyerShippingAddress ()

Returns
  • buyer's shipping address

public String getEmail ()

Returns
  • buyer's email.

public String getGoogleTransactionId ()

Returns
  • Google's unique identifier for this transaction. You will store this in your application. Its value is required to be in the googleTransactionId field on all subsequent change masked wallet and full wallet requests pertaining to this transaction.

public InstrumentInfo[] getInstrumentInfos ()

Returns an array of finer grained details about the instruments used in this Google Wallet transaction. Details here can be parsed and used for customer support, etc..., but should not be displayed to the user.

NOTE: This list of details is not guaranteed to have the same ordering or length as getPaymentDescriptions().

Returns
  • list of instrument info (if available), otherwise null.

public LoyaltyWalletObject[] getLoyaltyWalletObjects ()

Returns
  • Buyer's loyalty wallet objects

public String getMerchantTransactionId ()

Returns

public OfferWalletObject[] getOfferWalletObjects ()

Returns
  • Buyer's offer wallet objects

public String[] getPaymentDescriptions ()

Returns an array of strings used for user-facing messaging about payment instruments used for funding this Google Wallet transaction. Do not attempt to parse the contents of this array as the format, contents and length may change at any time.

IMPORTANT: This list is sorted in the order of how messages should be displayed. You are required to show each of these sources to inform the buyer of their funding sources for the transaction. See Google Wallet UI guide for details. Each payment description is not guaranteed to match a consistent pattern and you should not try to parse this data. See getInstrumentInfos() for a stable API of instrument information.

Returns
  • A list of user-facing messages about payment instruments used to fund the Google Wallet transaction.

public Address getShippingAddress ()

This method is deprecated.
Use getBuyerShippingAddress() instead.

Returns
  • Buyer's shipping address

public int getVersionCode ()

public static MaskedWallet.Builder newBuilderFrom (MaskedWallet maskedWallet)

public void writeToParcel (Parcel dest, int flags)