@@ -74,6 +74,9 @@ public struct InPlayerItem : Codable {
74
74
/// Age Restriction object
75
75
public let ageRestriction : InPlayerAgeRestriction ?
76
76
77
+ /// List of access fees
78
+ public let accessFees : [ InPlayerAccessFee ] ?
79
+
77
80
/// Object containing additional information about the item
78
81
public let metadata : [ InPlayerItemMetadata ] ?
79
82
@@ -107,6 +110,7 @@ public struct InPlayerItem : Codable {
107
110
case content = " content "
108
111
case templateId = " template_id "
109
112
case ageRestriction = " age_restriction "
113
+ case accessFees = " access_fees "
110
114
}
111
115
112
116
/// Decoder method
@@ -127,6 +131,7 @@ public struct InPlayerItem : Codable {
127
131
templateId = try values. decodeIfPresent ( Int . self, forKey: . templateId)
128
132
ageRestriction = try values. decodeIfPresent ( InPlayerAgeRestriction . self, forKey: . ageRestriction)
129
133
active = try values. decodeIfPresent ( Bool . self, forKey: . active)
134
+ accessFees = try values. decodeIfPresent ( [ InPlayerAccessFee ] . self, forKey: . accessFees)
130
135
}
131
136
132
137
/// Encoder method
@@ -147,6 +152,7 @@ public struct InPlayerItem : Codable {
147
152
try values. encodeIfPresent ( templateId, forKey: . templateId)
148
153
try values. encodeIfPresent ( ageRestriction, forKey: . ageRestriction)
149
154
try values. encodeIfPresent ( active, forKey: . active)
155
+ try values. encodeIfPresent ( accessFees, forKey: . accessFees)
150
156
}
151
157
152
158
/// Method that return parsed content as enum with associated values
0 commit comments