class

PassKit::Pass

Inherits JSON::Serializable < Reference < Object

Constants

APPLE_PASS_FORMAT_VERSION = 1

Constructors

new(pass_type_identifier : String, organization_name : String, serial_number : String, team_identifier : String, description : String, app_launch_url : Nil | String = nil, association_store_identifiers : Nil | Array(Int32) = [] of Int32, user_info : Nil | String = nil, expiration_date : Time | Nil = nil, voided : Bool | Nil = nil, max_distance : Int32 | Nil = nil, relevant_date : Nil | String = nil, barcode : PassKit::Barcode | Nil = nil, background_color : Nil | String = nil, foreground_color : Nil | String = nil, grouping_identifier : Nil | String = nil, label_color : Nil | String = nil, logo_text : Nil | String = nil, suppress_strip_shine : Bool | Nil = nil, authentication_token : Nil | String = nil, web_service_url : Nil | String = nil, type : PassType = PassType::Generic, style : Style | Nil = nil, auxiliary_fields : Array(FieldTuple | Field) | Nil = nil, back_fields : Array(FieldTuple | Field) | Nil = nil, header_fields : Array(FieldTuple | Field) | Nil = nil, primary_fields : Array(FieldTuple | Field) | Nil = nil, secondary_fields : Array(FieldTuple | Field) | Nil = nil, transit_type : String | Nil = nil, locations : Array(LocationTuple | Location) | Nil = nil, barcodes : Array(BarcodeTuple | Barcode) | Nil = nil, beacons : Array(BeaconTuple | Beacon) | Nil = nil, nfc : NFC | NFCTuple | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

app_launch_url
Source
app_launch_url=(app_launch_url : String | Nil)
Source
association_store_identifiers
Source
association_store_identifiers=(association_store_identifiers : Array(Int32) | Nil)
Source
authentication_token
Source
authentication_token=(authentication_token : String | Nil)
Source
background_color
Source
background_color=(background_color : String | Nil)
Source
barcode
Source
barcode=(barcode : PassKit::Barcode | Nil)
Source
barcodes
Source
barcodes=(barcodes : Array(PassKit::Barcode))
Source
beacons
Source
beacons=(beacons : Array(Beacon) | Nil)
Source
boarding_pass
Source
boarding_pass=(boarding_pass : Style | Nil)
Source
coupon
Source
coupon=(coupon : Style | Nil)
Source
description
Source
description=(description : String)
Source
event_ticket
Source
event_ticket=(event_ticket : Style | Nil)
Source
expiration_date

Expiration Keys

Source
expiration_date=(expiration_date : Time | Nil)

Expiration Keys

Source
foreground_color
Source
foreground_color=(foreground_color : String | Nil)
Source
format_version
Source
format_version=(format_version : Int32)
Source
generic
Source
generic=(generic : Style | Nil)
Source
grouping_identifier

TODO - add type validation

Source
grouping_identifier=(grouping_identifier : String | Nil)

TODO - add type validation

Source
label_color
Source
label_color=(label_color : String | Nil)
Source
locations
Source
locations=(locations : Array(Location) | Nil)
Source
logo_text
Source
logo_text=(logo_text : String | Nil)
Source
max_distance
Source
max_distance=(max_distance : Int32 | Nil)
Source
nfc=(nfc : NFC | Nil)
Source
organization_name
Source
organization_name=(organization_name : String)
Source
pass_type_identifier
Source
pass_type_identifier=(pass_type_identifier : String)
Source
relevant_date
Source
relevant_date=(relevant_date : String | Nil)
Source
serial_number
Source
serial_number=(serial_number : String)
Source
store_card
Source
store_card=(store_card : Style | Nil)
Source
suppress_strip_shine
Source
suppress_strip_shine=(suppress_strip_shine : Bool | Nil)
Source
team_identifier
Source
team_identifier=(team_identifier : String)
Source
user_info
Source
user_info=(user_info : String | Nil)
Source
voided
Source
voided=(voided : Bool | Nil)
Source
web_service_url
Source
web_service_url=(web_service_url : String | Nil)
Source