public final class LoyaltyObject
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 |
---|
LoyaltyObject() |
Modifier and Type | Method and Description |
---|---|
LoyaltyObject |
clone() |
String |
getAccountId()
The loyalty account identifier.
|
String |
getAccountName()
The loyalty account holder name, such as "John Smith." Recommended maximum length is 20
characters to ensure full string is displayed on smaller screens.
|
AppLinkData |
getAppLinkData()
Optional app or website link that will be displayed as a button on the front of the pass.
|
Barcode |
getBarcode()
The barcode type and value.
|
String |
getClassId()
Required.
|
LoyaltyClass |
getClassReference()
A copy of the inherited fields of the parent class.
|
Boolean |
getDisableExpirationNotification()
Indicates if notifications should explicitly be suppressed.
|
GroupingInfo |
getGroupingInfo()
Information that controls how passes are grouped together.
|
Boolean |
getHasLinkedDevice()
Whether this object is currently linked to a single device.
|
Boolean |
getHasUsers()
Indicates if the object has users.
|
Image |
getHeroImage()
Optional banner image displayed on the front of the card.
|
String |
getId()
Required.
|
List<ImageModuleData> |
getImageModulesData()
Image module data.
|
InfoModuleData |
getInfoModuleData()
Deprecated.
|
String |
getKind()
Identifies what kind of resource this is.
|
List<String> |
getLinkedObjectIds()
linked_object_ids are a list of other objects such as event ticket, loyalty, offer, generic,
giftcard, transit and boarding pass that should be automatically attached to this loyalty
object.
|
List<String> |
getLinkedOfferIds()
A list of offer objects linked to this loyalty card.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
List<LatLongPoint> |
getLocations()
Note: This field is currently not supported to trigger geo notifications.
|
LoyaltyPoints |
getLoyaltyPoints()
The loyalty reward points label, balance, and type.
|
List<MerchantLocation> |
getMerchantLocations()
Merchant locations.
|
List<Message> |
getMessages()
An array of messages displayed in the app.
|
String |
getNotifyPreference()
Whether or not field updates to this object should trigger notifications.
|
PassConstraints |
getPassConstraints()
Pass constraints for the object.
|
RotatingBarcode |
getRotatingBarcode()
The rotating barcode type and value.
|
SaveRestrictions |
getSaveRestrictions()
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
LoyaltyPoints |
getSecondaryLoyaltyPoints()
The secondary loyalty reward points label, balance, and type.
|
String |
getSmartTapRedemptionValue()
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
String |
getState()
Required.
|
List<TextModuleData> |
getTextModulesData()
Text module data.
|
TimeInterval |
getValidTimeInterval()
The time period this object will be `active` and object can be used.
|
List<ValueAddedModuleData> |
getValueAddedModuleData()
Optional value added module data.
|
Long |
getVersion()
Deprecated
|
LoyaltyObject |
set(String fieldName,
Object value) |
LoyaltyObject |
setAccountId(String accountId)
The loyalty account identifier.
|
LoyaltyObject |
setAccountName(String accountName)
The loyalty account holder name, such as "John Smith." Recommended maximum length is 20
characters to ensure full string is displayed on smaller screens.
|
LoyaltyObject |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
LoyaltyObject |
setBarcode(Barcode barcode)
The barcode type and value.
|
LoyaltyObject |
setClassId(String classId)
Required.
|
LoyaltyObject |
setClassReference(LoyaltyClass classReference)
A copy of the inherited fields of the parent class.
|
LoyaltyObject |
setDisableExpirationNotification(Boolean disableExpirationNotification)
Indicates if notifications should explicitly be suppressed.
|
LoyaltyObject |
setGroupingInfo(GroupingInfo groupingInfo)
Information that controls how passes are grouped together.
|
LoyaltyObject |
setHasLinkedDevice(Boolean hasLinkedDevice)
Whether this object is currently linked to a single device.
|
LoyaltyObject |
setHasUsers(Boolean hasUsers)
Indicates if the object has users.
|
LoyaltyObject |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
LoyaltyObject |
setId(String id)
Required.
|
LoyaltyObject |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
LoyaltyObject |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
LoyaltyObject |
setKind(String kind)
Identifies what kind of resource this is.
|
LoyaltyObject |
setLinkedObjectIds(List<String> linkedObjectIds)
linked_object_ids are a list of other objects such as event ticket, loyalty, offer, generic,
giftcard, transit and boarding pass that should be automatically attached to this loyalty
object.
|
LoyaltyObject |
setLinkedOfferIds(List<String> linkedOfferIds)
A list of offer objects linked to this loyalty card.
|
LoyaltyObject |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
LoyaltyObject |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
LoyaltyObject |
setLoyaltyPoints(LoyaltyPoints loyaltyPoints)
The loyalty reward points label, balance, and type.
|
LoyaltyObject |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
LoyaltyObject |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
LoyaltyObject |
setNotifyPreference(String notifyPreference)
Whether or not field updates to this object should trigger notifications.
|
LoyaltyObject |
setPassConstraints(PassConstraints passConstraints)
Pass constraints for the object.
|
LoyaltyObject |
setRotatingBarcode(RotatingBarcode rotatingBarcode)
The rotating barcode type and value.
|
LoyaltyObject |
setSaveRestrictions(SaveRestrictions saveRestrictions)
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
LoyaltyObject |
setSecondaryLoyaltyPoints(LoyaltyPoints secondaryLoyaltyPoints)
The secondary loyalty reward points label, balance, and type.
|
LoyaltyObject |
setSmartTapRedemptionValue(String smartTapRedemptionValue)
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
LoyaltyObject |
setState(String state)
Required.
|
LoyaltyObject |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
LoyaltyObject |
setValidTimeInterval(TimeInterval validTimeInterval)
The time period this object will be `active` and object can be used.
|
LoyaltyObject |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
LoyaltyObject |
setVersion(Long version)
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 String getAccountId()
null
for nonepublic LoyaltyObject setAccountId(String accountId)
accountId
- accountId or null
for nonepublic String getAccountName()
null
for nonepublic LoyaltyObject setAccountName(String accountName)
accountName
- accountName or null
for nonepublic AppLinkData getAppLinkData()
null
for nonepublic LoyaltyObject setAppLinkData(AppLinkData appLinkData)
appLinkData
- appLinkData or null
for nonepublic Barcode getBarcode()
null
for nonepublic LoyaltyObject setBarcode(Barcode barcode)
barcode
- barcode or null
for nonepublic String getClassId()
null
for nonepublic LoyaltyObject setClassId(String classId)
classId
- classId or null
for nonepublic LoyaltyClass getClassReference()
null
for nonepublic LoyaltyObject setClassReference(LoyaltyClass classReference)
classReference
- classReference or null
for nonepublic Boolean getDisableExpirationNotification()
null
for nonepublic LoyaltyObject setDisableExpirationNotification(Boolean disableExpirationNotification)
disableExpirationNotification
- disableExpirationNotification or null
for nonepublic GroupingInfo getGroupingInfo()
null
for nonepublic LoyaltyObject setGroupingInfo(GroupingInfo groupingInfo)
groupingInfo
- groupingInfo or null
for nonepublic Boolean getHasLinkedDevice()
null
for nonepublic LoyaltyObject setHasLinkedDevice(Boolean hasLinkedDevice)
hasLinkedDevice
- hasLinkedDevice or null
for nonepublic Boolean getHasUsers()
null
for nonepublic LoyaltyObject setHasUsers(Boolean hasUsers)
hasUsers
- hasUsers or null
for nonepublic Image getHeroImage()
null
for nonepublic LoyaltyObject setHeroImage(Image heroImage)
heroImage
- heroImage or null
for nonepublic String getId()
null
for nonepublic LoyaltyObject setId(String id)
id
- id or null
for nonepublic List<ImageModuleData> getImageModulesData()
null
for nonepublic LoyaltyObject setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData
- imageModulesData or null
for nonepublic InfoModuleData getInfoModuleData()
null
for nonepublic LoyaltyObject setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData
- infoModuleData or null
for nonepublic String getKind()
null
for nonepublic LoyaltyObject setKind(String kind)
kind
- kind or null
for nonepublic List<String> getLinkedObjectIds()
null
for nonepublic LoyaltyObject setLinkedObjectIds(List<String> linkedObjectIds)
linkedObjectIds
- linkedObjectIds or null
for nonepublic List<String> getLinkedOfferIds()
null
for nonepublic LoyaltyObject setLinkedOfferIds(List<String> linkedOfferIds)
linkedOfferIds
- linkedOfferIds or null
for nonepublic LinksModuleData getLinksModuleData()
null
for nonepublic LoyaltyObject setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData
- linksModuleData or null
for nonepublic List<LatLongPoint> getLocations()
null
for nonepublic LoyaltyObject setLocations(List<LatLongPoint> locations)
locations
- locations or null
for nonepublic LoyaltyPoints getLoyaltyPoints()
null
for nonepublic LoyaltyObject setLoyaltyPoints(LoyaltyPoints loyaltyPoints)
loyaltyPoints
- loyaltyPoints or null
for nonepublic List<MerchantLocation> getMerchantLocations()
null
for nonepublic LoyaltyObject setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations
- merchantLocations or null
for nonepublic List<Message> getMessages()
null
for nonepublic LoyaltyObject setMessages(List<Message> messages)
messages
- messages or null
for nonepublic String getNotifyPreference()
null
for nonepublic LoyaltyObject setNotifyPreference(String notifyPreference)
notifyPreference
- notifyPreference or null
for nonepublic PassConstraints getPassConstraints()
null
for nonepublic LoyaltyObject setPassConstraints(PassConstraints passConstraints)
passConstraints
- passConstraints or null
for nonepublic RotatingBarcode getRotatingBarcode()
null
for nonepublic LoyaltyObject setRotatingBarcode(RotatingBarcode rotatingBarcode)
rotatingBarcode
- rotatingBarcode or null
for nonepublic SaveRestrictions getSaveRestrictions()
null
for nonepublic LoyaltyObject setSaveRestrictions(SaveRestrictions saveRestrictions)
saveRestrictions
- saveRestrictions or null
for nonepublic LoyaltyPoints getSecondaryLoyaltyPoints()
null
for nonepublic LoyaltyObject setSecondaryLoyaltyPoints(LoyaltyPoints secondaryLoyaltyPoints)
secondaryLoyaltyPoints
- secondaryLoyaltyPoints or null
for nonepublic String getSmartTapRedemptionValue()
null
for nonepublic LoyaltyObject setSmartTapRedemptionValue(String smartTapRedemptionValue)
smartTapRedemptionValue
- smartTapRedemptionValue or null
for nonepublic String getState()
null
for nonepublic LoyaltyObject setState(String state)
state
- state or null
for nonepublic List<TextModuleData> getTextModulesData()
null
for nonepublic LoyaltyObject setTextModulesData(List<TextModuleData> textModulesData)
textModulesData
- textModulesData or null
for nonepublic TimeInterval getValidTimeInterval()
null
for nonepublic LoyaltyObject setValidTimeInterval(TimeInterval validTimeInterval)
validTimeInterval
- validTimeInterval or null
for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null
for nonepublic LoyaltyObject setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData
- valueAddedModuleData or null
for nonepublic Long getVersion()
null
for nonepublic LoyaltyObject setVersion(Long version)
version
- version or null
for nonepublic LoyaltyObject set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public LoyaltyObject clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.