WalletPasses.PassType (wallet_passes v0.4.3)

Copy Markdown View Source

Maps pass type atoms to platform-specific type strings.

Supported pass types: :event_ticket, :boarding_pass, :store_card, :coupon, :generic.

Summary

Functions

Returns all supported pass types.

Returns the Apple pass.json top-level key for the given pass type.

Returns the class ID suffix for Google Wallet (e.g. "flight_class").

Returns the Google Wallet class resource name (e.g. "flightClass").

Returns the Google Wallet object resource name (e.g. "flightObject").

Returns the JWT payload key for Save to Google Wallet (e.g. "flightObjects").

Types

t()

@type t() :: :event_ticket | :boarding_pass | :store_card | :coupon | :generic

Functions

all()

Returns all supported pass types.

apple_style_key(atom)

Returns the Apple pass.json top-level key for the given pass type.

google_class_suffix(atom)

Returns the class ID suffix for Google Wallet (e.g. "flight_class").

google_class_type(atom)

Returns the Google Wallet class resource name (e.g. "flightClass").

google_object_type(atom)

Returns the Google Wallet object resource name (e.g. "flightObject").

google_save_objects_key(atom)

Returns the JWT payload key for Save to Google Wallet (e.g. "flightObjects").