-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpass.schema.json
1016 lines (1016 loc) · 40.5 KB
/
pass.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Pass",
"description": "Apple Wallet pass with localizations, NFC and web service push updates support.",
"type": "object",
"definitions": {
"w3cDate": {
"title": "ISO 8601 Date",
"description": "An ISO 8601 formatted date represented as a JSON string.",
"type": "string",
"pattern": "^20[1-9]{2}-[01]\\d-[0-3]\\dT[0-5]\\d:[0-5]\\d(:[0-5]\\d)?(Z|([+-][01]\\d:[03]0)$)"
},
"color": {
"title": "Color",
"description": "CSS-style RGB triple color.",
"type": "string",
"pattern": "^rgba?\\(\\s*(1?\\d{1,2}|2[0-4]\\d|25[0-5])\\s*,\\s*(1?\\d{1,2}|2[0-4]\\d|25[0-5])\\s*,\\s*(1?\\d{1,2}|2[0-4]\\d|25[0-5])\\s*(?:,\\s*([+-]?[\\d.]+)\\s*)?\\)$"
},
"currencyCode": {
"title": "Currency Code",
"description": "ISO 4217 currency code.",
"type": "string",
"pattern": "^[A-Z]{3,3}$"
},
"currencyAmount": {
"title": "Currency Amount",
"description": "An ISO 4217 currency code and an amount.",
"type": "object",
"additionalProperties": false,
"properties": {
"currencyCode": { "$ref": "#/definitions/currencyCode" },
"amount": {
"title": "Amount",
"type": "string"
}
}
},
"personNameComponents": {
"title": "Person Name Components",
"description": "An object that manages the separate parts of a person's name",
"type": "object",
"properties": {
"namePrefix": {
"title": "Name Prefix",
"description": "The portion of a name’s full form of address that precedes the name itself.",
"type": "string",
"examples": ["Dr.", "Mr.", "Ms."]
},
"givenName": {
"title": "Given Name",
"description": "Name bestowed upon an individual to differentiate them from other members of a group that share a family name.",
"type": "string",
"examples": ["Johnathan"]
},
"middleName": {
"title": "Middle Name",
"description": "Secondary name bestowed upon an individual to differentiate them from others that have the same given name.",
"type": "string",
"examples": ["Maple"]
},
"familyName": {
"title": "Family Name",
"description": "Name bestowed upon an individual to denote membership in a group or family.",
"type": "string",
"examples": ["Appleseed"]
},
"nameSuffix": {
"title": "Name Suffix",
"description": "The portion of a name’s full form of address that follows the name itself.",
"type": "string",
"examples": ["Esq.", "Jr.", "Ph.D."]
},
"nickname": {
"title": "Nickname",
"description": "Name substituted for the purposes of familiarity.",
"type": "string",
"examples": ["Johnny"]
},
"phoneticRepresentation": {
"title": "Phonetic Representation",
"description": "The phonetic representation name components of the receiver.",
"type": "object",
"$ref": "#/definitions/personNameComponents",
"not": {
"required": ["phoneticRepresentation"]
}
}
}
},
"seat": {
"title": "Seat",
"description": "A dictionary with seat information",
"type": "object",
"properties": {
"seatSection": {
"type": "string"
},
"seatRow": {
"type": "string"
},
"seatNumber": {
"type": "string"
},
"seatIdentifier": {
"type": "string"
},
"seatType": {
"type": "string"
},
"seatDescription": {
"type": "string"
}
}
},
"field": {
"title": "Field",
"description": "Keys that define an individual field.",
"type": "object",
"additionalProperties": false,
"properties": {
"attributedValue": {
"title": "Attributed Value",
"description": "Attributed value of the field.\nThe value may contain HTML markup for links. Only the <a> tag and its href attribute are supported. This key’s value overrides the text specified by the value key.\nAvailable in iOS 7.0.",
"anyOf": [
{ "type": "number" },
{ "type": "string" },
{ "$ref": "#/definitions/w3cDate" }
],
"examples": [
"<a href='http://example.com/customers/123'>Edit my profile</a>"
]
},
"changeMessage": {
"title": "Change Message",
"description": "Format string for the alert text that is displayed when the pass is updated. The format string must contain the escape %@, which is replaced with the field’s new value. If you don’t specify a change message, the user isn’t notified when the field changes.\nLocalizable.",
"type": "string",
"examples": ["Gate changed to %@."]
},
"dataDetectorTypes": {
"title": "Data Detector Types",
"description": "Data detectors that are applied to the field’s value. Provide an empty array to use no data detectors. Data detectors are applied only to back fields.",
"type": "array",
"uniqueItems": true,
"items": {
"anyOf": [
{ "const": "PKDataDetectorTypePhoneNumber" },
{ "const": "PKDataDetectorTypeLink" },
{ "const": "PKDataDetectorTypeAddress" },
{ "const": "PKDataDetectorTypeCalendarEvent" }
]
},
"default": [
"PKDataDetectorTypePhoneNumber",
"PKDataDetectorTypeLink",
"PKDataDetectorTypeAddress",
"PKDataDetectorTypeCalendarEvent"
]
},
"key": {
"title": "Key",
"description": "The key must be unique within the scope of the entire pass.",
"type": "string",
"examples": ["departure-gate."]
},
"label": {
"title": "Label",
"description": "Label text for the field.\nLocalizable.",
"type": "string"
},
"textAlignment": {
"title": "Text Alignment",
"description": "Alignment for the field’s contents.\nThis key is not allowed for primary fields or back fields.",
"type": "string",
"enum": [
"PKTextAlignmentLeft",
"PKTextAlignmentCenter",
"PKTextAlignmentRight",
"PKTextAlignmentNatural"
],
"default": "PKTextAlignmentNatural"
},
"value": {
"title": "Value",
"description": "Value of the field",
"anyOf": [
{ "type": "number" },
{ "type": "string" },
{
"$ref": "#/definitions/w3cDate"
}
],
"examples": [42]
},
"dateStyle": {
"title": "Date Style",
"description": "Style of date to display.",
"type": "string",
"enum": [
"PKDateStyleNone",
"PKDateStyleShort",
"PKDateStyleMedium",
"PKDateStyleLong",
"PKDateStyleFull"
]
},
"ignoresTimeZone": {
"title": "Ignores Time Zone",
"description": "Always display the time and date in the given time zone, not in the user’s current time zone.\nThe format for a date and time always requires a time zone, even if it will be ignored. For backward compatibility with iOS 6, provide an appropriate time zone, so that the information is displayed meaningfully even without ignoring time zones.\nThis key does not affect how relevance is calculated.\nAvailable in iOS 7.0.",
"type": "boolean",
"default": false
},
"isRelative": {
"title": "Is Relative",
"description": "If true, the label’s value is displayed as a relative date; otherwise, it is displayed as an absolute date.\nThis key does not affect how relevance is calculated.",
"type": "boolean",
"default": false
},
"timeStyle": {
"title": "Time Style",
"description": "Style of time to display.",
"type": "string",
"enum": [
"PKDateStyleNone",
"PKDateStyleShort",
"PKDateStyleMedium",
"PKDateStyleLong",
"PKDateStyleFull"
]
},
"currencyCode": {
"$ref": "#/definitions/currencyCode"
},
"numberStyle": {
"title": "Number Style",
"description": "Style of number to display. Number styles have the same meaning as the Cocoa number formatter styles with corresponding names. See https://developer.apple.com/documentation/foundation/nsnumberformatterstyle",
"type": "string",
"enum": [
"PKNumberStyleDecimal",
"PKNumberStylePercent",
"PKNumberStyleScientific",
"PKNumberStyleSpellOut"
]
},
"semantics": {
"title": "Semantics",
"description": "Machine-readable metadata to allow the system to offer Wallet passes to users intelligently.",
"$comment": "All semantic data is optional and different semantic fields can be placed in auxiliary, primary, secondary, header or back fields.",
"type": "object",
"properties": {
"totalPrice": {
"title": "Total Price",
"description": "The total price for the pass.",
"$ref": "#/definitions/currencyAmount"
},
"duration": {
"title": "Duration",
"description": "The duration of the event or transit journey, in seconds.",
"type": "number"
},
"seats": {
"title": "Seats",
"description": "Seating details for all seats at the event or transit journey.",
"type": "array",
"items": {
"$ref": "#/definitions/seat"
}
},
"silenceRequested": {
"title": "Silence Requested",
"description": "Request the user's device to remain silent during a the event or transit journey. This key may not be honored and the system will determine the length of the silence period.",
"type": "boolean"
},
"departureLocation": {
"title": "Departure Location",
"description": "The geographic coordinates of the transit departure, suitable to be shown on a map. If possible, precise locations are more useful to travelers, such as the specific location of the gate at an airport.",
"$ref": "#/definitions/location"
},
"departureLocationDescription": {
"title": "Departure Location Description",
"description": "A brief description of the departure location.",
"type": "string",
"examples": ["San Francisco"]
},
"destinationLocation": {
"title": "Destination Location",
"description": "The geographic coordinates of the transit destination, suitable to be shown on a map.",
"$ref": "#/definitions/location"
},
"destinationLocationDescription": {
"title": "Destination Location Description",
"description": "A brief description of the destination location.",
"$ref": "#/definitions/location"
},
"transitProvider": {
"title": "Transit Provider",
"description": "The name of the transit company.",
"type": "string"
},
"vehicleName": {
"title": "Vehicle Name",
"description": "The name of the vehicle being boarded, such as the name of a boat.",
"type": "string"
},
"vehicleNumber": {
"title": "Vehicle Number",
"description": "The identifier of the vehicle being boarded, such as the aircraft registration number or train number.",
"type": "string"
},
"vehicleType": {
"title": "Vehicle Type",
"description": "A brief description of the type of vehicle being boarded, such as the model and manufacturer of a plane or the class of a boat.",
"type": "string"
},
"originalDepartureDate": {
"title": "Original Departure Date",
"description": "The original scheduled date and time of departure.",
"$ref": "#/definitions/w3cDate"
},
"currentDepartureDate": {
"title": "Current Departure Date",
"description": "The updated date and time of departure, if different than the original scheduled date.",
"$ref": "#/definitions/w3cDate"
},
"originalArrivalDate": {
"title": "Original Arrival Date",
"description": "The original scheduled date and time of arrival.",
"$ref": "#/definitions/w3cDate"
},
"currentArrivalDate": {
"title": "Current Arrival Date",
"description": "The updated date and time of arrival, if different than the original scheduled date.",
"$ref": "#/definitions/w3cDate"
},
"originalBoardingDate": {
"title": "Original Boarding Date",
"description": "The original scheduled date and time of boarding.",
"$ref": "#/definitions/w3cDate"
},
"currentBoardingDate": {
"title": "Current Boarding Date",
"description": "The updated date and time of boarding, if different than the original scheduled date.",
"$ref": "#/definitions/w3cDate"
},
"boardingGroup": {
"title": "Boarding Group",
"description": "A group number for boarding.",
"type": "string"
},
"boardingSequenceNumber": {
"title": "Boarding Sequence Number",
"description": "A sequence number for boarding.",
"type": "string"
},
"confirmationNumber": {
"title": "Confirmation Number",
"description": "A booking or reservation confirmation number.",
"type": "string"
},
"transitStatus": {
"title": "Transit Status",
"description": "A brief description of the current status of the vessel being boarded. For delayed statuses, provide currentBoardingDate, currentDepartureDate, and currentArrivalDate where available.",
"type": "string",
"examples": ["On Time", "Delayed"]
},
"transitStatusReason": {
"title": "Transit Status Reason",
"description": "A brief description explaining the reason for the current transitStatus",
"type": "string",
"examples": ["Thunderstorms"]
},
"passengerName": {
"title": "Passenger Name",
"description": "The passenger's name.",
"$ref": "#/definitions/personNameComponents"
},
"membershipProgramName": {
"title": "Membership Program Name",
"description": "The name of a frequent flyer or loyalty program.",
"type": "string"
},
"membershipProgramNumber": {
"title": "Membership Program Number",
"description": "The ticketed passenger's frequent flyer or loyalty number.",
"type": "string"
},
"priorityStatus": {
"title": "Priority Status",
"description": "he priority status held by the ticketed passenger",
"type": "string",
"examples": ["Gold", "Silver"]
},
"securityScreening": {
"title": "Security Screening",
"description": " The type of security screening that the ticketed passenger will be subject to, such as 'Priority'.",
"type": "string"
},
"flightCode": {
"title": "Flight Code",
"description": "The IATA flight code",
"type": "string",
"examples": ["EX123"]
},
"airlineCode": {
"title": "The IATA airline code",
"description": "The IATA airline code, such as 'EX' for flightCode 'EX123'.",
"type": "string",
"examples": ["EX"]
},
"flightNumber": {
"title": "Flight Number",
"description": "The numeric portion of the IATA flightCode, such as 123 for flightCode 'EX123'",
"type": "number",
"examples": [123]
},
"departureAirportCode": {
"title": "Departure Airport Code",
"description": "The IATA airport code for the departure airport.",
"type": "string",
"examples": ["SFO", "SJC"]
},
"departureAirportName": {
"title": "Departure Airport Name",
"description": "The full name of the departure airport",
"type": "string",
"examples": ["San Francisco International Airport"]
},
"departureTerminal": {
"title": "Departure Terminal",
"description": "The terminal name or letter of the departure terminal, such as 'A'. Do not include the word 'Terminal'",
"type": "string",
"examples": ["A"]
},
"departureGate": {
"title": "Departure Gate",
"description": "The gate number or letters of the departure gate, such as '1A'. Do not include the word 'Gate'.",
"type": "string",
"examples": ["1A"]
},
"destinationAirportCode": {
"title": "Destination Airport Code",
"description": "The IATA airport code for the destination airport.",
"type": "string",
"examples": ["SFO", "SJC"]
},
"destinationAirportName": {
"title": "Destination Airport Name",
"description": "The full name of the destination airport",
"type": "string",
"examples": ["San Francisco International Airport"]
},
"destinationTerminal": {
"title": "Destination Terminal",
"description": "The terminal name or letter of the destination terminal, such as 'A'. Do not include the word 'Terminal'",
"type": "string",
"examples": ["A"]
},
"destinationGate": {
"title": "Destination Gate",
"description": "The gate number or letters of the destination gate, such as '1A'. Do not include the word 'Gate'.",
"type": "string",
"examples": ["1A"]
},
"departurePlatform": {
"title": "Departure Platform",
"description": "The name of the departure platform, such as 'A'. Do not include the word 'Platform'.",
"type": "string",
"examples": ["A"]
},
"departureStationName": {
"title": "Departure Station Name",
"description": "The name of the departure station.",
"type": "string",
"examples": ["1st Street Station"]
},
"destinationPlatform": {
"title": "Destination Platform",
"description": "The name of the destination platform, such as 'A'. Do not include the word 'Platform'.",
"type": "string",
"examples": ["A"]
},
"destinationStationName": {
"title": "Destination Station Name",
"description": "The name of the destination station.",
"type": "string",
"examples": ["1st Street Station"]
},
"carNumber": {
"title": "Car Number",
"description": "The car number.",
"type": "string"
},
"eventName": {
"title": "Event Name",
"description": "The full name for the event, such as the title of a movie.",
"type": "string"
},
"venueName": {
"title": "Venue Name",
"description": "The full name of the venue.",
"type": "string"
},
"venueLocation": {
"title": "Venue Location",
"description": "The geographic coordinates of the venue.",
"$ref": "#/definitions/location"
},
"venueEntrance": {
"title": "Venue Entrance",
"description": "The full name of the entrance to use to gain access to the ticketed event.",
"type": "string",
"examples": ["Gate A"]
},
"venuePhoneNumber": {
"title": "Venue Phone Number",
"description": "The phone number for enquiries about the venue's ticketed event.",
"type": "string"
},
"venueRoom": {
"title": "Venue Room",
"description": "The full name of the room where the ticketed event is taking place.",
"type": "string"
},
"eventType": {
"title": "Event Type",
"description": "The event type.",
"type": "string",
"enum": [
"PKEventTypeGeneric",
"PKEventTypeLivePerformance",
"PKEventTypeMovie",
"PKEventTypeSports",
"PKEventTypeConference",
"PKEventTypeConvention",
"PKEventTypeWorkshop",
"PKEventTypeSocialGathering"
]
},
"eventStartDate": {
"title": "Event Start Date",
"description": "The date and time the event starts.",
"$ref": "#/definitions/w3cDate"
},
"eventEndDate": {
"title": "Event End Date",
"description": "The date and time the event ends.",
"$ref": "#/definitions/w3cDate"
},
"artistIDs": {
"title": "Artist IDs",
"description": "The Adam IDs for the artists performing, in decreasing order of significance.",
"type": "array",
"items": {
"type": "string"
}
},
"performerNames": {
"title": "Performer Names",
"description": "The full names of the performers and opening acts, in decreasing order of significance.",
"type": "array",
"items": {
"type": "string"
}
},
"genre": {
"title": "Genre",
"description": "The genre of the performance.",
"type": "string"
},
"leagueName": {
"title": "League Name",
"description": "he unabbreviated league name for a sporting event.",
"type": "string"
},
"leagueAbbreviation": {
"title": "League Abbreviation",
"description": "The abbreviated league name for a sporting event.",
"type": "string"
},
"homeTeamLocation": {
"title": "Home Team Location",
"description": "The home location of the home team.",
"type": "string"
},
"homeTeamName": {
"title": "Home Team Name",
"description": "The name of the home team.",
"type": "string"
},
"homeTeamAbbreviation": {
"title": "Home Team Abbreviation",
"description": "The unique abbreviation of the home team's name.",
"type": "string"
},
"awayTeamLocation": {
"title": "Away Team Location",
"description": "The home location of the away team.",
"type": "string"
},
"awayTeamName": {
"title": "Away Team Name",
"description": "The name of the away team.",
"type": "string"
},
"awayTeamAbbreviation": {
"title": "Away Team Abbreviation",
"description": "The unique abbreviation of the away team's name.",
"type": "string"
},
"sportName": {
"title": "Sport Name",
"description": "The commonly used local name of the sport.",
"type": "string"
},
"balance": {
"title": "Balance",
"description": "The balance redeemable with the pass.",
"$ref": "#/definitions/currencyAmount"
}
}
}
},
"required": ["key", "value"]
},
"numericArray": {
"type": "array",
"items": {
"type": "number"
}
},
"transitTypeNotRequired": {
"not": {
"required": ["transitType"]
}
},
"groupingIdentifierNotRequired": {
"not": {
"required": ["groupingIdentifier"]
}
},
"beacon": {
"title": "Beacon",
"description": "Information about a location beacon.",
"type": "object",
"additionalProperties": false,
"properties": {
"major": {
"title": "Major",
"description": "Major identifier of a Bluetooth Low Energy location beacon.",
"type": "integer",
"minimum": 0,
"maximum": 65535,
"$comment": "16-bit unsigned integer"
},
"minor": {
"title": "Minor",
"description": "Minor identifier of a Bluetooth Low Energy location beacon.",
"type": "integer",
"minimum": 0,
"maximum": 65535,
"$comment": "16-bit unsigned integer"
},
"proximityUUID": {
"title": "Proximity UUID",
"description": "Unique identifier of a Bluetooth Low Energy location beacon.",
"type": "string"
},
"relevantText": {
"title": "Relevant Text",
"description": "Text displayed on the lock screen when the pass is currently relevant.",
"type": "string",
"examples": ["Store nearby on 1st and Main."]
}
},
"required": ["proximityUUID"]
},
"location": {
"title": "Location",
"description": "Information about a location.",
"type": "object",
"additionalProperties": false,
"properties": {
"altitude": {
"title": "Altitude",
"description": "Altitude, in meters, of the location.",
"type": "number"
},
"latitude": {
"title": "Latitude",
"description": "Latitude, in degrees, of the location.",
"type": "number",
"minimum": -90,
"maximum": 90
},
"longitude": {
"title": "Longitude",
"description": "Longitude, in degrees, of the location.",
"type": "number",
"minimum": -180,
"maximum": 180
},
"relevantText": {
"title": "Relevant Text",
"description": "Text displayed on the lock screen when the pass is currently relevant.",
"type": "string",
"examples": ["Store nearby on 1st and Main."]
}
},
"required": ["latitude", "longitude"]
},
"passStructure": {
"title": "Pass Structure",
"description": "Keys that define the structure of the pass.\nThese keys are used for all pass styles and partition the fields into the various parts of the pass.",
"type": "object",
"properties": {
"auxiliaryFields": {
"title": "Auxiliary Fields",
"description": "Additional fields to be displayed on the front of the pass.",
"type": "array",
"items": {
"$ref": "#/definitions/field"
}
},
"backFields": {
"title": "Back Fields",
"description": "Fields to be on the back of the pass.",
"type": "array",
"items": {
"$ref": "#/definitions/field"
}
},
"headerFields": {
"title": "Header Fields",
"description": "Fields to be displayed in the header on the front of the pass.Use header fields sparingly; unlike all other fields, they remain visible when a stack of passes are displayed.",
"type": "array",
"items": {
"$ref": "#/definitions/field"
}
},
"primaryFields": {
"title": "Primary Fields",
"description": "Fields to be displayed prominently on the front of the pass.",
"type": "array",
"items": {
"$ref": "#/definitions/field"
}
},
"secondaryFields": {
"title": "Secondary Fields",
"description": "Fields to be displayed on the front of the pass.",
"type": "array",
"items": {
"$ref": "#/definitions/field"
}
},
"transitType": {
"title": "Transit Type",
"description": "Type of transit.",
"type": "string",
"enum": [
"PKTransitTypeAir",
"PKTransitTypeBoat",
"PKTransitTypeBus",
"PKTransitTypeGeneric",
"PKTransitTypeTrain"
]
}
}
},
"barcode": {
"title": "Barcode",
"description": "Information about a pass’s barcode.",
"type": "object",
"additionalProperties": false,
"properties": {
"altText": {
"title": "Alternative Text",
"description": "Text displayed near the barcode. For example, a human-readable version of the barcode data in case the barcode doesn’t scan.",
"type": "string"
},
"format": {
"title": "Format",
"description": "Barcode format. PKBarcodeFormatCode128 may only be used for dictionaries in the barcodes array.",
"type": "string",
"enum": [
"PKBarcodeFormatQR",
"PKBarcodeFormatPDF417",
"PKBarcodeFormatAztec",
"PKBarcodeFormatCode128"
]
},
"message": {
"title": "Message",
"description": "Message or payload to be displayed as a barcode.",
"type": "string"
},
"messageEncoding": {
"title": "Message Encoding",
"description": "Text encoding that is used to convert the message from the string representation to a data representation to render the barcode. The value is typically iso-8859-1, but you may use another encoding that is supported by your barcode scanning infrastructure.",
"type": "string"
}
},
"required": ["format", "message", "messageEncoding"]
},
"nfc": {
"title": "NFC",
"description": "Information about the NFC payload passed to an Apple Pay terminal.",
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"title": "Message",
"description": "The payload to be transmitted to the Apple Pay terminal. Must be 64 bytes or less. Messages longer than 64 bytes are truncated by the system.",
"type": "string"
},
"encryptionPublicKey": {
"title": "Encryption Public Key",
"description": " The public encryption key used by the Value Added Services protocol. Use a Base64 encoded X.509 SubjectPublicKeyInfo structure containing a ECDH public key for group P256.",
"type": "string"
}
},
"required": ["message"]
}
},
"properties": {
"description": {
"title": "Description",
"description": "Brief description of the pass, used by the iOS accessibility technologies.\nDon’t try to include all of the data on the pass in its description, just include enough detail to distinguish passes of the same type.\n Localizable.",
"type": "string"
},
"formatVersion": {
"title": "Format Version",
"description": "Version of the file format.",
"const": 1
},
"organizationName": {
"title": "Organization Name",
"description": "Display name of the organization that originated and signed the pass.\n Localizable.",
"type": "string"
},
"passTypeIdentifier": {
"title": "Pass Type Identifier",
"description": "Pass type identifier, as issued by Apple. The value must correspond with your signing certificate.",
"type": "string"
},
"serialNumber": {
"title": "Serial Number",
"description": "Serial number that uniquely identifies the pass. No two passes with the same pass type identifier may have the same serial number.",
"type": "string"
},
"teamIdentifier": {
"title": "Team Identifier",
"description": "Team identifier of the organization that originated and signed the pass, as issued by Apple.",
"type": "string"
},
"appLaunchURL": {
"title": "App Launch URL",
"description": "A URL to be passed to the associated app when launching it. The app receives this URL in the application:didFinishLaunchingWithOptions: and application:openURL:options: methods of its app delegate.",
"type": "string",
"format": "iri"
},
"associatedStoreIdentifiers": {
"title": "Associated Store Identifiers",
"description": "A list of iTunes Store item identifiers for the associated apps.\nOnly one item in the list is used—the first item identifier for an app compatible with the current device. If the app is not installed, the link opens the App Store and shows the app. If the app is already installed, the link launches the app.",
"$ref": "#/definitions/numericArray"
},
"userInfo": {
"title": "User Info",
"description": "Custom information for companion apps. This data is not displayed to the user.\nFor example, a pass for a cafe could include information about the user’s favorite drink and sandwich in a machine-readable form for the companion app to read, making it easy to place an order for “the usual” from the app.\nAvailable in iOS 7.0.",
"type": "object"
},
"expirationDate": {
"title": "Expiration Date",
"description": "Date and time when the pass expires.\nAvailable in iOS 7.0.",
"$ref": "#/definitions/w3cDate"
},
"voided": {
"title": "Voided",
"description": "Indicates that the pass is void—for example, a one time use coupon that has been redeemed.\nAvailable in iOS 7.0.",
"type": "boolean",
"default": false
},
"beacons": {
"title": "Beacons",
"description": "Beacons marking locations where the pass is relevant.\nAvailable in iOS 7.0.",
"type": "array",
"items": {
"$ref": "#/definitions/beacon"
}
},
"locations": {
"title": "Locations",
"description": "Locations where the pass is relevant. For example, the location of your store.",
"type": "array",
"items": {
"$ref": "#/definitions/location"
}
},
"maxDistance": {
"title": "Maximum Distance",
"description": "Maximum distance in meters from a relevant latitude and longitude that the pass is relevant. This number is compared to the pass’s default distance and the smaller value is used.\nAvailable in iOS 7.0.",
"type": "number"
},
"relevantDate": {
"title": "Relevant Date",
"description": "Date and time when the pass becomes relevant. For example, the start time of a movie.\nRecommended for event tickets and boarding passes.",
"$ref": "#/definitions/w3cDate"
},
"boardingPass": {
"title": "Boarding Pass",
"description": "Information specific to a boarding pass.",
"$ref": "#/definitions/passStructure",
"required": ["transitType"]
},
"coupon": {
"title": "Coupon",
"description": "Information specific to a coupon.",
"$ref": "#/definitions/passStructure",
"anyOf": [{ "$ref": "#/definitions/transitTypeNotRequired" }]
},
"eventTicket": {
"title": "Event Ticket",
"description": "Information specific to an event ticket.",
"$ref": "#/definitions/passStructure",
"anyOf": [{ "$ref": "#/definitions/transitTypeNotRequired" }]
},
"generic": {
"title": "Generic Pass",
"description": "Information specific to a generic pass.",
"$ref": "#/definitions/passStructure",
"anyOf": [{ "$ref": "#/definitions/transitTypeNotRequired" }]
},
"storeCard": {
"title": "Store Card",
"description": "Information specific to a store card.",
"$ref": "#/definitions/passStructure",
"anyOf": [{ "$ref": "#/definitions/transitTypeNotRequired" }]
},
"barcode": {
"title": "Barcode",
"description": "Information specific to the pass’s barcode.\nDeprecated in iOS 9.0 and later; use barcodes instead.",
"$ref": "#/definitions/barcode"
},
"barcodes": {
"title": "Barcodes",
"description": "Information specific to the pass’s barcode. The system uses the first valid barcode dictionary in the array. Additional dictionaries can be added as fallbacks.\nAvailable only in iOS 9.0 and later.",
"type": "array",
"items": {
"$ref": "#/definitions/barcode"
}
},
"backgroundColor": {
"title": "Background Color",
"description": "Background color of the pass, specified as an CSS-style RGB triple.",
"$ref": "#/definitions/color",
"examples": ["rgb(23, 187, 82)"]
},
"foregroundColor": {
"title": "Foreground Color",
"description": "Foreground color of the pass, specified as a CSS-style RGB triple",
"$ref": "#/definitions/color",
"examples": ["rgb(100, 10, 110)"]
},
"groupingIdentifier": {
"title": "Grouping Identifier",
"description": "Identifier used to group related passes. If a grouping identifier is specified, passes with the same style, pass type identifier, and grouping identifier are displayed as a group. Otherwise, passes are grouped automatically.\nUse this to group passes that are tightly related, such as the boarding passes for different connections of the same trip.\nAvailable in iOS 7.0.",
"type": "string"
},
"labelColor": {
"title": "Label Color",
"description": "olor of the label text, specified as a CSS-style RGB triple.\nIf omitted, the label color is determined automatically.",
"$ref": "#/definitions/color",
"examples": ["rgb(255, 255, 255)"]
},
"logoText": {
"title": "Logo Text",
"description": "Text displayed next to the logo on the pass.\nLocalizable.",
"type": "string"
},
"suppressStripShine": {
"title": "Suppress Strip Shine",
"description": "If true, the strip image is displayed without a shine effect. The default value prior to iOS 7.0 is false. In iOS 7.0, a shine effect is never applied, and this key is deprecated.",
"type": "boolean",
"default": false
},
"authenticationToken": {
"title": "Authentication Token",
"description": "The authentication token to use with the web service.",
"type": "string",
"minLength": 16
},
"webServiceURL": {
"title": "Web Service URL",
"description": "The URL of a web service that conforms to the API described in PassKit Web Service Reference. The web service must use the HTTPS protocol; the leading https:// is included in the value of this key. On devices configured for development, there is UI in Settings to allow HTTP web services.",
"type": "string",
"pattern": "^https://"
},
"nfc": {
"title": "NFC",
"description": "Information used for Value Added Service Protocol transactions.\nAvailable in iOS 9.0.",
"$ref": "#/definitions/nfc"