class PassKit::Pass
- PassKit::Pass
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
models/pass.crConstant Summary
-
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)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #app_launch_url : String | Nil
- #app_launch_url=(app_launch_url : String | Nil)
- #association_store_identifiers : Array(Int32) | Nil
- #association_store_identifiers=(association_store_identifiers : Array(Int32) | Nil)
- #authentication_token : String | Nil
- #authentication_token=(authentication_token : String | Nil)
- #background_color : String | Nil
- #background_color=(background_color : String | Nil)
- #barcode : PassKit::Barcode | Nil
- #barcode=(barcode : PassKit::Barcode | Nil)
- #barcodes : Array(PassKit::Barcode)
- #barcodes=(barcodes : Array(PassKit::Barcode))
- #beacons : Array(Beacon) | Nil
- #beacons=(beacons : Array(Beacon) | Nil)
- #boarding_pass : Style | Nil
- #boarding_pass=(boarding_pass : Style | Nil)
- #coupon : Style | Nil
- #coupon=(coupon : Style | Nil)
- #description : String
- #description=(description : String)
- #event_ticket : Style | Nil
- #event_ticket=(event_ticket : Style | Nil)
- #expiration_date : Time | Nil
- #expiration_date=(expiration_date : Time | Nil)
- #foreground_color : String | Nil
- #foreground_color=(foreground_color : String | Nil)
- #format_version : Int32
- #format_version=(format_version : Int32)
- #generic : Style | Nil
- #generic=(generic : Style | Nil)
- #grouping_identifier : String | Nil
- #grouping_identifier=(grouping_identifier : String | Nil)
- #label_color : String | Nil
- #label_color=(label_color : String | Nil)
- #locations : Array(Location) | Nil
- #locations=(locations : Array(Location) | Nil)
- #logo_text : String | Nil
- #logo_text=(logo_text : String | Nil)
- #max_distance : Int32 | Nil
- #max_distance=(max_distance : Int32 | Nil)
- #nfc : NFC | Nil
- #nfc=(nfc : NFC | Nil)
- #organization_name : String
- #organization_name=(organization_name : String)
- #pass_type_identifier : String
- #pass_type_identifier=(pass_type_identifier : String)
- #relevant_date : String | Nil
- #relevant_date=(relevant_date : String | Nil)
- #serial_number : String
- #serial_number=(serial_number : String)
- #store_card : Style | Nil
- #store_card=(store_card : Style | Nil)
- #suppress_strip_shine : Bool | Nil
- #suppress_strip_shine=(suppress_strip_shine : Bool | Nil)
- #team_identifier : String
- #team_identifier=(team_identifier : String)
- #user_info : String | Nil
- #user_info=(user_info : String | Nil)
- #voided : Bool | Nil
- #voided=(voided : Bool | Nil)
- #web_service_url : String | Nil
- #web_service_url=(web_service_url : String | Nil)
Constructor Detail
def self.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)
#
Instance Method Detail
def association_store_identifiers=(association_store_identifiers : Array(Int32) | Nil)
#