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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
app_launch_url
Sourceapp_launch_url=(app_launch_url : String | Nil)
Sourceassociation_store_identifiers
Sourceassociation_store_identifiers=(association_store_identifiers : Array(Int32) | Nil)
Sourceauthentication_token
Sourceauthentication_token=(authentication_token : String | Nil)
Sourcebackground_color
Sourcebackground_color=(background_color : String | Nil)
Sourcebarcode
Sourcebarcodes
Sourcebeacons
Sourcebeacons=(beacons : Array(Beacon) | Nil)
Sourceboarding_pass
Sourceboarding_pass=(boarding_pass : Style | Nil)
Sourcecoupon
Sourcecoupon=(coupon : Style | Nil)
Sourcedescription
Sourcedescription=(description : String)
Sourceevent_ticket
Sourceevent_ticket=(event_ticket : Style | Nil)
Sourceforeground_color
Sourceforeground_color=(foreground_color : String | Nil)
Sourceformat_version
Sourceformat_version=(format_version : Int32)
Sourcegeneric
Sourcegeneric=(generic : Style | Nil)
Sourcelabel_color
Sourcelabel_color=(label_color : String | Nil)
Sourcelocations
Sourcelocations=(locations : Array(Location) | Nil)
Sourcelogo_text
Sourcelogo_text=(logo_text : String | Nil)
Sourcemax_distance
Sourcemax_distance=(max_distance : Int32 | Nil)
Sourcenfc
Sourcenfc=(nfc : NFC | Nil)
Sourceorganization_name
Sourceorganization_name=(organization_name : String)
Sourcepass_type_identifier
Sourcepass_type_identifier=(pass_type_identifier : String)
Sourcerelevant_date
Sourcerelevant_date=(relevant_date : String | Nil)
Sourceserial_number
Sourceserial_number=(serial_number : String)
Sourcestore_card
Sourcestore_card=(store_card : Style | Nil)
Sourcesuppress_strip_shine
Sourcesuppress_strip_shine=(suppress_strip_shine : Bool | Nil)
Sourceteam_identifier
Sourceteam_identifier=(team_identifier : String)
Sourceuser_info
Sourceuser_info=(user_info : String | Nil)
Sourcevoided
Sourcevoided=(voided : Bool | Nil)
Sourceweb_service_url
Sourceweb_service_url=(web_service_url : String | Nil)
Source