@@ -24,16 +24,14 @@ public struct App: Codable, Identifiable {
24
24
public var subscriptionStatusURLVersion : SubscriptionStatusURLVersion ?
25
25
public var subscriptionStatusURLForSandbox : URL ?
26
26
public var subscriptionStatusURLVersionForSandbox : SubscriptionStatusURLVersion ?
27
- /// - warning: Deprecated.
28
- public var isAvailableInNewTerritories : Bool ?
29
27
public var contentRightsDeclaration : ContentRightsDeclaration ?
30
28
31
29
public enum ContentRightsDeclaration : String , Codable , CaseIterable {
32
30
case doesNotUseThirdPartyContent = " DOES_NOT_USE_THIRD_PARTY_CONTENT "
33
31
case usesThirdPartyContent = " USES_THIRD_PARTY_CONTENT "
34
32
}
35
33
36
- public init ( name: String ? = nil , bundleID: String ? = nil , sku: String ? = nil , primaryLocale: String ? = nil , isOrEverWasMadeForKids: Bool ? = nil , subscriptionStatusURL: URL ? = nil , subscriptionStatusURLVersion: SubscriptionStatusURLVersion ? = nil , subscriptionStatusURLForSandbox: URL ? = nil , subscriptionStatusURLVersionForSandbox: SubscriptionStatusURLVersion ? = nil , isAvailableInNewTerritories : Bool ? = nil , contentRightsDeclaration: ContentRightsDeclaration ? = nil ) {
34
+ public init ( name: String ? = nil , bundleID: String ? = nil , sku: String ? = nil , primaryLocale: String ? = nil , isOrEverWasMadeForKids: Bool ? = nil , subscriptionStatusURL: URL ? = nil , subscriptionStatusURLVersion: SubscriptionStatusURLVersion ? = nil , subscriptionStatusURLForSandbox: URL ? = nil , subscriptionStatusURLVersionForSandbox: SubscriptionStatusURLVersion ? = nil , contentRightsDeclaration: ContentRightsDeclaration ? = nil ) {
37
35
self . name = name
38
36
self . bundleID = bundleID
39
37
self . sku = sku
@@ -43,7 +41,6 @@ public struct App: Codable, Identifiable {
43
41
self . subscriptionStatusURLVersion = subscriptionStatusURLVersion
44
42
self . subscriptionStatusURLForSandbox = subscriptionStatusURLForSandbox
45
43
self . subscriptionStatusURLVersionForSandbox = subscriptionStatusURLVersionForSandbox
46
- self . isAvailableInNewTerritories = isAvailableInNewTerritories
47
44
self . contentRightsDeclaration = contentRightsDeclaration
48
45
}
49
46
@@ -58,7 +55,6 @@ public struct App: Codable, Identifiable {
58
55
self . subscriptionStatusURLVersion = try values. decodeIfPresent ( SubscriptionStatusURLVersion . self, forKey: " subscriptionStatusUrlVersion " )
59
56
self . subscriptionStatusURLForSandbox = try values. decodeIfPresent ( URL . self, forKey: " subscriptionStatusUrlForSandbox " )
60
57
self . subscriptionStatusURLVersionForSandbox = try values. decodeIfPresent ( SubscriptionStatusURLVersion . self, forKey: " subscriptionStatusUrlVersionForSandbox " )
61
- self . isAvailableInNewTerritories = try values. decodeIfPresent ( Bool . self, forKey: " availableInNewTerritories " )
62
58
self . contentRightsDeclaration = try values. decodeIfPresent ( ContentRightsDeclaration . self, forKey: " contentRightsDeclaration " )
63
59
}
64
60
@@ -73,7 +69,6 @@ public struct App: Codable, Identifiable {
73
69
try values. encodeIfPresent ( subscriptionStatusURLVersion, forKey: " subscriptionStatusUrlVersion " )
74
70
try values. encodeIfPresent ( subscriptionStatusURLForSandbox, forKey: " subscriptionStatusUrlForSandbox " )
75
71
try values. encodeIfPresent ( subscriptionStatusURLVersionForSandbox, forKey: " subscriptionStatusUrlVersionForSandbox " )
76
- try values. encodeIfPresent ( isAvailableInNewTerritories, forKey: " availableInNewTerritories " )
77
72
try values. encodeIfPresent ( contentRightsDeclaration, forKey: " contentRightsDeclaration " )
78
73
}
79
74
}
@@ -93,10 +88,6 @@ public struct App: Codable, Identifiable {
93
88
public var endUserLicenseAgreement : EndUserLicenseAgreement ?
94
89
public var preOrder : PreOrder ?
95
90
/// - warning: Deprecated.
96
- public var prices : Prices ?
97
- /// - warning: Deprecated.
98
- public var availableTerritories : AvailableTerritories ?
99
- /// - warning: Deprecated.
100
91
public var inAppPurchases : InAppPurchases ?
101
92
public var subscriptionGroups : SubscriptionGroups ?
102
93
public var gameCenterEnabledVersions : GameCenterEnabledVersions ?
@@ -1051,156 +1042,6 @@ public struct App: Codable, Identifiable {
1051
1042
}
1052
1043
}
1053
1044
1054
- @available ( * , deprecated, message: " Deprecated " )
1055
- public struct Prices : Codable {
1056
- public var links : Links ?
1057
- public var meta : PagingInformation ?
1058
- public var data : [ Datum ] ?
1059
-
1060
- public struct Links : Codable {
1061
- public var this : String ?
1062
- public var related : String ?
1063
-
1064
- public init ( this: String ? = nil , related: String ? = nil ) {
1065
- self . this = this
1066
- self . related = related
1067
- }
1068
-
1069
- public init ( from decoder: Decoder ) throws {
1070
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1071
- self . this = try values. decodeIfPresent ( String . self, forKey: " self " )
1072
- self . related = try values. decodeIfPresent ( String . self, forKey: " related " )
1073
- }
1074
-
1075
- public func encode( to encoder: Encoder ) throws {
1076
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1077
- try values. encodeIfPresent ( this, forKey: " self " )
1078
- try values. encodeIfPresent ( related, forKey: " related " )
1079
- }
1080
- }
1081
-
1082
- public struct Datum : Codable , Identifiable {
1083
- public var type : `Type`
1084
- public var id : String
1085
-
1086
- public enum `Type` : String , Codable , CaseIterable {
1087
- case appPrices
1088
- }
1089
-
1090
- public init ( type: `Type` , id: String ) {
1091
- self . type = type
1092
- self . id = id
1093
- }
1094
-
1095
- public init ( from decoder: Decoder ) throws {
1096
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1097
- self . type = try values. decode ( `Type`. self, forKey: " type " )
1098
- self . id = try values. decode ( String . self, forKey: " id " )
1099
- }
1100
-
1101
- public func encode( to encoder: Encoder ) throws {
1102
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1103
- try values. encode ( type, forKey: " type " )
1104
- try values. encode ( id, forKey: " id " )
1105
- }
1106
- }
1107
-
1108
- public init ( links: Links ? = nil , meta: PagingInformation ? = nil , data: [ Datum ] ? = nil ) {
1109
- self . links = links
1110
- self . meta = meta
1111
- self . data = data
1112
- }
1113
-
1114
- public init ( from decoder: Decoder ) throws {
1115
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1116
- self . links = try values. decodeIfPresent ( Links . self, forKey: " links " )
1117
- self . meta = try values. decodeIfPresent ( PagingInformation . self, forKey: " meta " )
1118
- self . data = try values. decodeIfPresent ( [ Datum ] . self, forKey: " data " )
1119
- }
1120
-
1121
- public func encode( to encoder: Encoder ) throws {
1122
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1123
- try values. encodeIfPresent ( links, forKey: " links " )
1124
- try values. encodeIfPresent ( meta, forKey: " meta " )
1125
- try values. encodeIfPresent ( data, forKey: " data " )
1126
- }
1127
- }
1128
-
1129
- @available ( * , deprecated, message: " Deprecated " )
1130
- public struct AvailableTerritories : Codable {
1131
- public var links : Links ?
1132
- public var meta : PagingInformation ?
1133
- public var data : [ Datum ] ?
1134
-
1135
- public struct Links : Codable {
1136
- public var this : String ?
1137
- public var related : String ?
1138
-
1139
- public init ( this: String ? = nil , related: String ? = nil ) {
1140
- self . this = this
1141
- self . related = related
1142
- }
1143
-
1144
- public init ( from decoder: Decoder ) throws {
1145
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1146
- self . this = try values. decodeIfPresent ( String . self, forKey: " self " )
1147
- self . related = try values. decodeIfPresent ( String . self, forKey: " related " )
1148
- }
1149
-
1150
- public func encode( to encoder: Encoder ) throws {
1151
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1152
- try values. encodeIfPresent ( this, forKey: " self " )
1153
- try values. encodeIfPresent ( related, forKey: " related " )
1154
- }
1155
- }
1156
-
1157
- public struct Datum : Codable , Identifiable {
1158
- public var type : `Type`
1159
- public var id : String
1160
-
1161
- public enum `Type` : String , Codable , CaseIterable {
1162
- case territories
1163
- }
1164
-
1165
- public init ( type: `Type` , id: String ) {
1166
- self . type = type
1167
- self . id = id
1168
- }
1169
-
1170
- public init ( from decoder: Decoder ) throws {
1171
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1172
- self . type = try values. decode ( `Type`. self, forKey: " type " )
1173
- self . id = try values. decode ( String . self, forKey: " id " )
1174
- }
1175
-
1176
- public func encode( to encoder: Encoder ) throws {
1177
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1178
- try values. encode ( type, forKey: " type " )
1179
- try values. encode ( id, forKey: " id " )
1180
- }
1181
- }
1182
-
1183
- public init ( links: Links ? = nil , meta: PagingInformation ? = nil , data: [ Datum ] ? = nil ) {
1184
- self . links = links
1185
- self . meta = meta
1186
- self . data = data
1187
- }
1188
-
1189
- public init ( from decoder: Decoder ) throws {
1190
- let values = try decoder. container ( keyedBy: StringCodingKey . self)
1191
- self . links = try values. decodeIfPresent ( Links . self, forKey: " links " )
1192
- self . meta = try values. decodeIfPresent ( PagingInformation . self, forKey: " meta " )
1193
- self . data = try values. decodeIfPresent ( [ Datum ] . self, forKey: " data " )
1194
- }
1195
-
1196
- public func encode( to encoder: Encoder ) throws {
1197
- var values = encoder. container ( keyedBy: StringCodingKey . self)
1198
- try values. encodeIfPresent ( links, forKey: " links " )
1199
- try values. encodeIfPresent ( meta, forKey: " meta " )
1200
- try values. encodeIfPresent ( data, forKey: " data " )
1201
- }
1202
- }
1203
-
1204
1045
@available ( * , deprecated, message: " Deprecated " )
1205
1046
public struct InAppPurchases : Codable {
1206
1047
public var links : Links ?
@@ -2008,7 +1849,7 @@ public struct App: Codable, Identifiable {
2008
1849
}
2009
1850
}
2010
1851
2011
- public init ( appEncryptionDeclarations: AppEncryptionDeclarations ? = nil , ciProduct: CiProduct ? = nil , betaGroups: BetaGroups ? = nil , appStoreVersions: AppStoreVersions ? = nil , preReleaseVersions: PreReleaseVersions ? = nil , betaAppLocalizations: BetaAppLocalizations ? = nil , builds: Builds ? = nil , betaLicenseAgreement: BetaLicenseAgreement ? = nil , betaAppReviewDetail: BetaAppReviewDetail ? = nil , appInfos: AppInfos ? = nil , appClips: AppClips ? = nil , endUserLicenseAgreement: EndUserLicenseAgreement ? = nil , preOrder: PreOrder ? = nil , prices: Prices ? = nil , availableTerritories: AvailableTerritories ? = nil , inAppPurchases: InAppPurchases ? = nil , subscriptionGroups: SubscriptionGroups ? = nil , gameCenterEnabledVersions: GameCenterEnabledVersions ? = nil , appCustomProductPages: AppCustomProductPages ? = nil , inAppPurchasesV2: InAppPurchasesV2 ? = nil , promotedPurchases: PromotedPurchases ? = nil , appEvents: AppEvents ? = nil , reviewSubmissions: ReviewSubmissions ? = nil , subscriptionGracePeriod: SubscriptionGracePeriod ? = nil , gameCenterDetail: GameCenterDetail ? = nil , appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 ? = nil ) {
1852
+ public init ( appEncryptionDeclarations: AppEncryptionDeclarations ? = nil , ciProduct: CiProduct ? = nil , betaGroups: BetaGroups ? = nil , appStoreVersions: AppStoreVersions ? = nil , preReleaseVersions: PreReleaseVersions ? = nil , betaAppLocalizations: BetaAppLocalizations ? = nil , builds: Builds ? = nil , betaLicenseAgreement: BetaLicenseAgreement ? = nil , betaAppReviewDetail: BetaAppReviewDetail ? = nil , appInfos: AppInfos ? = nil , appClips: AppClips ? = nil , endUserLicenseAgreement: EndUserLicenseAgreement ? = nil , preOrder: PreOrder ? = nil , inAppPurchases: InAppPurchases ? = nil , subscriptionGroups: SubscriptionGroups ? = nil , gameCenterEnabledVersions: GameCenterEnabledVersions ? = nil , appCustomProductPages: AppCustomProductPages ? = nil , inAppPurchasesV2: InAppPurchasesV2 ? = nil , promotedPurchases: PromotedPurchases ? = nil , appEvents: AppEvents ? = nil , reviewSubmissions: ReviewSubmissions ? = nil , subscriptionGracePeriod: SubscriptionGracePeriod ? = nil , gameCenterDetail: GameCenterDetail ? = nil , appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 ? = nil ) {
2012
1853
self . appEncryptionDeclarations = appEncryptionDeclarations
2013
1854
self . ciProduct = ciProduct
2014
1855
self . betaGroups = betaGroups
@@ -2022,8 +1863,6 @@ public struct App: Codable, Identifiable {
2022
1863
self . appClips = appClips
2023
1864
self . endUserLicenseAgreement = endUserLicenseAgreement
2024
1865
self . preOrder = preOrder
2025
- self . prices = prices
2026
- self . availableTerritories = availableTerritories
2027
1866
self . inAppPurchases = inAppPurchases
2028
1867
self . subscriptionGroups = subscriptionGroups
2029
1868
self . gameCenterEnabledVersions = gameCenterEnabledVersions
@@ -2052,8 +1891,6 @@ public struct App: Codable, Identifiable {
2052
1891
self . appClips = try values. decodeIfPresent ( AppClips . self, forKey: " appClips " )
2053
1892
self . endUserLicenseAgreement = try values. decodeIfPresent ( EndUserLicenseAgreement . self, forKey: " endUserLicenseAgreement " )
2054
1893
self . preOrder = try values. decodeIfPresent ( PreOrder . self, forKey: " preOrder " )
2055
- self . prices = try values. decodeIfPresent ( Prices . self, forKey: " prices " )
2056
- self . availableTerritories = try values. decodeIfPresent ( AvailableTerritories . self, forKey: " availableTerritories " )
2057
1894
self . inAppPurchases = try values. decodeIfPresent ( InAppPurchases . self, forKey: " inAppPurchases " )
2058
1895
self . subscriptionGroups = try values. decodeIfPresent ( SubscriptionGroups . self, forKey: " subscriptionGroups " )
2059
1896
self . gameCenterEnabledVersions = try values. decodeIfPresent ( GameCenterEnabledVersions . self, forKey: " gameCenterEnabledVersions " )
@@ -2082,8 +1919,6 @@ public struct App: Codable, Identifiable {
2082
1919
try values. encodeIfPresent ( appClips, forKey: " appClips " )
2083
1920
try values. encodeIfPresent ( endUserLicenseAgreement, forKey: " endUserLicenseAgreement " )
2084
1921
try values. encodeIfPresent ( preOrder, forKey: " preOrder " )
2085
- try values. encodeIfPresent ( prices, forKey: " prices " )
2086
- try values. encodeIfPresent ( availableTerritories, forKey: " availableTerritories " )
2087
1922
try values. encodeIfPresent ( inAppPurchases, forKey: " inAppPurchases " )
2088
1923
try values. encodeIfPresent ( subscriptionGroups, forKey: " subscriptionGroups " )
2089
1924
try values. encodeIfPresent ( gameCenterEnabledVersions, forKey: " gameCenterEnabledVersions " )
0 commit comments