public final class GiftCardClass
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 |
|---|
GiftCardClass() |
| Modifier and Type | Method and Description |
|---|---|
GiftCardClass |
clone() |
Boolean |
getAllowBarcodeRedemption()
Determines whether the merchant supports gift card redemption using barcode.
|
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.
|
String |
getCardNumberLabel()
The label to display for the card number, such as "Card Number".
|
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.
|
Boolean |
getEnableSmartTap()
Identifies whether this class supports Smart Tap.
|
String |
getEventNumberLabel()
The label to display for event number, such as "Target Event #".
|
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 |
getLocalizedCardNumberLabel()
Translated strings for the card_number_label.
|
LocalizedString |
getLocalizedEventNumberLabel()
Translated strings for the event_number_label.
|
LocalizedString |
getLocalizedIssuerName()
Translated strings for the issuer_name.
|
LocalizedString |
getLocalizedMerchantName()
Translated strings for the merchant_name.
|
LocalizedString |
getLocalizedPinLabel()
Translated strings for the pin_label.
|
List<LatLongPoint> |
getLocations()
Note: This field is currently not supported to trigger geo notifications.
|
List<MerchantLocation> |
getMerchantLocations()
Merchant locations.
|
String |
getMerchantName()
Merchant name, such as "Adam's Apparel".
|
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.
|
String |
getPinLabel()
The label to display for the PIN, such as "4-digit PIN".
|
Image |
getProgramLogo()
The logo of the gift card program or company.
|
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.
|
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 gift card.
|
Image |
getWideProgramLogo()
The wide logo of the gift card program or company.
|
Image |
getWordMark()
Deprecated.
|
GiftCardClass |
set(String fieldName,
Object value) |
GiftCardClass |
setAllowBarcodeRedemption(Boolean allowBarcodeRedemption)
Determines whether the merchant supports gift card redemption using barcode.
|
GiftCardClass |
setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
Deprecated.
|
GiftCardClass |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
GiftCardClass |
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.
|
GiftCardClass |
setCardNumberLabel(String cardNumberLabel)
The label to display for the card number, such as "Card Number".
|
GiftCardClass |
setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
Template information about how the class should be displayed.
|
GiftCardClass |
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.
|
GiftCardClass |
setEnableSmartTap(Boolean enableSmartTap)
Identifies whether this class supports Smart Tap.
|
GiftCardClass |
setEventNumberLabel(String eventNumberLabel)
The label to display for event number, such as "Target Event #".
|
GiftCardClass |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
GiftCardClass |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
GiftCardClass |
setHomepageUri(Uri homepageUri)
The URI of your application's home page.
|
GiftCardClass |
setId(String id)
Required.
|
GiftCardClass |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
GiftCardClass |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
GiftCardClass |
setIssuerName(String issuerName)
Required.
|
GiftCardClass |
setKind(String kind)
Identifies what kind of resource this is.
|
GiftCardClass |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
GiftCardClass |
setLocalizedCardNumberLabel(LocalizedString localizedCardNumberLabel)
Translated strings for the card_number_label.
|
GiftCardClass |
setLocalizedEventNumberLabel(LocalizedString localizedEventNumberLabel)
Translated strings for the event_number_label.
|
GiftCardClass |
setLocalizedIssuerName(LocalizedString localizedIssuerName)
Translated strings for the issuer_name.
|
GiftCardClass |
setLocalizedMerchantName(LocalizedString localizedMerchantName)
Translated strings for the merchant_name.
|
GiftCardClass |
setLocalizedPinLabel(LocalizedString localizedPinLabel)
Translated strings for the pin_label.
|
GiftCardClass |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
GiftCardClass |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
GiftCardClass |
setMerchantName(String merchantName)
Merchant name, such as "Adam's Apparel".
|
GiftCardClass |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
GiftCardClass |
setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
Identifies whether multiple users and devices will save the same object referencing this class.
|
GiftCardClass |
setNotifyPreference(String notifyPreference)
Whether or not field updates to this class should trigger notifications.
|
GiftCardClass |
setPinLabel(String pinLabel)
The label to display for the PIN, such as "4-digit PIN".
|
GiftCardClass |
setProgramLogo(Image programLogo)
The logo of the gift card program or company.
|
GiftCardClass |
setRedemptionIssuers(List<Long> redemptionIssuers)
Identifies which redemption issuers can redeem the pass over Smart Tap.
|
GiftCardClass |
setReview(Review review)
The review comments set by the platform when a class is marked `approved` or `rejected`.
|
GiftCardClass |
setReviewStatus(String reviewStatus)
Required.
|
GiftCardClass |
setSecurityAnimation(SecurityAnimation securityAnimation)
Optional information about the security animation.
|
GiftCardClass |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
GiftCardClass |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
GiftCardClass |
setVersion(Long version)
Deprecated
|
GiftCardClass |
setViewUnlockRequirement(String viewUnlockRequirement)
View Unlock Requirement options for the gift card.
|
GiftCardClass |
setWideProgramLogo(Image wideProgramLogo)
The wide logo of the gift card program or company.
|
GiftCardClass |
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 Boolean getAllowBarcodeRedemption()
null for nonepublic GiftCardClass setAllowBarcodeRedemption(Boolean allowBarcodeRedemption)
allowBarcodeRedemption - allowBarcodeRedemption or null for nonepublic Boolean getAllowMultipleUsersPerObject()
null for nonepublic GiftCardClass setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
allowMultipleUsersPerObject - allowMultipleUsersPerObject or null for nonepublic AppLinkData getAppLinkData()
null for nonepublic GiftCardClass setAppLinkData(AppLinkData appLinkData)
appLinkData - appLinkData or null for nonepublic CallbackOptions getCallbackOptions()
null for nonepublic GiftCardClass setCallbackOptions(CallbackOptions callbackOptions)
callbackOptions - callbackOptions or null for nonepublic String getCardNumberLabel()
null for nonepublic GiftCardClass setCardNumberLabel(String cardNumberLabel)
cardNumberLabel - cardNumberLabel or null for nonepublic ClassTemplateInfo getClassTemplateInfo()
null for nonepublic GiftCardClass setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
classTemplateInfo - classTemplateInfo or null for nonepublic String getCountryCode()
null for nonepublic GiftCardClass setCountryCode(String countryCode)
countryCode - countryCode or null for nonepublic Boolean getEnableSmartTap()
null for nonepublic GiftCardClass setEnableSmartTap(Boolean enableSmartTap)
enableSmartTap - enableSmartTap or null for nonepublic String getEventNumberLabel()
null for nonepublic GiftCardClass setEventNumberLabel(String eventNumberLabel)
eventNumberLabel - eventNumberLabel or null for nonepublic Image getHeroImage()
null for nonepublic GiftCardClass setHeroImage(Image heroImage)
heroImage - heroImage or null for nonepublic String getHexBackgroundColor()
null for nonepublic GiftCardClass setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor - hexBackgroundColor or null for nonepublic Uri getHomepageUri()
null for nonepublic GiftCardClass setHomepageUri(Uri homepageUri)
homepageUri - homepageUri or null for nonepublic String getId()
null for nonepublic GiftCardClass setId(String id)
id - id or null for nonepublic List<ImageModuleData> getImageModulesData()
null for nonepublic GiftCardClass setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData - imageModulesData or null for nonepublic InfoModuleData getInfoModuleData()
null for nonepublic GiftCardClass setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData - infoModuleData or null for nonepublic String getIssuerName()
null for nonepublic GiftCardClass setIssuerName(String issuerName)
issuerName - issuerName or null for nonepublic String getKind()
null for nonepublic GiftCardClass setKind(String kind)
kind - kind or null for nonepublic LinksModuleData getLinksModuleData()
null for nonepublic GiftCardClass setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData - linksModuleData or null for nonepublic LocalizedString getLocalizedCardNumberLabel()
null for nonepublic GiftCardClass setLocalizedCardNumberLabel(LocalizedString localizedCardNumberLabel)
localizedCardNumberLabel - localizedCardNumberLabel or null for nonepublic LocalizedString getLocalizedEventNumberLabel()
null for nonepublic GiftCardClass setLocalizedEventNumberLabel(LocalizedString localizedEventNumberLabel)
localizedEventNumberLabel - localizedEventNumberLabel or null for nonepublic LocalizedString getLocalizedIssuerName()
null for nonepublic GiftCardClass setLocalizedIssuerName(LocalizedString localizedIssuerName)
localizedIssuerName - localizedIssuerName or null for nonepublic LocalizedString getLocalizedMerchantName()
null for nonepublic GiftCardClass setLocalizedMerchantName(LocalizedString localizedMerchantName)
localizedMerchantName - localizedMerchantName or null for nonepublic LocalizedString getLocalizedPinLabel()
null for nonepublic GiftCardClass setLocalizedPinLabel(LocalizedString localizedPinLabel)
localizedPinLabel - localizedPinLabel or null for nonepublic List<LatLongPoint> getLocations()
null for nonepublic GiftCardClass setLocations(List<LatLongPoint> locations)
locations - locations or null for nonepublic List<MerchantLocation> getMerchantLocations()
null for nonepublic GiftCardClass setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations - merchantLocations or null for nonepublic String getMerchantName()
null for nonepublic GiftCardClass setMerchantName(String merchantName)
merchantName - merchantName or null for nonepublic List<Message> getMessages()
null for nonepublic GiftCardClass setMessages(List<Message> messages)
messages - messages or null for nonepublic String getMultipleDevicesAndHoldersAllowedStatus()
null for nonepublic GiftCardClass setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
multipleDevicesAndHoldersAllowedStatus - multipleDevicesAndHoldersAllowedStatus or null for nonepublic String getNotifyPreference()
null for nonepublic GiftCardClass setNotifyPreference(String notifyPreference)
notifyPreference - notifyPreference or null for nonepublic String getPinLabel()
null for nonepublic GiftCardClass setPinLabel(String pinLabel)
pinLabel - pinLabel or null for nonepublic Image getProgramLogo()
null for nonepublic GiftCardClass setProgramLogo(Image programLogo)
programLogo - programLogo or null for nonepublic List<Long> getRedemptionIssuers()
null for nonepublic GiftCardClass setRedemptionIssuers(List<Long> redemptionIssuers)
redemptionIssuers - redemptionIssuers or null for nonepublic Review getReview()
null for nonepublic GiftCardClass setReview(Review review)
review - review or null for nonepublic String getReviewStatus()
null for nonepublic GiftCardClass setReviewStatus(String reviewStatus)
reviewStatus - reviewStatus or null for nonepublic SecurityAnimation getSecurityAnimation()
null for nonepublic GiftCardClass setSecurityAnimation(SecurityAnimation securityAnimation)
securityAnimation - securityAnimation or null for nonepublic List<TextModuleData> getTextModulesData()
null for nonepublic GiftCardClass setTextModulesData(List<TextModuleData> textModulesData)
textModulesData - textModulesData or null for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null for nonepublic GiftCardClass setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData - valueAddedModuleData or null for nonepublic Long getVersion()
null for nonepublic GiftCardClass setVersion(Long version)
version - version or null for nonepublic String getViewUnlockRequirement()
null for nonepublic GiftCardClass setViewUnlockRequirement(String viewUnlockRequirement)
viewUnlockRequirement - viewUnlockRequirement or null for nonepublic Image getWideProgramLogo()
null for nonepublic GiftCardClass setWideProgramLogo(Image wideProgramLogo)
wideProgramLogo - wideProgramLogo or null for nonepublic Image getWordMark()
null for nonepublic GiftCardClass setWordMark(Image wordMark)
wordMark - wordMark or null for nonepublic GiftCardClass set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GiftCardClass clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.