public final class EventTicketObject
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 |
|---|
EventTicketObject() |
| Modifier and Type | Method and Description |
|---|---|
EventTicketObject |
clone() |
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.
|
EventTicketClass |
getClassReference()
A copy of the inherited fields of the parent class.
|
Boolean |
getDisableExpirationNotification()
Indicates if notifications should explicitly be suppressed.
|
Money |
getFaceValue()
The face value of the ticket, matching what would be printed on a physical version of the
ticket.
|
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 |
getHexBackgroundColor()
The background color for 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 event ticket
object.
|
List<String> |
getLinkedOfferIds()
A list of offer objects linked to this event ticket.
|
LinksModuleData |
getLinksModuleData()
Links module data.
|
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 |
getNotifyPreference()
Whether or not field updates to this object should trigger notifications.
|
PassConstraints |
getPassConstraints()
Pass constraints for the object.
|
EventReservationInfo |
getReservationInfo()
Reservation details for this ticket.
|
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.
|
EventSeat |
getSeatInfo()
Seating details for this ticket.
|
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.
|
String |
getTicketHolderName()
Name of the ticket holder, if the ticket is assigned to a person.
|
String |
getTicketNumber()
The number of the ticket.
|
LocalizedString |
getTicketType()
The type of the ticket, such as "Adult" or "Child", or "VIP" or "Standard".
|
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
|
EventTicketObject |
set(String fieldName,
Object value) |
EventTicketObject |
setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
EventTicketObject |
setBarcode(Barcode barcode)
The barcode type and value.
|
EventTicketObject |
setClassId(String classId)
Required.
|
EventTicketObject |
setClassReference(EventTicketClass classReference)
A copy of the inherited fields of the parent class.
|
EventTicketObject |
setDisableExpirationNotification(Boolean disableExpirationNotification)
Indicates if notifications should explicitly be suppressed.
|
EventTicketObject |
setFaceValue(Money faceValue)
The face value of the ticket, matching what would be printed on a physical version of the
ticket.
|
EventTicketObject |
setGroupingInfo(GroupingInfo groupingInfo)
Information that controls how passes are grouped together.
|
EventTicketObject |
setHasLinkedDevice(Boolean hasLinkedDevice)
Whether this object is currently linked to a single device.
|
EventTicketObject |
setHasUsers(Boolean hasUsers)
Indicates if the object has users.
|
EventTicketObject |
setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
EventTicketObject |
setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
EventTicketObject |
setId(String id)
Required.
|
EventTicketObject |
setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
EventTicketObject |
setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
EventTicketObject |
setKind(String kind)
Identifies what kind of resource this is.
|
EventTicketObject |
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 event ticket
object.
|
EventTicketObject |
setLinkedOfferIds(List<String> linkedOfferIds)
A list of offer objects linked to this event ticket.
|
EventTicketObject |
setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
EventTicketObject |
setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
EventTicketObject |
setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
EventTicketObject |
setMessages(List<Message> messages)
An array of messages displayed in the app.
|
EventTicketObject |
setNotifyPreference(String notifyPreference)
Whether or not field updates to this object should trigger notifications.
|
EventTicketObject |
setPassConstraints(PassConstraints passConstraints)
Pass constraints for the object.
|
EventTicketObject |
setReservationInfo(EventReservationInfo reservationInfo)
Reservation details for this ticket.
|
EventTicketObject |
setRotatingBarcode(RotatingBarcode rotatingBarcode)
The rotating barcode type and value.
|
EventTicketObject |
setSaveRestrictions(SaveRestrictions saveRestrictions)
Restrictions on the object that needs to be verified before the user tries to save the pass.
|
EventTicketObject |
setSeatInfo(EventSeat seatInfo)
Seating details for this ticket.
|
EventTicketObject |
setSmartTapRedemptionValue(String smartTapRedemptionValue)
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object.
|
EventTicketObject |
setState(String state)
Required.
|
EventTicketObject |
setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
EventTicketObject |
setTicketHolderName(String ticketHolderName)
Name of the ticket holder, if the ticket is assigned to a person.
|
EventTicketObject |
setTicketNumber(String ticketNumber)
The number of the ticket.
|
EventTicketObject |
setTicketType(LocalizedString ticketType)
The type of the ticket, such as "Adult" or "Child", or "VIP" or "Standard".
|
EventTicketObject |
setValidTimeInterval(TimeInterval validTimeInterval)
The time period this object will be `active` and object can be used.
|
EventTicketObject |
setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
EventTicketObject |
setVersion(Long version)
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 AppLinkData getAppLinkData()
null for nonepublic EventTicketObject setAppLinkData(AppLinkData appLinkData)
appLinkData - appLinkData or null for nonepublic Barcode getBarcode()
null for nonepublic EventTicketObject setBarcode(Barcode barcode)
barcode - barcode or null for nonepublic String getClassId()
null for nonepublic EventTicketObject setClassId(String classId)
classId - classId or null for nonepublic EventTicketClass getClassReference()
null for nonepublic EventTicketObject setClassReference(EventTicketClass classReference)
classReference - classReference or null for nonepublic Boolean getDisableExpirationNotification()
null for nonepublic EventTicketObject setDisableExpirationNotification(Boolean disableExpirationNotification)
disableExpirationNotification - disableExpirationNotification or null for nonepublic Money getFaceValue()
null for nonepublic EventTicketObject setFaceValue(Money faceValue)
faceValue - faceValue or null for nonepublic GroupingInfo getGroupingInfo()
null for nonepublic EventTicketObject setGroupingInfo(GroupingInfo groupingInfo)
groupingInfo - groupingInfo or null for nonepublic Boolean getHasLinkedDevice()
null for nonepublic EventTicketObject setHasLinkedDevice(Boolean hasLinkedDevice)
hasLinkedDevice - hasLinkedDevice or null for nonepublic Boolean getHasUsers()
null for nonepublic EventTicketObject setHasUsers(Boolean hasUsers)
hasUsers - hasUsers or null for nonepublic Image getHeroImage()
null for nonepublic EventTicketObject setHeroImage(Image heroImage)
heroImage - heroImage or null for nonepublic String getHexBackgroundColor()
null for nonepublic EventTicketObject setHexBackgroundColor(String hexBackgroundColor)
hexBackgroundColor - hexBackgroundColor or null for nonepublic String getId()
null for nonepublic EventTicketObject setId(String id)
id - id or null for nonepublic List<ImageModuleData> getImageModulesData()
null for nonepublic EventTicketObject setImageModulesData(List<ImageModuleData> imageModulesData)
imageModulesData - imageModulesData or null for nonepublic InfoModuleData getInfoModuleData()
null for nonepublic EventTicketObject setInfoModuleData(InfoModuleData infoModuleData)
infoModuleData - infoModuleData or null for nonepublic String getKind()
null for nonepublic EventTicketObject setKind(String kind)
kind - kind or null for nonepublic List<String> getLinkedObjectIds()
null for nonepublic EventTicketObject setLinkedObjectIds(List<String> linkedObjectIds)
linkedObjectIds - linkedObjectIds or null for nonepublic List<String> getLinkedOfferIds()
null for nonepublic EventTicketObject setLinkedOfferIds(List<String> linkedOfferIds)
linkedOfferIds - linkedOfferIds or null for nonepublic LinksModuleData getLinksModuleData()
null for nonepublic EventTicketObject setLinksModuleData(LinksModuleData linksModuleData)
linksModuleData - linksModuleData or null for nonepublic List<LatLongPoint> getLocations()
null for nonepublic EventTicketObject setLocations(List<LatLongPoint> locations)
locations - locations or null for nonepublic List<MerchantLocation> getMerchantLocations()
null for nonepublic EventTicketObject setMerchantLocations(List<MerchantLocation> merchantLocations)
merchantLocations - merchantLocations or null for nonepublic List<Message> getMessages()
null for nonepublic EventTicketObject setMessages(List<Message> messages)
messages - messages or null for nonepublic String getNotifyPreference()
null for nonepublic EventTicketObject setNotifyPreference(String notifyPreference)
notifyPreference - notifyPreference or null for nonepublic PassConstraints getPassConstraints()
null for nonepublic EventTicketObject setPassConstraints(PassConstraints passConstraints)
passConstraints - passConstraints or null for nonepublic EventReservationInfo getReservationInfo()
null for nonepublic EventTicketObject setReservationInfo(EventReservationInfo reservationInfo)
reservationInfo - reservationInfo or null for nonepublic RotatingBarcode getRotatingBarcode()
null for nonepublic EventTicketObject setRotatingBarcode(RotatingBarcode rotatingBarcode)
rotatingBarcode - rotatingBarcode or null for nonepublic SaveRestrictions getSaveRestrictions()
null for nonepublic EventTicketObject setSaveRestrictions(SaveRestrictions saveRestrictions)
saveRestrictions - saveRestrictions or null for nonepublic EventSeat getSeatInfo()
null for nonepublic EventTicketObject setSeatInfo(EventSeat seatInfo)
seatInfo - seatInfo or null for nonepublic String getSmartTapRedemptionValue()
null for nonepublic EventTicketObject setSmartTapRedemptionValue(String smartTapRedemptionValue)
smartTapRedemptionValue - smartTapRedemptionValue or null for nonepublic String getState()
null for nonepublic EventTicketObject setState(String state)
state - state or null for nonepublic List<TextModuleData> getTextModulesData()
null for nonepublic EventTicketObject setTextModulesData(List<TextModuleData> textModulesData)
textModulesData - textModulesData or null for nonepublic String getTicketHolderName()
null for nonepublic EventTicketObject setTicketHolderName(String ticketHolderName)
ticketHolderName - ticketHolderName or null for nonepublic String getTicketNumber()
null for nonepublic EventTicketObject setTicketNumber(String ticketNumber)
ticketNumber - ticketNumber or null for nonepublic LocalizedString getTicketType()
null for nonepublic EventTicketObject setTicketType(LocalizedString ticketType)
ticketType - ticketType or null for nonepublic TimeInterval getValidTimeInterval()
null for nonepublic EventTicketObject setValidTimeInterval(TimeInterval validTimeInterval)
validTimeInterval - validTimeInterval or null for nonepublic List<ValueAddedModuleData> getValueAddedModuleData()
null for nonepublic EventTicketObject setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
valueAddedModuleData - valueAddedModuleData or null for nonepublic Long getVersion()
null for nonepublic EventTicketObject setVersion(Long version)
version - version or null for nonepublic EventTicketObject set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic EventTicketObject clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.