public final class

OfferWalletObject

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

Class Overview

Parcelable representing an offer wallet object. This could represent an offer from the merchant such as a coupon, etc. It has a buyerId that identifies the user to the merchant. If the offer is associated to a loyalty program, then this could be an identifier for that program. The offer also has a redemptionCode that will typically be used in the transaction, like a discount code or similar that the user would otherwise have to enter manually.

Summary

Nested Classes
class OfferWalletObject.Builder Builder to create a OfferWalletObject
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<OfferWalletObject> CREATOR
Public Methods
String getBarcodeAlternateText()
String getBarcodeLabel()
String getBarcodeType()
String getBarcodeValue()
String getClassId()
String getId()
ArrayList<UriData> getImageModuleDataMainImageUris()
String getInfoModuleDataHexBackgroundColor()
String getInfoModuleDataHexFontColor()
ArrayList<LabelValueRow> getInfoModuleDataLabelValueRows()
boolean getInfoModuleDataShowLastUpdateTime()
String getIssuerName()
ArrayList<UriData> getLinksModuleDataUris()
ArrayList<LatLng> getLocations()
ArrayList<WalletObjectMessage> getMessages()
String getRedemptionCode()
int getState()
ArrayList<TextModuleData> getTextModulesData()
String getTitle()
TimeInterval getValidTimeInterval()
int getVersionCode()
static OfferWalletObject.Builder newBuilder()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<OfferWalletObject> CREATOR

Public Methods

public String getBarcodeAlternateText ()

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

public String getBarcodeLabel ()

Returns
String Barcode label.

public String getBarcodeType ()

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

public String getBarcodeValue ()

Returns
String Encoded barcode value.

public String getClassId ()

Returns
String Offer Class Id.

public String getId ()

Returns
String The unique identifier for this Wallet Object.

public ArrayList<UriData> getImageModuleDataMainImageUris ()

Returns
ArrayList<UriData> Image module main image uris.

public String getInfoModuleDataHexBackgroundColor ()

Returns
String Info module's hex background color.

public String getInfoModuleDataHexFontColor ()

Returns
String Info module hex font color.

public ArrayList<LabelValueRow> getInfoModuleDataLabelValueRows ()

Returns
ArrayList<LabelValueRow> Info module label value rows.

public boolean getInfoModuleDataShowLastUpdateTime ()

Returns
boolean Info module show last update time flag.

public String getIssuerName ()

Returns
String Offer issuer name.

public ArrayList<UriData> getLinksModuleDataUris ()

Returns
ArrayList<UriData> Links module uris.

public ArrayList<LatLng> getLocations ()

Returns
ArrayList<LatLng> Locations where the object is considered valid.

public ArrayList<WalletObjectMessage> getMessages ()

Returns
ArrayList<WalletObjectMessage> Offer Object messages.

public String getRedemptionCode ()

Returns
String The redemption code of the offer. This would be a coupon code or similar that user could enter to gain a discount, reward, etc.

public int getState ()

Returns
int Offer Object state.

public ArrayList<TextModuleData> getTextModulesData ()

Returns
ArrayList<TextModuleData> Text modules.

public String getTitle ()

Returns
String The title of the offer.

public TimeInterval getValidTimeInterval ()

Returns
TimeInterval Time interval within which the object is considered valid.

public int getVersionCode ()

Returns
int

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int