diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..e7597ba9 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,13 @@ +GEM + remote: https://rubygems.org/ + specs: + dotenv (2.8.1) + +PLATFORMS + universal-darwin-22 + +DEPENDENCIES + dotenv + +BUNDLED WITH + 2.2.8 diff --git a/Sources/OpenAPI/Generated/Entities/Actor.swift b/Sources/OpenAPI/Generated/Entities/Actor.swift new file mode 100644 index 00000000..0b804dc5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/Actor.swift @@ -0,0 +1,81 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct Actor: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var links: ResourceLinks + + public enum `Type`: String, Codable, CaseIterable { + case actors + } + + public struct Attributes: Codable { + public var actorType: ActorType? + public var userFirstName: String? + public var userLastName: String? + public var userEmail: String? + public var apiKeyID: String? + + public enum ActorType: String, Codable, CaseIterable { + case user = "USER" + case apiKey = "API_KEY" + case xcodeCloud = "XCODE_CLOUD" + case apple = "APPLE" + } + + public init(actorType: ActorType? = nil, userFirstName: String? = nil, userLastName: String? = nil, userEmail: String? = nil, apiKeyID: String? = nil) { + self.actorType = actorType + self.userFirstName = userFirstName + self.userLastName = userLastName + self.userEmail = userEmail + self.apiKeyID = apiKeyID + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.actorType = try values.decodeIfPresent(ActorType.self, forKey: "actorType") + self.userFirstName = try values.decodeIfPresent(String.self, forKey: "userFirstName") + self.userLastName = try values.decodeIfPresent(String.self, forKey: "userLastName") + self.userEmail = try values.decodeIfPresent(String.self, forKey: "userEmail") + self.apiKeyID = try values.decodeIfPresent(String.self, forKey: "apiKeyId") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(actorType, forKey: "actorType") + try values.encodeIfPresent(userFirstName, forKey: "userFirstName") + try values.encodeIfPresent(userLastName, forKey: "userLastName") + try values.encodeIfPresent(userEmail, forKey: "userEmail") + try values.encodeIfPresent(apiKeyID, forKey: "apiKeyId") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + self.type = type + self.id = id + self.attributes = attributes + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.links = try values.decode(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/ActorResponse.swift b/Sources/OpenAPI/Generated/Entities/ActorResponse.swift new file mode 100644 index 00000000..645dde8c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/ActorResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct ActorResponse: Codable { + /// Actor + public var data: Actor + public var links: DocumentLinks + + public init(data: Actor, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Actor.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift b/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift new file mode 100644 index 00000000..81cb05cc --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct ActorsResponse: Codable { + public var data: [Actor] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Actor], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Actor].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/App.swift b/Sources/OpenAPI/Generated/Entities/App.swift index 849924d4..1b421932 100644 --- a/Sources/OpenAPI/Generated/Entities/App.swift +++ b/Sources/OpenAPI/Generated/Entities/App.swift @@ -107,6 +107,7 @@ public struct App: Codable, Identifiable { public var appEvents: AppEvents? public var reviewSubmissions: ReviewSubmissions? public var subscriptionGracePeriod: SubscriptionGracePeriod? + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? public struct CiProduct: Codable { public var links: Links? @@ -1789,7 +1790,81 @@ public struct App: Codable, Identifiable { } } - public init(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) { + public struct AppStoreVersionExperimentsV2: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(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, appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? = nil) { self.ciProduct = ciProduct self.betaGroups = betaGroups self.appStoreVersions = appStoreVersions @@ -1813,6 +1888,7 @@ public struct App: Codable, Identifiable { self.appEvents = appEvents self.reviewSubmissions = reviewSubmissions self.subscriptionGracePeriod = subscriptionGracePeriod + self.appStoreVersionExperimentsV2 = appStoreVersionExperimentsV2 } public init(from decoder: Decoder) throws { @@ -1840,6 +1916,7 @@ public struct App: Codable, Identifiable { self.appEvents = try values.decodeIfPresent(AppEvents.self, forKey: "appEvents") self.reviewSubmissions = try values.decodeIfPresent(ReviewSubmissions.self, forKey: "reviewSubmissions") self.subscriptionGracePeriod = try values.decodeIfPresent(SubscriptionGracePeriod.self, forKey: "subscriptionGracePeriod") + self.appStoreVersionExperimentsV2 = try values.decodeIfPresent(AppStoreVersionExperimentsV2.self, forKey: "appStoreVersionExperimentsV2") } public func encode(to encoder: Encoder) throws { @@ -1867,6 +1944,7 @@ public struct App: Codable, Identifiable { try values.encodeIfPresent(appEvents, forKey: "appEvents") try values.encodeIfPresent(reviewSubmissions, forKey: "reviewSubmissions") try values.encodeIfPresent(subscriptionGracePeriod, forKey: "subscriptionGracePeriod") + try values.encodeIfPresent(appStoreVersionExperimentsV2, forKey: "appStoreVersionExperimentsV2") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift index 2c27401b..af846433 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift @@ -93,6 +93,7 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { public struct Relationships: Codable { public var app: App? + /// - warning: Deprecated. public var builds: Builds? public var appEncryptionDeclarationDocument: AppEncryptionDeclarationDocument? @@ -166,6 +167,7 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { } } + @available(*, deprecated, message: "Deprecated") public struct Builds: Codable { public var links: Links? public var meta: PagingInformation? diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift index e042eef4..3c2f3670 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppEncryptionDeclarationBuildsLinkagesRequest: Codable { public var data: [Datum] diff --git a/Sources/OpenAPI/Generated/Entities/AppResponse.swift b/Sources/OpenAPI/Generated/Entities/AppResponse.swift index a90b4b2b..06a22f6f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppResponse.swift @@ -15,7 +15,7 @@ public struct AppResponse: Codable { case ciProduct(CiProduct) case betaGroup(BetaGroup) case appStoreVersion(AppStoreVersion) - case prereleaseVersion(PrereleaseVersion) + case preReleaseVersion(PreReleaseVersion) case betaAppLocalization(BetaAppLocalization) case build(Build) case betaLicenseAgreement(BetaLicenseAgreement) @@ -35,6 +35,7 @@ public struct AppResponse: Codable { case appEvent(AppEvent) case reviewSubmission(ReviewSubmission) case subscriptionGracePeriod(SubscriptionGracePeriod) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -44,8 +45,8 @@ public struct AppResponse: Codable { self = .betaGroup(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) - } else if let value = try? container.decode(PrereleaseVersion.self) { - self = .prereleaseVersion(value) + } else if let value = try? container.decode(PreReleaseVersion.self) { + self = .preReleaseVersion(value) } else if let value = try? container.decode(BetaAppLocalization.self) { self = .betaAppLocalization(value) } else if let value = try? container.decode(Build.self) { @@ -84,6 +85,8 @@ public struct AppResponse: Codable { self = .reviewSubmission(value) } else if let value = try? container.decode(SubscriptionGracePeriod.self) { self = .subscriptionGracePeriod(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -95,7 +98,7 @@ public struct AppResponse: Codable { case .ciProduct(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) - case .prereleaseVersion(let value): try container.encode(value) + case .preReleaseVersion(let value): try container.encode(value) case .betaAppLocalization(let value): try container.encode(value) case .build(let value): try container.encode(value) case .betaLicenseAgreement(let value): try container.encode(value) @@ -115,6 +118,7 @@ public struct AppResponse: Codable { case .appEvent(let value): try container.encode(value) case .reviewSubmission(let value): try container.encode(value) case .subscriptionGracePeriod(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift index 6ba8c1aa..83eeab6d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift @@ -80,6 +80,7 @@ public struct AppStoreVersion: Codable, Identifiable { public var appStoreVersionSubmission: AppStoreVersionSubmission? public var appClipDefaultExperience: AppClipDefaultExperience? public var appStoreVersionExperiments: AppStoreVersionExperiments? + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? public struct App: Codable { public var links: Links? @@ -790,7 +791,81 @@ public struct AppStoreVersion: Codable, Identifiable { } } - public init(app: App? = nil, ageRatingDeclaration: AgeRatingDeclaration? = nil, appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, build: Build? = nil, appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, routingAppCoverage: RoutingAppCoverage? = nil, appStoreReviewDetail: AppStoreReviewDetail? = nil, appStoreVersionSubmission: AppStoreVersionSubmission? = nil, appClipDefaultExperience: AppClipDefaultExperience? = nil, appStoreVersionExperiments: AppStoreVersionExperiments? = nil) { + public struct AppStoreVersionExperimentsV2: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(app: App? = nil, ageRatingDeclaration: AgeRatingDeclaration? = nil, appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, build: Build? = nil, appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, routingAppCoverage: RoutingAppCoverage? = nil, appStoreReviewDetail: AppStoreReviewDetail? = nil, appStoreVersionSubmission: AppStoreVersionSubmission? = nil, appClipDefaultExperience: AppClipDefaultExperience? = nil, appStoreVersionExperiments: AppStoreVersionExperiments? = nil, appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? = nil) { self.app = app self.ageRatingDeclaration = ageRatingDeclaration self.appStoreVersionLocalizations = appStoreVersionLocalizations @@ -801,6 +876,7 @@ public struct AppStoreVersion: Codable, Identifiable { self.appStoreVersionSubmission = appStoreVersionSubmission self.appClipDefaultExperience = appClipDefaultExperience self.appStoreVersionExperiments = appStoreVersionExperiments + self.appStoreVersionExperimentsV2 = appStoreVersionExperimentsV2 } public init(from decoder: Decoder) throws { @@ -815,6 +891,7 @@ public struct AppStoreVersion: Codable, Identifiable { self.appStoreVersionSubmission = try values.decodeIfPresent(AppStoreVersionSubmission.self, forKey: "appStoreVersionSubmission") self.appClipDefaultExperience = try values.decodeIfPresent(AppClipDefaultExperience.self, forKey: "appClipDefaultExperience") self.appStoreVersionExperiments = try values.decodeIfPresent(AppStoreVersionExperiments.self, forKey: "appStoreVersionExperiments") + self.appStoreVersionExperimentsV2 = try values.decodeIfPresent(AppStoreVersionExperimentsV2.self, forKey: "appStoreVersionExperimentsV2") } public func encode(to encoder: Encoder) throws { @@ -829,6 +906,7 @@ public struct AppStoreVersion: Codable, Identifiable { try values.encodeIfPresent(appStoreVersionSubmission, forKey: "appStoreVersionSubmission") try values.encodeIfPresent(appClipDefaultExperience, forKey: "appClipDefaultExperience") try values.encodeIfPresent(appStoreVersionExperiments, forKey: "appStoreVersionExperiments") + try values.encodeIfPresent(appStoreVersionExperimentsV2, forKey: "appStoreVersionExperimentsV2") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift index 63b90709..44ffdd7a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppStoreVersionExperiment: Codable, Identifiable { public var type: `Type` public var id: String diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift index cdb3fb25..adc3bb59 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppStoreVersionExperimentCreateRequest: Codable { public var data: Data diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift index adf40066..cc2c1db3 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift @@ -5,8 +5,11 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppStoreVersionExperimentResponse: Codable { /// AppStoreVersionExperiment + /// + /// - warning: Deprecated. public var data: AppStoreVersionExperiment public var included: [IncludedItem]? public var links: DocumentLinks diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift index 13cd278e..064ec775 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift @@ -48,6 +48,7 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { public struct Relationships: Codable { public var appStoreVersionExperiment: AppStoreVersionExperiment? + public var appStoreVersionExperimentV2: AppStoreVersionExperimentV2? public var appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? public struct AppStoreVersionExperiment: Codable { @@ -120,6 +121,76 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { } } + public struct AppStoreVersionExperimentV2: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + public struct AppStoreVersionExperimentTreatmentLocalizations: Codable { public var links: Links? public var meta: PagingInformation? @@ -194,20 +265,23 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { } } - public init(appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? = nil) { + public init(appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appStoreVersionExperimentV2: AppStoreVersionExperimentV2? = nil, appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? = nil) { self.appStoreVersionExperiment = appStoreVersionExperiment + self.appStoreVersionExperimentV2 = appStoreVersionExperimentV2 self.appStoreVersionExperimentTreatmentLocalizations = appStoreVersionExperimentTreatmentLocalizations } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.appStoreVersionExperiment = try values.decodeIfPresent(AppStoreVersionExperiment.self, forKey: "appStoreVersionExperiment") + self.appStoreVersionExperimentV2 = try values.decodeIfPresent(AppStoreVersionExperimentV2.self, forKey: "appStoreVersionExperimentV2") self.appStoreVersionExperimentTreatmentLocalizations = try values.decodeIfPresent(AppStoreVersionExperimentTreatmentLocalizations.self, forKey: "appStoreVersionExperimentTreatmentLocalizations") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encodeIfPresent(appStoreVersionExperiment, forKey: "appStoreVersionExperiment") + try values.encodeIfPresent(appStoreVersionExperimentV2, forKey: "appStoreVersionExperimentV2") try values.encodeIfPresent(appStoreVersionExperimentTreatmentLocalizations, forKey: "appStoreVersionExperimentTreatmentLocalizations") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift index a15be4fc..97f2083b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift @@ -41,6 +41,7 @@ public struct AppStoreVersionExperimentTreatmentCreateRequest: Codable { public struct Relationships: Codable { public var appStoreVersionExperiment: AppStoreVersionExperiment + public var appStoreVersionExperimentV2: AppStoreVersionExperimentV2? public struct AppStoreVersionExperiment: Codable { public var data: Data @@ -86,18 +87,65 @@ public struct AppStoreVersionExperimentTreatmentCreateRequest: Codable { } } - public init(appStoreVersionExperiment: AppStoreVersionExperiment) { + public struct AppStoreVersionExperimentV2: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(appStoreVersionExperiment: AppStoreVersionExperiment, appStoreVersionExperimentV2: AppStoreVersionExperimentV2? = nil) { self.appStoreVersionExperiment = appStoreVersionExperiment + self.appStoreVersionExperimentV2 = appStoreVersionExperimentV2 } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.appStoreVersionExperiment = try values.decode(AppStoreVersionExperiment.self, forKey: "appStoreVersionExperiment") + self.appStoreVersionExperimentV2 = try values.decodeIfPresent(AppStoreVersionExperimentV2.self, forKey: "appStoreVersionExperimentV2") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(appStoreVersionExperiment, forKey: "appStoreVersionExperiment") + try values.encodeIfPresent(appStoreVersionExperimentV2, forKey: "appStoreVersionExperimentV2") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift index a67bae10..c1deaf2f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift @@ -13,12 +13,15 @@ public struct AppStoreVersionExperimentTreatmentResponse: Codable { public enum IncludedItem: Codable { case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) case appStoreVersionExperimentTreatmentLocalization(AppStoreVersionExperimentTreatmentLocalization) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else if let value = try? container.decode(AppStoreVersionExperimentTreatmentLocalization.self) { self = .appStoreVersionExperimentTreatmentLocalization(value) } else { @@ -30,6 +33,7 @@ public struct AppStoreVersionExperimentTreatmentResponse: Codable { var container = encoder.singleValueContainer() switch self { case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) case .appStoreVersionExperimentTreatmentLocalization(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift index fb1f2a5e..6aacab51 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift @@ -13,12 +13,15 @@ public struct AppStoreVersionExperimentTreatmentsResponse: Codable { public enum IncludedItem: Codable { case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) case appStoreVersionExperimentTreatmentLocalization(AppStoreVersionExperimentTreatmentLocalization) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else if let value = try? container.decode(AppStoreVersionExperimentTreatmentLocalization.self) { self = .appStoreVersionExperimentTreatmentLocalization(value) } else { @@ -30,6 +33,7 @@ public struct AppStoreVersionExperimentTreatmentsResponse: Codable { var container = encoder.singleValueContainer() switch self { case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) case .appStoreVersionExperimentTreatmentLocalization(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift index 2f188c4c..ffa88f9b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppStoreVersionExperimentUpdateRequest: Codable { public var data: Data diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift new file mode 100644 index 00000000..dbcd4dd5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift @@ -0,0 +1,416 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct AppStoreVersionExperimentV2: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public struct Attributes: Codable { + public var name: String? + public var platform: Platform? + public var trafficProportion: Int? + public var state: State? + public var isReviewRequired: Bool? + public var startDate: Date? + public var endDate: Date? + + public enum State: String, Codable, CaseIterable { + case prepareForSubmission = "PREPARE_FOR_SUBMISSION" + case readyForReview = "READY_FOR_REVIEW" + case waitingForReview = "WAITING_FOR_REVIEW" + case inReview = "IN_REVIEW" + case accepted = "ACCEPTED" + case approved = "APPROVED" + case rejected = "REJECTED" + case completed = "COMPLETED" + case stopped = "STOPPED" + } + + public init(name: String? = nil, platform: Platform? = nil, trafficProportion: Int? = nil, state: State? = nil, isReviewRequired: Bool? = nil, startDate: Date? = nil, endDate: Date? = nil) { + self.name = name + self.platform = platform + self.trafficProportion = trafficProportion + self.state = state + self.isReviewRequired = isReviewRequired + self.startDate = startDate + self.endDate = endDate + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.platform = try values.decodeIfPresent(Platform.self, forKey: "platform") + self.trafficProportion = try values.decodeIfPresent(Int.self, forKey: "trafficProportion") + self.state = try values.decodeIfPresent(State.self, forKey: "state") + self.isReviewRequired = try values.decodeIfPresent(Bool.self, forKey: "reviewRequired") + self.startDate = try values.decodeIfPresent(Date.self, forKey: "startDate") + self.endDate = try values.decodeIfPresent(Date.self, forKey: "endDate") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(platform, forKey: "platform") + try values.encodeIfPresent(trafficProportion, forKey: "trafficProportion") + try values.encodeIfPresent(state, forKey: "state") + try values.encodeIfPresent(isReviewRequired, forKey: "reviewRequired") + try values.encodeIfPresent(startDate, forKey: "startDate") + try values.encodeIfPresent(endDate, forKey: "endDate") + } + } + + public struct Relationships: Codable { + public var app: App? + public var latestControlVersion: LatestControlVersion? + public var controlVersions: ControlVersions? + public var appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments? + + public struct App: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct LatestControlVersion: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct ControlVersions: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct AppStoreVersionExperimentTreatments: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperimentTreatments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(app: App? = nil, latestControlVersion: LatestControlVersion? = nil, controlVersions: ControlVersions? = nil, appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments? = nil) { + self.app = app + self.latestControlVersion = latestControlVersion + self.controlVersions = controlVersions + self.appStoreVersionExperimentTreatments = appStoreVersionExperimentTreatments + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decodeIfPresent(App.self, forKey: "app") + self.latestControlVersion = try values.decodeIfPresent(LatestControlVersion.self, forKey: "latestControlVersion") + self.controlVersions = try values.decodeIfPresent(ControlVersions.self, forKey: "controlVersions") + self.appStoreVersionExperimentTreatments = try values.decodeIfPresent(AppStoreVersionExperimentTreatments.self, forKey: "appStoreVersionExperimentTreatments") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(app, forKey: "app") + try values.encodeIfPresent(latestControlVersion, forKey: "latestControlVersion") + try values.encodeIfPresent(controlVersions, forKey: "controlVersions") + try values.encodeIfPresent(appStoreVersionExperimentTreatments, forKey: "appStoreVersionExperimentTreatments") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decode(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift new file mode 100644 index 00000000..3c5ce6d2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift @@ -0,0 +1,142 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct AppStoreVersionExperimentV2CreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public struct Attributes: Codable { + public var name: String + public var platform: Platform + public var trafficProportion: Int + + public init(name: String, platform: Platform, trafficProportion: Int) { + self.name = name + self.platform = platform + self.trafficProportion = trafficProportion + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decode(String.self, forKey: "name") + self.platform = try values.decode(Platform.self, forKey: "platform") + self.trafficProportion = try values.decode(Int.self, forKey: "trafficProportion") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(name, forKey: "name") + try values.encode(platform, forKey: "platform") + try values.encode(trafficProportion, forKey: "trafficProportion") + } + } + + public struct Relationships: Codable { + public var app: App + + public struct App: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(app: App) { + self.app = app + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decode(App.self, forKey: "app") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(app, forKey: "app") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift new file mode 100644 index 00000000..51aee0d1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct AppStoreVersionExperimentV2Response: Codable { + /// AppStoreVersionExperimentV2 + public var data: AppStoreVersionExperimentV2 + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case app(App) + case appStoreVersion(AppStoreVersion) + case appStoreVersionExperimentTreatment(AppStoreVersionExperimentTreatment) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(App.self) { + self = .app(value) + } else if let value = try? container.decode(AppStoreVersion.self) { + self = .appStoreVersion(value) + } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { + self = .appStoreVersionExperimentTreatment(value) + } else { + throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .app(let value): try container.encode(value) + case .appStoreVersion(let value): try container.encode(value) + case .appStoreVersionExperimentTreatment(let value): try container.encode(value) + } + } + } + + public init(data: AppStoreVersionExperimentV2, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppStoreVersionExperimentV2.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift new file mode 100644 index 00000000..f9ed8258 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift @@ -0,0 +1,80 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct AppStoreVersionExperimentV2UpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public struct Attributes: Codable { + public var name: String? + public var trafficProportion: Int? + public var isStarted: Bool? + + public init(name: String? = nil, trafficProportion: Int? = nil, isStarted: Bool? = nil) { + self.name = name + self.trafficProportion = trafficProportion + self.isStarted = isStarted + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.trafficProportion = try values.decodeIfPresent(Int.self, forKey: "trafficProportion") + self.isStarted = try values.decodeIfPresent(Bool.self, forKey: "started") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(trafficProportion, forKey: "trafficProportion") + try values.encodeIfPresent(isStarted, forKey: "started") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift index 6edb2075..65ccb9c4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct AppStoreVersionExperimentsResponse: Codable { public var data: [AppStoreVersionExperiment] public var included: [IncludedItem]? diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift new file mode 100644 index 00000000..254727ed --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation + +public struct AppStoreVersionExperimentsV2Response: Codable { + public var data: [AppStoreVersionExperimentV2] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case app(App) + case appStoreVersion(AppStoreVersion) + case appStoreVersionExperimentTreatment(AppStoreVersionExperimentTreatment) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(App.self) { + self = .app(value) + } else if let value = try? container.decode(AppStoreVersion.self) { + self = .appStoreVersion(value) + } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { + self = .appStoreVersionExperimentTreatment(value) + } else { + throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .app(let value): try container.encode(value) + case .appStoreVersion(let value): try container.encode(value) + case .appStoreVersionExperimentTreatment(let value): try container.encode(value) + } + } + } + + public init(data: [AppStoreVersionExperimentV2], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AppStoreVersionExperimentV2].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift index 7f8b0bfc..7d93e98c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift @@ -22,6 +22,7 @@ public struct AppStoreVersionResponse: Codable { case appStoreVersionSubmission(AppStoreVersionSubmission) case appClipDefaultExperience(AppClipDefaultExperience) case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -45,6 +46,8 @@ public struct AppStoreVersionResponse: Codable { self = .appClipDefaultExperience(value) } else if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -63,6 +66,7 @@ public struct AppStoreVersionResponse: Codable { case .appStoreVersionSubmission(let value): try container.encode(value) case .appClipDefaultExperience(let value): try container.encode(value) case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift index 6340d420..20940243 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift @@ -22,6 +22,7 @@ public struct AppStoreVersionsResponse: Codable { case appStoreVersionSubmission(AppStoreVersionSubmission) case appClipDefaultExperience(AppClipDefaultExperience) case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -45,6 +46,8 @@ public struct AppStoreVersionsResponse: Codable { self = .appClipDefaultExperience(value) } else if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -63,6 +66,7 @@ public struct AppStoreVersionsResponse: Codable { case .appStoreVersionSubmission(let value): try container.encode(value) case .appClipDefaultExperience(let value): try container.encode(value) case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/AppsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppsResponse.swift index 7066756b..cd2f5872 100644 --- a/Sources/OpenAPI/Generated/Entities/AppsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppsResponse.swift @@ -15,7 +15,7 @@ public struct AppsResponse: Codable { case ciProduct(CiProduct) case betaGroup(BetaGroup) case appStoreVersion(AppStoreVersion) - case prereleaseVersion(PrereleaseVersion) + case preReleaseVersion(PreReleaseVersion) case betaAppLocalization(BetaAppLocalization) case build(Build) case betaLicenseAgreement(BetaLicenseAgreement) @@ -35,6 +35,7 @@ public struct AppsResponse: Codable { case appEvent(AppEvent) case reviewSubmission(ReviewSubmission) case subscriptionGracePeriod(SubscriptionGracePeriod) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -44,8 +45,8 @@ public struct AppsResponse: Codable { self = .betaGroup(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) - } else if let value = try? container.decode(PrereleaseVersion.self) { - self = .prereleaseVersion(value) + } else if let value = try? container.decode(PreReleaseVersion.self) { + self = .preReleaseVersion(value) } else if let value = try? container.decode(BetaAppLocalization.self) { self = .betaAppLocalization(value) } else if let value = try? container.decode(Build.self) { @@ -84,6 +85,8 @@ public struct AppsResponse: Codable { self = .reviewSubmission(value) } else if let value = try? container.decode(SubscriptionGracePeriod.self) { self = .subscriptionGracePeriod(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -95,7 +98,7 @@ public struct AppsResponse: Codable { case .ciProduct(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) - case .prereleaseVersion(let value): try container.encode(value) + case .preReleaseVersion(let value): try container.encode(value) case .betaAppLocalization(let value): try container.encode(value) case .build(let value): try container.encode(value) case .betaLicenseAgreement(let value): try container.encode(value) @@ -115,6 +118,7 @@ public struct AppsResponse: Codable { case .appEvent(let value): try container.encode(value) case .reviewSubmission(let value): try container.encode(value) case .subscriptionGracePeriod(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift index 026b1bb3..9861fdc5 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift @@ -12,7 +12,7 @@ public struct BuildResponse: Codable { public var links: DocumentLinks public enum IncludedItem: Codable { - case prereleaseVersion(PrereleaseVersion) + case preReleaseVersion(PreReleaseVersion) case betaTester(BetaTester) case betaGroup(BetaGroup) case betaBuildLocalization(BetaBuildLocalization) @@ -26,8 +26,8 @@ public struct BuildResponse: Codable { public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(PrereleaseVersion.self) { - self = .prereleaseVersion(value) + if let value = try? container.decode(PreReleaseVersion.self) { + self = .preReleaseVersion(value) } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else if let value = try? container.decode(BetaGroup.self) { @@ -56,7 +56,7 @@ public struct BuildResponse: Codable { public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { - case .prereleaseVersion(let value): try container.encode(value) + case .preReleaseVersion(let value): try container.encode(value) case .betaTester(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .betaBuildLocalization(let value): try container.encode(value) diff --git a/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift index 4939a672..a82b143f 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift @@ -12,7 +12,7 @@ public struct BuildsResponse: Codable { public var meta: PagingInformation? public enum IncludedItem: Codable { - case prereleaseVersion(PrereleaseVersion) + case preReleaseVersion(PreReleaseVersion) case betaTester(BetaTester) case betaGroup(BetaGroup) case betaBuildLocalization(BetaBuildLocalization) @@ -26,8 +26,8 @@ public struct BuildsResponse: Codable { public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(PrereleaseVersion.self) { - self = .prereleaseVersion(value) + if let value = try? container.decode(PreReleaseVersion.self) { + self = .preReleaseVersion(value) } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else if let value = try? container.decode(BetaGroup.self) { @@ -56,7 +56,7 @@ public struct BuildsResponse: Codable { public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { - case .prereleaseVersion(let value): try container.encode(value) + case .preReleaseVersion(let value): try container.encode(value) case .betaTester(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .betaBuildLocalization(let value): try container.encode(value) diff --git a/Sources/OpenAPI/Generated/Entities/Device.swift b/Sources/OpenAPI/Generated/Entities/Device.swift index b309f952..6180c586 100644 --- a/Sources/OpenAPI/Generated/Entities/Device.swift +++ b/Sources/OpenAPI/Generated/Entities/Device.swift @@ -31,7 +31,6 @@ public struct Device: Codable, Identifiable { case ipod = "IPOD" case appleTv = "APPLE_TV" case mac = "MAC" - case appleSiliconMac = "APPLE_SILICON_MAC" } public enum Status: String, Codable, CaseIterable { diff --git a/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift b/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift index 99b5a7ec..e6287eab 100644 --- a/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift @@ -13,7 +13,7 @@ public struct ErrorResponse: Codable { public var status: String public var code: String public var title: String - public var detail: String? + public var detail: String public var source: Source? public enum Source: Codable { @@ -40,7 +40,7 @@ public struct ErrorResponse: Codable { } } - public init(id: String? = nil, status: String, code: String, title: String, detail: String? = nil, source: Source? = nil) { + public init(id: String? = nil, status: String, code: String, title: String, detail: String, source: Source? = nil) { self.id = id self.status = status self.code = code @@ -55,7 +55,7 @@ public struct ErrorResponse: Codable { self.status = try values.decode(String.self, forKey: "status") self.code = try values.decode(String.self, forKey: "code") self.title = try values.decode(String.self, forKey: "title") - self.detail = try values.decodeIfPresent(String.self, forKey: "detail") + self.detail = try values.decode(String.self, forKey: "detail") self.source = try values.decodeIfPresent(Source.self, forKey: "source") } @@ -65,7 +65,7 @@ public struct ErrorResponse: Codable { try values.encode(status, forKey: "status") try values.encode(code, forKey: "code") try values.encode(title, forKey: "title") - try values.encodeIfPresent(detail, forKey: "detail") + try values.encode(detail, forKey: "detail") try values.encodeIfPresent(source, forKey: "source") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift index cdb48b4b..fe60a4a1 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift @@ -19,6 +19,7 @@ public struct InAppPurchasePricePoint: Codable, Identifiable { public struct Attributes: Codable { public var customerPrice: String? public var proceeds: String? + /// - warning: Deprecated. public var priceTier: String? public init(customerPrice: String? = nil, proceeds: String? = nil, priceTier: String? = nil) { diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift index 15e43827..f7230335 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift @@ -69,6 +69,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { public var appStoreReviewScreenshot: AppStoreReviewScreenshot? public var promotedPurchase: PromotedPurchase? public var iapPriceSchedule: IapPriceSchedule? + public var inAppPurchaseAvailability: InAppPurchaseAvailability? public struct InAppPurchaseLocalizations: Codable { public var links: Links? @@ -498,13 +499,84 @@ public struct InAppPurchaseV2: Codable, Identifiable { } } - public init(inAppPurchaseLocalizations: InAppPurchaseLocalizations? = nil, pricePoints: PricePoints? = nil, content: Content? = nil, appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, promotedPurchase: PromotedPurchase? = nil, iapPriceSchedule: IapPriceSchedule? = nil) { + public struct InAppPurchaseAvailability: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case inAppPurchaseAvailabilities + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(inAppPurchaseLocalizations: InAppPurchaseLocalizations? = nil, pricePoints: PricePoints? = nil, content: Content? = nil, appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, promotedPurchase: PromotedPurchase? = nil, iapPriceSchedule: IapPriceSchedule? = nil, inAppPurchaseAvailability: InAppPurchaseAvailability? = nil) { self.inAppPurchaseLocalizations = inAppPurchaseLocalizations self.pricePoints = pricePoints self.content = content self.appStoreReviewScreenshot = appStoreReviewScreenshot self.promotedPurchase = promotedPurchase self.iapPriceSchedule = iapPriceSchedule + self.inAppPurchaseAvailability = inAppPurchaseAvailability } public init(from decoder: Decoder) throws { @@ -515,6 +587,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { self.appStoreReviewScreenshot = try values.decodeIfPresent(AppStoreReviewScreenshot.self, forKey: "appStoreReviewScreenshot") self.promotedPurchase = try values.decodeIfPresent(PromotedPurchase.self, forKey: "promotedPurchase") self.iapPriceSchedule = try values.decodeIfPresent(IapPriceSchedule.self, forKey: "iapPriceSchedule") + self.inAppPurchaseAvailability = try values.decodeIfPresent(InAppPurchaseAvailability.self, forKey: "inAppPurchaseAvailability") } public func encode(to encoder: Encoder) throws { @@ -525,6 +598,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { try values.encodeIfPresent(appStoreReviewScreenshot, forKey: "appStoreReviewScreenshot") try values.encodeIfPresent(promotedPurchase, forKey: "promotedPurchase") try values.encodeIfPresent(iapPriceSchedule, forKey: "iapPriceSchedule") + try values.encodeIfPresent(inAppPurchaseAvailability, forKey: "inAppPurchaseAvailability") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift index d97fe6a6..597d3ecb 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift @@ -18,6 +18,7 @@ public struct InAppPurchaseV2Response: Codable { case inAppPurchaseAppStoreReviewScreenshot(InAppPurchaseAppStoreReviewScreenshot) case promotedPurchase(PromotedPurchase) case inAppPurchasePriceSchedule(InAppPurchasePriceSchedule) + case inAppPurchaseAvailability(InAppPurchaseAvailability) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -33,6 +34,8 @@ public struct InAppPurchaseV2Response: Codable { self = .promotedPurchase(value) } else if let value = try? container.decode(InAppPurchasePriceSchedule.self) { self = .inAppPurchasePriceSchedule(value) + } else if let value = try? container.decode(InAppPurchaseAvailability.self) { + self = .inAppPurchaseAvailability(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -47,6 +50,7 @@ public struct InAppPurchaseV2Response: Codable { case .inAppPurchaseAppStoreReviewScreenshot(let value): try container.encode(value) case .promotedPurchase(let value): try container.encode(value) case .inAppPurchasePriceSchedule(let value): try container.encode(value) + case .inAppPurchaseAvailability(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift index 9f766351..cf1c7e25 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift @@ -18,6 +18,7 @@ public struct InAppPurchasesV2Response: Codable { case inAppPurchaseAppStoreReviewScreenshot(InAppPurchaseAppStoreReviewScreenshot) case promotedPurchase(PromotedPurchase) case inAppPurchasePriceSchedule(InAppPurchasePriceSchedule) + case inAppPurchaseAvailability(InAppPurchaseAvailability) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -33,6 +34,8 @@ public struct InAppPurchasesV2Response: Codable { self = .promotedPurchase(value) } else if let value = try? container.decode(InAppPurchasePriceSchedule.self) { self = .inAppPurchasePriceSchedule(value) + } else if let value = try? container.decode(InAppPurchaseAvailability.self) { + self = .inAppPurchaseAvailability(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -47,6 +50,7 @@ public struct InAppPurchasesV2Response: Codable { case .inAppPurchaseAppStoreReviewScreenshot(let value): try container.encode(value) case .promotedPurchase(let value): try container.encode(value) case .inAppPurchasePriceSchedule(let value): try container.encode(value) + case .inAppPurchaseAvailability(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift index 20f01495..12b200b7 100644 --- a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift @@ -6,7 +6,7 @@ import Foundation public struct PreReleaseVersionsResponse: Codable { - public var data: [PrereleaseVersion] + public var data: [PreReleaseVersion] public var included: [IncludedItem]? public var links: PagedDocumentLinks public var meta: PagingInformation? @@ -35,7 +35,7 @@ public struct PreReleaseVersionsResponse: Codable { } } - public init(data: [PrereleaseVersion], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [PreReleaseVersion], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { self.data = data self.included = included self.links = links @@ -44,7 +44,7 @@ public struct PreReleaseVersionsResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode([PrereleaseVersion].self, forKey: "data") + self.data = try values.decode([PreReleaseVersion].self, forKey: "data") self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") diff --git a/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift b/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift index 533432d5..4f8d8ca3 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift @@ -5,7 +5,7 @@ import Foundation -public struct PrereleaseVersion: Codable, Identifiable { +public struct PreReleaseVersion: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? diff --git a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift index 5a44ef35..971c5c92 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift @@ -5,9 +5,9 @@ import Foundation -public struct PrereleaseVersionResponse: Codable { - /// PrereleaseVersion - public var data: PrereleaseVersion +public struct PreReleaseVersionResponse: Codable { + /// PreReleaseVersion + public var data: PreReleaseVersion public var included: [IncludedItem]? public var links: DocumentLinks @@ -35,7 +35,7 @@ public struct PrereleaseVersionResponse: Codable { } } - public init(data: PrereleaseVersion, included: [IncludedItem]? = nil, links: DocumentLinks) { + public init(data: PreReleaseVersion, included: [IncludedItem]? = nil, links: DocumentLinks) { self.data = data self.included = included self.links = links @@ -43,7 +43,7 @@ public struct PrereleaseVersionResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode(PrereleaseVersion.self, forKey: "data") + self.data = try values.decode(PreReleaseVersion.self, forKey: "data") self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") self.links = try values.decode(DocumentLinks.self, forKey: "links") } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift index 5ecd2576..6c32b988 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift @@ -56,6 +56,8 @@ public struct ReviewSubmission: Codable, Identifiable { public var app: App? public var items: Items? public var appStoreVersionForReview: AppStoreVersionForReview? + public var submittedByActor: SubmittedByActor? + public var lastUpdatedByActor: LastUpdatedByActor? public struct App: Codable { public var links: Links? @@ -271,10 +273,152 @@ public struct ReviewSubmission: Codable, Identifiable { } } - public init(app: App? = nil, items: Items? = nil, appStoreVersionForReview: AppStoreVersionForReview? = nil) { + public struct SubmittedByActor: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case actors + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct LastUpdatedByActor: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case actors + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(app: App? = nil, items: Items? = nil, appStoreVersionForReview: AppStoreVersionForReview? = nil, submittedByActor: SubmittedByActor? = nil, lastUpdatedByActor: LastUpdatedByActor? = nil) { self.app = app self.items = items self.appStoreVersionForReview = appStoreVersionForReview + self.submittedByActor = submittedByActor + self.lastUpdatedByActor = lastUpdatedByActor } public init(from decoder: Decoder) throws { @@ -282,6 +426,8 @@ public struct ReviewSubmission: Codable, Identifiable { self.app = try values.decodeIfPresent(App.self, forKey: "app") self.items = try values.decodeIfPresent(Items.self, forKey: "items") self.appStoreVersionForReview = try values.decodeIfPresent(AppStoreVersionForReview.self, forKey: "appStoreVersionForReview") + self.submittedByActor = try values.decodeIfPresent(SubmittedByActor.self, forKey: "submittedByActor") + self.lastUpdatedByActor = try values.decodeIfPresent(LastUpdatedByActor.self, forKey: "lastUpdatedByActor") } public func encode(to encoder: Encoder) throws { @@ -289,6 +435,8 @@ public struct ReviewSubmission: Codable, Identifiable { try values.encodeIfPresent(app, forKey: "app") try values.encodeIfPresent(items, forKey: "items") try values.encodeIfPresent(appStoreVersionForReview, forKey: "appStoreVersionForReview") + try values.encodeIfPresent(submittedByActor, forKey: "submittedByActor") + try values.encodeIfPresent(lastUpdatedByActor, forKey: "lastUpdatedByActor") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift index 7f348bec..54327432 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift @@ -46,6 +46,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { public var appStoreVersion: AppStoreVersion? public var appCustomProductPageVersion: AppCustomProductPageVersion? public var appStoreVersionExperiment: AppStoreVersionExperiment? + public var appStoreVersionExperimentV2: AppStoreVersionExperimentV2? public var appEvent: AppEvent? public struct AppStoreVersion: Codable { @@ -258,6 +259,76 @@ public struct ReviewSubmissionItem: Codable, Identifiable { } } + public struct AppStoreVersionExperimentV2: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + public struct AppEvent: Codable { public var links: Links? public var data: Data? @@ -328,10 +399,11 @@ public struct ReviewSubmissionItem: Codable, Identifiable { } } - public init(appStoreVersion: AppStoreVersion? = nil, appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appEvent: AppEvent? = nil) { + public init(appStoreVersion: AppStoreVersion? = nil, appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appStoreVersionExperimentV2: AppStoreVersionExperimentV2? = nil, appEvent: AppEvent? = nil) { self.appStoreVersion = appStoreVersion self.appCustomProductPageVersion = appCustomProductPageVersion self.appStoreVersionExperiment = appStoreVersionExperiment + self.appStoreVersionExperimentV2 = appStoreVersionExperimentV2 self.appEvent = appEvent } @@ -340,6 +412,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { self.appStoreVersion = try values.decodeIfPresent(AppStoreVersion.self, forKey: "appStoreVersion") self.appCustomProductPageVersion = try values.decodeIfPresent(AppCustomProductPageVersion.self, forKey: "appCustomProductPageVersion") self.appStoreVersionExperiment = try values.decodeIfPresent(AppStoreVersionExperiment.self, forKey: "appStoreVersionExperiment") + self.appStoreVersionExperimentV2 = try values.decodeIfPresent(AppStoreVersionExperimentV2.self, forKey: "appStoreVersionExperimentV2") self.appEvent = try values.decodeIfPresent(AppEvent.self, forKey: "appEvent") } @@ -348,6 +421,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { try values.encodeIfPresent(appStoreVersion, forKey: "appStoreVersion") try values.encodeIfPresent(appCustomProductPageVersion, forKey: "appCustomProductPageVersion") try values.encodeIfPresent(appStoreVersionExperiment, forKey: "appStoreVersionExperiment") + try values.encodeIfPresent(appStoreVersionExperimentV2, forKey: "appStoreVersionExperimentV2") try values.encodeIfPresent(appEvent, forKey: "appEvent") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift index 76ac3358..95a436c6 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift @@ -21,6 +21,7 @@ public struct ReviewSubmissionItemCreateRequest: Codable { public var appStoreVersion: AppStoreVersion? public var appCustomProductPageVersion: AppCustomProductPageVersion? public var appStoreVersionExperiment: AppStoreVersionExperiment? + public var appStoreVersionExperimentV2: AppStoreVersionExperimentV2? public var appEvent: AppEvent? public struct ReviewSubmission: Codable { @@ -199,6 +200,50 @@ public struct ReviewSubmissionItemCreateRequest: Codable { } } + public struct AppStoreVersionExperimentV2: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersionExperiments + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + public struct AppEvent: Codable { public var data: Data? @@ -243,11 +288,12 @@ public struct ReviewSubmissionItemCreateRequest: Codable { } } - public init(reviewSubmission: ReviewSubmission, appStoreVersion: AppStoreVersion? = nil, appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appEvent: AppEvent? = nil) { + public init(reviewSubmission: ReviewSubmission, appStoreVersion: AppStoreVersion? = nil, appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appStoreVersionExperimentV2: AppStoreVersionExperimentV2? = nil, appEvent: AppEvent? = nil) { self.reviewSubmission = reviewSubmission self.appStoreVersion = appStoreVersion self.appCustomProductPageVersion = appCustomProductPageVersion self.appStoreVersionExperiment = appStoreVersionExperiment + self.appStoreVersionExperimentV2 = appStoreVersionExperimentV2 self.appEvent = appEvent } @@ -257,6 +303,7 @@ public struct ReviewSubmissionItemCreateRequest: Codable { self.appStoreVersion = try values.decodeIfPresent(AppStoreVersion.self, forKey: "appStoreVersion") self.appCustomProductPageVersion = try values.decodeIfPresent(AppCustomProductPageVersion.self, forKey: "appCustomProductPageVersion") self.appStoreVersionExperiment = try values.decodeIfPresent(AppStoreVersionExperiment.self, forKey: "appStoreVersionExperiment") + self.appStoreVersionExperimentV2 = try values.decodeIfPresent(AppStoreVersionExperimentV2.self, forKey: "appStoreVersionExperimentV2") self.appEvent = try values.decodeIfPresent(AppEvent.self, forKey: "appEvent") } @@ -266,6 +313,7 @@ public struct ReviewSubmissionItemCreateRequest: Codable { try values.encodeIfPresent(appStoreVersion, forKey: "appStoreVersion") try values.encodeIfPresent(appCustomProductPageVersion, forKey: "appCustomProductPageVersion") try values.encodeIfPresent(appStoreVersionExperiment, forKey: "appStoreVersionExperiment") + try values.encodeIfPresent(appStoreVersionExperimentV2, forKey: "appStoreVersionExperimentV2") try values.encodeIfPresent(appEvent, forKey: "appEvent") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift index 60d78c28..07759212 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift @@ -15,6 +15,7 @@ public struct ReviewSubmissionItemResponse: Codable { case appStoreVersion(AppStoreVersion) case appCustomProductPageVersion(AppCustomProductPageVersion) case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) case appEvent(AppEvent) public init(from decoder: Decoder) throws { @@ -25,6 +26,8 @@ public struct ReviewSubmissionItemResponse: Codable { self = .appCustomProductPageVersion(value) } else if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else if let value = try? container.decode(AppEvent.self) { self = .appEvent(value) } else { @@ -38,6 +41,7 @@ public struct ReviewSubmissionItemResponse: Codable { case .appStoreVersion(let value): try container.encode(value) case .appCustomProductPageVersion(let value): try container.encode(value) case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) case .appEvent(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift index d71e4b81..4cbdbe4c 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift @@ -15,6 +15,7 @@ public struct ReviewSubmissionItemsResponse: Codable { case appStoreVersion(AppStoreVersion) case appCustomProductPageVersion(AppCustomProductPageVersion) case appStoreVersionExperiment(AppStoreVersionExperiment) + case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) case appEvent(AppEvent) public init(from decoder: Decoder) throws { @@ -25,6 +26,8 @@ public struct ReviewSubmissionItemsResponse: Codable { self = .appCustomProductPageVersion(value) } else if let value = try? container.decode(AppStoreVersionExperiment.self) { self = .appStoreVersionExperiment(value) + } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { + self = .appStoreVersionExperimentV2(value) } else if let value = try? container.decode(AppEvent.self) { self = .appEvent(value) } else { @@ -38,6 +41,7 @@ public struct ReviewSubmissionItemsResponse: Codable { case .appStoreVersion(let value): try container.encode(value) case .appCustomProductPageVersion(let value): try container.encode(value) case .appStoreVersionExperiment(let value): try container.encode(value) + case .appStoreVersionExperimentV2(let value): try container.encode(value) case .appEvent(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift index eda6a6be..ce83a0e2 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift @@ -15,6 +15,7 @@ public struct ReviewSubmissionResponse: Codable { case app(App) case reviewSubmissionItem(ReviewSubmissionItem) case appStoreVersion(AppStoreVersion) + case actor(Actor) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -24,6 +25,8 @@ public struct ReviewSubmissionResponse: Codable { self = .reviewSubmissionItem(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) + } else if let value = try? container.decode(Actor.self) { + self = .actor(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -35,6 +38,7 @@ public struct ReviewSubmissionResponse: Codable { case .app(let value): try container.encode(value) case .reviewSubmissionItem(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) + case .actor(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift index af078a3f..4904ed9e 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift @@ -15,6 +15,7 @@ public struct ReviewSubmissionsResponse: Codable { case app(App) case reviewSubmissionItem(ReviewSubmissionItem) case appStoreVersion(AppStoreVersion) + case actor(Actor) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -24,6 +25,8 @@ public struct ReviewSubmissionsResponse: Codable { self = .reviewSubmissionItem(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) + } else if let value = try? container.decode(Actor.self) { + self = .actor(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -35,6 +38,7 @@ public struct ReviewSubmissionsResponse: Codable { case .app(let value): try container.encode(value) case .reviewSubmissionItem(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) + case .actor(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/Subscription.swift b/Sources/OpenAPI/Generated/Entities/Subscription.swift index d8756866..d044b893 100644 --- a/Sources/OpenAPI/Generated/Entities/Subscription.swift +++ b/Sources/OpenAPI/Generated/Entities/Subscription.swift @@ -93,6 +93,7 @@ public struct Subscription: Codable, Identifiable { public var offerCodes: OfferCodes? public var prices: Prices? public var promotedPurchase: PromotedPurchase? + public var subscriptionAvailability: SubscriptionAvailability? public struct SubscriptionLocalizations: Codable { public var links: Links? @@ -674,7 +675,77 @@ public struct Subscription: Codable, Identifiable { } } - public init(subscriptionLocalizations: SubscriptionLocalizations? = nil, appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, group: Group? = nil, introductoryOffers: IntroductoryOffers? = nil, promotionalOffers: PromotionalOffers? = nil, offerCodes: OfferCodes? = nil, prices: Prices? = nil, promotedPurchase: PromotedPurchase? = nil) { + public struct SubscriptionAvailability: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case subscriptionAvailabilities + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(subscriptionLocalizations: SubscriptionLocalizations? = nil, appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, group: Group? = nil, introductoryOffers: IntroductoryOffers? = nil, promotionalOffers: PromotionalOffers? = nil, offerCodes: OfferCodes? = nil, prices: Prices? = nil, promotedPurchase: PromotedPurchase? = nil, subscriptionAvailability: SubscriptionAvailability? = nil) { self.subscriptionLocalizations = subscriptionLocalizations self.appStoreReviewScreenshot = appStoreReviewScreenshot self.group = group @@ -683,6 +754,7 @@ public struct Subscription: Codable, Identifiable { self.offerCodes = offerCodes self.prices = prices self.promotedPurchase = promotedPurchase + self.subscriptionAvailability = subscriptionAvailability } public init(from decoder: Decoder) throws { @@ -695,6 +767,7 @@ public struct Subscription: Codable, Identifiable { self.offerCodes = try values.decodeIfPresent(OfferCodes.self, forKey: "offerCodes") self.prices = try values.decodeIfPresent(Prices.self, forKey: "prices") self.promotedPurchase = try values.decodeIfPresent(PromotedPurchase.self, forKey: "promotedPurchase") + self.subscriptionAvailability = try values.decodeIfPresent(SubscriptionAvailability.self, forKey: "subscriptionAvailability") } public func encode(to encoder: Encoder) throws { @@ -707,6 +780,7 @@ public struct Subscription: Codable, Identifiable { try values.encodeIfPresent(offerCodes, forKey: "offerCodes") try values.encodeIfPresent(prices, forKey: "prices") try values.encodeIfPresent(promotedPurchase, forKey: "promotedPurchase") + try values.encodeIfPresent(subscriptionAvailability, forKey: "subscriptionAvailability") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift index a2a283a7..c7c4d9f6 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift @@ -20,6 +20,7 @@ public struct SubscriptionResponse: Codable { case subscriptionOfferCode(SubscriptionOfferCode) case subscriptionPrice(SubscriptionPrice) case promotedPurchase(PromotedPurchase) + case subscriptionAvailability(SubscriptionAvailability) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -39,6 +40,8 @@ public struct SubscriptionResponse: Codable { self = .subscriptionPrice(value) } else if let value = try? container.decode(PromotedPurchase.self) { self = .promotedPurchase(value) + } else if let value = try? container.decode(SubscriptionAvailability.self) { + self = .subscriptionAvailability(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -55,6 +58,7 @@ public struct SubscriptionResponse: Codable { case .subscriptionOfferCode(let value): try container.encode(value) case .subscriptionPrice(let value): try container.encode(value) case .promotedPurchase(let value): try container.encode(value) + case .subscriptionAvailability(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift index bc537172..aaecac25 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift @@ -20,6 +20,7 @@ public struct SubscriptionsResponse: Codable { case subscriptionOfferCode(SubscriptionOfferCode) case subscriptionPrice(SubscriptionPrice) case promotedPurchase(PromotedPurchase) + case subscriptionAvailability(SubscriptionAvailability) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() @@ -39,6 +40,8 @@ public struct SubscriptionsResponse: Codable { self = .subscriptionPrice(value) } else if let value = try? container.decode(PromotedPurchase.self) { self = .promotedPurchase(value) + } else if let value = try? container.decode(SubscriptionAvailability.self) { + self = .subscriptionAvailability(value) } else { throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") } @@ -55,6 +58,7 @@ public struct SubscriptionsResponse: Codable { case .subscriptionOfferCode(let value): try container.encode(value) case .subscriptionPrice(let value): try container.encode(value) case .promotedPurchase(let value): try container.encode(value) + case .subscriptionAvailability(let value): try container.encode(value) } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift new file mode 100644 index 00000000..0f433152 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var actors: Actors { + Actors(path: path + "/actors") + } + + public struct Actors { + /// Path: `/v1/actors` + public let path: String + + public func get(parameters: GetParameters) -> Request { + .get(path, query: parameters.asQuery) + } + + public struct GetParameters { + public var filterID: [String] + public var fieldsActors: [FieldsActors]? + public var limit: Int? + + public enum FieldsActors: String, Codable, CaseIterable { + case actorType + case apiKeyID = "apiKeyId" + case userEmail + case userFirstName + case userLastName + } + + public init(filterID: [String], fieldsActors: [FieldsActors]? = nil, limit: Int? = nil) { + self.filterID = filterID + self.fieldsActors = fieldsActors + self.limit = limit + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsActors, forKey: "fields[actors]") + encoder.encode(limit, forKey: "limit") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift new file mode 100644 index 00000000..ff43d1bb --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift @@ -0,0 +1,36 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Actors { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/actors/{id}` + public let path: String + + public func get(fieldsActors: [FieldsActors]? = nil) -> Request { + .get(path, query: makeGetQuery(fieldsActors)) + } + + private func makeGetQuery(_ fieldsActors: [FieldsActors]?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(fieldsActors, forKey: "fields[actors]", explode: false) + return encoder.items + } + + public enum FieldsActors: String, Codable, CaseIterable { + case actorType + case apiKeyID = "apiKeyId" + case userEmail + case userFirstName + case userLastName + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift index 3d612133..88768d04 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift @@ -55,6 +55,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift index 1bdd5f34..919d95f1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift @@ -33,13 +33,17 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public var fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? public var limitAppStoreVersionLocalizations: Int? public var limitAppStoreVersionExperiments: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var include: [Include]? public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -91,6 +95,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -114,6 +119,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -223,6 +229,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case appClipDefaultExperience case appStoreReviewDetail case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -230,7 +237,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case routingAppCoverage } - public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, include: [Include]? = nil) { + public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments self.fieldsAgeRatingDeclarations = fieldsAgeRatingDeclarations self.fieldsAppStoreVersionSubmissions = fieldsAppStoreVersionSubmissions @@ -244,6 +251,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { self.fieldsAppStoreVersionLocalizations = fieldsAppStoreVersionLocalizations self.limitAppStoreVersionLocalizations = limitAppStoreVersionLocalizations self.limitAppStoreVersionExperiments = limitAppStoreVersionExperiments + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.include = include } @@ -262,6 +270,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionLocalizations, forKey: "limit[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionExperiments, forKey: "limit[appStoreVersionExperiments]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(include, forKey: "include") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift index 9e62605c..3f9c026b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift @@ -49,6 +49,7 @@ extension APIEndpoint.V1.AppClips.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift index e3536ae5..6cd0e765 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift @@ -82,6 +82,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift index 01c8f8b5..9b4cc4c9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift @@ -72,6 +72,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift index d7e148bf..78d9aaad 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift index 410a292a..4dad1d46 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift @@ -15,6 +15,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID.Relationships { /// Path: `/v1/appEncryptionDeclarations/{id}/relationships/builds` public let path: String + @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.AppEncryptionDeclarationBuildsLinkagesRequest) -> Request { .post(path, body: body) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift index 609e418e..4d89192f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift @@ -30,6 +30,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments { case appIconName case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 case name case promotedDate } @@ -37,6 +38,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments { public enum Include: String, Codable, CaseIterable { case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 } public enum FieldsAppStoreVersionExperimentTreatmentLocalizations: String, Codable, CaseIterable { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift index 4d0b76cb..26cc1320 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments.WithID { case appIconName case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 case name case promotedDate } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift index 3123283c..d3522d26 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift @@ -15,6 +15,7 @@ extension APIEndpoint.V1 { /// Path: `/v1/appStoreVersionExperiments` public let path: String + @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentCreateRequest) -> Request { .post(path, body: body) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift index 79472108..69d156af 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift @@ -15,6 +15,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments { /// Path: `/v1/appStoreVersionExperiments/{id}` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { .get(path, query: parameters?.asQuery) } @@ -47,6 +48,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments { case appIconName case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 case name case promotedDate } @@ -68,10 +70,12 @@ extension APIEndpoint.V1.AppStoreVersionExperiments { } } + @available(*, deprecated, message: "Deprecated") public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentUpdateRequest) -> Request { .patch(path, body: body) } + @available(*, deprecated, message: "Deprecated") public var delete: Request { .delete(path) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift index 2605ca66..e212fbf1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -15,6 +15,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { /// Path: `/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { .get(path, query: parameters?.asQuery) } @@ -28,10 +29,13 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { public var include: [Include]? public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -44,6 +48,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { case appIconName case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 case name case promotedDate } @@ -58,6 +63,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { public enum Include: String, Codable, CaseIterable { case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 } public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? = nil, fieldsAppStoreVersionExperimentTreatmentLocalizations: [FieldsAppStoreVersionExperimentTreatmentLocalizations]? = nil, limit: Int? = nil, limitAppStoreVersionExperimentTreatmentLocalizations: Int? = nil, include: [Include]? = nil) { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift index 0ea33920..9ab4d9cd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.AppStoreVersions { public var fieldsBuilds: [FieldsBuilds]? public var fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? public var limitAppStoreVersionExperiments: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var limitAppStoreVersionLocalizations: Int? public enum FieldsAppStoreVersions: String, Codable, CaseIterable { @@ -42,6 +43,7 @@ extension APIEndpoint.V1.AppStoreVersions { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -63,6 +65,7 @@ extension APIEndpoint.V1.AppStoreVersions { case appClipDefaultExperience case appStoreReviewDetail case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -71,10 +74,13 @@ extension APIEndpoint.V1.AppStoreVersions { } public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -196,7 +202,7 @@ extension APIEndpoint.V1.AppStoreVersions { case whatsNew } - public init(fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, include: [Include]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionLocalizations: Int? = nil) { + public init(fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, include: [Include]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersionLocalizations: Int? = nil) { self.fieldsAppStoreVersions = fieldsAppStoreVersions self.include = include self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments @@ -210,6 +216,7 @@ extension APIEndpoint.V1.AppStoreVersions { self.fieldsBuilds = fieldsBuilds self.fieldsAppStoreVersionLocalizations = fieldsAppStoreVersionLocalizations self.limitAppStoreVersionExperiments = limitAppStoreVersionExperiments + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.limitAppStoreVersionLocalizations = limitAppStoreVersionLocalizations } @@ -228,6 +235,7 @@ extension APIEndpoint.V1.AppStoreVersions { encoder.encode(fieldsBuilds, forKey: "fields[builds]") encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionExperiments, forKey: "limit[appStoreVersionExperiments]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(limitAppStoreVersionLocalizations, forKey: "limit[appStoreVersionLocalizations]") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift index a747fd16..160a3ff7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift @@ -47,6 +47,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift index c0c684f0..a2be2209 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift @@ -46,6 +46,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift index 46299873..23102842 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift @@ -15,6 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionExperiments` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { .get(path, query: parameters?.asQuery) } @@ -57,6 +58,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appIconName case appStoreVersionExperiment case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 case name case promotedDate } @@ -68,6 +70,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift new file mode 100644 index 00000000..37ab6547 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift @@ -0,0 +1,172 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AppStoreVersions.WithID { + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 { + AppStoreVersionExperimentsV2(path: path + "/appStoreVersionExperimentsV2") + } + + public struct AppStoreVersionExperimentsV2 { + /// Path: `/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var filterState: [FilterState]? + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? + public var fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsApps: [FieldsApps]? + public var limit: Int? + public var limitControlVersions: Int? + public var limitAppStoreVersionExperimentTreatments: Int? + public var include: [Include]? + + public enum FilterState: String, Codable, CaseIterable { + case prepareForSubmission = "PREPARE_FOR_SUBMISSION" + case readyForReview = "READY_FOR_REVIEW" + case waitingForReview = "WAITING_FOR_REVIEW" + case inReview = "IN_REVIEW" + case accepted = "ACCEPTED" + case approved = "APPROVED" + case rejected = "REJECTED" + case completed = "COMPLETED" + case stopped = "STOPPED" + } + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum FieldsAppStoreVersionExperimentTreatments: String, Codable, CaseIterable { + case appIcon + case appIconName + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 + case name + case promotedDate + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum Include: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case latestControlVersion + } + + public init(filterState: [FilterState]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, limitControlVersions: Int? = nil, limitAppStoreVersionExperimentTreatments: Int? = nil, include: [Include]? = nil) { + self.filterState = filterState + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments + self.fieldsAppStoreVersionExperimentTreatments = fieldsAppStoreVersionExperimentTreatments + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsApps = fieldsApps + self.limit = limit + self.limitControlVersions = limitControlVersions + self.limitAppStoreVersionExperimentTreatments = limitAppStoreVersionExperimentTreatments + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterState, forKey: "filter[state]") + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") + encoder.encode(fieldsAppStoreVersionExperimentTreatments, forKey: "fields[appStoreVersionExperimentTreatments]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitControlVersions, forKey: "limit[controlVersions]") + encoder.encode(limitAppStoreVersionExperimentTreatments, forKey: "limit[appStoreVersionExperimentTreatments]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift index fda5e2af..6d5098ef 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift @@ -36,6 +36,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift new file mode 100644 index 00000000..c7cc1897 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.AppStoreVersions.WithID.Relationships { + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 { + AppStoreVersionExperimentsV2(path: path + "/appStoreVersionExperimentsV2") + } + + public struct AppStoreVersionExperimentsV2 { + /// Path: `/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift index a5ab6d41..5c7e4a45 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift @@ -52,6 +52,7 @@ extension APIEndpoint.V1 { public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? public var fieldsAppPrices: [FieldsAppPrices]? public var fieldsAppPreOrders: [FieldsAppPreOrders]? + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? public var fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? public var fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? @@ -63,6 +64,7 @@ extension APIEndpoint.V1 { public var limitAppCustomProductPages: Int? public var limitAppEvents: Int? public var limitAppInfos: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var limitAppStoreVersions: Int? public var limitAvailableTerritories: Int? public var limitBetaAppLocalizations: Int? @@ -122,6 +124,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -163,6 +166,7 @@ extension APIEndpoint.V1 { case appCustomProductPages case appEvents case appInfos + case appStoreVersionExperimentsV2 case appStoreVersions case availableTerritories case betaAppLocalizations @@ -220,9 +224,11 @@ extension APIEndpoint.V1 { case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -391,6 +397,21 @@ extension APIEndpoint.V1 { case preOrderAvailableDate } + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + public enum FieldsGameCenterEnabledVersions: String, Codable, CaseIterable { case app case compatibleVersions @@ -419,6 +440,7 @@ extension APIEndpoint.V1 { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -454,7 +476,7 @@ extension APIEndpoint.V1 { case platform } - public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.filterAppStoreVersionsAppStoreState = filterAppStoreVersionsAppStoreState self.filterAppStoreVersionsPlatform = filterAppStoreVersionsPlatform self.filterBundleID = filterBundleID @@ -487,6 +509,7 @@ extension APIEndpoint.V1 { self.fieldsSubscriptionGroups = fieldsSubscriptionGroups self.fieldsAppPrices = fieldsAppPrices self.fieldsAppPreOrders = fieldsAppPreOrders + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments self.fieldsGameCenterEnabledVersions = fieldsGameCenterEnabledVersions self.fieldsSubscriptionGracePeriods = fieldsSubscriptionGracePeriods self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements @@ -498,6 +521,7 @@ extension APIEndpoint.V1 { self.limitAppCustomProductPages = limitAppCustomProductPages self.limitAppEvents = limitAppEvents self.limitAppInfos = limitAppInfos + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.limitAppStoreVersions = limitAppStoreVersions self.limitAvailableTerritories = limitAvailableTerritories self.limitBetaAppLocalizations = limitBetaAppLocalizations @@ -547,6 +571,7 @@ extension APIEndpoint.V1 { encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") encoder.encode(fieldsAppPrices, forKey: "fields[appPrices]") encoder.encode(fieldsAppPreOrders, forKey: "fields[appPreOrders]") + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") encoder.encode(fieldsGameCenterEnabledVersions, forKey: "fields[gameCenterEnabledVersions]") encoder.encode(fieldsSubscriptionGracePeriods, forKey: "fields[subscriptionGracePeriods]") encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") @@ -558,6 +583,7 @@ extension APIEndpoint.V1 { encoder.encode(limitAppCustomProductPages, forKey: "limit[appCustomProductPages]") encoder.encode(limitAppEvents, forKey: "limit[appEvents]") encoder.encode(limitAppInfos, forKey: "limit[appInfos]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(limitAppStoreVersions, forKey: "limit[appStoreVersions]") encoder.encode(limitAvailableTerritories, forKey: "limit[availableTerritories]") encoder.encode(limitBetaAppLocalizations, forKey: "limit[betaAppLocalizations]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift index 0edc4e46..b3a0d4de 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift @@ -42,6 +42,7 @@ extension APIEndpoint.V1.Apps { public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? public var fieldsAppPrices: [FieldsAppPrices]? public var fieldsAppPreOrders: [FieldsAppPreOrders]? + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? public var fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? public var fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? @@ -53,6 +54,7 @@ extension APIEndpoint.V1.Apps { public var limitAppCustomProductPages: Int? public var limitAppEvents: Int? public var limitAppInfos: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var limitAppStoreVersions: Int? public var limitAvailableTerritories: Int? public var limitBetaAppLocalizations: Int? @@ -75,6 +77,7 @@ extension APIEndpoint.V1.Apps { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -116,6 +119,7 @@ extension APIEndpoint.V1.Apps { case appCustomProductPages case appEvents case appInfos + case appStoreVersionExperimentsV2 case appStoreVersions case availableTerritories case betaAppLocalizations @@ -173,9 +177,11 @@ extension APIEndpoint.V1.Apps { case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -344,6 +350,21 @@ extension APIEndpoint.V1.Apps { case preOrderAvailableDate } + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + public enum FieldsGameCenterEnabledVersions: String, Codable, CaseIterable { case app case compatibleVersions @@ -372,6 +393,7 @@ extension APIEndpoint.V1.Apps { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -407,7 +429,7 @@ extension APIEndpoint.V1.Apps { case platform } - public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.fieldsApps = fieldsApps self.include = include self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails @@ -430,6 +452,7 @@ extension APIEndpoint.V1.Apps { self.fieldsSubscriptionGroups = fieldsSubscriptionGroups self.fieldsAppPrices = fieldsAppPrices self.fieldsAppPreOrders = fieldsAppPreOrders + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments self.fieldsGameCenterEnabledVersions = fieldsGameCenterEnabledVersions self.fieldsSubscriptionGracePeriods = fieldsSubscriptionGracePeriods self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements @@ -441,6 +464,7 @@ extension APIEndpoint.V1.Apps { self.limitAppCustomProductPages = limitAppCustomProductPages self.limitAppEvents = limitAppEvents self.limitAppInfos = limitAppInfos + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.limitAppStoreVersions = limitAppStoreVersions self.limitAvailableTerritories = limitAvailableTerritories self.limitBetaAppLocalizations = limitBetaAppLocalizations @@ -480,6 +504,7 @@ extension APIEndpoint.V1.Apps { encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") encoder.encode(fieldsAppPrices, forKey: "fields[appPrices]") encoder.encode(fieldsAppPreOrders, forKey: "fields[appPreOrders]") + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") encoder.encode(fieldsGameCenterEnabledVersions, forKey: "fields[gameCenterEnabledVersions]") encoder.encode(fieldsSubscriptionGracePeriods, forKey: "fields[subscriptionGracePeriods]") encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") @@ -491,6 +516,7 @@ extension APIEndpoint.V1.Apps { encoder.encode(limitAppCustomProductPages, forKey: "limit[appCustomProductPages]") encoder.encode(limitAppEvents, forKey: "limit[appEvents]") encoder.encode(limitAppInfos, forKey: "limit[appInfos]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(limitAppStoreVersions, forKey: "limit[appStoreVersions]") encoder.encode(limitAvailableTerritories, forKey: "limit[availableTerritories]") encoder.encode(limitBetaAppLocalizations, forKey: "limit[betaAppLocalizations]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift index 472df828..44ca03f1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift @@ -40,6 +40,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift index ed7be920..15159a9f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift index ad6e5f9a..58c27485 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift index 82a12e17..3e8dbf71 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift @@ -90,6 +90,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift index 16bf0caf..257167e7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift index c9b49a03..86c508e1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift @@ -51,6 +51,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift new file mode 100644 index 00000000..ba97aac3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift @@ -0,0 +1,172 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID { + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 { + AppStoreVersionExperimentsV2(path: path + "/appStoreVersionExperimentsV2") + } + + public struct AppStoreVersionExperimentsV2 { + /// Path: `/v1/apps/{id}/appStoreVersionExperimentsV2` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var filterState: [FilterState]? + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? + public var fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsApps: [FieldsApps]? + public var limit: Int? + public var limitControlVersions: Int? + public var limitAppStoreVersionExperimentTreatments: Int? + public var include: [Include]? + + public enum FilterState: String, Codable, CaseIterable { + case prepareForSubmission = "PREPARE_FOR_SUBMISSION" + case readyForReview = "READY_FOR_REVIEW" + case waitingForReview = "WAITING_FOR_REVIEW" + case inReview = "IN_REVIEW" + case accepted = "ACCEPTED" + case approved = "APPROVED" + case rejected = "REJECTED" + case completed = "COMPLETED" + case stopped = "STOPPED" + } + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum FieldsAppStoreVersionExperimentTreatments: String, Codable, CaseIterable { + case appIcon + case appIconName + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 + case name + case promotedDate + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum Include: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case latestControlVersion + } + + public init(filterState: [FilterState]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, limitControlVersions: Int? = nil, limitAppStoreVersionExperimentTreatments: Int? = nil, include: [Include]? = nil) { + self.filterState = filterState + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments + self.fieldsAppStoreVersionExperimentTreatments = fieldsAppStoreVersionExperimentTreatments + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsApps = fieldsApps + self.limit = limit + self.limitControlVersions = limitControlVersions + self.limitAppStoreVersionExperimentTreatments = limitAppStoreVersionExperimentTreatments + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterState, forKey: "filter[state]") + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") + encoder.encode(fieldsAppStoreVersionExperimentTreatments, forKey: "fields[appStoreVersionExperimentTreatments]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitControlVersions, forKey: "limit[controlVersions]") + encoder.encode(limitAppStoreVersionExperimentTreatments, forKey: "limit[appStoreVersionExperimentTreatments]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift index 526a3cb6..4b6ac619 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift @@ -38,6 +38,7 @@ extension APIEndpoint.V1.Apps.WithID { public var limit: Int? public var limitAppStoreVersionLocalizations: Int? public var limitAppStoreVersionExperiments: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var include: [Include]? public enum FilterAppStoreState: String, Codable, CaseIterable { @@ -69,10 +70,13 @@ extension APIEndpoint.V1.Apps.WithID { } public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -124,6 +128,7 @@ extension APIEndpoint.V1.Apps.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -147,6 +152,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -256,6 +262,7 @@ extension APIEndpoint.V1.Apps.WithID { case appClipDefaultExperience case appStoreReviewDetail case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -263,7 +270,7 @@ extension APIEndpoint.V1.Apps.WithID { case routingAppCoverage } - public init(filterAppStoreState: [FilterAppStoreState]? = nil, filterPlatform: [FilterPlatform]? = nil, filterVersionString: [String]? = nil, filterID: [String]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, include: [Include]? = nil) { + public init(filterAppStoreState: [FilterAppStoreState]? = nil, filterPlatform: [FilterPlatform]? = nil, filterVersionString: [String]? = nil, filterID: [String]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { self.filterAppStoreState = filterAppStoreState self.filterPlatform = filterPlatform self.filterVersionString = filterVersionString @@ -282,6 +289,7 @@ extension APIEndpoint.V1.Apps.WithID { self.limit = limit self.limitAppStoreVersionLocalizations = limitAppStoreVersionLocalizations self.limitAppStoreVersionExperiments = limitAppStoreVersionExperiments + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.include = include } @@ -305,6 +313,7 @@ extension APIEndpoint.V1.Apps.WithID { encoder.encode(limit, forKey: "limit") encoder.encode(limitAppStoreVersionLocalizations, forKey: "limit[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionExperiments, forKey: "limit[appStoreVersionExperiments]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(include, forKey: "include") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift index f27e5509..27ba13f6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift @@ -47,6 +47,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift index fbd55317..3cf9be51 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift @@ -57,6 +57,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift index fbb1e503..c9fe197f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift @@ -63,6 +63,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift index 66fe69ce..a83ff4ab 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift @@ -26,7 +26,7 @@ extension APIEndpoint.V1.Apps.WithID { public var filterState: [FilterState]? public var sort: [Sort]? public var fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? - public var fieldsInAppPurchasePricePoints: [FieldsInAppPurchasePricePoints]? + public var fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? public var fieldsPromotedPurchases: [FieldsPromotedPurchases]? public var fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? public var fieldsInAppPurchases: [FieldsInAppPurchases]? @@ -34,7 +34,6 @@ extension APIEndpoint.V1.Apps.WithID { public var fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? public var limit: Int? public var limitInAppPurchaseLocalizations: Int? - public var limitPricePoints: Int? public var include: [Include]? public enum FilterInAppPurchaseType: String, Codable, CaseIterable { @@ -78,12 +77,10 @@ extension APIEndpoint.V1.Apps.WithID { case uploaded } - public enum FieldsInAppPurchasePricePoints: String, Codable, CaseIterable { - case customerPrice - case inAppPurchaseV2 - case priceTier - case proceeds - case territory + public enum FieldsInAppPurchaseAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case inAppPurchase } public enum FieldsPromotedPurchases: String, Codable, CaseIterable { @@ -112,10 +109,10 @@ extension APIEndpoint.V1.Apps.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name - case pricePoints case productID = "productId" case promotedPurchase case reviewNote @@ -141,19 +138,19 @@ extension APIEndpoint.V1.Apps.WithID { case appStoreReviewScreenshot case content case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations - case pricePoints case promotedPurchase } - public init(filterInAppPurchaseType: [FilterInAppPurchaseType]? = nil, filterName: [String]? = nil, filterProductID: [String]? = nil, filterState: [FilterState]? = nil, sort: [Sort]? = nil, fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? = nil, fieldsInAppPurchasePricePoints: [FieldsInAppPurchasePricePoints]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsInAppPurchasePriceSchedules: [FieldsInAppPurchasePriceSchedules]? = nil, fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? = nil, limit: Int? = nil, limitInAppPurchaseLocalizations: Int? = nil, limitPricePoints: Int? = nil, include: [Include]? = nil) { + public init(filterInAppPurchaseType: [FilterInAppPurchaseType]? = nil, filterName: [String]? = nil, filterProductID: [String]? = nil, filterState: [FilterState]? = nil, sort: [Sort]? = nil, fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? = nil, fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsInAppPurchasePriceSchedules: [FieldsInAppPurchasePriceSchedules]? = nil, fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? = nil, limit: Int? = nil, limitInAppPurchaseLocalizations: Int? = nil, include: [Include]? = nil) { self.filterInAppPurchaseType = filterInAppPurchaseType self.filterName = filterName self.filterProductID = filterProductID self.filterState = filterState self.sort = sort self.fieldsInAppPurchaseAppStoreReviewScreenshots = fieldsInAppPurchaseAppStoreReviewScreenshots - self.fieldsInAppPurchasePricePoints = fieldsInAppPurchasePricePoints + self.fieldsInAppPurchaseAvailabilities = fieldsInAppPurchaseAvailabilities self.fieldsPromotedPurchases = fieldsPromotedPurchases self.fieldsInAppPurchaseLocalizations = fieldsInAppPurchaseLocalizations self.fieldsInAppPurchases = fieldsInAppPurchases @@ -161,7 +158,6 @@ extension APIEndpoint.V1.Apps.WithID { self.fieldsInAppPurchaseContents = fieldsInAppPurchaseContents self.limit = limit self.limitInAppPurchaseLocalizations = limitInAppPurchaseLocalizations - self.limitPricePoints = limitPricePoints self.include = include } @@ -173,7 +169,7 @@ extension APIEndpoint.V1.Apps.WithID { encoder.encode(filterState, forKey: "filter[state]") encoder.encode(sort, forKey: "sort") encoder.encode(fieldsInAppPurchaseAppStoreReviewScreenshots, forKey: "fields[inAppPurchaseAppStoreReviewScreenshots]") - encoder.encode(fieldsInAppPurchasePricePoints, forKey: "fields[inAppPurchasePricePoints]") + encoder.encode(fieldsInAppPurchaseAvailabilities, forKey: "fields[inAppPurchaseAvailabilities]") encoder.encode(fieldsPromotedPurchases, forKey: "fields[promotedPurchases]") encoder.encode(fieldsInAppPurchaseLocalizations, forKey: "fields[inAppPurchaseLocalizations]") encoder.encode(fieldsInAppPurchases, forKey: "fields[inAppPurchases]") @@ -181,7 +177,6 @@ extension APIEndpoint.V1.Apps.WithID { encoder.encode(fieldsInAppPurchaseContents, forKey: "fields[inAppPurchaseContents]") encoder.encode(limit, forKey: "limit") encoder.encode(limitInAppPurchaseLocalizations, forKey: "limit[inAppPurchaseLocalizations]") - encoder.encode(limitPricePoints, forKey: "limit[pricePoints]") encoder.encode(include, forKey: "include") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift index 2d40f0bc..7ed3f317 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift @@ -50,6 +50,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift index 5e8632c4..8fc195c5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift index 266104a8..13ef6532 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift @@ -54,6 +54,7 @@ extension APIEndpoint.V1.Apps.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } @@ -66,6 +67,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift new file mode 100644 index 00000000..ebe8ab84 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID.Relationships { + public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2 { + AppStoreVersionExperimentsV2(path: path + "/appStoreVersionExperimentsV2") + } + + public struct AppStoreVersionExperimentsV2 { + /// Path: `/v1/apps/{id}/relationships/appStoreVersionExperimentsV2` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift index 776e4d49..165d64a2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift @@ -23,6 +23,7 @@ extension APIEndpoint.V1.Apps.WithID { public var filterPlatform: [FilterPlatform]? public var filterState: [FilterState]? public var fieldsReviewSubmissionItems: [FieldsReviewSubmissionItems]? + public var fieldsActors: [FieldsActors]? public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? public var fieldsApps: [FieldsApps]? public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? @@ -51,12 +52,21 @@ extension APIEndpoint.V1.Apps.WithID { case appEvent case appStoreVersion case appStoreVersionExperiment + case appStoreVersionExperimentV2 case removed case resolved case reviewSubmission case state } + public enum FieldsActors: String, Codable, CaseIterable { + case actorType + case apiKeyID = "apiKeyId" + case userEmail + case userFirstName + case userLastName + } + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { case ageRatingDeclaration case app @@ -64,6 +74,7 @@ extension APIEndpoint.V1.Apps.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -87,6 +98,7 @@ extension APIEndpoint.V1.Apps.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -128,9 +140,11 @@ extension APIEndpoint.V1.Apps.WithID { case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -138,12 +152,15 @@ extension APIEndpoint.V1.Apps.WithID { case app case appStoreVersionForReview case items + case lastUpdatedByActor + case submittedByActor } - public init(filterPlatform: [FilterPlatform]? = nil, filterState: [FilterState]? = nil, fieldsReviewSubmissionItems: [FieldsReviewSubmissionItems]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, limit: Int? = nil, limitItems: Int? = nil, include: [Include]? = nil) { + public init(filterPlatform: [FilterPlatform]? = nil, filterState: [FilterState]? = nil, fieldsReviewSubmissionItems: [FieldsReviewSubmissionItems]? = nil, fieldsActors: [FieldsActors]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, limit: Int? = nil, limitItems: Int? = nil, include: [Include]? = nil) { self.filterPlatform = filterPlatform self.filterState = filterState self.fieldsReviewSubmissionItems = fieldsReviewSubmissionItems + self.fieldsActors = fieldsActors self.fieldsAppStoreVersions = fieldsAppStoreVersions self.fieldsApps = fieldsApps self.fieldsReviewSubmissions = fieldsReviewSubmissions @@ -157,6 +174,7 @@ extension APIEndpoint.V1.Apps.WithID { encoder.encode(filterPlatform, forKey: "filter[platform]") encoder.encode(filterState, forKey: "filter[state]") encoder.encode(fieldsReviewSubmissionItems, forKey: "fields[reviewSubmissionItems]") + encoder.encode(fieldsActors, forKey: "fields[actors]") encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") encoder.encode(fieldsApps, forKey: "fields[apps]") encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift index ea1ec2df..0b31d189 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift @@ -65,6 +65,7 @@ extension APIEndpoint.V1.Apps.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift index cd60f005..6ca91239 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift @@ -49,6 +49,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift index 4c47ca98..3fff0ae5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift @@ -46,6 +46,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift index 017421e7..bce0a2d4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift index eb5794d8..f74f3300 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift @@ -50,6 +50,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift index f5ac429c..5ce1a8b6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift @@ -48,6 +48,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift index 8b458612..83dc90d6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift index 1d3eb44f..4f8b2f10 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift @@ -90,6 +90,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift index b22479ec..2e70c086 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift @@ -69,6 +69,7 @@ extension APIEndpoint.V1.BetaGroups { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift index 2f224fd2..b257de76 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift index ab6de388..750d3c51 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift index e131d1d2..37f8e7a7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift @@ -41,6 +41,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift index e3373765..842b97c8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift index 5b8ef966..8097c8b7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift @@ -79,6 +79,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift index dc4c7f17..aa93f41e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V1.BetaTesters { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift index 72ab5d8f..549f678d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift @@ -34,6 +34,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift index 287af733..15a9c7f7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift @@ -172,6 +172,7 @@ extension APIEndpoint.V1 { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -228,6 +229,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift index cf028a2a..bd0ecc79 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift @@ -123,6 +123,7 @@ extension APIEndpoint.V1.Builds { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -179,6 +180,7 @@ extension APIEndpoint.V1.Builds { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift index 17c798f1..e35aabe7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.Builds.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift index 3728e218..b95067f5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift @@ -33,13 +33,17 @@ extension APIEndpoint.V1.Builds.WithID { public var fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? public var limitAppStoreVersionLocalizations: Int? public var limitAppStoreVersionExperiments: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var include: [Include]? public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -91,6 +95,7 @@ extension APIEndpoint.V1.Builds.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -114,6 +119,7 @@ extension APIEndpoint.V1.Builds.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -223,6 +229,7 @@ extension APIEndpoint.V1.Builds.WithID { case appClipDefaultExperience case appStoreReviewDetail case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -230,7 +237,7 @@ extension APIEndpoint.V1.Builds.WithID { case routingAppCoverage } - public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, include: [Include]? = nil) { + public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments self.fieldsAgeRatingDeclarations = fieldsAgeRatingDeclarations self.fieldsAppStoreVersionSubmissions = fieldsAppStoreVersionSubmissions @@ -244,6 +251,7 @@ extension APIEndpoint.V1.Builds.WithID { self.fieldsAppStoreVersionLocalizations = fieldsAppStoreVersionLocalizations self.limitAppStoreVersionLocalizations = limitAppStoreVersionLocalizations self.limitAppStoreVersionExperiments = limitAppStoreVersionExperiments + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.include = include } @@ -262,6 +270,7 @@ extension APIEndpoint.V1.Builds.WithID { encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionLocalizations, forKey: "limit[appStoreVersionLocalizations]") encoder.encode(limitAppStoreVersionExperiments, forKey: "limit[appStoreVersionExperiments]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(include, forKey: "include") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift index 7e2576ef..721b9773 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/preReleaseVersion` public let path: String - public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { + public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsPreReleaseVersions)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift index 091ab0c8..05bab460 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift @@ -97,6 +97,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift index 5e515a6b..d4586e9e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift @@ -72,6 +72,7 @@ extension APIEndpoint.V1.BundleIDs { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift index 5cf8a419..7b694aec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift index 4a59a977..f20495d8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift @@ -161,6 +161,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -204,6 +205,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift index 70785f74..2c651b33 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift @@ -106,6 +106,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift index 36c53acd..a21e9adb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift @@ -98,6 +98,7 @@ extension APIEndpoint.V1.CiProducts { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift index d9ebdd7e..64dcb704 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift @@ -20,29 +20,30 @@ extension APIEndpoint.V1.CiProducts.WithID { } public struct GetParameters { - public var fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? public var fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? + public var fieldsCiProducts: [FieldsCiProducts]? + public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? + public var fieldsBetaGroups: [FieldsBetaGroups]? + public var fieldsPromotedPurchases: [FieldsPromotedPurchases]? + public var fieldsApps: [FieldsApps]? + public var fieldsAppEvents: [FieldsAppEvents]? + public var fieldsBuilds: [FieldsBuilds]? + public var fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? public var fieldsAppClips: [FieldsAppClips]? public var fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? public var fieldsAppInfos: [FieldsAppInfos]? public var fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? public var fieldsInAppPurchases: [FieldsInAppPurchases]? - public var fieldsCiProducts: [FieldsCiProducts]? public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? - public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? - public var fieldsBetaGroups: [FieldsBetaGroups]? public var fieldsAppPreOrders: [FieldsAppPreOrders]? public var fieldsAppPrices: [FieldsAppPrices]? public var fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? public var fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? - public var fieldsPromotedPurchases: [FieldsPromotedPurchases]? public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? public var fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? - public var fieldsApps: [FieldsApps]? - public var fieldsAppEvents: [FieldsAppEvents]? public var fieldsTerritories: [FieldsTerritories]? - public var fieldsBuilds: [FieldsBuilds]? public var limitBetaGroups: Int? public var limitAppStoreVersions: Int? public var limitPreReleaseVersions: Int? @@ -60,13 +61,9 @@ extension APIEndpoint.V1.CiProducts.WithID { public var limitPromotedPurchases: Int? public var limitAppEvents: Int? public var limitReviewSubmissions: Int? + public var limitAppStoreVersionExperimentsV2: Int? public var include: [Include]? - public enum FieldsBetaLicenseAgreements: String, Codable, CaseIterable { - case agreementText - case app - } - public enum FieldsBetaAppReviewDetails: String, Codable, CaseIterable { case app case contactEmail @@ -79,55 +76,6 @@ extension APIEndpoint.V1.CiProducts.WithID { case notes } - public enum FieldsAppClips: String, Codable, CaseIterable { - case app - case appClipAdvancedExperiences - case appClipDefaultExperiences - case bundleID = "bundleId" - } - - public enum FieldsBetaAppLocalizations: String, Codable, CaseIterable { - case app - case description - case feedbackEmail - case locale - case marketingURL = "marketingUrl" - case privacyPolicyURL = "privacyPolicyUrl" - case tvOsPrivacyPolicy - } - - public enum FieldsAppInfos: String, Codable, CaseIterable { - case ageRatingDeclaration - case app - case appInfoLocalizations - case appStoreAgeRating - case appStoreState - case brazilAgeRating - case brazilAgeRatingV2 - case kidsAgeBand - case primaryCategory - case primarySubcategoryOne - case primarySubcategoryTwo - case secondaryCategory - case secondarySubcategoryOne - case secondarySubcategoryTwo - } - - public enum FieldsPreReleaseVersions: String, Codable, CaseIterable { - case app - case builds - case platform - case version - } - - public enum FieldsInAppPurchases: String, Codable, CaseIterable { - case apps - case inAppPurchaseType - case productID = "productId" - case referenceName - case state - } - public enum FieldsCiProducts: String, Codable, CaseIterable { case additionalRepositories case app @@ -140,21 +88,16 @@ extension APIEndpoint.V1.CiProducts.WithID { case workflows } - public enum FieldsSubscriptionGroups: String, Codable, CaseIterable { - case app - case referenceName - case subscriptionGroupLocalizations - case subscriptions - } - public enum FieldsReviewSubmissions: String, Codable, CaseIterable { case app case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -175,32 +118,6 @@ extension APIEndpoint.V1.CiProducts.WithID { case publicLinkLimitEnabled } - public enum FieldsAppPreOrders: String, Codable, CaseIterable { - case app - case appReleaseDate - case preOrderAvailableDate - } - - public enum FieldsAppPrices: String, Codable, CaseIterable { - case app - case priceTier - } - - public enum FieldsGameCenterEnabledVersions: String, Codable, CaseIterable { - case app - case compatibleVersions - case iconAsset - case platform - case versionString - } - - public enum FieldsSubscriptionGracePeriods: String, Codable, CaseIterable { - case duration - case optIn - case renewalType - case sandboxOptIn - } - public enum FieldsPromotedPurchases: String, Codable, CaseIterable { case app case enabled @@ -211,44 +128,6 @@ extension APIEndpoint.V1.CiProducts.WithID { case visibleForAllUsers } - public enum FieldsEndUserLicenseAgreements: String, Codable, CaseIterable { - case agreementText - case app - case territories - } - - public enum FieldsAppStoreVersions: String, Codable, CaseIterable { - case ageRatingDeclaration - case app - case appClipDefaultExperience - case appStoreReviewDetail - case appStoreState - case appStoreVersionExperiments - case appStoreVersionLocalizations - case appStoreVersionPhasedRelease - case appStoreVersionSubmission - case build - case copyright - case createdDate - case customerReviews - case downloadable - case earliestReleaseDate - case platform - case releaseType - case routingAppCoverage - case versionString - } - - public enum FieldsAppCustomProductPages: String, Codable, CaseIterable { - case app - case appCustomProductPageVersions - case appStoreVersionTemplate - case customProductPageTemplate - case name - case url - case visible - } - public enum FieldsApps: String, Codable, CaseIterable { case appAvailability case appClips @@ -257,6 +136,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories @@ -308,10 +188,6 @@ extension APIEndpoint.V1.CiProducts.WithID { case territorySchedules } - public enum FieldsTerritories: String, Codable, CaseIterable { - case currency - } - public enum FieldsBuilds: String, Codable, CaseIterable { case app case appEncryptionDeclaration @@ -339,11 +215,157 @@ extension APIEndpoint.V1.CiProducts.WithID { case version } + public enum FieldsBetaLicenseAgreements: String, Codable, CaseIterable { + case agreementText + case app + } + + public enum FieldsAppClips: String, Codable, CaseIterable { + case app + case appClipAdvancedExperiences + case appClipDefaultExperiences + case bundleID = "bundleId" + } + + public enum FieldsBetaAppLocalizations: String, Codable, CaseIterable { + case app + case description + case feedbackEmail + case locale + case marketingURL = "marketingUrl" + case privacyPolicyURL = "privacyPolicyUrl" + case tvOsPrivacyPolicy + } + + public enum FieldsAppInfos: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appInfoLocalizations + case appStoreAgeRating + case appStoreState + case brazilAgeRating + case brazilAgeRatingV2 + case kidsAgeBand + case primaryCategory + case primarySubcategoryOne + case primarySubcategoryTwo + case secondaryCategory + case secondarySubcategoryOne + case secondarySubcategoryTwo + } + + public enum FieldsPreReleaseVersions: String, Codable, CaseIterable { + case app + case builds + case platform + case version + } + + public enum FieldsInAppPurchases: String, Codable, CaseIterable { + case apps + case inAppPurchaseType + case productID = "productId" + case referenceName + case state + } + + public enum FieldsSubscriptionGroups: String, Codable, CaseIterable { + case app + case referenceName + case subscriptionGroupLocalizations + case subscriptions + } + + public enum FieldsAppPreOrders: String, Codable, CaseIterable { + case app + case appReleaseDate + case preOrderAvailableDate + } + + public enum FieldsAppPrices: String, Codable, CaseIterable { + case app + case priceTier + } + + public enum FieldsGameCenterEnabledVersions: String, Codable, CaseIterable { + case app + case compatibleVersions + case iconAsset + case platform + case versionString + } + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum FieldsSubscriptionGracePeriods: String, Codable, CaseIterable { + case duration + case optIn + case renewalType + case sandboxOptIn + } + + public enum FieldsEndUserLicenseAgreements: String, Codable, CaseIterable { + case agreementText + case app + case territories + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsAppCustomProductPages: String, Codable, CaseIterable { + case app + case appCustomProductPageVersions + case appStoreVersionTemplate + case customProductPageTemplate + case name + case url + case visible + } + + public enum FieldsTerritories: String, Codable, CaseIterable { + case currency + } + public enum Include: String, Codable, CaseIterable { case appClips case appCustomProductPages case appEvents case appInfos + case appStoreVersionExperimentsV2 case appStoreVersions case availableTerritories case betaAppLocalizations @@ -365,30 +387,31 @@ extension APIEndpoint.V1.CiProducts.WithID { case subscriptionGroups } - public init(fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, limitBetaGroups: Int? = nil, limitAppStoreVersions: Int? = nil, limitPreReleaseVersions: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBuilds: Int? = nil, limitAppInfos: Int? = nil, limitAppClips: Int? = nil, limitPrices: Int? = nil, limitAvailableTerritories: Int? = nil, limitInAppPurchases: Int? = nil, limitSubscriptionGroups: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitAppCustomProductPages: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPromotedPurchases: Int? = nil, limitAppEvents: Int? = nil, limitReviewSubmissions: Int? = nil, include: [Include]? = nil) { - self.fieldsBetaLicenseAgreements = fieldsBetaLicenseAgreements + public init(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limitBetaGroups: Int? = nil, limitAppStoreVersions: Int? = nil, limitPreReleaseVersions: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBuilds: Int? = nil, limitAppInfos: Int? = nil, limitAppClips: Int? = nil, limitPrices: Int? = nil, limitAvailableTerritories: Int? = nil, limitInAppPurchases: Int? = nil, limitSubscriptionGroups: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitAppCustomProductPages: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPromotedPurchases: Int? = nil, limitAppEvents: Int? = nil, limitReviewSubmissions: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails + self.fieldsCiProducts = fieldsCiProducts + self.fieldsReviewSubmissions = fieldsReviewSubmissions + self.fieldsBetaGroups = fieldsBetaGroups + self.fieldsPromotedPurchases = fieldsPromotedPurchases + self.fieldsApps = fieldsApps + self.fieldsAppEvents = fieldsAppEvents + self.fieldsBuilds = fieldsBuilds + self.fieldsBetaLicenseAgreements = fieldsBetaLicenseAgreements self.fieldsAppClips = fieldsAppClips self.fieldsBetaAppLocalizations = fieldsBetaAppLocalizations self.fieldsAppInfos = fieldsAppInfos self.fieldsPreReleaseVersions = fieldsPreReleaseVersions self.fieldsInAppPurchases = fieldsInAppPurchases - self.fieldsCiProducts = fieldsCiProducts self.fieldsSubscriptionGroups = fieldsSubscriptionGroups - self.fieldsReviewSubmissions = fieldsReviewSubmissions - self.fieldsBetaGroups = fieldsBetaGroups self.fieldsAppPreOrders = fieldsAppPreOrders self.fieldsAppPrices = fieldsAppPrices self.fieldsGameCenterEnabledVersions = fieldsGameCenterEnabledVersions + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments self.fieldsSubscriptionGracePeriods = fieldsSubscriptionGracePeriods - self.fieldsPromotedPurchases = fieldsPromotedPurchases self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements self.fieldsAppStoreVersions = fieldsAppStoreVersions self.fieldsAppCustomProductPages = fieldsAppCustomProductPages - self.fieldsApps = fieldsApps - self.fieldsAppEvents = fieldsAppEvents self.fieldsTerritories = fieldsTerritories - self.fieldsBuilds = fieldsBuilds self.limitBetaGroups = limitBetaGroups self.limitAppStoreVersions = limitAppStoreVersions self.limitPreReleaseVersions = limitPreReleaseVersions @@ -406,34 +429,36 @@ extension APIEndpoint.V1.CiProducts.WithID { self.limitPromotedPurchases = limitPromotedPurchases self.limitAppEvents = limitAppEvents self.limitReviewSubmissions = limitReviewSubmissions + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 self.include = include } public var asQuery: [(String, String?)] { let encoder = URLQueryEncoder(explode: false) - encoder.encode(fieldsBetaLicenseAgreements, forKey: "fields[betaLicenseAgreements]") encoder.encode(fieldsBetaAppReviewDetails, forKey: "fields[betaAppReviewDetails]") + encoder.encode(fieldsCiProducts, forKey: "fields[ciProducts]") + encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") + encoder.encode(fieldsBetaGroups, forKey: "fields[betaGroups]") + encoder.encode(fieldsPromotedPurchases, forKey: "fields[promotedPurchases]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(fieldsAppEvents, forKey: "fields[appEvents]") + encoder.encode(fieldsBuilds, forKey: "fields[builds]") + encoder.encode(fieldsBetaLicenseAgreements, forKey: "fields[betaLicenseAgreements]") encoder.encode(fieldsAppClips, forKey: "fields[appClips]") encoder.encode(fieldsBetaAppLocalizations, forKey: "fields[betaAppLocalizations]") encoder.encode(fieldsAppInfos, forKey: "fields[appInfos]") encoder.encode(fieldsPreReleaseVersions, forKey: "fields[preReleaseVersions]") encoder.encode(fieldsInAppPurchases, forKey: "fields[inAppPurchases]") - encoder.encode(fieldsCiProducts, forKey: "fields[ciProducts]") encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") - encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") - encoder.encode(fieldsBetaGroups, forKey: "fields[betaGroups]") encoder.encode(fieldsAppPreOrders, forKey: "fields[appPreOrders]") encoder.encode(fieldsAppPrices, forKey: "fields[appPrices]") encoder.encode(fieldsGameCenterEnabledVersions, forKey: "fields[gameCenterEnabledVersions]") + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") encoder.encode(fieldsSubscriptionGracePeriods, forKey: "fields[subscriptionGracePeriods]") - encoder.encode(fieldsPromotedPurchases, forKey: "fields[promotedPurchases]") encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") encoder.encode(fieldsAppCustomProductPages, forKey: "fields[appCustomProductPages]") - encoder.encode(fieldsApps, forKey: "fields[apps]") - encoder.encode(fieldsAppEvents, forKey: "fields[appEvents]") encoder.encode(fieldsTerritories, forKey: "fields[territories]") - encoder.encode(fieldsBuilds, forKey: "fields[builds]") encoder.encode(limitBetaGroups, forKey: "limit[betaGroups]") encoder.encode(limitAppStoreVersions, forKey: "limit[appStoreVersions]") encoder.encode(limitPreReleaseVersions, forKey: "limit[preReleaseVersions]") @@ -451,6 +476,7 @@ extension APIEndpoint.V1.CiProducts.WithID { encoder.encode(limitPromotedPurchases, forKey: "limit[promotedPurchases]") encoder.encode(limitAppEvents, forKey: "limit[appEvents]") encoder.encode(limitReviewSubmissions, forKey: "limit[reviewSubmissions]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") encoder.encode(include, forKey: "include") return encoder.items } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift index 0c7462bf..4d8ea155 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift @@ -58,6 +58,7 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift index 93a68128..5059c113 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift @@ -73,6 +73,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift index 494357cc..efde5525 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.PreReleaseVersions { /// Path: `/v1/preReleaseVersions/{id}` public let path: String - public func get(parameters: GetParameters? = nil) -> Request { + public func get(parameters: GetParameters? = nil) -> Request { .get(path, query: parameters?.asQuery) } @@ -46,6 +46,7 @@ extension APIEndpoint.V1.PreReleaseVersions { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift index cb1c90ca..d7d1f5f7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift @@ -33,6 +33,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift index cde5f433..b01873cc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift @@ -50,9 +50,11 @@ extension APIEndpoint.V1 { case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -60,6 +62,8 @@ extension APIEndpoint.V1 { case app case appStoreVersionForReview case items + case lastUpdatedByActor + case submittedByActor } public enum FieldsReviewSubmissionItems: String, Codable, CaseIterable { @@ -67,6 +71,7 @@ extension APIEndpoint.V1 { case appEvent case appStoreVersion case appStoreVersionExperiment + case appStoreVersionExperimentV2 case removed case resolved case reviewSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift index 343cce3b..1e140388 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift @@ -30,9 +30,11 @@ extension APIEndpoint.V1.ReviewSubmissions { case appStoreVersionForReview case canceled case items + case lastUpdatedByActor case platform case state case submitted + case submittedByActor case submittedDate } @@ -40,6 +42,8 @@ extension APIEndpoint.V1.ReviewSubmissions { case app case appStoreVersionForReview case items + case lastUpdatedByActor + case submittedByActor } public enum FieldsReviewSubmissionItems: String, Codable, CaseIterable { @@ -47,6 +51,7 @@ extension APIEndpoint.V1.ReviewSubmissions { case appEvent case appStoreVersion case appStoreVersionExperiment + case appStoreVersionExperimentV2 case removed case resolved case reviewSubmission diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift index cace6ca4..d469a667 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift @@ -29,10 +29,13 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { public var include: [Include]? public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { - case appStoreVersion + case app case appStoreVersionExperimentTreatments + case controlVersions case endDate + case latestControlVersion case name + case platform case reviewRequired case startDate case started @@ -45,6 +48,7 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { case appEvent case appStoreVersion case appStoreVersionExperiment + case appStoreVersionExperimentV2 case removed case resolved case reviewSubmission @@ -58,6 +62,7 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { case appStoreReviewDetail case appStoreState case appStoreVersionExperiments + case appStoreVersionExperimentsV2 case appStoreVersionLocalizations case appStoreVersionPhasedRelease case appStoreVersionSubmission @@ -100,6 +105,7 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { case appEvent case appStoreVersion case appStoreVersionExperiment + case appStoreVersionExperimentV2 } public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsReviewSubmissionItems: [FieldsReviewSubmissionItems]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPageVersions: [FieldsAppCustomProductPageVersions]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, limit: Int? = nil, include: [Include]? = nil) { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift index 3acb1c39..b1367432 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift @@ -55,6 +55,7 @@ extension APIEndpoint.V1.SubscriptionGroups { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift index 7f3c7f48..1dfb0245 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift @@ -29,6 +29,7 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { public var fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? public var fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? public var fieldsSubscriptions: [FieldsSubscriptions]? + public var fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? public var fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? public var fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? public var fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? @@ -123,10 +124,17 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } + public enum FieldsSubscriptionAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case subscription + } + public enum FieldsSubscriptionGroups: String, Codable, CaseIterable { case app case referenceName @@ -170,10 +178,11 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { case prices case promotedPurchase case promotionalOffers + case subscriptionAvailability case subscriptionLocalizations } - public init(filterName: [String]? = nil, filterProductID: [String]? = nil, filterState: [FilterState]? = nil, sort: [Sort]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsSubscriptionPromotionalOffers: [FieldsSubscriptionPromotionalOffers]? = nil, fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? = nil, fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? = nil, fieldsSubscriptions: [FieldsSubscriptions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? = nil, fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? = nil, fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? = nil, limit: Int? = nil, limitSubscriptionLocalizations: Int? = nil, limitIntroductoryOffers: Int? = nil, limitPromotionalOffers: Int? = nil, limitOfferCodes: Int? = nil, limitPrices: Int? = nil, include: [Include]? = nil) { + public init(filterName: [String]? = nil, filterProductID: [String]? = nil, filterState: [FilterState]? = nil, sort: [Sort]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsSubscriptionPromotionalOffers: [FieldsSubscriptionPromotionalOffers]? = nil, fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? = nil, fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? = nil, fieldsSubscriptions: [FieldsSubscriptions]? = nil, fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? = nil, fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? = nil, fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? = nil, limit: Int? = nil, limitSubscriptionLocalizations: Int? = nil, limitIntroductoryOffers: Int? = nil, limitPromotionalOffers: Int? = nil, limitOfferCodes: Int? = nil, limitPrices: Int? = nil, include: [Include]? = nil) { self.filterName = filterName self.filterProductID = filterProductID self.filterState = filterState @@ -183,6 +192,7 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { self.fieldsSubscriptionOfferCodes = fieldsSubscriptionOfferCodes self.fieldsSubscriptionAppStoreReviewScreenshots = fieldsSubscriptionAppStoreReviewScreenshots self.fieldsSubscriptions = fieldsSubscriptions + self.fieldsSubscriptionAvailabilities = fieldsSubscriptionAvailabilities self.fieldsSubscriptionGroups = fieldsSubscriptionGroups self.fieldsSubscriptionIntroductoryOffers = fieldsSubscriptionIntroductoryOffers self.fieldsSubscriptionPrices = fieldsSubscriptionPrices @@ -207,6 +217,7 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { encoder.encode(fieldsSubscriptionOfferCodes, forKey: "fields[subscriptionOfferCodes]") encoder.encode(fieldsSubscriptionAppStoreReviewScreenshots, forKey: "fields[subscriptionAppStoreReviewScreenshots]") encoder.encode(fieldsSubscriptions, forKey: "fields[subscriptions]") + encoder.encode(fieldsSubscriptionAvailabilities, forKey: "fields[subscriptionAvailabilities]") encoder.encode(fieldsSubscriptionGroups, forKey: "fields[subscriptionGroups]") encoder.encode(fieldsSubscriptionIntroductoryOffers, forKey: "fields[subscriptionIntroductoryOffers]") encoder.encode(fieldsSubscriptionPrices, forKey: "fields[subscriptionPrices]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift index 9abd43a0..b32adcb6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift @@ -27,6 +27,7 @@ extension APIEndpoint.V1.Subscriptions { public var fieldsSubscriptionPromotionalOffers: [FieldsSubscriptionPromotionalOffers]? public var fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? public var fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? + public var fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? public var fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? public var fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? public var fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? @@ -52,6 +53,7 @@ extension APIEndpoint.V1.Subscriptions { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } @@ -64,6 +66,7 @@ extension APIEndpoint.V1.Subscriptions { case prices case promotedPurchase case promotionalOffers + case subscriptionAvailability case subscriptionLocalizations } @@ -124,6 +127,12 @@ extension APIEndpoint.V1.Subscriptions { case uploaded } + public enum FieldsSubscriptionAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case subscription + } + public enum FieldsSubscriptionPrices: String, Codable, CaseIterable { case preserveCurrentPrice case preserved @@ -152,7 +161,7 @@ extension APIEndpoint.V1.Subscriptions { case subscription } - public init(fieldsSubscriptions: [FieldsSubscriptions]? = nil, include: [Include]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsSubscriptionPricePoints: [FieldsSubscriptionPricePoints]? = nil, fieldsSubscriptionPromotionalOffers: [FieldsSubscriptionPromotionalOffers]? = nil, fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? = nil, fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? = nil, fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? = nil, fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? = nil, fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? = nil, limitIntroductoryOffers: Int? = nil, limitOfferCodes: Int? = nil, limitPrices: Int? = nil, limitPromotionalOffers: Int? = nil, limitSubscriptionLocalizations: Int? = nil) { + public init(fieldsSubscriptions: [FieldsSubscriptions]? = nil, include: [Include]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsSubscriptionPricePoints: [FieldsSubscriptionPricePoints]? = nil, fieldsSubscriptionPromotionalOffers: [FieldsSubscriptionPromotionalOffers]? = nil, fieldsSubscriptionOfferCodes: [FieldsSubscriptionOfferCodes]? = nil, fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? = nil, fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? = nil, fieldsSubscriptionPrices: [FieldsSubscriptionPrices]? = nil, fieldsSubscriptionIntroductoryOffers: [FieldsSubscriptionIntroductoryOffers]? = nil, fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? = nil, limitIntroductoryOffers: Int? = nil, limitOfferCodes: Int? = nil, limitPrices: Int? = nil, limitPromotionalOffers: Int? = nil, limitSubscriptionLocalizations: Int? = nil) { self.fieldsSubscriptions = fieldsSubscriptions self.include = include self.fieldsPromotedPurchases = fieldsPromotedPurchases @@ -160,6 +169,7 @@ extension APIEndpoint.V1.Subscriptions { self.fieldsSubscriptionPromotionalOffers = fieldsSubscriptionPromotionalOffers self.fieldsSubscriptionOfferCodes = fieldsSubscriptionOfferCodes self.fieldsSubscriptionAppStoreReviewScreenshots = fieldsSubscriptionAppStoreReviewScreenshots + self.fieldsSubscriptionAvailabilities = fieldsSubscriptionAvailabilities self.fieldsSubscriptionPrices = fieldsSubscriptionPrices self.fieldsSubscriptionIntroductoryOffers = fieldsSubscriptionIntroductoryOffers self.fieldsSubscriptionLocalizations = fieldsSubscriptionLocalizations @@ -179,6 +189,7 @@ extension APIEndpoint.V1.Subscriptions { encoder.encode(fieldsSubscriptionPromotionalOffers, forKey: "fields[subscriptionPromotionalOffers]") encoder.encode(fieldsSubscriptionOfferCodes, forKey: "fields[subscriptionOfferCodes]") encoder.encode(fieldsSubscriptionAppStoreReviewScreenshots, forKey: "fields[subscriptionAppStoreReviewScreenshots]") + encoder.encode(fieldsSubscriptionAvailabilities, forKey: "fields[subscriptionAvailabilities]") encoder.encode(fieldsSubscriptionPrices, forKey: "fields[subscriptionPrices]") encoder.encode(fieldsSubscriptionIntroductoryOffers, forKey: "fields[subscriptionIntroductoryOffers]") encoder.encode(fieldsSubscriptionLocalizations, forKey: "fields[subscriptionLocalizations]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift index 96b0f237..b36eee2e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift index 3193ebc0..77f9e043 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift index a04e2834..021c5e3e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift @@ -81,6 +81,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift index f12ab8d0..4f2f2da4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } @@ -65,6 +66,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift index da94e95b..b3f118ae 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift @@ -54,6 +54,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift new file mode 100644 index 00000000..690371bd --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Subscriptions.WithID.Relationships { + public var subscriptionAvailability: SubscriptionAvailability { + SubscriptionAvailability(path: path + "/subscriptionAvailability") + } + + public struct SubscriptionAvailability { + /// Path: `/v1/subscriptions/{id}/relationships/subscriptionAvailability` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift new file mode 100644 index 00000000..28452238 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift @@ -0,0 +1,84 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Subscriptions.WithID { + public var subscriptionAvailability: SubscriptionAvailability { + SubscriptionAvailability(path: path + "/subscriptionAvailability") + } + + public struct SubscriptionAvailability { + /// Path: `/v1/subscriptions/{id}/subscriptionAvailability` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? + public var fieldsSubscriptions: [FieldsSubscriptions]? + public var fieldsTerritories: [FieldsTerritories]? + public var limitAvailableTerritories: Int? + public var include: [Include]? + + public enum FieldsSubscriptionAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case subscription + } + + public enum FieldsSubscriptions: String, Codable, CaseIterable { + case appStoreReviewScreenshot + case availableInAllTerritories + case familySharable + case group + case groupLevel + case introductoryOffers + case name + case offerCodes + case pricePoints + case prices + case productID = "productId" + case promotedPurchase + case promotionalOffers + case reviewNote + case state + case subscriptionAvailability + case subscriptionLocalizations + case subscriptionPeriod + } + + public enum FieldsTerritories: String, Codable, CaseIterable { + case currency + } + + public enum Include: String, Codable, CaseIterable { + case availableTerritories + case subscription + } + + public init(fieldsSubscriptionAvailabilities: [FieldsSubscriptionAvailabilities]? = nil, fieldsSubscriptions: [FieldsSubscriptions]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limitAvailableTerritories: Int? = nil, include: [Include]? = nil) { + self.fieldsSubscriptionAvailabilities = fieldsSubscriptionAvailabilities + self.fieldsSubscriptions = fieldsSubscriptions + self.fieldsTerritories = fieldsTerritories + self.limitAvailableTerritories = limitAvailableTerritories + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsSubscriptionAvailabilities, forKey: "fields[subscriptionAvailabilities]") + encoder.encode(fieldsSubscriptions, forKey: "fields[subscriptions]") + encoder.encode(fieldsTerritories, forKey: "fields[territories]") + encoder.encode(limitAvailableTerritories, forKey: "limit[availableTerritories]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift index bdbe11af..5f1f3dbc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift @@ -41,6 +41,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift index 88dfa2c2..fd1f5300 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift @@ -76,6 +76,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift index 9af02ba1..bb1b268c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift @@ -48,6 +48,7 @@ extension APIEndpoint.V1.UserInvitations { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift index e7ff9f01..2f2ca0e0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift @@ -34,6 +34,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift index bcbdb4ab..f5bea299 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift @@ -75,6 +75,7 @@ extension APIEndpoint.V1 { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift index 42d75461..038ff802 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift @@ -47,6 +47,7 @@ extension APIEndpoint.V1.Users { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift index e121f456..051cec9a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift @@ -34,6 +34,7 @@ extension APIEndpoint.V1.Users.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift new file mode 100644 index 00000000..a8ed7163 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2 { + public var appStoreVersionExperiments: AppStoreVersionExperiments { + AppStoreVersionExperiments(path: path + "/appStoreVersionExperiments") + } + + public struct AppStoreVersionExperiments { + /// Path: `/v2/appStoreVersionExperiments` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentV2CreateRequest) -> Request { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift new file mode 100644 index 00000000..cf1bdb59 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift @@ -0,0 +1,88 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppStoreVersionExperiments { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v2/appStoreVersionExperiments/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? + public var include: [Include]? + public var fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? + public var limitAppStoreVersionExperimentTreatments: Int? + public var limitControlVersions: Int? + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum Include: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case latestControlVersion + } + + public enum FieldsAppStoreVersionExperimentTreatments: String, Codable, CaseIterable { + case appIcon + case appIconName + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 + case name + case promotedDate + } + + public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, include: [Include]? = nil, fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? = nil, limitAppStoreVersionExperimentTreatments: Int? = nil, limitControlVersions: Int? = nil) { + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments + self.include = include + self.fieldsAppStoreVersionExperimentTreatments = fieldsAppStoreVersionExperimentTreatments + self.limitAppStoreVersionExperimentTreatments = limitAppStoreVersionExperimentTreatments + self.limitControlVersions = limitControlVersions + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsAppStoreVersionExperimentTreatments, forKey: "fields[appStoreVersionExperimentTreatments]") + encoder.encode(limitAppStoreVersionExperimentTreatments, forKey: "limit[appStoreVersionExperimentTreatments]") + encoder.encode(limitControlVersions, forKey: "limit[controlVersions]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentV2UpdateRequest) -> Request { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift new file mode 100644 index 00000000..68191fb3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -0,0 +1,89 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppStoreVersionExperiments.WithID { + public var appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments { + AppStoreVersionExperimentTreatments(path: path + "/appStoreVersionExperimentTreatments") + } + + public struct AppStoreVersionExperimentTreatments { + /// Path: `/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? + public var fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? + public var fieldsAppStoreVersionExperimentTreatmentLocalizations: [FieldsAppStoreVersionExperimentTreatmentLocalizations]? + public var limit: Int? + public var limitAppStoreVersionExperimentTreatmentLocalizations: Int? + public var include: [Include]? + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum FieldsAppStoreVersionExperimentTreatments: String, Codable, CaseIterable { + case appIcon + case appIconName + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 + case name + case promotedDate + } + + public enum FieldsAppStoreVersionExperimentTreatmentLocalizations: String, Codable, CaseIterable { + case appPreviewSets + case appScreenshotSets + case appStoreVersionExperimentTreatment + case locale + } + + public enum Include: String, Codable, CaseIterable { + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperimentV2 + } + + public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAppStoreVersionExperimentTreatments: [FieldsAppStoreVersionExperimentTreatments]? = nil, fieldsAppStoreVersionExperimentTreatmentLocalizations: [FieldsAppStoreVersionExperimentTreatmentLocalizations]? = nil, limit: Int? = nil, limitAppStoreVersionExperimentTreatmentLocalizations: Int? = nil, include: [Include]? = nil) { + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments + self.fieldsAppStoreVersionExperimentTreatments = fieldsAppStoreVersionExperimentTreatments + self.fieldsAppStoreVersionExperimentTreatmentLocalizations = fieldsAppStoreVersionExperimentTreatmentLocalizations + self.limit = limit + self.limitAppStoreVersionExperimentTreatmentLocalizations = limitAppStoreVersionExperimentTreatmentLocalizations + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") + encoder.encode(fieldsAppStoreVersionExperimentTreatments, forKey: "fields[appStoreVersionExperimentTreatments]") + encoder.encode(fieldsAppStoreVersionExperimentTreatmentLocalizations, forKey: "fields[appStoreVersionExperimentTreatmentLocalizations]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitAppStoreVersionExperimentTreatmentLocalizations, forKey: "limit[appStoreVersionExperimentTreatmentLocalizations]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift new file mode 100644 index 00000000..1f141ea7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppStoreVersionExperiments.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v2/appStoreVersionExperiments/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift new file mode 100644 index 00000000..e340bdd4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppStoreVersionExperiments.WithID.Relationships { + public var appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments { + AppStoreVersionExperimentTreatments(path: path + "/appStoreVersionExperimentTreatments") + } + + public struct AppStoreVersionExperimentTreatments { + /// Path: `/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift index e7d9a62e..ae753f47 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift @@ -22,6 +22,7 @@ extension APIEndpoint.V2.InAppPurchases { public struct GetParameters { public var fieldsInAppPurchases: [FieldsInAppPurchases]? public var include: [Include]? + public var fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? public var fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? public var fieldsPromotedPurchases: [FieldsPromotedPurchases]? public var fieldsInAppPurchasePricePoints: [FieldsInAppPurchasePricePoints]? @@ -39,6 +40,7 @@ extension APIEndpoint.V2.InAppPurchases { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name @@ -53,11 +55,18 @@ extension APIEndpoint.V2.InAppPurchases { case appStoreReviewScreenshot case content case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case pricePoints case promotedPurchase } + public enum FieldsInAppPurchaseAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case inAppPurchase + } + public enum FieldsInAppPurchaseAppStoreReviewScreenshots: String, Codable, CaseIterable { case assetDeliveryState case assetToken @@ -112,9 +121,10 @@ extension APIEndpoint.V2.InAppPurchases { case url } - public init(fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, include: [Include]? = nil, fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsInAppPurchasePricePoints: [FieldsInAppPurchasePricePoints]? = nil, fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? = nil, fieldsInAppPurchasePriceSchedules: [FieldsInAppPurchasePriceSchedules]? = nil, fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? = nil, limitInAppPurchaseLocalizations: Int? = nil, limitPricePoints: Int? = nil) { + public init(fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, include: [Include]? = nil, fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? = nil, fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsInAppPurchasePricePoints: [FieldsInAppPurchasePricePoints]? = nil, fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? = nil, fieldsInAppPurchasePriceSchedules: [FieldsInAppPurchasePriceSchedules]? = nil, fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? = nil, limitInAppPurchaseLocalizations: Int? = nil, limitPricePoints: Int? = nil) { self.fieldsInAppPurchases = fieldsInAppPurchases self.include = include + self.fieldsInAppPurchaseAvailabilities = fieldsInAppPurchaseAvailabilities self.fieldsInAppPurchaseAppStoreReviewScreenshots = fieldsInAppPurchaseAppStoreReviewScreenshots self.fieldsPromotedPurchases = fieldsPromotedPurchases self.fieldsInAppPurchasePricePoints = fieldsInAppPurchasePricePoints @@ -129,6 +139,7 @@ extension APIEndpoint.V2.InAppPurchases { let encoder = URLQueryEncoder(explode: false) encoder.encode(fieldsInAppPurchases, forKey: "fields[inAppPurchases]") encoder.encode(include, forKey: "include") + encoder.encode(fieldsInAppPurchaseAvailabilities, forKey: "fields[inAppPurchaseAvailabilities]") encoder.encode(fieldsInAppPurchaseAppStoreReviewScreenshots, forKey: "fields[inAppPurchaseAppStoreReviewScreenshots]") encoder.encode(fieldsPromotedPurchases, forKey: "fields[promotedPurchases]") encoder.encode(fieldsInAppPurchasePricePoints, forKey: "fields[inAppPurchasePricePoints]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift index f03a82f7..1cd31a4a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift @@ -45,6 +45,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift index 21c7cc53..5b96f4ef 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift @@ -32,6 +32,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift index e639f416..7509d1d9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift @@ -45,6 +45,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift new file mode 100644 index 00000000..b8d0b8b8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift @@ -0,0 +1,59 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.InAppPurchases.WithID { + public var inAppPurchaseAvailability: InAppPurchaseAvailability { + InAppPurchaseAvailability(path: path + "/inAppPurchaseAvailability") + } + + public struct InAppPurchaseAvailability { + /// Path: `/v2/inAppPurchases/{id}/inAppPurchaseAvailability` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + .get(path, query: parameters?.asQuery) + } + + public struct GetParameters { + public var fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? + public var fieldsTerritories: [FieldsTerritories]? + public var limitAvailableTerritories: Int? + public var include: [Include]? + + public enum FieldsInAppPurchaseAvailabilities: String, Codable, CaseIterable { + case availableInNewTerritories + case availableTerritories + case inAppPurchase + } + + public enum FieldsTerritories: String, Codable, CaseIterable { + case currency + } + + public enum Include: String, Codable, CaseIterable { + case availableTerritories + } + + public init(fieldsInAppPurchaseAvailabilities: [FieldsInAppPurchaseAvailabilities]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limitAvailableTerritories: Int? = nil, include: [Include]? = nil) { + self.fieldsInAppPurchaseAvailabilities = fieldsInAppPurchaseAvailabilities + self.fieldsTerritories = fieldsTerritories + self.limitAvailableTerritories = limitAvailableTerritories + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsInAppPurchaseAvailabilities, forKey: "fields[inAppPurchaseAvailabilities]") + encoder.encode(fieldsTerritories, forKey: "fields[territories]") + encoder.encode(limitAvailableTerritories, forKey: "limit[availableTerritories]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift index 58fd14fa..7653244b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift @@ -41,6 +41,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift index ec4c200f..75db555a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift @@ -53,6 +53,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case promotionalOffers case reviewNote case state + case subscriptionAvailability case subscriptionLocalizations case subscriptionPeriod } @@ -65,6 +66,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { case contentHosting case familySharable case iapPriceSchedule + case inAppPurchaseAvailability case inAppPurchaseLocalizations case inAppPurchaseType case name diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift new file mode 100644 index 00000000..ea44191c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.InAppPurchases.WithID.Relationships { + public var inAppPurchaseAvailability: InAppPurchaseAvailability { + InAppPurchaseAvailability(path: path + "/inAppPurchaseAvailability") + } + + public struct InAppPurchaseAvailability { + /// Path: `/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift index 19bfb9ff..72d4a92e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { case appInfos case appPricePoints case appPriceSchedule + case appStoreVersionExperimentsV2 case appStoreVersions case availableInNewTerritories case availableTerritories diff --git a/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json b/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json index 95b28b2c..d0ce5904 100644 --- a/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json +++ b/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "App Store Connect API", - "version": "2.3", + "version": "2.4", "x-platform": "app_store_connect_api" }, "servers": [ @@ -11,6 +11,178 @@ } ], "paths": { + "/v1/actors": { + "get": { + "tags": [ + "Actors" + ], + "operationId": "actors-get_collection", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "fields[actors]", + "in": "query", + "description": "the fields to include for returned resources of type actors", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actorType", + "apiKeyId", + "userEmail", + "userFirstName", + "userLastName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Actors", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorsResponse" + } + } + } + } + } + } + }, + "/v1/actors/{id}": { + "get": { + "tags": [ + "Actors" + ], + "operationId": "actors-get_instance", + "parameters": [ + { + "name": "fields[actors]", + "in": "query", + "description": "the fields to include for returned resources of type actors", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actorType", + "apiKeyId", + "userEmail", + "userFirstName", + "userLastName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Actor", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v1/ageRatingDeclarations/{id}": { "patch": { "tags": [ @@ -1675,6 +1847,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -3590,6 +3763,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -3777,6 +3951,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -8940,6 +9115,7 @@ "appIconName", "appStoreVersionExperiment", "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", "promotedDate" ] @@ -8959,7 +9135,8 @@ "type": "string", "enum": [ "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations" + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2" ] } }, @@ -9175,7 +9352,7 @@ } ] }, - "/v1/appStoreVersionExperiments": { + "/v2/appStoreVersionExperiments": { "post": { "tags": [ "AppStoreVersionExperiments" @@ -9186,7 +9363,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentCreateRequest" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2CreateRequest" } } }, @@ -9218,7 +9395,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" } } } @@ -9236,7 +9413,7 @@ } } }, - "/v1/appStoreVersionExperiments/{id}": { + "/v2/appStoreVersionExperiments/{id}": { "get": { "tags": [ "AppStoreVersionExperiments" @@ -9252,10 +9429,13 @@ "items": { "type": "string", "enum": [ - "appStoreVersion", + "app", "appStoreVersionExperimentTreatments", + "controlVersions", "endDate", + "latestControlVersion", "name", + "platform", "reviewRequired", "startDate", "started", @@ -9277,8 +9457,10 @@ "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "latestControlVersion" ] } }, @@ -9299,6 +9481,7 @@ "appIconName", "appStoreVersionExperiment", "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", "promotedDate" ] @@ -9318,6 +9501,17 @@ }, "style": "form", "required": false + }, + { + "name": "limit[controlVersions]", + "in": "query", + "description": "maximum number of related controlVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -9356,7 +9550,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" } } } @@ -9373,7 +9567,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentUpdateRequest" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2UpdateRequest" } } }, @@ -9415,7 +9609,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" } } } @@ -9496,18 +9690,19 @@ } ] }, - "/v1/appStoreVersionLocalizations": { + "/v1/appStoreVersionExperiments": { "post": { "tags": [ - "AppStoreVersionLocalizations" + "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionLocalizations-create_instance", + "operationId": "appStoreVersionExperiments-create_instance", + "deprecated": true, "requestBody": { - "description": "AppStoreVersionLocalization representation", + "description": "AppStoreVersionExperiment representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionLocalizationCreateRequest" + "$ref": "#/components/schemas/AppStoreVersionExperimentCreateRequest" } } }, @@ -9535,11 +9730,11 @@ } }, "201": { - "description": "Single AppStoreVersionLocalization", + "description": "Single AppStoreVersionExperiment", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionLocalizationResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" } } } @@ -9557,32 +9752,32 @@ } } }, - "/v1/appStoreVersionLocalizations/{id}": { + "/v1/appStoreVersionExperiments/{id}": { "get": { "tags": [ - "AppStoreVersionLocalizations" + "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionLocalizations-get_instance", + "operationId": "appStoreVersionExperiments-get_instance", + "deprecated": true, "parameters": [ { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "appStoreVersionExperimentTreatments", + "endDate", + "name", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -9599,30 +9794,8 @@ "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[appScreenshotSets]", - "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "appStoreVersion", + "appStoreVersionExperimentTreatments" ] } }, @@ -9631,19 +9804,21 @@ "required": false }, { - "name": "fields[appPreviewSets]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" ] } }, @@ -9652,20 +9827,365 @@ "required": false }, { - "name": "limit[appPreviewSets]", - "in": "query", - "description": "maximum number of related appPreviewSets returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[appScreenshotSets]", + "name": "limit[appStoreVersionExperimentTreatments]", "in": "query", - "description": "maximum number of related appScreenshotSets returned (when they are included)", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments-update_instance", + "deprecated": true, + "requestBody": { + "description": "AppStoreVersionExperiment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments-delete_instance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersionLocalizations": { + "post": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations-create_instance", + "requestBody": { + "description": "AppStoreVersionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionLocalizations/{id}": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations-get_instance", + "parameters": [ + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -10378,6 +10898,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -10412,6 +10933,7 @@ "appClipDefaultExperience", "appStoreReviewDetail", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -10433,10 +10955,13 @@ "items": { "type": "string", "enum": [ - "appStoreVersion", + "app", "appStoreVersionExperimentTreatments", + "controlVersions", "endDate", + "latestControlVersion", "name", + "platform", "reviewRequired", "startDate", "started", @@ -10449,6 +10974,32 @@ "explode": false, "required": false }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "endDate", + "name", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, { "name": "fields[appStoreVersionSubmissions]", "in": "query", @@ -10691,6 +11242,18 @@ "maximum": 50 }, "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", "required": false }, { @@ -11061,6 +11624,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -11125,6 +11689,7 @@ "appCustomProductPages", "appEvents", "appInfos", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableTerritories", "betaAppLocalizations", @@ -11234,9 +11799,11 @@ "appStoreVersionForReview", "canceled", "items", + "lastUpdatedByActor", "platform", "state", "submitted", + "submittedByActor", "submittedDate" ] } @@ -11600,6 +12167,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -11673,6 +12241,34 @@ "explode": false, "required": false }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[gameCenterEnabledVersions]", "in": "query", @@ -11748,6 +12344,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -11872,6 +12469,17 @@ "style": "form", "required": false }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, { "name": "limit[appStoreVersions]", "in": "query", @@ -12074,6 +12682,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -12128,6 +12737,7 @@ "appCustomProductPages", "appEvents", "appInfos", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableTerritories", "betaAppLocalizations", @@ -12237,9 +12847,11 @@ "appStoreVersionForReview", "canceled", "items", + "lastUpdatedByActor", "platform", "state", "submitted", + "submittedByActor", "submittedDate" ] } @@ -12603,6 +13215,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -12676,6 +13289,34 @@ "explode": false, "required": false }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[gameCenterEnabledVersions]", "in": "query", @@ -12751,6 +13392,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -12875,6 +13517,17 @@ "style": "form", "required": false }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, { "name": "limit[appStoreVersions]", "in": "query", @@ -13733,6 +14386,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -13931,6 +14585,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -14238,6 +14893,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -14379,6 +15035,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -15623,6 +16280,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -15915,6 +16573,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -16277,6 +16936,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -16411,6 +17071,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -16854,6 +17515,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -17157,6 +17819,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -18265,6 +18928,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -18373,6 +19037,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -18713,6 +19378,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -18821,6 +19487,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -19478,6 +20145,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -19746,6 +20414,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -21421,6 +22090,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -21670,6 +22340,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -25040,6 +25711,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -25067,6 +25739,7 @@ "appStoreReviewScreenshot", "content", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "pricePoints", "promotedPurchase" @@ -25077,6 +25750,25 @@ "explode": false, "required": false }, + { + "name": "fields[inAppPurchaseAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", "in": "query", @@ -25606,6 +26298,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -25794,6 +26487,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -25919,11 +26613,11 @@ } }, "200": { - "description": "Single PrereleaseVersion", + "description": "Single PreReleaseVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PrereleaseVersionResponse" + "$ref": "#/components/schemas/PreReleaseVersionResponse" } } } @@ -27428,9 +28122,11 @@ "appStoreVersionForReview", "canceled", "items", + "lastUpdatedByActor", "platform", "state", "submitted", + "submittedByActor", "submittedDate" ] } @@ -27460,7 +28156,9 @@ "enum": [ "app", "appStoreVersionForReview", - "items" + "items", + "lastUpdatedByActor", + "submittedByActor" ] } }, @@ -27481,6 +28179,7 @@ "appEvent", "appStoreVersion", "appStoreVersionExperiment", + "appStoreVersionExperimentV2", "removed", "resolved", "reviewSubmission", @@ -27617,9 +28316,11 @@ "appStoreVersionForReview", "canceled", "items", + "lastUpdatedByActor", "platform", "state", "submitted", + "submittedByActor", "submittedDate" ] } @@ -27639,7 +28340,9 @@ "enum": [ "app", "appStoreVersionForReview", - "items" + "items", + "lastUpdatedByActor", + "submittedByActor" ] } }, @@ -27660,6 +28363,7 @@ "appEvent", "appStoreVersion", "appStoreVersionExperiment", + "appStoreVersionExperimentV2", "removed", "resolved", "reviewSubmission", @@ -30291,6 +30995,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -32512,6 +33217,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -32537,6 +33243,7 @@ "prices", "promotedPurchase", "promotionalOffers", + "subscriptionAvailability", "subscriptionLocalizations" ] } @@ -32667,6 +33374,25 @@ "explode": false, "required": false }, + { + "name": "fields[subscriptionAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[subscriptionPrices]", "in": "query", @@ -33186,6 +33912,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -33396,6 +34123,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -33706,6 +34434,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -33856,6 +34585,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -34962,6 +35692,33 @@ ], "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_related", "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionExperiments]", "in": "query", @@ -35074,6 +35831,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -35109,6 +35867,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -35294,6 +36053,17 @@ "type": "integer", "maximum": 50 }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, "style": "form" }, { @@ -35310,6 +36080,7 @@ "appClipDefaultExperience", "appStoreReviewDetail", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -35717,6 +36488,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -36907,6 +37679,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -37112,6 +37885,7 @@ "AppEncryptionDeclarations" ], "operationId": "appEncryptionDeclarations-builds-create_to_many_relationship", + "deprecated": true, "requestBody": { "description": "List of related linkages", "content": { @@ -39045,6 +39819,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -41009,6 +41784,7 @@ "appIconName", "appStoreVersionExperiment", "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", "promotedDate" ] @@ -41161,7 +41937,7 @@ } ] }, - "/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { "parameters": [ { "name": "id", @@ -41175,13 +41951,40 @@ } ] }, - "/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { "get": { "tags": [ "AppStoreVersionExperiments" ], "operationId": "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related", "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionExperiments]", "in": "query", @@ -41219,6 +42022,7 @@ "appIconName", "appStoreVersionExperiment", "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", "promotedDate" ] @@ -41276,7 +42080,8 @@ "type": "string", "enum": [ "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations" + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2" ] } }, @@ -41340,7 +42145,7 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets": { + "/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { "parameters": [ { "name": "id", @@ -41354,37 +42159,35 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/appPreviewSets": { + "/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { "get": { "tags": [ - "AppStoreVersionLocalizations" + "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionLocalizations-appPreviewSets-get_to_many_related", + "operationId": "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "filter[previewType]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "filter by attribute 'previewType'", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IPHONE_67", - "IPHONE_61", - "IPHONE_65", - "IPHONE_58", - "IPHONE_55", - "IPHONE_47", - "IPHONE_40", - "IPHONE_35", - "IPAD_PRO_3GEN_129", - "IPAD_PRO_3GEN_11", - "IPAD_PRO_129", - "IPAD_105", - "IPAD_97", - "DESKTOP", - "APPLE_TV" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -41392,45 +42195,256 @@ "explode": false }, { - "name": "filter[appCustomProductPageLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appCustomProductPageLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionExperimentTreatmentLocalization]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "endDate", + "name", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] } }, "style": "form", "explode": false }, { - "name": "fields[appCustomProductPageLocalizations]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AppStoreVersionExperimentTreatments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersionLocalizations/{id}/appPreviewSets": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations-appPreviewSets-get_to_many_related", + "parameters": [ + { + "name": "filter[previewType]", + "in": "query", + "description": "filter by attribute 'previewType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPHONE_67", + "IPHONE_61", + "IPHONE_65", + "IPHONE_58", + "IPHONE_55", + "IPHONE_47", + "IPHONE_40", + "IPHONE_35", + "IPAD_PRO_3GEN_129", + "IPAD_PRO_3GEN_11", + "IPAD_PRO_129", + "IPAD_105", + "IPAD_97", + "DESKTOP", + "APPLE_TV" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionExperimentTreatmentLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" ] } }, @@ -42205,6 +43219,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -42411,6 +43426,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -42556,6 +43572,7 @@ "AppStoreVersions" ], "operationId": "appStoreVersions-appStoreVersionExperiments-get_to_many_related", + "deprecated": true, "parameters": [ { "name": "filter[state]", @@ -42618,6 +43635,230 @@ "appIconName", "appStoreVersionExperiment", "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AppStoreVersionExperiments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions-appStoreVersionExperimentsV2-get_to_many_related", + "parameters": [ + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", "promotedDate" ] @@ -42641,6 +43882,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -42660,6 +43902,63 @@ "style": "form", "explode": false }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "limit", "in": "query", @@ -42670,6 +43969,16 @@ }, "style": "form" }, + { + "name": "limit[controlVersions]", + "in": "query", + "description": "maximum number of related controlVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "limit[appStoreVersionExperimentTreatments]", "in": "query", @@ -42689,8 +43998,10 @@ "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "latestControlVersion" ] } }, @@ -42734,7 +44045,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentsResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" } } } @@ -43018,6 +44329,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -43917,6 +45229,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -44126,6 +45439,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -44372,6 +45686,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -44845,6 +46160,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -44962,11 +46278,227 @@ } }, "200": { - "description": "List of AppInfos", + "description": "List of AppInfos", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfosResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/relationships/appPricePoints": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/appPricePoints": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-appPricePoints-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type appPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "customerPrice", + "equalizations", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AppPricePoints", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppInfosResponse" + "$ref": "#/components/schemas/AppPricePointsV3Response" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" } } } @@ -44986,7 +46518,7 @@ } ] }, - "/v1/apps/{id}/relationships/appPricePoints": { + "/v1/apps/{id}/relationships/appPriceSchedule": { "parameters": [ { "name": "id", @@ -45000,40 +46532,46 @@ } ] }, - "/v1/apps/{id}/appPricePoints": { + "/v1/apps/{id}/appPriceSchedule": { "get": { "tags": [ "Apps" ], - "operationId": "apps-appPricePoints-get_to_many_related", + "operationId": "apps-appPriceSchedule-get_to_one_related", "parameters": [ { - "name": "filter[territory]", + "name": "fields[appPrices]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appPricePoint", + "endDate", + "manual", + "startDate", + "territory" + ] } }, "style": "form", "explode": false }, { - "name": "fields[appPricePoints]", + "name": "fields[appPriceSchedules]", "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", + "description": "the fields to include for returned resources of type appPriceSchedules", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "customerPrice", - "equalizations", - "proceeds", - "territory" + "automaticPrices", + "baseTerritory", + "manualPrices" ] } }, @@ -45056,6 +46594,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -45113,12 +46652,22 @@ "explode": false }, { - "name": "limit", + "name": "limit[manualPrices]", "in": "query", - "description": "maximum resources per page", + "description": "maximum number of related manualPrices returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[automaticPrices]", + "in": "query", + "description": "maximum number of related automaticPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 }, "style": "form" }, @@ -45132,7 +46681,9 @@ "type": "string", "enum": [ "app", - "territory" + "automaticPrices", + "baseTerritory", + "manualPrices" ] } }, @@ -45172,16 +46723,11 @@ } }, "200": { - "description": "List of AppPricePoints", + "description": "Single AppPriceSchedule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricePointsV3Response" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" + "$ref": "#/components/schemas/AppPriceScheduleResponse" } } } @@ -45201,7 +46747,7 @@ } ] }, - "/v1/apps/{id}/relationships/appPriceSchedule": { + "/v1/apps/{id}/relationships/appStoreVersionExperimentsV2": { "parameters": [ { "name": "id", @@ -45215,27 +46761,58 @@ } ] }, - "/v1/apps/{id}/appPriceSchedule": { + "/v1/apps/{id}/appStoreVersionExperimentsV2": { "get": { "tags": [ "Apps" ], - "operationId": "apps-appPriceSchedule-get_to_one_related", + "operationId": "apps-appStoreVersionExperimentsV2-get_to_many_related", "parameters": [ { - "name": "fields[appPrices]", + "name": "filter[state]", "in": "query", - "description": "the fields to include for returned resources of type appPrices", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPricePoint", + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", "endDate", - "manual", + "latestControlVersion", + "name", + "platform", + "reviewRequired", "startDate", - "territory" + "started", + "state", + "trafficProportion" ] } }, @@ -45243,18 +46820,56 @@ "explode": false }, { - "name": "fields[appPriceSchedules]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "the fields to include for returned resources of type appPriceSchedules", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "ageRatingDeclaration", "app", - "automaticPrices", - "baseTerritory", - "manualPrices" + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, @@ -45277,6 +46892,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -45318,25 +46934,19 @@ "explode": false }, { - "name": "fields[territories]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "limit[manualPrices]", + "name": "limit[controlVersions]", "in": "query", - "description": "maximum number of related manualPrices returned (when they are included)", + "description": "maximum number of related controlVersions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -45344,9 +46954,9 @@ "style": "form" }, { - "name": "limit[automaticPrices]", + "name": "limit[appStoreVersionExperimentTreatments]", "in": "query", - "description": "maximum number of related automaticPrices returned (when they are included)", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -45363,9 +46973,9 @@ "type": "string", "enum": [ "app", - "automaticPrices", - "baseTerritory", - "manualPrices" + "appStoreVersionExperimentTreatments", + "controlVersions", + "latestControlVersion" ] } }, @@ -45405,11 +47015,11 @@ } }, "200": { - "description": "Single AppPriceSchedule", + "description": "List of AppStoreVersionExperiments", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPriceScheduleResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" } } } @@ -45528,6 +47138,33 @@ "style": "form", "explode": false }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionExperiments]", "in": "query", @@ -45640,6 +47277,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -45675,6 +47313,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -45870,6 +47509,17 @@ "type": "integer", "maximum": 50 }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, "style": "form" }, { @@ -45886,6 +47536,7 @@ "appClipDefaultExperience", "appStoreReviewDetail", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -46740,6 +48391,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -47559,6 +49211,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -47805,6 +49458,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -48075,19 +49729,17 @@ "explode": false }, { - "name": "fields[inAppPurchasePricePoints]", + "name": "fields[inAppPurchaseAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "inAppPurchaseV2", - "priceTier", - "proceeds", - "territory" + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" ] } }, @@ -48152,10 +49804,10 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", - "pricePoints", "productId", "promotedPurchase", "reviewNote", @@ -48225,16 +49877,6 @@ }, "style": "form" }, - { - "name": "limit[pricePoints]", - "in": "query", - "description": "maximum number of related pricePoints returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 8000 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -48247,8 +49889,8 @@ "appStoreReviewScreenshot", "content", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", - "pricePoints", "promotedPurchase" ] } @@ -48732,6 +50374,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -48927,6 +50570,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -49247,6 +50891,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -49271,6 +50916,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -49479,6 +51125,7 @@ "appEvent", "appStoreVersion", "appStoreVersionExperiment", + "appStoreVersionExperimentV2", "removed", "resolved", "reviewSubmission", @@ -49489,6 +51136,26 @@ "style": "form", "explode": false }, + { + "name": "fields[actors]", + "in": "query", + "description": "the fields to include for returned resources of type actors", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actorType", + "apiKeyId", + "userEmail", + "userFirstName", + "userLastName" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersions]", "in": "query", @@ -49504,6 +51171,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -49539,6 +51207,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -49592,9 +51261,11 @@ "appStoreVersionForReview", "canceled", "items", + "lastUpdatedByActor", "platform", "state", "submitted", + "submittedByActor", "submittedDate" ] } @@ -49633,7 +51304,9 @@ "enum": [ "app", "appStoreVersionForReview", - "items" + "items", + "lastUpdatedByActor", + "submittedByActor" ] } }, @@ -49894,6 +51567,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -50082,6 +51756,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -50216,6 +51891,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -50584,6 +52260,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -51283,6 +52960,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -51532,6 +53210,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -52812,6 +54491,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -53141,6 +54821,33 @@ ], "operationId": "builds-appStoreVersion-get_to_one_related", "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionExperiments]", "in": "query", @@ -53253,6 +54960,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -53288,6 +54996,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -53473,6 +55182,17 @@ "type": "integer", "maximum": 50 }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, "style": "form" }, { @@ -53489,6 +55209,7 @@ "appClipDefaultExperience", "appStoreReviewDetail", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -54666,11 +56387,11 @@ } }, "200": { - "description": "Single PrereleaseVersion", + "description": "Single PreReleaseVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PrereleaseVersionResponse" + "$ref": "#/components/schemas/PreReleaseVersionResponse" } } } @@ -54727,6 +56448,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -56218,6 +57940,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -56285,6 +58008,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -56889,16 +58613,23 @@ "operationId": "ciProducts-app-get_to_one_related", "parameters": [ { - "name": "fields[betaLicenseAgreements]", + "name": "fields[betaAppReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type betaLicenseAgreements", + "description": "the fields to include for returned resources of type betaAppReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "agreementText", - "app" + "app", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" ] } }, @@ -56906,23 +58637,239 @@ "explode": false }, { - "name": "fields[betaAppReviewDetails]", + "name": "fields[ciProducts]", "in": "query", - "description": "the fields to include for returned resources of type betaAppReviewDetails", + "description": "the fields to include for returned resources of type ciProducts", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "additionalRepositories", "app", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[reviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionForReview", + "canceled", + "items", + "lastUpdatedByActor", + "platform", + "state", + "submitted", + "submittedByActor", + "submittedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "betaTesters", + "builds", + "createdDate", + "feedbackEnabled", + "hasAccessToAllBuilds", + "iosBuildsAvailableForAppleSiliconMac", + "isInternalGroup", + "name", + "publicLink", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimit", + "publicLinkLimitEnabled" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "archivedTerritorySchedules", + "badge", + "deepLink", + "eventState", + "localizations", + "primaryLocale", + "priority", + "purchaseRequirement", + "purpose", + "referenceName", + "territorySchedules" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" ] } }, @@ -57038,30 +58985,6 @@ "style": "form", "explode": false }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", - "bundleId", - "createdDate", - "name", - "primaryRepositories", - "productType", - "workflows" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[inAppPurchases]", "in": "query", @@ -57078,6 +59001,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -57111,58 +59035,6 @@ "style": "form", "explode": false }, - { - "name": "fields[reviewSubmissions]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionForReview", - "canceled", - "items", - "platform", - "state", - "submitted", - "submittedDate" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[betaGroups]", - "in": "query", - "description": "the fields to include for returned resources of type betaGroups", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "betaTesters", - "builds", - "createdDate", - "feedbackEnabled", - "hasAccessToAllBuilds", - "iosBuildsAvailableForAppleSiliconMac", - "isInternalGroup", - "name", - "publicLink", - "publicLinkEnabled", - "publicLinkId", - "publicLinkLimit", - "publicLinkLimitEnabled" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[appPreOrders]", "in": "query", @@ -57219,18 +59091,26 @@ "explode": false }, { - "name": "fields[subscriptionGracePeriods]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "duration", - "optIn", - "renewalType", - "sandboxOptIn" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -57238,21 +59118,18 @@ "explode": false }, { - "name": "fields[promotedPurchases]", + "name": "fields[subscriptionGracePeriods]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" + "duration", + "optIn", + "renewalType", + "sandboxOptIn" ] } }, @@ -57292,6 +59169,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -57333,89 +59211,6 @@ "style": "form", "explode": false }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEvents]", - "in": "query", - "description": "the fields to include for returned resources of type appEvents", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "archivedTerritorySchedules", - "badge", - "deepLink", - "eventState", - "localizations", - "primaryLocale", - "priority", - "purchaseRequirement", - "purpose", - "referenceName", - "territorySchedules" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[territories]", "in": "query", @@ -57432,45 +59227,6 @@ "style": "form", "explode": false }, - { - "name": "fields[builds]", - "in": "query", - "description": "the fields to include for returned resources of type builds", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "limit[betaGroups]", "in": "query", @@ -57642,6 +59398,16 @@ }, "style": "form" }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -57655,6 +59421,7 @@ "appCustomProductPages", "appEvents", "appInfos", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableTerritories", "betaAppLocalizations", @@ -59729,6 +61496,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -60387,11 +62155,161 @@ } }, "200": { - "description": "List of InAppPurchasePrices", + "description": "List of InAppPurchasePrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/appStoreReviewScreenshot": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchases-appStoreReviewScreenshot-get_to_one_related", + "parameters": [ + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "inAppPurchaseV2", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseAppStoreReviewScreenshot", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePricesResponse" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" } } } @@ -60411,7 +62329,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot": { + "/v2/inAppPurchases/{id}/relationships/content": { "parameters": [ { "name": "id", @@ -60425,38 +62343,13 @@ } ] }, - "/v2/inAppPurchases/{id}/appStoreReviewScreenshot": { + "/v2/inAppPurchases/{id}/content": { "get": { "tags": [ "InAppPurchases" ], - "operationId": "inAppPurchases-appStoreReviewScreenshot-get_to_one_related", + "operationId": "inAppPurchases-content-get_to_one_related", "parameters": [ - { - "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "inAppPurchaseV2", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[inAppPurchases]", "in": "query", @@ -60473,6 +62366,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -60487,6 +62381,26 @@ "style": "form", "explode": false }, + { + "name": "fields[inAppPurchaseContents]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseContents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileName", + "fileSize", + "inAppPurchaseV2", + "lastModifiedDate", + "url" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "include", "in": "query", @@ -60536,11 +62450,11 @@ } }, "200": { - "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "description": "Single InAppPurchaseContent", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/InAppPurchaseContentResponse" } } } @@ -60560,7 +62474,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/content": { + "/v2/inAppPurchases/{id}/relationships/iapPriceSchedule": { "parameters": [ { "name": "id", @@ -60574,13 +62488,34 @@ } ] }, - "/v2/inAppPurchases/{id}/content": { + "/v2/inAppPurchases/{id}/iapPriceSchedule": { "get": { "tags": [ "InAppPurchases" ], - "operationId": "inAppPurchases-content-get_to_one_related", + "operationId": "inAppPurchases-iapPriceSchedule-get_to_one_related", "parameters": [ + { + "name": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endDate", + "inAppPurchasePricePoint", + "inAppPurchaseV2", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[inAppPurchases]", "in": "query", @@ -60597,6 +62532,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -60612,25 +62548,60 @@ "explode": false }, { - "name": "fields[inAppPurchaseContents]", + "name": "fields[inAppPurchasePriceSchedules]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseContents", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "fileName", - "fileSize", - "inAppPurchaseV2", - "lastModifiedDate", - "url" + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" ] } }, "style": "form", "explode": false }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[manualPrices]", + "in": "query", + "description": "maximum number of related manualPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[automaticPrices]", + "in": "query", + "description": "maximum number of related automaticPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -60640,7 +62611,10 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2" + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" ] } }, @@ -60680,11 +62654,11 @@ } }, "200": { - "description": "Single InAppPurchaseContent", + "description": "Single InAppPurchasePriceSchedule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseContentResponse" + "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" } } } @@ -60704,7 +62678,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/iapPriceSchedule": { + "/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability": { "parameters": [ { "name": "id", @@ -60718,77 +62692,25 @@ } ] }, - "/v2/inAppPurchases/{id}/iapPriceSchedule": { + "/v2/inAppPurchases/{id}/inAppPurchaseAvailability": { "get": { "tags": [ "InAppPurchases" ], - "operationId": "inAppPurchases-iapPriceSchedule-get_to_one_related", + "operationId": "inAppPurchases-inAppPurchaseAvailability-get_to_one_related", "parameters": [ { - "name": "fields[inAppPurchasePrices]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "endDate", - "inAppPurchasePricePoint", - "inAppPurchaseV2", - "manual", - "startDate", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePriceSchedules]", + "name": "fields[inAppPurchaseAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" ] } }, @@ -60812,19 +62734,9 @@ "explode": false }, { - "name": "limit[manualPrices]", - "in": "query", - "description": "maximum number of related manualPrices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[automaticPrices]", + "name": "limit[availableTerritories]", "in": "query", - "description": "maximum number of related automaticPrices returned (when they are included)", + "description": "maximum number of related availableTerritories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -60840,10 +62752,7 @@ "items": { "type": "string", "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" + "availableTerritories" ] } }, @@ -60883,11 +62792,11 @@ } }, "200": { - "description": "Single InAppPurchasePriceSchedule", + "description": "Single InAppPurchaseAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" } } } @@ -60964,6 +62873,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -61150,7 +63060,7 @@ "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 200 + "maximum": 8000 }, "style": "form" }, @@ -61299,6 +63209,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -61323,6 +63234,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -61484,6 +63396,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -62201,6 +64114,33 @@ ], "operationId": "reviewSubmissions-items-get_to_many_related", "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionExperiments]", "in": "query", @@ -62238,6 +64178,7 @@ "appEvent", "appStoreVersion", "appStoreVersionExperiment", + "appStoreVersionExperimentV2", "removed", "resolved", "reviewSubmission", @@ -62263,6 +64204,7 @@ "appStoreReviewDetail", "appStoreState", "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", "appStoreVersionLocalizations", "appStoreVersionPhasedRelease", "appStoreVersionSubmission", @@ -62350,7 +64292,8 @@ "appCustomProductPageVersion", "appEvent", "appStoreVersion", - "appStoreVersionExperiment" + "appStoreVersionExperiment", + "appStoreVersionExperimentV2" ] } }, @@ -63353,6 +65296,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -63361,6 +65305,24 @@ "style": "form", "explode": false }, + { + "name": "fields[subscriptionAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[subscriptionGroups]", "in": "query", @@ -63520,6 +65482,7 @@ "prices", "promotedPurchase", "promotionalOffers", + "subscriptionAvailability", "subscriptionLocalizations" ] } @@ -64213,7 +66176,7 @@ "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 200 + "maximum": 8000 }, "style": "form" }, @@ -64537,6 +66500,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -64809,6 +66773,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -65068,6 +67033,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -65286,7 +67252,7 @@ "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 200 + "maximum": 8000 }, "style": "form" }, @@ -65736,6 +67702,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -65760,6 +67727,7 @@ "contentHosting", "familySharable", "iapPriceSchedule", + "inAppPurchaseAvailability", "inAppPurchaseLocalizations", "inAppPurchaseType", "name", @@ -65964,6 +67932,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -66083,6 +68052,178 @@ } ] }, + "/v1/subscriptions/{id}/relationships/subscriptionAvailability": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/subscriptionAvailability": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-subscriptionAvailability-get_to_one_related", + "parameters": [ + { + "name": "fields[subscriptionAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v1/subscriptions/{id}/relationships/subscriptionLocalizations": { "parameters": [ { @@ -66128,6 +68269,7 @@ "promotionalOffers", "reviewNote", "state", + "subscriptionAvailability", "subscriptionLocalizations", "subscriptionPeriod" ] @@ -66276,6 +68418,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -66636,6 +68779,7 @@ "appInfos", "appPricePoints", "appPriceSchedule", + "appStoreVersionExperimentsV2", "appStoreVersions", "availableInNewTerritories", "availableTerritories", @@ -66746,6 +68890,93 @@ }, "components": { "schemas": { + "Actor": { + "type": "object", + "title": "Actor", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "actorType": { + "type": "string", + "enum": [ + "USER", + "API_KEY", + "XCODE_CLOUD", + "APPLE" + ] + }, + "userFirstName": { + "type": "string" + }, + "userLastName": { + "type": "string" + }, + "userEmail": { + "type": "string" + }, + "apiKeyId": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "links", + "id", + "type" + ] + }, + "ActorsResponse": { + "type": "object", + "title": "ActorsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ActorResponse": { + "type": "object", + "title": "ActorResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Actor" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, "AgeRatingDeclaration": { "type": "object", "title": "AgeRatingDeclaration", @@ -71549,7 +73780,8 @@ ] } } - } + }, + "deprecated": true }, "appEncryptionDeclarationDocument": { "type": "object", @@ -77713,7 +79945,392 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentTreatmentLocalizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "links", + "id", + "type" + ] + }, + "AppStoreVersionExperimentTreatmentsResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentCreateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "appIconName": { + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "appStoreVersionExperiment" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentTreatmentUpdateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "appIconName": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentV2": { + "type": "object", + "title": "AppStoreVersionExperimentV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "trafficProportion": { + "type": "integer" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + }, + "reviewRequired": { + "type": "boolean" + }, + "startDate": { + "type": "string", + "format": "date-time" + }, + "endDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" ] }, "id": { @@ -77727,7 +80344,43 @@ } } }, - "appStoreVersionExperimentTreatmentLocalizations": { + "latestControlVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "controlVersions": { "type": "object", "properties": { "links": { @@ -77754,7 +80407,49 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersionExperimentTreatments": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -77781,14 +80476,14 @@ "type" ] }, - "AppStoreVersionExperimentTreatmentsResponse": { + "AppStoreVersionExperimentsV2Response": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentsResponse", + "title": "AppStoreVersionExperimentsV2Response", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } }, "included": { @@ -77796,10 +80491,16 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" } ] } @@ -77816,22 +80517,28 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentResponse": { + "AppStoreVersionExperimentV2Response": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentResponse", + "title": "AppStoreVersionExperimentV2Response", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" } ] } @@ -77845,9 +80552,9 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentCreateRequest": { + "AppStoreVersionExperimentV2CreateRequest": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentCreateRequest", + "title": "AppStoreVersionExperimentV2CreateRequest", "properties": { "data": { "type": "object", @@ -77855,7 +80562,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "appStoreVersionExperiments" ] }, "attributes": { @@ -77864,18 +80571,23 @@ "name": { "type": "string" }, - "appIconName": { - "type": "string" + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "trafficProportion": { + "type": "integer" } }, "required": [ - "name" + "trafficProportion", + "name", + "platform" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersionExperiment": { + "app": { "type": "object", "properties": { "data": { @@ -77884,7 +80596,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "apps" ] }, "id": { @@ -77903,7 +80615,7 @@ } }, "required": [ - "appStoreVersionExperiment" + "app" ] } }, @@ -77918,9 +80630,9 @@ "data" ] }, - "AppStoreVersionExperimentTreatmentUpdateRequest": { + "AppStoreVersionExperimentV2UpdateRequest": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentUpdateRequest", + "title": "AppStoreVersionExperimentV2UpdateRequest", "properties": { "data": { "type": "object", @@ -77928,7 +80640,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "appStoreVersionExperiments" ] }, "id": { @@ -77940,8 +80652,11 @@ "name": { "type": "string" }, - "appIconName": { - "type": "string" + "trafficProportion": { + "type": "integer" + }, + "started": { + "type": "boolean" } } } @@ -78096,7 +80811,8 @@ "links", "id", "type" - ] + ], + "deprecated": true }, "AppStoreVersionExperimentsResponse": { "type": "object", @@ -78131,7 +80847,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "AppStoreVersionExperimentResponse": { "type": "object", @@ -78160,7 +80877,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "AppStoreVersionExperimentCreateRequest": { "type": "object", @@ -78234,7 +80952,8 @@ }, "required": [ "data" - ] + ], + "deprecated": true }, "AppStoreVersionExperimentUpdateRequest": { "type": "object", @@ -78275,7 +80994,8 @@ }, "required": [ "data" - ] + ], + "deprecated": true }, "AppStoreVersionLocalization": { "type": "object", @@ -79615,6 +82335,48 @@ } } } + }, + "appStoreVersionExperimentsV2": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } }, @@ -79671,6 +82433,9 @@ }, { "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } ] } @@ -79727,6 +82492,9 @@ }, { "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } ] } @@ -80925,7 +83693,85 @@ "type": { "type": "string", "enum": [ - "reviewSubmissions" + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "subscriptionGracePeriod": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGracePeriods" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentsV2": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" ] }, "id": { @@ -80939,42 +83785,6 @@ } } } - }, - "subscriptionGracePeriod": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionGracePeriods" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } } }, @@ -81012,7 +83822,7 @@ "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" }, { "$ref": "#/components/schemas/BetaAppLocalization" @@ -81070,6 +83880,9 @@ }, { "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } ] } @@ -81107,7 +83920,7 @@ "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" }, { "$ref": "#/components/schemas/BetaAppLocalization" @@ -81165,6 +83978,9 @@ }, { "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } ] } @@ -84911,7 +87727,7 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" }, { "$ref": "#/components/schemas/BetaTester" @@ -84970,7 +87786,7 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" }, { "$ref": "#/components/schemas/BetaTester" @@ -88166,8 +90982,7 @@ "IPHONE", "IPOD", "APPLE_TV", - "MAC", - "APPLE_SILICON_MAC" + "MAC" ] }, "status": { @@ -89679,7 +92494,8 @@ "type": "string" }, "priceTier": { - "type": "string" + "type": "string", + "deprecated": true } } }, @@ -90918,6 +93734,42 @@ ] } } + }, + "inAppPurchaseAvailability": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } }, @@ -90962,6 +93814,9 @@ }, { "$ref": "#/components/schemas/InAppPurchasePriceSchedule" + }, + { + "$ref": "#/components/schemas/InAppPurchaseAvailability" } ] } @@ -91006,6 +93861,9 @@ }, { "$ref": "#/components/schemas/InAppPurchasePriceSchedule" + }, + { + "$ref": "#/components/schemas/InAppPurchaseAvailability" } ] } @@ -91199,9 +94057,9 @@ "type" ] }, - "PrereleaseVersion": { + "PreReleaseVersion": { "type": "object", - "title": "PrereleaseVersion", + "title": "PreReleaseVersion", "properties": { "type": { "type": "string", @@ -91323,7 +94181,7 @@ "data": { "type": "array", "items": { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" } }, "included": { @@ -91351,12 +94209,12 @@ "links" ] }, - "PrereleaseVersionResponse": { + "PreReleaseVersionResponse": { "type": "object", - "title": "PrereleaseVersionResponse", + "title": "PreReleaseVersionResponse", "properties": { "data": { - "$ref": "#/components/schemas/PrereleaseVersion" + "$ref": "#/components/schemas/PreReleaseVersion" }, "included": { "type": "array", @@ -92590,6 +95448,42 @@ } } }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, "appEvent": { "type": "object", "properties": { @@ -92661,6 +95555,9 @@ { "$ref": "#/components/schemas/AppStoreVersionExperiment" }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, { "$ref": "#/components/schemas/AppEvent" } @@ -92699,6 +95596,9 @@ { "$ref": "#/components/schemas/AppStoreVersionExperiment" }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, { "$ref": "#/components/schemas/AppEvent" } @@ -92825,6 +95725,29 @@ } } }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, "appEvent": { "type": "object", "properties": { @@ -93055,6 +95978,78 @@ ] } } + }, + "submittedByActor": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "lastUpdatedByActor": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } }, @@ -93090,6 +96085,12 @@ }, { "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/Actor" } ] } @@ -93125,6 +96126,12 @@ }, { "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/Actor" } ] } @@ -99173,6 +102180,42 @@ ] } } + }, + "subscriptionAvailability": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } }, @@ -99223,6 +102266,9 @@ }, { "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" } ] } @@ -99273,6 +102319,9 @@ }, { "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" } ] } @@ -100169,7 +103218,8 @@ }, "required": [ "data" - ] + ], + "deprecated": true }, "AppPreviewSetAppPreviewsLinkagesResponse": { "type": "object", @@ -101278,6 +104328,7 @@ }, "required": [ "code", + "detail", "title", "status" ]