public final class GiftCardObject
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 |
---|
GiftCardObject() |
Modifier and Type | Method and Description |
---|---|
GiftCardObject |
clone() |
AppLinkData |
getAppLinkData()
Optional information about the partner app link.
|
Money |
getBalance()
The card's monetary balance.
|
DateTime |
getBalanceUpdateTime()
The date and time when the balance was last updated.
|
Barcode |
getBarcode()
The barcode type and value.
|
String |
getCardNumber()
Required.
|
String |
getClassId()
Required.
|
GiftCardClass |
getClassReference()
A copy of the inherited fields of the parent class.
|
Boolean |
getDisableExpirationNotification()
Indicates if notifications should explicitly be suppressed.
|
String |
getEventNumber()
The card's event number, an optional field used by some gift cards.
|
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.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
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.
|
PassConstraints |
getPassConstraints()
Pass constraints for the object.
|
String |
getPin()
The card's PIN.
|
RotatingBarcode |
getRotatingBarcode()
The rotating barcode type and value.
|
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.
|
Long |
getVersion()
Deprecated
|
GiftCardObject |
set(String fieldName,
Object value) |
GiftCardObject |
setAppLinkData(AppLinkData appLinkData)
Optional information about the partner app link.
|
GiftCardObject |
setBalance(Money balance)
The card's monetary balance.
|
GiftCardObject |
setBalanceUpdateTime(DateTime balanceUpdateTime)
The date and time when the balance was last updated.
|
GiftCardObject |
setBarcode(Barcode barcode)
The barcode type and value.
|
GiftCardObject |
setCardNumber(String cardNumber)
Required.
|
GiftCardObject |
setClassId(String classId)
Required.
|
GiftCardObject |
setClassReference(GiftCardClass classReference)
A copy of the inherited fields of the parent class.
|
GiftCardObject |
setDisableExpirationNotification(Boolean disableExpirationNotification)
Indicates if notifications should explicitly be suppressed.
|
GiftCardObject |
setEventNumber(String eventNumber)
The card's event number, an optional field used by some gift cards.
|
GiftCardObject |
setGroupingInfo(GroupingInfo groupingInfo)
Information that controls how passes are grouped together.
|
GiftCardObject |
setHasLinkedDevice(Boolean hasLinkedDevice)
Whether this object is currently linked to a single device.
|
GiftCardObject |
setHasUsers(Boolean hasUsers)
Indicates if the object has users.
|
GiftCardObject |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
GiftCardObject |
setId(String id)
Required.
|
GiftCardObject |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
GiftCardObject |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
GiftCardObject |
setKind(String kind)
Identifies what kind of resource this is.
|
GiftCardObject |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
GiftCardObject |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
GiftCardObject |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
GiftCardObject |
setPassConstraints(PassConstraints passConstraints)
Pass constraints for the object.
|
GiftCardObject |
setPin(String pin)
The card's PIN.
|
GiftCardObject |
setRotatingBarcode(RotatingBarcode rotatingBarcode)
The rotating barcode type and value.
|
GiftCardObject |
setSmartTapRedemptionValue(String smartTapRedemptionValue)
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
GiftCardObject |
setState(String state)
Required.
|
GiftCardObject |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
GiftCardObject |
setValidTimeInterval(TimeInterval validTimeInterval)
The time period this object will be `active` and object can be used.
|
GiftCardObject |
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 AppLinkData getAppLinkData()
null
for nonepublic GiftCardObject setAppLinkData(AppLinkData appLinkData)
appLinkData
- appLinkData or null
for nonepublic Money getBalance()
null
for nonepublic GiftCardObject setBalance(Money balance)
balance
- balance or null
for nonepublic DateTime getBalanceUpdateTime()
null
for nonepublic GiftCardObject setBalanceUpdateTime(DateTime balanceUpdateTime)
balanceUpdateTime
- balanceUpdateTime or null
for nonepublic Barcode getBarcode()
null
for nonepublic GiftCardObject setBarcode(Barcode barcode)
barcode
- barcode or null
for nonepublic String getCardNumber()
null
for nonepublic GiftCardObject setCardNumber(String cardNumber)
cardNumber
- cardNumber or null
for nonepublic String getClassId()
null
for nonepublic GiftCardObject setClassId(String classId)
classId
- classId or null
for nonepublic GiftCardClass getClassReference()
null
for nonepublic GiftCardObject setClassReference(GiftCardClass classReference)
classReference
- classReference or null
for nonepublic Boolean getDisableExpirationNotification()
null
for nonepublic GiftCardObject setDisableExpirationNotification(Boolean disableExpirationNotification)
disableExpirationNotification
- disableExpirationNotification or null
for nonepublic String getEventNumber()
null
for nonepublic GiftCardObject setEventNumber(String eventNumber)
eventNumber
- eventNumber or null
for nonepublic GroupingInfo getGroupingInfo()
null
for nonepublic GiftCardObject setGroupingInfo(GroupingInfo groupingInfo)
groupingInfo
- groupingInfo or null
for nonepublic Boolean getHasLinkedDevice()
null
for nonepublic GiftCardObject setHasLinkedDevice(Boolean hasLinkedDevice)
hasLinkedDevice
- hasLinkedDevice or null
for nonepublic Boolean getHasUsers()
null
for nonepublic GiftCardObject setHasUsers(Boolean hasUsers)
hasUsers
- hasUsers or null
for nonepublic Image getHeroImage()
null
for nonepublic GiftCardObject setHeroImage(Image heroImage)
heroImage
- heroImage or null
for nonepublic String getId()
null
for nonepublic GiftCardObject setId(String id)
id
- id or null
for nonepublic List<ImageModuleData> getImageModulesData()
null
for nonepublic GiftCardObject setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData
- imageModulesData or null
for nonepublic InfoModuleData getInfoModuleData()
null
for nonepublic GiftCardObject setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData
- infoModuleData or null
for nonepublic String getKind()
null
for nonepublic GiftCardObject setKind(String kind)
kind
- kind or null
for nonepublic LinksModuleData getLinksModuleData()
null
for nonepublic GiftCardObject setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData
- linksModuleData or null
for nonepublic List<LatLongPoint> getLocations()
null
for nonepublic GiftCardObject setLocations(List<LatLongPoint> locations)
locations
- locations or null
for nonepublic List<Message> getMessages()
null
for nonepublic GiftCardObject setMessages(List<Message> messages)
messages
- messages or null
for nonepublic PassConstraints getPassConstraints()
null
for nonepublic GiftCardObject setPassConstraints(PassConstraints passConstraints)
passConstraints
- passConstraints or null
for nonepublic String getPin()
null
for nonepublic GiftCardObject setPin(String pin)
pin
- pin or null
for nonepublic RotatingBarcode getRotatingBarcode()
null
for nonepublic GiftCardObject setRotatingBarcode(RotatingBarcode rotatingBarcode)
rotatingBarcode
- rotatingBarcode or null
for nonepublic String getSmartTapRedemptionValue()
null
for nonepublic GiftCardObject setSmartTapRedemptionValue(String smartTapRedemptionValue)
smartTapRedemptionValue
- smartTapRedemptionValue or null
for nonepublic String getState()
null
for nonepublic GiftCardObject setState(String state)
state
- state or null
for nonepublic List<TextModuleData> getTextModulesData()
null
for nonepublic GiftCardObject setTextModulesData(List<TextModuleData> textModulesData)
textModulesData
- textModulesData or null
for nonepublic TimeInterval getValidTimeInterval()
null
for nonepublic GiftCardObject setValidTimeInterval(TimeInterval validTimeInterval)
validTimeInterval
- validTimeInterval or null
for nonepublic Long getVersion()
null
for nonepublic GiftCardObject setVersion(Long version)
version
- version or null
for nonepublic GiftCardObject set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public GiftCardObject clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.