Index
GiftCardClassService
(interface)GiftCardObjectService
(interface)GiftCardClass
(message)GiftCardClassAddMessageRequest
(message)GiftCardClassAddMessageResponse
(message)GiftCardClassGetRequest
(message)GiftCardClassInsertRequest
(message)GiftCardClassListRequest
(message)GiftCardClassListResponse
(message)GiftCardClassPatchRequest
(message)GiftCardClassUpdateRequest
(message)GiftCardObject
(message)GiftCardObjectAddMessageRequest
(message)GiftCardObjectAddMessageResponse
(message)GiftCardObjectGetRequest
(message)GiftCardObjectInsertRequest
(message)GiftCardObjectListRequest
(message)GiftCardObjectListResponse
(message)GiftCardObjectPatchRequest
(message)GiftCardObjectUpdateRequest
(message)
GiftCardClassService
AddMessage |
---|
Adds a message to the gift card class referenced by the given class ID.
|
Get |
---|
Returns the gift card class with the given class ID.
|
Insert |
---|
Inserts an gift card class with the given ID and properties.
|
List |
---|
Returns a list of all gift card classes for a given issuer ID.
|
Patch |
---|
Updates the gift card class referenced by the given class ID. This method supports patch semantics.
|
Update |
---|
Updates the gift card class referenced by the given class ID.
|
GiftCardObjectService
AddMessage |
---|
Adds a message to the gift card object referenced by the given object ID.
|
Get |
---|
Returns the gift card object with the given object ID.
|
Insert |
---|
Inserts an gift card object with the given ID and properties.
|
List |
---|
Returns a list of all gift card objects for a given issuer ID.
|
Patch |
---|
Updates the gift card object referenced by the given object ID. This method supports patch semantics.
|
Update |
---|
Updates the gift card object referenced by the given object ID.
|
GiftCardClass
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
merchant_name |
Merchant name, such as "Adam's Apparel". The app may display an ellipsis after the first 20 characters to ensure full string is displayed on smaller screens. |
program_logo |
The logo of the gift card program or company. This logo is displayed in both the details and list views of the app. |
pin_label |
The label to display for the PIN, such as "4-digit PIN". |
event_number_label |
The label to display for event number, such as "Target Event #". |
allow_barcode_redemption |
Determines whether the merchant supports gift card redemption using barcode. If true, app displays a barcode for the gift card on the Gift card details screen. If false, a barcode is not displayed. |
localized_merchant_name |
Translated strings for the merchant_name. The app may display an ellipsis after the first 20 characters to ensure full string is displayed on smaller screens. |
localized_pin_label |
Translated strings for the pin_label. |
localized_event_number_label |
Translated strings for the event_number_label. |
card_number_label |
The label to display for the card number, such as "Card Number". |
localized_card_number_label |
Translated strings for the card_number_label. |
class_template_info |
Template information about how the class should be displayed. If unset, Google will fallback to a default set of fields to display. |
id |
Required. The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
version |
Deprecated |
issuer_name |
Required. The issuer name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. |
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. |
allow_multiple_users_per_object |
Deprecated. Use |
homepage_uri |
The URI of your application's home page. Populating the URI in this field results in the exact same behavior as populating an URI in linksModuleData (when an object is rendered, a link to the homepage is shown in what would usually be thought of as the linksModuleData section of the object). |
locations[] |
Note: This field is currently not supported to trigger geo notifications. |
review_status |
Required. The status of the class. This field can be set to You should keep this field to You should set this field to When updating an already |
review |
The review comments set by the platform when a class is marked |
info_module_data |
Deprecated. Use textModulesData instead. |
image_modules_data[] |
Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level. |
text_modules_data[] |
Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. |
links_module_data |
Links module data. If links module data is also defined on the object, both will be displayed. |
redemption_issuers[] |
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 |
country_code |
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. |
hero_image |
Optional banner image displayed on the front of the card. If none is present, nothing will be displayed. The image will display at 100% width. |
word_mark |
Deprecated. |
enable_smart_tap |
Identifies whether this class supports Smart Tap. The |
hex_background_color |
The background color for the card. If not set the dominant color of the hero image is used, and if no hero image is set, the dominant color of the logo is used. The format is #rrggbb where rrggbb is a hex RGB triplet, such as |
localized_issuer_name |
Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens. |
multiple_devices_and_holders_allowed_status |
Identifies whether multiple users and devices will save the same object referencing this class. |
callback_options |
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. |
security_animation |
Optional information about the security animation. If this is set a security animation will be rendered on pass details. |
view_unlock_requirement |
View Unlock Requirement options for the gift card. |
wide_program_logo |
The wide logo of the gift card program or company. When provided, this will be used in place of the program logo in the top left of the card view. |
GiftCardClassAddMessageRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
add_message_request |
Body of the request. |
GiftCardClassAddMessageResponse
Fields | |
---|---|
resource |
The updated GiftCardClass resource. |
GiftCardClassGetRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
GiftCardClassInsertRequest
Fields | |
---|---|
resource |
Body of the request. |
GiftCardClassListRequest
Fields | |
---|---|
issuer_id |
The ID of the issuer authorized to list classes. |
token |
Used to get the next set of results if |
max_results |
Identifies the max number of results returned by a list. All results are returned if |
GiftCardClassListResponse
Fields | |
---|---|
resources[] |
Resources corresponding to the list request. |
pagination |
Pagination of the response. |
GiftCardClassPatchRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
GiftCardClassUpdateRequest
Fields | |
---|---|
resource_id |
The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
GiftCardObject
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
class_reference |
A copy of the inherited fields of the parent class. These fields are retrieved during a GET. |
card_number |
Required. The card's number. |
pin |
The card's PIN. |
balance |
The card's monetary balance. |
balance_update_time |
The date and time when the balance was last updated. Offset is required. If balance is updated and this property is not provided, system will default to the current time. |
event_number |
The card's event number, an optional field used by some gift cards. |
id |
Required. The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
class_id |
Required. The class associated with this object. The class must be of the same type as this object, must already exist, and must be approved. Class IDs should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. |
version |
Deprecated |
state |
Required. The state of the object. This field is used to determine how an object is displayed in the app. For example, an |
barcode |
The barcode type and value. |
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. |
valid_time_interval |
The time period this object will be |
locations[] |
Note: This field is currently not supported to trigger geo notifications. |
has_users |
Indicates if the object has users. This field is set by the platform. |
smart_tap_redemption_value |
The value that will be transmitted to a Smart Tap certified terminal over NFC for this object. The class level fields |
has_linked_device |
Whether this object is currently linked to a single device. This field is set by the platform when a user saves the object, linking it to their device. Intended for use by select partners. Contact support for additional information. |
disable_expiration_notification |
Indicates if notifications should explicitly be suppressed. If this field is set to true, regardless of the Currently, this can only be set for offers. |
info_module_data |
Deprecated. Use textModulesData instead. |
image_modules_data[] |
Image module data. The maximum number of these fields displayed is 1 from object level and 1 for class object level. |
text_modules_data[] |
Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. |
links_module_data |
Links module data. If links module data is also defined on the class, both will be displayed. |
app_link_data |
Optional information about the partner app link. |
rotating_barcode |
The rotating barcode type and value. |
hero_image |
Optional banner image displayed on the front of the card. If none is present, hero image of the class, if present, will be displayed. If hero image of the class is also not present, nothing will be displayed. |
grouping_info |
Information that controls how passes are grouped together. |
pass_constraints |
Pass constraints for the object. Includes limiting NFC and screenshot behaviors. |
GiftCardObjectAddMessageRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
add_message_request |
Body of the request. |
GiftCardObjectAddMessageResponse
Fields | |
---|---|
resource |
The updated GiftCardObject resource. |
GiftCardObjectGetRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
GiftCardObjectInsertRequest
Fields | |
---|---|
resource |
Body of the request. |
GiftCardObjectListRequest
Fields | |
---|---|
class_id |
The ID of the class whose objects will be listed. |
token |
Used to get the next set of results if |
max_results |
Identifies the max number of results returned by a list. All results are returned if |
GiftCardObjectListResponse
Fields | |
---|---|
resources[] |
Resources corresponding to the list request. |
pagination |
Pagination of the response. |
GiftCardObjectPatchRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |
GiftCardObjectUpdateRequest
Fields | |
---|---|
resource_id |
The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |
resource |
Body of the request. |