Hide

LoyaltyWalletObject

public final class LoyaltyWalletObject extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.LoyaltyWalletObject

Parcelable representing a loyalty wallet object. An example loyalty wallet object could be a rewards membership where the membership id is placed in the accountId.

Inherited Constant Summary

Field Summary

public static final Creator<LoyaltyWalletObject> CREATOR

Public Method Summary

int
String
String
String
String
String
String
getId()
String
String
int
void
writeToParcel(Parcel dest, int flags)

Fields

public static final Creator<LoyaltyWalletObject> CREATOR

Public Methods

public int describeContents ()

public String getAccountId ()

Returns
  • Loyalty account identifier to be displayed to the user (ex: "12345678").

public String getAccountName ()

Returns
  • Loyalty account holder name (ex: "John Smith").

public String getBarcodeAlternateText ()

Returns
  • Human-readable text to display to the user in addition to the encoded barcode value (ex: "3492013").

public String getBarcodeType ()

Returns
  • Barcode type. Possible values include "codabar", "qrCode", "textOnly", etc...

public String getBarcodeValue ()

Returns
  • Encoded barcode value.

public String getId ()

Returns
  • The unique identifier for this Wallet Object.

public String getIssuerName ()

Returns
  • The name of who issued this loyalty object.

public String getProgramName ()

Returns
  • The name of the loyalty program associated to this object.

public int getVersionCode ()

public void writeToParcel (Parcel dest, int flags)