@@ -3,7 +3,7 @@ public enum PassJSON {
3
3
/// A protocol that defines the structure of a `pass.json` file.
4
4
///
5
5
/// > Tip: See the [`Pass`](https://developer.apple.com/documentation/walletpasses/pass) object to understand the keys.
6
- public protocol Properties : Codable , Sendable {
6
+ public protocol Properties : Encodable , Sendable {
7
7
/// A short description that iOS accessibility technologies use for a pass.
8
8
var description : String { get }
9
9
@@ -34,7 +34,7 @@ extension PassJSON {
34
34
/// A protocol that represents the information to display in a field on a pass.
35
35
///
36
36
/// > Tip: See the [`PassFieldContent`](https://developer.apple.com/documentation/walletpasses/passfieldcontent) object to understand the keys.
37
- public protocol PassFieldContent : Codable , Sendable {
37
+ public protocol PassFieldContent : Encodable , Sendable {
38
38
/// A unique key that identifies a field in the pass; for example, `departure-gate`.
39
39
var key : String { get }
40
40
@@ -49,7 +49,7 @@ extension PassJSON {
49
49
/// A protocol that represents the groups of fields that display the information for a boarding pass.
50
50
///
51
51
/// > Tip: See the [`Pass.BoardingPass`](https://developer.apple.com/documentation/walletpasses/pass/boardingpass) object to understand the keys.
52
- public protocol BoardingPass : Codable , Sendable {
52
+ public protocol BoardingPass : Encodable , Sendable {
53
53
/// The type of transit for a boarding pass.
54
54
///
55
55
/// This key is invalid for other types of passes.
@@ -64,7 +64,7 @@ extension PassJSON {
64
64
/// A protocol that represents a barcode on a pass.
65
65
///
66
66
/// > Tip: See the [`Pass.Barcodes`](https://developer.apple.com/documentation/walletpasses/pass/barcodes) object to understand the keys.
67
- public protocol Barcodes : Codable , Sendable {
67
+ public protocol Barcodes : Encodable , Sendable {
68
68
/// The format of the barcode.
69
69
///
70
70
/// The barcode format `PKBarcodeFormatCode128` isn’t supported for watchOS.
@@ -83,7 +83,7 @@ extension PassJSON {
83
83
/// A protocol that represents a location that the system uses to show a relevant pass.
84
84
///
85
85
/// > Tip: See the [`Pass.Locations`](https://developer.apple.com/documentation/walletpasses/pass/locations) object to understand the keys.
86
- public protocol Locations : Codable , Sendable {
86
+ public protocol Locations : Encodable , Sendable {
87
87
/// The latitude, in degrees, of the location.
88
88
var latitude : Double { get }
89
89
@@ -96,7 +96,7 @@ extension PassJSON {
96
96
/// An object that represents the near-field communication (NFC) payload the device passes to an Apple Pay terminal.
97
97
///
98
98
/// > Tip: See the [`Pass.NFC`](https://developer.apple.com/documentation/walletpasses/pass/nfc) object to understand the keys.
99
- public protocol NFC : Codable , Sendable {
99
+ public protocol NFC : Encodable , Sendable {
100
100
/// The payload the device transmits to the Apple Pay terminal.
101
101
///
102
102
/// The size must be no more than 64 bytes.
0 commit comments