public final class OfferClass
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Wallet API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OfferClass() |
Modifier and Type | Method and Description |
---|---|
OfferClass |
clone() |
Boolean |
getAllowMultipleUsersPerObject()
Deprecated.
|
CallbackOptions |
getCallbackOptions()
Callback options to be used to call the issuer back for every save/delete of an object for this
class by the end-user.
|
ClassTemplateInfo |
getClassTemplateInfo()
Template information about how the class should be displayed.
|
String |
getCountryCode()
Country code used to display the card's country (when the user is not in that country), as well
as to display localized content when content is not available in the user's locale.
|
String |
getDetails()
The details of the offer.
|
Boolean |
getEnableSmartTap()
Identifies whether this class supports Smart Tap.
|
String |
getFinePrint()
The fine print or terms of the offer, such as "20% off any t-shirt at Adam's Apparel."
|
Uri |
getHelpUri()
The help link for the offer, such as `http://myownpersonaldomain.com/help`
|
Image |
getHeroImage()
Optional banner image displayed on the front of the card.
|
String |
getHexBackgroundColor()
The background color for the card.
|
Uri |
getHomepageUri()
The URI of your application's home page.
|
String |
getId()
Required.
|
List<ImageModuleData> |
getImageModulesData()
Image module data.
|
InfoModuleData |
getInfoModuleData()
Deprecated.
|
String |
getIssuerName()
Required.
|
String |
getKind()
Identifies what kind of resource this is.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
LocalizedString |
getLocalizedDetails()
Translated strings for the details.
|
LocalizedString |
getLocalizedFinePrint()
Translated strings for the fine_print.
|
LocalizedString |
getLocalizedIssuerName()
Translated strings for the issuer_name.
|
LocalizedString |
getLocalizedProvider()
Translated strings for the provider.
|
LocalizedString |
getLocalizedShortTitle()
Translated strings for the short title.
|
LocalizedString |
getLocalizedTitle()
Translated strings for the title.
|
List<LatLongPoint> |
getLocations()
Note: This field is currently not supported to trigger geo notifications.
|
List<Message> |
getMessages()
An array of messages displayed in the app.
|
String |
getMultipleDevicesAndHoldersAllowedStatus()
Identifies whether multiple users and devices will save the same object referencing this class.
|
String |
getProvider()
Required.
|
String |
getRedemptionChannel()
Required.
|
List<Long> |
getRedemptionIssuers()
Identifies which redemption issuers can redeem the pass over Smart Tap.
|
Review |
getReview()
The review comments set by the platform when a class is marked `approved` or `rejected`.
|
String |
getReviewStatus()
Required.
|
SecurityAnimation |
getSecurityAnimation()
Optional information about the security animation.
|
String |
getShortTitle()
A shortened version of the title of the offer, such as "20% off," shown to users as a quick
reference to the offer contents.
|
List<TextModuleData> |
getTextModulesData()
Text module data.
|
String |
getTitle()
Required.
|
Image |
getTitleImage()
The title image of the offer.
|
Long |
getVersion()
Deprecated
|
String |
getViewUnlockRequirement()
View Unlock Requirement options for the offer.
|
Image |
getWideTitleImage()
The wide title image of the offer.
|
Image |
getWordMark()
Deprecated.
|
OfferClass |
set(String fieldName,
Object value) |
OfferClass |
setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
Deprecated.
|
OfferClass |
setCallbackOptions(CallbackOptions callbackOptions)
Callback options to be used to call the issuer back for every save/delete of an object for this
class by the end-user.
|
OfferClass |
setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
Template information about how the class should be displayed.
|
OfferClass |
setCountryCode(String countryCode)
Country code used to display the card's country (when the user is not in that country), as well
as to display localized content when content is not available in the user's locale.
|
OfferClass |
setDetails(String details)
The details of the offer.
|
OfferClass |
setEnableSmartTap(Boolean enableSmartTap)
Identifies whether this class supports Smart Tap.
|
OfferClass |
setFinePrint(String finePrint)
The fine print or terms of the offer, such as "20% off any t-shirt at Adam's Apparel."
|
OfferClass |
setHelpUri(Uri helpUri)
The help link for the offer, such as `http://myownpersonaldomain.com/help`
|
OfferClass |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
OfferClass |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
OfferClass |
setHomepageUri(Uri homepageUri)
The URI of your application's home page.
|
OfferClass |
setId(String id)
Required.
|
OfferClass |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
OfferClass |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
OfferClass |
setIssuerName(String issuerName)
Required.
|
OfferClass |
setKind(String kind)
Identifies what kind of resource this is.
|
OfferClass |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
OfferClass |
setLocalizedDetails(LocalizedString localizedDetails)
Translated strings for the details.
|
OfferClass |
setLocalizedFinePrint(LocalizedString localizedFinePrint)
Translated strings for the fine_print.
|
OfferClass |
setLocalizedIssuerName(LocalizedString localizedIssuerName)
Translated strings for the issuer_name.
|
OfferClass |
setLocalizedProvider(LocalizedString localizedProvider)
Translated strings for the provider.
|
OfferClass |
setLocalizedShortTitle(LocalizedString localizedShortTitle)
Translated strings for the short title.
|
OfferClass |
setLocalizedTitle(LocalizedString localizedTitle)
Translated strings for the title.
|
OfferClass |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
OfferClass |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
OfferClass |
setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
Identifies whether multiple users and devices will save the same object referencing this class.
|
OfferClass |
setProvider(String provider)
Required.
|
OfferClass |
setRedemptionChannel(String redemptionChannel)
Required.
|
OfferClass |
setRedemptionIssuers(List<Long> redemptionIssuers)
Identifies which redemption issuers can redeem the pass over Smart Tap.
|
OfferClass |
setReview(Review review)
The review comments set by the platform when a class is marked `approved` or `rejected`.
|
OfferClass |
setReviewStatus(String reviewStatus)
Required.
|
OfferClass |
setSecurityAnimation(SecurityAnimation securityAnimation)
Optional information about the security animation.
|
OfferClass |
setShortTitle(String shortTitle)
A shortened version of the title of the offer, such as "20% off," shown to users as a quick
reference to the offer contents.
|
OfferClass |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
OfferClass |
setTitle(String title)
Required.
|
OfferClass |
setTitleImage(Image titleImage)
The title image of the offer.
|
OfferClass |
setVersion(Long version)
Deprecated
|
OfferClass |
setViewUnlockRequirement(String viewUnlockRequirement)
View Unlock Requirement options for the offer.
|
OfferClass |
setWideTitleImage(Image wideTitleImage)
The wide title image of the offer.
|
OfferClass |
setWordMark(Image wordMark)
Deprecated.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getAllowMultipleUsersPerObject()
null
for nonepublic OfferClass setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
allowMultipleUsersPerObject
- allowMultipleUsersPerObject or null
for nonepublic CallbackOptions getCallbackOptions()
null
for nonepublic OfferClass setCallbackOptions(CallbackOptions callbackOptions)
callbackOptions
- callbackOptions or null
for nonepublic ClassTemplateInfo getClassTemplateInfo()
null
for nonepublic OfferClass setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
classTemplateInfo
- classTemplateInfo or null
for nonepublic String getCountryCode()
null
for nonepublic OfferClass setCountryCode(String countryCode)
countryCode
- countryCode or null
for nonepublic String getDetails()
null
for nonepublic OfferClass setDetails(String details)
details
- details or null
for nonepublic Boolean getEnableSmartTap()
null
for nonepublic OfferClass setEnableSmartTap(Boolean enableSmartTap)
enableSmartTap
- enableSmartTap or null
for nonepublic String getFinePrint()
null
for nonepublic OfferClass setFinePrint(String finePrint)
finePrint
- finePrint or null
for nonepublic Uri getHelpUri()
null
for nonepublic OfferClass setHelpUri(Uri helpUri)
helpUri
- helpUri or null
for nonepublic Image getHeroImage()
null
for nonepublic OfferClass setHeroImage(Image heroImage)
heroImage
- heroImage or null
for nonepublic String getHexBackgroundColor()
null
for nonepublic OfferClass setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor
- hexBackgroundColor or null
for nonepublic Uri getHomepageUri()
null
for nonepublic OfferClass setHomepageUri(Uri homepageUri)
homepageUri
- homepageUri or null
for nonepublic String getId()
null
for nonepublic OfferClass setId(String id)
id
- id or null
for nonepublic List<ImageModuleData> getImageModulesData()
null
for nonepublic OfferClass setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData
- imageModulesData or null
for nonepublic InfoModuleData getInfoModuleData()
null
for nonepublic OfferClass setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData
- infoModuleData or null
for nonepublic String getIssuerName()
null
for nonepublic OfferClass setIssuerName(String issuerName)
issuerName
- issuerName or null
for nonepublic String getKind()
null
for nonepublic OfferClass setKind(String kind)
kind
- kind or null
for nonepublic LinksModuleData getLinksModuleData()
null
for nonepublic OfferClass setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData
- linksModuleData or null
for nonepublic LocalizedString getLocalizedDetails()
null
for nonepublic OfferClass setLocalizedDetails(LocalizedString localizedDetails)
localizedDetails
- localizedDetails or null
for nonepublic LocalizedString getLocalizedFinePrint()
null
for nonepublic OfferClass setLocalizedFinePrint(LocalizedString localizedFinePrint)
localizedFinePrint
- localizedFinePrint or null
for nonepublic LocalizedString getLocalizedIssuerName()
null
for nonepublic OfferClass setLocalizedIssuerName(LocalizedString localizedIssuerName)
localizedIssuerName
- localizedIssuerName or null
for nonepublic LocalizedString getLocalizedProvider()
null
for nonepublic OfferClass setLocalizedProvider(LocalizedString localizedProvider)
localizedProvider
- localizedProvider or null
for nonepublic LocalizedString getLocalizedShortTitle()
null
for nonepublic OfferClass setLocalizedShortTitle(LocalizedString localizedShortTitle)
localizedShortTitle
- localizedShortTitle or null
for nonepublic LocalizedString getLocalizedTitle()
null
for nonepublic OfferClass setLocalizedTitle(LocalizedString localizedTitle)
localizedTitle
- localizedTitle or null
for nonepublic List<LatLongPoint> getLocations()
null
for nonepublic OfferClass setLocations(List<LatLongPoint> locations)
locations
- locations or null
for nonepublic List<Message> getMessages()
null
for nonepublic OfferClass setMessages(List<Message> messages)
messages
- messages or null
for nonepublic String getMultipleDevicesAndHoldersAllowedStatus()
null
for nonepublic OfferClass setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
multipleDevicesAndHoldersAllowedStatus
- multipleDevicesAndHoldersAllowedStatus or null
for nonepublic String getProvider()
null
for nonepublic OfferClass setProvider(String provider)
provider
- provider or null
for nonepublic String getRedemptionChannel()
null
for nonepublic OfferClass setRedemptionChannel(String redemptionChannel)
redemptionChannel
- redemptionChannel or null
for nonepublic List<Long> getRedemptionIssuers()
null
for nonepublic OfferClass setRedemptionIssuers(List<Long> redemptionIssuers)
redemptionIssuers
- redemptionIssuers or null
for nonepublic Review getReview()
null
for nonepublic OfferClass setReview(Review review)
review
- review or null
for nonepublic String getReviewStatus()
null
for nonepublic OfferClass setReviewStatus(String reviewStatus)
reviewStatus
- reviewStatus or null
for nonepublic SecurityAnimation getSecurityAnimation()
null
for nonepublic OfferClass setSecurityAnimation(SecurityAnimation securityAnimation)
securityAnimation
- securityAnimation or null
for nonepublic String getShortTitle()
null
for nonepublic OfferClass setShortTitle(String shortTitle)
shortTitle
- shortTitle or null
for nonepublic List<TextModuleData> getTextModulesData()
null
for nonepublic OfferClass setTextModulesData(List<TextModuleData> textModulesData)
textModulesData
- textModulesData or null
for nonepublic String getTitle()
null
for nonepublic OfferClass setTitle(String title)
title
- title or null
for nonepublic Image getTitleImage()
null
for nonepublic OfferClass setTitleImage(Image titleImage)
titleImage
- titleImage or null
for nonepublic Long getVersion()
null
for nonepublic OfferClass setVersion(Long version)
version
- version or null
for nonepublic String getViewUnlockRequirement()
null
for nonepublic OfferClass setViewUnlockRequirement(String viewUnlockRequirement)
viewUnlockRequirement
- viewUnlockRequirement or null
for nonepublic Image getWideTitleImage()
null
for nonepublic OfferClass setWideTitleImage(Image wideTitleImage)
wideTitleImage
- wideTitleImage or null
for nonepublic Image getWordMark()
null
for nonepublic OfferClass setWordMark(Image wordMark)
wordMark
- wordMark or null
for nonepublic OfferClass set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OfferClass clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.