Package google.walletobjects.v1.templates

Index

BarcodeSectionDetail

Fields
field_selector

FieldSelector

A reference to an existing text-based or image field to display.

CardBarcodeSectionDetails

Fields
first_top_detail

BarcodeSectionDetail

Optional information to display above the barcode. If secondTopDetail is defined, this will be displayed to the start side of this detail section.

first_bottom_detail

BarcodeSectionDetail

Optional information to display below the barcode.

second_top_detail

BarcodeSectionDetail

Optional second piece of information to display above the barcode. If firstTopDetail is defined, this will be displayed to the end side of this detail section.

CardRowOneItem

Fields
item

TemplateItem

The item to be displayed in the row. This item will be automatically centered.

CardRowTemplateInfo

Fields
one_item

CardRowOneItem

Template for a row containing one item. Exactly one of "one_item", "two_items", "three_items" must be set.

two_items

CardRowTwoItems

Template for a row containing two items. Exactly one of "one_item", "two_items", "three_items" must be set.

three_items

CardRowThreeItems

Template for a row containing three items. Exactly one of "one_item", "two_items", "three_items" must be set.

CardRowThreeItems

Fields
start_item

TemplateItem

The item to be displayed at the start of the row. This item will be aligned to the left.

middle_item

TemplateItem

The item to be displayed in the middle of the row. This item will be centered between the start and end items.

end_item

TemplateItem

The item to be displayed at the end of the row. This item will be aligned to the right.

CardRowTwoItems

Fields
start_item

TemplateItem

The item to be displayed at the start of the row. This item will be aligned to the left.

end_item

TemplateItem

The item to be displayed at the end of the row. This item will be aligned to the right.

CardTemplateOverride

Fields
card_row_template_infos[]

CardRowTemplateInfo

Template information for rows in the card view. At most two rows are allowed to be specified.

ClassTemplateInfo

Fields
card_barcode_section_details

CardBarcodeSectionDetails

Specifies extra information to be displayed above and below the barcode.

card_template_override

CardTemplateOverride

Override for the card view.

details_template_override

DetailsTemplateOverride

Override for the details view (beneath the card view).

list_template_override

ListTemplateOverride

Override for the passes list view.

DetailsItemInfo

Fields
item

TemplateItem

The item to be displayed in the details list.

DetailsTemplateOverride

Fields
details_item_infos[]

DetailsItemInfo

Information for the "nth" item displayed in the details list.

FieldReference

Fields
field_path

string

Path to the field being referenced, prefixed with "object" or "class" and separated with dots. For example, it may be the string "object.purchaseDetails.purchasePrice".

date_format

DateFormat

Only valid if the fieldPath references a date field. Chooses how the date field will be formatted and displayed in the UI.

DateFormat

Enums
DATE_FORMAT_UNSPECIFIED
DATE_TIME
dateTime

Legacy alias for DATE_TIME. Deprecated.

DATE_ONLY
dateOnly

Legacy alias for DATE_ONLY. Deprecated.

TIME_ONLY
timeOnly

Legacy alias for TIME_ONLY. Deprecated.

DATE_TIME_YEAR
dateTimeYear

Legacy alias for DATE_TIME_YEAR. Deprecated.

DATE_YEAR
dateYear

Legacy alias for DATE_YEAR. Deprecated.

FieldSelector

Fields
fields[]

FieldReference

If more than one reference is supplied, then the first one that references a non-empty field will be displayed.

FirstRowOption

Fields
transit_option

TransitOption

field_option

FieldSelector

A reference to the field to be displayed in the first row.

TransitOption

Enums
TRANSIT_OPTION_UNSPECIFIED
ORIGIN_AND_DESTINATION_NAMES
originAndDestinationNames

Legacy alias for ORIGIN_AND_DESTINATION_NAMES. Deprecated.

ORIGIN_AND_DESTINATION_CODES
originAndDestinationCodes

Legacy alias for ORIGIN_AND_DESTINATION_CODES. Deprecated.

ORIGIN_NAME
originName

Legacy alias for ORIGIN_NAME. Deprecated.

ListTemplateOverride

Fields
first_row_option

FirstRowOption

Specifies from a predefined set of options or from a reference to the field what will be displayed in the first row.

second_row_option

FieldSelector

A reference to the field to be displayed in the second row.

This option is only displayed if there are not multiple user objects in a group. If there is a group, the second row will always display a field shared by all objects.

third_row_option
(deprecated)

FieldSelector

A reference to the field to be displayed in the third row.

This option is only displayed if there are not multiple user objects in a group. If there is a group, the third row will always display the number of objects in the group. Eg: "3 passes"

TemplateItem

Fields
first_value

FieldSelector

A reference to a field to display. If both firstValue and secondValue are populated, they will both appear as one item with a slash between them. For example, values A and B would be shown as "A / B".

second_value

FieldSelector

A reference to a field to display. This may only be populated if the firstValue field is populated.

predefined_item

PredefinedItem

A predefined item to display. Only one of firstValue or predefinedItem may be set.

PredefinedItem

Enums
PREDEFINED_ITEM_UNSPECIFIED
FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER
frequentFlyerProgramNameAndNumber

Legacy alias for FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER. Deprecated.

FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER
flightNumberAndOperatingFlightNumber

Legacy alias for FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER. Deprecated.