OfferWalletObject

public final class OfferWalletObject extends Object
implements Parcelable

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.

Nested Class Summary

class OfferWalletObject.Builder Builder to create a OfferWalletObject

Inherited Constant Summary

Field Summary

public static final Creator<OfferWalletObject> CREATOR

Public Method Summary

String
String
getBarcodeLabel()
This method was deprecated. This value is unused by the platform and will be removed in the future.
String
String
String
String
ArrayList<UriData>
String
getInfoModuleDataHexBackgroundColor()
This method was deprecated. This value is unused by the platform and will be removed in the future.
String
getInfoModuleDataHexFontColor()
This method was deprecated. This value is unused by the platform and will be removed in the future.
ArrayList<LabelValueRow>
boolean
String
ArrayList<UriData>
ArrayList<LatLng>
ArrayList<WalletObjectMessage>
String
int
ArrayList<TextModuleData>
String
TimeInterval
int
static OfferWalletObject.Builder
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<OfferWalletObject> CREATOR

Public Methods

public String getBarcodeAlternateText ()

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

public String getBarcodeLabel ()

This method was deprecated.
This value is unused by the platform and will be removed in the future.

Returns
  • Barcode label.

public String getBarcodeType ()

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

public String getBarcodeValue ()

Returns
  • Encoded barcode value.

public String getClassId ()

Returns
  • Offer Class Id.

public String getId ()

Returns
  • The unique identifier for this Wallet Object.

public ArrayList<UriData> getImageModuleDataMainImageUris ()

Returns
  • Image module main image uris.

public String getInfoModuleDataHexBackgroundColor ()

This method was deprecated.
This value is unused by the platform and will be removed in the future.

Returns
  • Info module's hex background color.

public String getInfoModuleDataHexFontColor ()

This method was deprecated.
This value is unused by the platform and will be removed in the future.

Returns
  • Info module hex font color.

public ArrayList<LabelValueRow> getInfoModuleDataLabelValueRows ()

Returns
  • Info module label value rows.

public boolean getInfoModuleDataShowLastUpdateTime ()

Returns
  • Info module show last update time flag.

public String getIssuerName ()

Returns
  • Offer issuer name.

public ArrayList<UriData> getLinksModuleDataUris ()

Returns
  • Links module uris.

public ArrayList<LatLng> getLocations ()

Returns
  • Locations where the object is considered valid.

public ArrayList<WalletObjectMessage> getMessages ()

Returns
  • Offer Object messages.

public String getRedemptionCode ()

Returns
  • 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
  • Offer Object state.

public ArrayList<TextModuleData> getTextModulesData ()

Returns
  • Text modules.

public String getTitle ()

Returns
  • The title of the offer.

public TimeInterval getValidTimeInterval ()

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

public int getVersionCode ()

public static OfferWalletObject.Builder newBuilder ()

public void writeToParcel (Parcel dest, int flags)