Resource: GenericClass
Generic Class
JSON representation |
---|
{ "id": string, "classTemplateInfo": { object ( |
Fields | |
---|---|
id |
Required. The unique identifier for the class. This ID must be unique across all from an issuer. This value needs to follow the format |
class |
Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display. |
image |
Image module data. If |
text |
Text module data. If |
links |
Links module data. If |
enable |
Available only to Smart Tap enabled partners. Contact support for additional guidance. |
redemption |
Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The |
security |
Optional information about the security animation. If this is set a security animation will be rendered on pass details. |
multiple |
Identifies whether multiple users and devices will save the same object referencing this class. |
callback |
Callback options to be used to call the issuer back for every save/delete of an object for this class by the end-user. All objects of this class are eligible for the callback. |
view |
View Unlock Requirement options for the generic pass. |
messages[] |
An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10. |
app |
Optional app or website link that will be displayed as a button on the front of the pass. If AppLinkData is provided for the corresponding object that will be used instead. |
value |
Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. |
Methods |
|
---|---|
|
Adds a message to the generic class referenced by the given class ID. |
|
Returns the generic class with the given class ID. |
|
Inserts a generic class with the given ID and properties. |
|
Returns a list of all generic classes for a given issuer ID. |
|
Updates the generic class referenced by the given class ID. |
|
Updates the Generic class referenced by the given class ID. |