Google Wallet API client for wallet passes.
Uses the Google Wallet REST API to create, update, and manage pass objects and classes across all supported types (event tickets, boarding passes, loyalty cards, offers, and generic passes).
Summary
Functions
Builds a Google Wallet class object map from configuration.
Builds a Google Wallet pass object map from PassData and Visual.
Creates a pass object on Google's servers.
Creates or updates a pass class on Google's servers.
Gets a cached Google OAuth2 access token, refreshing if expired.
Updates an existing pass object on Google's servers.
Functions
Builds a Google Wallet class object map from configuration.
Options
:id- Class ID suffix (required):issuer_name- Issuer name (required):event_name- Title/name for the class (required). Maps to type-specific field:eventNamefor event tickets,programNamefor loyalty,titlefor offers, etc.:pass_type- Pass type atom (optional, defaults to:event_ticket):start_date- Start date as ISO 8601 string (optional):end_date- End date as ISO 8601 string (optional):location_name- Venue name (optional):location_address- Venue address (optional):enable_smart_tap- Enable Smart Tap / NFC for this class (optional, boolean):redemption_issuers- List of redemption issuer IDs authorized for Smart Tap (optional):latitude- Venue latitude (optional):longitude- Venue longitude (optional):logo_uri- Logo image URI (optional)
Builds a Google Wallet pass object map from PassData and Visual.
The object type is determined by pass_data.pass_type.
Creates a pass object on Google's servers.
If the object already exists (409), updates it instead.
The object type is determined by pass_data.pass_type.
Returns {:ok, object_id} on success.
Creates or updates a pass class on Google's servers.
Attempts to update first; falls back to insert on 404.
Pass type defaults to :event_ticket when not specified.
Gets a cached Google OAuth2 access token, refreshing if expired.
Updates an existing pass object on Google's servers.
The object type is determined by pass_data.pass_type.
Returns {:ok, object_id} on success.