GenericObject
import type { GenericObject } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";
Generic Object
§Properties
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 class only object AppLinkData will be displayed.
Required. The header of the pass. This is usually the Business name such as "XXX Gym", "AAA Insurance". This field is required and appears in the header row at the very top of the pass.
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 issuerID.identifier
where issuerID
is
issued by Google and identifier
is chosen by you.
Specify which GenericType
the card belongs to.
Information that controls how passes are grouped together.
Required. The title of the pass, such as "50% off coupon" or "Library card" or "Voucher". This field is required and appears in the title row of the pass detail view.
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 and if logo is not set, a color would be chosen by Google.
Required. The unique identifier for an object. This ID must be unique
across all objects from an issuer. This value needs to follow the format
issuerID.identifier
where issuerID
is issued by Google and identifier
is chosen by you. The unique identifier can only include alphanumeric
characters, .
, _
, or -
.
Image module data. Only one of the image from class and one from object level will be rendered when both set.
Links module data. If linksModuleData
is also defined on the class, both
will be displayed. The maximum number of these fields displayed is 10 from
class and 10 from object.
The notification settings that are enabled for this object.
Pass constraints for the object. Includes limiting NFC and screenshot behaviors.
The rotating barcode settings/details.
The value that will be transmitted to a Smart Tap certified terminal over
NFC for this object. The class level fields enableSmartTap
and
redemptionIssuers
must also be set up correctly in order for the pass to
support Smart Tap. Only ASCII characters are supported.
The state of the object. This field is used to determine how an object is
displayed in the app. For example, an inactive
object is moved to the
"Expired passes" section. If this is not provided, the object would be
considered ACTIVE
.
The title label of the pass, such as location where this pass can be used. Appears right above the title in the title row in the pass detail view.
Text module data. If textModulesData
is also defined on the class, both
will be displayed. The maximum number of these fields displayed is 10 from
class and 10 from object.
The time period this object will be considered valid or usable. When the time period is passed, the object will be considered expired, which will affect the rendering on user's devices.