public final class LoyaltyClass
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LoyaltyClass() |
| Modifier and Type | Method and Description |
|---|---|
LoyaltyClass |
clone() |
String |
getAccountIdLabel()
The account ID label, such as "Member ID." Recommended maximum length is 15 characters to
ensure full string is displayed on smaller screens.
|
String |
getAccountNameLabel()
The account name label, such as "Member Name." Recommended maximum length is 15 characters to
ensure full string is displayed on smaller screens.
|
Boolean |
getAllowMultipleUsersPerObject()
Deprecated.
|
AppLinkData |
getAppLinkData()
Optional app or website link that will be displayed as a button on the front of the pass.
|
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.
|
DiscoverableProgram |
getDiscoverableProgram()
Information about how the class may be discovered and instantiated from within the Google Pay
app.
|
Boolean |
getEnableSmartTap()
Identifies whether this class supports Smart Tap.
|
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 |
getLocalizedAccountIdLabel()
Translated strings for the account_id_label.
|
LocalizedString |
getLocalizedAccountNameLabel()
Translated strings for the account_name_label.
|
LocalizedString |
getLocalizedIssuerName()
Translated strings for the issuer_name.
|
LocalizedString |
getLocalizedProgramName()
Translated strings for the program_name.
|
LocalizedString |
getLocalizedRewardsTier()
Translated strings for the rewards_tier.
|
LocalizedString |
getLocalizedRewardsTierLabel()
Translated strings for the rewards_tier_label.
|
LocalizedString |
getLocalizedSecondaryRewardsTier()
Translated strings for the secondary_rewards_tier.
|
LocalizedString |
getLocalizedSecondaryRewardsTierLabel()
Translated strings for the secondary_rewards_tier_label.
|
List<LatLongPoint> |
getLocations()
Note: This field is currently not supported to trigger geo notifications.
|
List<MerchantLocation> |
getMerchantLocations()
Merchant locations.
|
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 |
getNotifyPreference()
Whether or not field updates to this class should trigger notifications.
|
Image |
getProgramLogo()
Required.
|
String |
getProgramName()
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.
|
String |
getRewardsTier()
The rewards tier, such as "Gold" or "Platinum." Recommended maximum length is 7 characters to
ensure full string is displayed on smaller screens.
|
String |
getRewardsTierLabel()
The rewards tier label, such as "Rewards Tier." Recommended maximum length is 9 characters to
ensure full string is displayed on smaller screens.
|
String |
getSecondaryRewardsTier()
The secondary rewards tier, such as "Gold" or "Platinum."
|
String |
getSecondaryRewardsTierLabel()
The secondary rewards tier label, such as "Rewards Tier."
|
SecurityAnimation |
getSecurityAnimation()
Optional information about the security animation.
|
List<TextModuleData> |
getTextModulesData()
Text module data.
|
List<ValueAddedModuleData> |
getValueAddedModuleData()
Optional value added module data.
|
Long |
getVersion()
Deprecated
|
String |
getViewUnlockRequirement()
View Unlock Requirement options for the loyalty card.
|
Image |
getWideProgramLogo()
The wide logo of the loyalty program or company.
|
Image |
getWordMark()
Deprecated.
|
LoyaltyClass |
set(String fieldName,
Object value) |
LoyaltyClass |
setAccountIdLabel(String accountIdLabel)
The account ID label, such as "Member ID." Recommended maximum length is 15 characters to
ensure full string is displayed on smaller screens.
|
LoyaltyClass |
setAccountNameLabel(String accountNameLabel)
The account name label, such as "Member Name." Recommended maximum length is 15 characters to
ensure full string is displayed on smaller screens.
|
LoyaltyClass |
setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
Deprecated.
|
LoyaltyClass |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
LoyaltyClass |
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.
|
LoyaltyClass |
setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
Template information about how the class should be displayed.
|
LoyaltyClass |
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.
|
LoyaltyClass |
setDiscoverableProgram(DiscoverableProgram discoverableProgram)
Information about how the class may be discovered and instantiated from within the Google Pay
app.
|
LoyaltyClass |
setEnableSmartTap(Boolean enableSmartTap)
Identifies whether this class supports Smart Tap.
|
LoyaltyClass |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
LoyaltyClass |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
LoyaltyClass |
setHomepageUri(Uri homepageUri)
The URI of your application's home page.
|
LoyaltyClass |
setId(String id)
Required.
|
LoyaltyClass |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
LoyaltyClass |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
LoyaltyClass |
setIssuerName(String issuerName)
Required.
|
LoyaltyClass |
setKind(String kind)
Identifies what kind of resource this is.
|
LoyaltyClass |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
LoyaltyClass |
setLocalizedAccountIdLabel(LocalizedString localizedAccountIdLabel)
Translated strings for the account_id_label.
|
LoyaltyClass |
setLocalizedAccountNameLabel(LocalizedString localizedAccountNameLabel)
Translated strings for the account_name_label.
|
LoyaltyClass |
setLocalizedIssuerName(LocalizedString localizedIssuerName)
Translated strings for the issuer_name.
|
LoyaltyClass |
setLocalizedProgramName(LocalizedString localizedProgramName)
Translated strings for the program_name.
|
LoyaltyClass |
setLocalizedRewardsTier(LocalizedString localizedRewardsTier)
Translated strings for the rewards_tier.
|
LoyaltyClass |
setLocalizedRewardsTierLabel(LocalizedString localizedRewardsTierLabel)
Translated strings for the rewards_tier_label.
|
LoyaltyClass |
setLocalizedSecondaryRewardsTier(LocalizedString localizedSecondaryRewardsTier)
Translated strings for the secondary_rewards_tier.
|
LoyaltyClass |
setLocalizedSecondaryRewardsTierLabel(LocalizedString localizedSecondaryRewardsTierLabel)
Translated strings for the secondary_rewards_tier_label.
|
LoyaltyClass |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
LoyaltyClass |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
LoyaltyClass |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
LoyaltyClass |
setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
Identifies whether multiple users and devices will save the same object referencing this class.
|
LoyaltyClass |
setNotifyPreference(String notifyPreference)
Whether or not field updates to this class should trigger notifications.
|
LoyaltyClass |
setProgramLogo(Image programLogo)
Required.
|
LoyaltyClass |
setProgramName(String programName)
Required.
|
LoyaltyClass |
setRedemptionIssuers(List<Long> redemptionIssuers)
Identifies which redemption issuers can redeem the pass over Smart Tap.
|
LoyaltyClass |
setReview(Review review)
The review comments set by the platform when a class is marked `approved` or `rejected`.
|
LoyaltyClass |
setReviewStatus(String reviewStatus)
Required.
|
LoyaltyClass |
setRewardsTier(String rewardsTier)
The rewards tier, such as "Gold" or "Platinum." Recommended maximum length is 7 characters to
ensure full string is displayed on smaller screens.
|
LoyaltyClass |
setRewardsTierLabel(String rewardsTierLabel)
The rewards tier label, such as "Rewards Tier." Recommended maximum length is 9 characters to
ensure full string is displayed on smaller screens.
|
LoyaltyClass |
setSecondaryRewardsTier(String secondaryRewardsTier)
The secondary rewards tier, such as "Gold" or "Platinum."
|
LoyaltyClass |
setSecondaryRewardsTierLabel(String secondaryRewardsTierLabel)
The secondary rewards tier label, such as "Rewards Tier."
|
LoyaltyClass |
setSecurityAnimation(SecurityAnimation securityAnimation)
Optional information about the security animation.
|
LoyaltyClass |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
LoyaltyClass |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
LoyaltyClass |
setVersion(Long version)
Deprecated
|
LoyaltyClass |
setViewUnlockRequirement(String viewUnlockRequirement)
View Unlock Requirement options for the loyalty card.
|
LoyaltyClass |
setWideProgramLogo(Image wideProgramLogo)
The wide logo of the loyalty program or company.
|
LoyaltyClass |
setWordMark(Image wordMark)
Deprecated.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAccountIdLabel()
null for nonepublic LoyaltyClass setAccountIdLabel(String accountIdLabel)
accountIdLabel - accountIdLabel or null for nonepublic String getAccountNameLabel()
null for nonepublic LoyaltyClass setAccountNameLabel(String accountNameLabel)
accountNameLabel - accountNameLabel or null for nonepublic Boolean getAllowMultipleUsersPerObject()
null for nonepublic LoyaltyClass setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
allowMultipleUsersPerObject - allowMultipleUsersPerObject or null for nonepublic AppLinkData getAppLinkData()
null for nonepublic LoyaltyClass setAppLinkData(AppLinkData appLinkData)
appLinkData - appLinkData or null for nonepublic CallbackOptions getCallbackOptions()
null for nonepublic LoyaltyClass setCallbackOptions(CallbackOptions callbackOptions)
callbackOptions - callbackOptions or null for nonepublic ClassTemplateInfo getClassTemplateInfo()
null for nonepublic LoyaltyClass setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
classTemplateInfo - classTemplateInfo or null for nonepublic String getCountryCode()
null for nonepublic LoyaltyClass setCountryCode(String countryCode)
countryCode - countryCode or null for nonepublic DiscoverableProgram getDiscoverableProgram()
null for nonepublic LoyaltyClass setDiscoverableProgram(DiscoverableProgram discoverableProgram)
discoverableProgram - discoverableProgram or null for nonepublic Boolean getEnableSmartTap()
null for nonepublic LoyaltyClass setEnableSmartTap(Boolean enableSmartTap)
enableSmartTap - enableSmartTap or null for nonepublic Image getHeroImage()
null for nonepublic LoyaltyClass setHeroImage(Image heroImage)
heroImage - heroImage or null for nonepublic String getHexBackgroundColor()
null for nonepublic LoyaltyClass setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor - hexBackgroundColor or null for nonepublic Uri getHomepageUri()
null for nonepublic LoyaltyClass setHomepageUri(Uri homepageUri)
homepageUri - homepageUri or null for nonepublic String getId()
null for nonepublic LoyaltyClass setId(String id)
id - id or null for nonepublic List<ImageModuleData> getImageModulesData()
null for nonepublic LoyaltyClass setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData - imageModulesData or null for nonepublic InfoModuleData getInfoModuleData()
null for nonepublic LoyaltyClass setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData - infoModuleData or null for nonepublic String getIssuerName()
null for nonepublic LoyaltyClass setIssuerName(String issuerName)
issuerName - issuerName or null for nonepublic String getKind()
null for nonepublic LoyaltyClass setKind(String kind)
kind - kind or null for nonepublic LinksModuleData getLinksModuleData()
null for nonepublic LoyaltyClass setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData - linksModuleData or null for nonepublic LocalizedString getLocalizedAccountIdLabel()
null for nonepublic LoyaltyClass setLocalizedAccountIdLabel(LocalizedString localizedAccountIdLabel)
localizedAccountIdLabel - localizedAccountIdLabel or null for nonepublic LocalizedString getLocalizedAccountNameLabel()
null for nonepublic LoyaltyClass setLocalizedAccountNameLabel(LocalizedString localizedAccountNameLabel)
localizedAccountNameLabel - localizedAccountNameLabel or null for nonepublic LocalizedString getLocalizedIssuerName()
null for nonepublic LoyaltyClass setLocalizedIssuerName(LocalizedString localizedIssuerName)
localizedIssuerName - localizedIssuerName or null for nonepublic LocalizedString getLocalizedProgramName()
null for nonepublic LoyaltyClass setLocalizedProgramName(LocalizedString localizedProgramName)
localizedProgramName - localizedProgramName or null for nonepublic LocalizedString getLocalizedRewardsTier()
null for nonepublic LoyaltyClass setLocalizedRewardsTier(LocalizedString localizedRewardsTier)
localizedRewardsTier - localizedRewardsTier or null for nonepublic LocalizedString getLocalizedRewardsTierLabel()
null for nonepublic LoyaltyClass setLocalizedRewardsTierLabel(LocalizedString localizedRewardsTierLabel)
localizedRewardsTierLabel - localizedRewardsTierLabel or null for nonepublic LocalizedString getLocalizedSecondaryRewardsTier()
null for nonepublic LoyaltyClass setLocalizedSecondaryRewardsTier(LocalizedString localizedSecondaryRewardsTier)
localizedSecondaryRewardsTier - localizedSecondaryRewardsTier or null for nonepublic LocalizedString getLocalizedSecondaryRewardsTierLabel()
null for nonepublic LoyaltyClass setLocalizedSecondaryRewardsTierLabel(LocalizedString localizedSecondaryRewardsTierLabel)
localizedSecondaryRewardsTierLabel - localizedSecondaryRewardsTierLabel or null for nonepublic List<LatLongPoint> getLocations()
null for nonepublic LoyaltyClass setLocations(List<LatLongPoint> locations)
locations - locations or null for nonepublic List<MerchantLocation> getMerchantLocations()
null for nonepublic LoyaltyClass setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations - merchantLocations or null for nonepublic List<Message> getMessages()
null for nonepublic LoyaltyClass setMessages(List<Message> messages)
messages - messages or null for nonepublic String getMultipleDevicesAndHoldersAllowedStatus()
null for nonepublic LoyaltyClass setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
multipleDevicesAndHoldersAllowedStatus - multipleDevicesAndHoldersAllowedStatus or null for nonepublic String getNotifyPreference()
null for nonepublic LoyaltyClass setNotifyPreference(String notifyPreference)
notifyPreference - notifyPreference or null for nonepublic Image getProgramLogo()
null for nonepublic LoyaltyClass setProgramLogo(Image programLogo)
programLogo - programLogo or null for nonepublic String getProgramName()
null for nonepublic LoyaltyClass setProgramName(String programName)
programName - programName or null for nonepublic List<Long> getRedemptionIssuers()
null for nonepublic LoyaltyClass setRedemptionIssuers(List<Long> redemptionIssuers)
redemptionIssuers - redemptionIssuers or null for nonepublic Review getReview()
null for nonepublic LoyaltyClass setReview(Review review)
review - review or null for nonepublic String getReviewStatus()
null for nonepublic LoyaltyClass setReviewStatus(String reviewStatus)
reviewStatus - reviewStatus or null for nonepublic String getRewardsTier()
null for nonepublic LoyaltyClass setRewardsTier(String rewardsTier)
rewardsTier - rewardsTier or null for nonepublic String getRewardsTierLabel()
null for nonepublic LoyaltyClass setRewardsTierLabel(String rewardsTierLabel)
rewardsTierLabel - rewardsTierLabel or null for nonepublic String getSecondaryRewardsTier()
null for nonepublic LoyaltyClass setSecondaryRewardsTier(String secondaryRewardsTier)
secondaryRewardsTier - secondaryRewardsTier or null for nonepublic String getSecondaryRewardsTierLabel()
null for nonepublic LoyaltyClass setSecondaryRewardsTierLabel(String secondaryRewardsTierLabel)
secondaryRewardsTierLabel - secondaryRewardsTierLabel or null for nonepublic SecurityAnimation getSecurityAnimation()
null for nonepublic LoyaltyClass setSecurityAnimation(SecurityAnimation securityAnimation)
securityAnimation - securityAnimation or null for nonepublic List<TextModuleData> getTextModulesData()
null for nonepublic LoyaltyClass setTextModulesData(List<TextModuleData> textModulesData)
textModulesData - textModulesData or null for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null for nonepublic LoyaltyClass setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData - valueAddedModuleData or null for nonepublic Long getVersion()
null for nonepublic LoyaltyClass setVersion(Long version)
version - version or null for nonepublic String getViewUnlockRequirement()
null for nonepublic LoyaltyClass setViewUnlockRequirement(String viewUnlockRequirement)
viewUnlockRequirement - viewUnlockRequirement or null for nonepublic Image getWideProgramLogo()
null for nonepublic LoyaltyClass setWideProgramLogo(Image wideProgramLogo)
wideProgramLogo - wideProgramLogo or null for nonepublic Image getWordMark()
null for nonepublic LoyaltyClass setWordMark(Image wordMark)
wordMark - wordMark or null for nonepublic LoyaltyClass set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic LoyaltyClass clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.