diff --git a/Package.resolved b/Package.resolved index 8c0628edc..88dda8798 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,96 +1,6 @@ { "object": { "pins": [ - { - "package": "Komondor", - "repositoryURL": "https://github.com/shibapm/Komondor.git", - "state": { - "branch": null, - "revision": "dedffeaf42a1b52bf072a9dc47afb35000a8b265", - "version": "1.1.4" - } - }, - { - "package": "Logger", - "repositoryURL": "https://github.com/shibapm/Logger", - "state": { - "branch": null, - "revision": "53c3ecca5abe8cf46697e33901ee774236d94cce", - "version": "0.2.3" - } - }, - { - "package": "PackageConfig", - "repositoryURL": "https://github.com/shibapm/PackageConfig.git", - "state": { - "branch": null, - "revision": "58523193c26fb821ed1720dcd8a21009055c7cdb", - "version": "1.1.3" - } - }, - { - "package": "PathKit", - "repositoryURL": "https://github.com/kylef/PathKit.git", - "state": { - "branch": null, - "revision": "3bfd2737b700b9a36565a8c94f4ad2b050a5e574", - "version": "1.0.1" - } - }, - { - "package": "Rocket", - "repositoryURL": "https://github.com/f-meloni/Rocket", - "state": { - "branch": null, - "revision": "9880a5beb7fcb9e61ddd5764edc1700b8c418deb", - "version": "1.2.1" - } - }, - { - "package": "ShellOut", - "repositoryURL": "https://github.com/JohnSundell/ShellOut.git", - "state": { - "branch": null, - "revision": "e1577acf2b6e90086d01a6d5e2b8efdaae033568", - "version": "2.3.0" - } - }, - { - "package": "SourceKitten", - "repositoryURL": "https://github.com/jpsim/SourceKitten.git", - "state": { - "branch": null, - "revision": "817dfa6f2e09b0476f3a6c9dbc035991f02f0241", - "version": "0.32.0" - } - }, - { - "package": "Spectre", - "repositoryURL": "https://github.com/kylef/Spectre.git", - "state": { - "branch": null, - "revision": "26cc5e9ae0947092c7139ef7ba612e34646086c7", - "version": "0.10.1" - } - }, - { - "package": "Stencil", - "repositoryURL": "https://github.com/stencilproject/Stencil.git", - "state": { - "branch": null, - "revision": "ccd9402682f4c07dac9561befd207c8156e80e20", - "version": "0.14.2" - } - }, - { - "package": "StencilSwiftKit", - "repositoryURL": "https://github.com/SwiftGen/StencilSwiftKit", - "state": { - "branch": null, - "revision": "54cbedcdbb4334e03930adcff7343ffaf317bf0f", - "version": "2.8.0" - } - }, { "package": "swift-argument-parser", "repositoryURL": "https://github.com/apple/swift-argument-parser", @@ -114,53 +24,8 @@ "repositoryURL": "https://github.com/nicklockwood/SwiftFormat", "state": { "branch": null, - "revision": "378543f07b6acf6e13982ffed8bd71d4b0041f61", - "version": "0.49.11" - } - }, - { - "package": "SwiftLint", - "repositoryURL": "https://github.com/Realm/SwiftLint.git", - "state": { - "branch": null, - "revision": "e8ef21fef61f12536964c4e3cf6d5a6e3ad81e49", - "version": "0.46.5" - } - }, - { - "package": "SwiftShell", - "repositoryURL": "https://github.com/kareman/SwiftShell", - "state": { - "branch": null, - "revision": "a6014fe94c3dbff0ad500e8da4f251a5d336530b", - "version": "5.1.0-beta.1" - } - }, - { - "package": "SwiftyTextTable", - "repositoryURL": "https://github.com/scottrhoyt/SwiftyTextTable.git", - "state": { - "branch": null, - "revision": "c6df6cf533d120716bff38f8ff9885e1ce2a4ac3", - "version": "0.9.0" - } - }, - { - "package": "SWXMLHash", - "repositoryURL": "https://github.com/drmohundro/SWXMLHash.git", - "state": { - "branch": null, - "revision": "6469881a3f30417c5bb02404ea4b69207f297592", - "version": "6.0.0" - } - }, - { - "package": "Yams", - "repositoryURL": "https://github.com/jpsim/Yams", - "state": { - "branch": null, - "revision": "9ff1cc9327586db4e0c8f46f064b6a82ec1566fa", - "version": "4.0.6" + "revision": "665c3c58923ee8ac36d3e44b17dc185229cce301", + "version": "0.49.13" } }, { diff --git a/Package.swift b/Package.swift index c2b45e160..150cd2061 100644 --- a/Package.swift +++ b/Package.swift @@ -20,7 +20,6 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.0"), - .package(url: "https://github.com/SwiftGen/StencilSwiftKit", from: "2.8.0"), .package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.48.17"), .package(url: "https://github.com/apple/swift-crypto", from: "2.0.0"), .package(url: "https://github.com/marmelroy/Zip.git", from: "2.1.2"), @@ -48,7 +47,6 @@ let package = Package( "BagbutikDocsCollector", "BagbutikSpecDecoder", "BagbutikStringExtensions", - "StencilSwiftKit", "SwiftFormat" ]), .target(name: "BagbutikDocsCollector", dependencies: ["BagbutikSpecDecoder"]), diff --git a/README.md b/README.md index 37fe29bef..a99a806ea 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@

- Generated Swift code for the App Store Connect API based on the official OpenAPI spec.
- Created with StencilSwiftKit and swift-crypto
+ Generated Swift code for the App Store Connect API based on the official OpenAPI spec.
Swift versions diff --git a/Sources/Bagbutik/Endpoints/AgeRatingDeclaration/UpdateAgeRatingDeclarationV1.swift b/Sources/Bagbutik/Endpoints/AgeRatingDeclaration/UpdateAgeRatingDeclarationV1.swift index 150215751..c92afc889 100644 --- a/Sources/Bagbutik/Endpoints/AgeRatingDeclaration/UpdateAgeRatingDeclarationV1.swift +++ b/Sources/Bagbutik/Endpoints/AgeRatingDeclaration/UpdateAgeRatingDeclarationV1.swift @@ -1,23 +1,23 @@ public extension Request { /** - # Modify an Age Rating Declaration - Provide age-related information so the App Store can determine the age rating for your app. + # Modify an Age Rating Declaration + Provide age-related information so the App Store can determine the age rating for your app. - Every app store version has an age rating declaration. Use this endpoint to edit the declaration and provide app-characteristic information so App Store Connect can determine the appropriate age rating for the app. - Use this endpoint to indicate whether an app is Made for Kids. - When calling this endpoint, only include the attributes that you’re modifying. - For example, in an app that has a `FREQUENT_OR_INTENSE` declaration for contests, the age rating for the `AppInfos` is 12+. If you declare a value of true for `gamblingAndContests` instead, the age rating for the `AppInfos` is 17+. + Every app store version has an age rating declaration. Use this endpoint to edit the declaration and provide app-characteristic information so App Store Connect can determine the appropriate age rating for the app. + Use this endpoint to indicate whether an app is Made for Kids. + When calling this endpoint, only include the attributes that you’re modifying. + For example, in an app that has a `FREQUENT_OR_INTENSE` declaration for contests, the age rating for the `AppInfos` is 12+. If you declare a value of true for `gamblingAndContests` instead, the age rating for the `AppInfos` is 17+. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AgeRatingDeclaration representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AgeRatingDeclaration representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAgeRatingDeclarationV1(id: String, requestBody: AgeRatingDeclarationUpdateRequest) -> Request { - return .init(path: "/v1/ageRatingDeclarations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/ageRatingDeclarations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/App/GetAppV1.swift b/Sources/Bagbutik/Endpoints/App/GetAppV1.swift index 037025c68..4e512199e 100644 --- a/Sources/Bagbutik/Endpoints/App/GetAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/GetAppV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Information - Get information about a specific app. + # Read App Information + Get information about a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppV1(id: String, fields: [GetAppV1.Field]? = nil, includes: [GetAppV1.Include]? = nil, limits: [GetAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -382,7 +382,29 @@ public enum GetAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClips, appCustomProductPages, appEvents, appInfos, appStoreVersions, availableTerritories, betaAppLocalizations, betaAppReviewDetail, betaGroups, betaLicenseAgreement, builds, ciProduct, endUserLicenseAgreement, gameCenterEnabledVersions, inAppPurchases, inAppPurchasesV2, preOrder, preReleaseVersions, prices, promotedPurchases, reviewSubmissions, subscriptionGracePeriod, subscriptionGroups + case appClips + case appCustomProductPages + case appEvents + case appInfos + case appStoreVersions + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case builds + case ciProduct + case endUserLicenseAgreement + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case preOrder + case preReleaseVersions + case prices + case promotedPurchases + case reviewSubmissions + case subscriptionGracePeriod + case subscriptionGroups } /** diff --git a/Sources/Bagbutik/Endpoints/App/ListAppsV1.swift b/Sources/Bagbutik/Endpoints/App/ListAppsV1.swift index 244fbdaf1..ce22cc9fa 100644 --- a/Sources/Bagbutik/Endpoints/App/ListAppsV1.swift +++ b/Sources/Bagbutik/Endpoints/App/ListAppsV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List Apps - Find and list apps added in App Store Connect. - - Full documentation: - - - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + # List Apps + Find and list apps added in App Store Connect. + + Full documentation: + + + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppsV1(fields: [ListAppsV1.Field]? = nil, filters: [ListAppsV1.Filter]? = nil, @@ -21,12 +21,12 @@ public extension Request { sorts: [ListAppsV1.Sort]? = nil, limits: [ListAppsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps", method: .get, parameters: .init(fields: fields, - filters: filters, - exists: exists, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/apps", method: .get, parameters: .init(fields: fields, + filters: filters, + exists: exists, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -445,7 +445,29 @@ public enum ListAppsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClips, appCustomProductPages, appEvents, appInfos, appStoreVersions, availableTerritories, betaAppLocalizations, betaAppReviewDetail, betaGroups, betaLicenseAgreement, builds, ciProduct, endUserLicenseAgreement, gameCenterEnabledVersions, inAppPurchases, inAppPurchasesV2, preOrder, preReleaseVersions, prices, promotedPurchases, reviewSubmissions, subscriptionGracePeriod, subscriptionGroups + case appClips + case appCustomProductPages + case appEvents + case appInfos + case appStoreVersions + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case builds + case ciProduct + case endUserLicenseAgreement + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case preOrder + case preReleaseVersions + case prices + case promotedPurchases + case reviewSubmissions + case subscriptionGracePeriod + case subscriptionGroups } /** @@ -464,8 +486,6 @@ public enum ListAppsV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appClips returned (when they are included) - maximum 50 case appClips(Int) /// Maximum number of related appCustomProductPages returned (when they are included) - maximum 50 @@ -490,6 +510,8 @@ public enum ListAppsV1 { case inAppPurchases(Int) /// Maximum number of related inAppPurchasesV2 returned (when they are included) - maximum 50 case inAppPurchasesV2(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) /// Maximum number of related preReleaseVersions returned (when they are included) - maximum 50 case preReleaseVersions(Int) /// Maximum number of related prices returned (when they are included) - maximum 50 diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/DeleteBetaTestersForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/DeleteBetaTestersForAppV1.swift index de67ac093..fa106cdb3 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/DeleteBetaTestersForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/DeleteBetaTestersForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Beta Testers from All Groups and Builds of an App - Remove one or more beta testers' access to test any builds of a specific app. + # Remove Beta Testers from All Groups and Builds of an App + Remove one or more beta testers' access to test any builds of a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaTestersForAppV1(id: String, requestBody: AppBetaTestersLinkagesRequest) -> Request { - return .init(path: "/v1/apps/\(id)/relationships/betaTesters", method: .delete, requestBody: requestBody) + .init(path: "/v1/apps/\(id)/relationships/betaTesters", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaAppReviewDetailForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaAppReviewDetailForAppV1.swift index 543d3e01d..6fcabceeb 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaAppReviewDetailForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaAppReviewDetailForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Beta App Review Details Resource of an App - Get the beta app review details for a specific app. + # Read the Beta App Review Details Resource of an App + Get the beta app review details for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppReviewDetailForAppV1(id: String, fields: [GetBetaAppReviewDetailForAppV1.Field]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/betaAppReviewDetail", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/apps/\(id)/betaAppReviewDetail", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaLicenseAgreementForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaLicenseAgreementForAppV1.swift index 879378b69..3167e7342 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaLicenseAgreementForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetBetaLicenseAgreementForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Beta License Agreement of an App - Get the beta license agreement for a specific app. + # Read the Beta License Agreement of an App + Get the beta license agreement for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaLicenseAgreementForAppV1(id: String, fields: [GetBetaLicenseAgreementForAppV1.Field]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/betaLicenseAgreement", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/apps/\(id)/betaLicenseAgreement", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetCiProductForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetCiProductForAppV1.swift index 19eb5cbb9..ab6787e55 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetCiProductForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetCiProductForAppV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read the Xcode Cloud Product for an App - Get the Xcode Cloud product information for an app you build with Xcode Cloud. + # Read the Xcode Cloud Product for an App + Get the Xcode Cloud product information for an app you build with Xcode Cloud. - The example request below retrieves information about a specific Xcode Cloud product. Use the data provided in the response to read additional information; for example, workflow information. + The example request below retrieves information about a specific Xcode Cloud product. Use the data provided in the response to read additional information; for example, workflow information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related primaryRepositories returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related primaryRepositories returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiProductForAppV1(id: String, fields: [GetCiProductForAppV1.Field]? = nil, includes: [GetCiProductForAppV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/ciProduct", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/apps/\(id)/ciProduct", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -119,6 +119,8 @@ public enum GetCiProductForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, bundleId, primaryRepositories + case app + case bundleId + case primaryRepositories } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetEndUserLicenseAgreementForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetEndUserLicenseAgreementForAppV1.swift index 95f1632da..98adea689 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetEndUserLicenseAgreementForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetEndUserLicenseAgreementForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the End User License Agreement Information of an App - Get the custom end user license agreement (EULA) for a specific app and the territories where the agreement applies. + # Read the End User License Agreement Information of an App + Get the custom end user license agreement (EULA) for a specific app and the territories where the agreement applies. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getEndUserLicenseAgreementForAppV1(id: String, fields: [GetEndUserLicenseAgreementForAppV1.Field]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/endUserLicenseAgreement", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/apps/\(id)/endUserLicenseAgreement", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetPreOrderForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetPreOrderForAppV1.swift index e0be67b60..1bb5a4c97 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetPreOrderForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetPreOrderForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Pre-Order Information of an App - Get available date and release date of an app that is available for pre-order. + # Read the Pre-Order Information of an App + Get available date and release date of an app that is available for pre-order. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPreOrderForAppV1(id: String, fields: [GetPreOrderForAppV1.Field]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/preOrder", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/apps/\(id)/preOrder", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/GetSubscriptionGracePeriodForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/GetSubscriptionGracePeriodForAppV1.swift index 9581a2e17..ab297832f 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/GetSubscriptionGracePeriodForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/GetSubscriptionGracePeriodForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Subscription Grace Period Value for an App - Get the Boolean value that represents the grace period opt-in state for your app. + # Read the Subscription Grace Period Value for an App + Get the Boolean value that represents the grace period opt-in state for your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionGracePeriodForAppV1(id: String, fields: [GetSubscriptionGracePeriodForAppV1.Field]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/subscriptionGracePeriod", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/apps/\(id)/subscriptionGracePeriod", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppClipsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppClipsForAppV1.swift index 266032189..892013a7f 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppClipsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppClipsForAppV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Search an App’s App Clips - Search your App’s associated App Clips. + # Search an App’s App Clips + Search your App’s associated App Clips. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppClipsForAppV1(id: String, fields: [ListAppClipsForAppV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppClipsForAppV1.Include]? = nil, limits: [ListAppClipsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/appClips", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/appClips", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -108,16 +108,17 @@ public enum ListAppClipsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appClipDefaultExperiences + case app + case appClipDefaultExperiences } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appClipDefaultExperiences returned (when they are included) - maximum 50 case appClipDefaultExperiences(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppCustomProductPagesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppCustomProductPagesForAppV1.swift index 43cc16212..6534059fb 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppCustomProductPagesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppCustomProductPagesForAppV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Custom Product Pages for an App - Get a list of all custom product pages for a specific app. + # List All Custom Product Pages for an App + Get a list of all custom product pages for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppCustomProductPagesForAppV1(id: String, fields: [ListAppCustomProductPagesForAppV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppCustomProductPagesForAppV1.Include]? = nil, limits: [ListAppCustomProductPagesForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/appCustomProductPages", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/appCustomProductPages", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -109,16 +109,17 @@ public enum ListAppCustomProductPagesForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appCustomProductPageVersions + case app + case appCustomProductPageVersions } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appCustomProductPageVersions returned (when they are included) - maximum 50 case appCustomProductPageVersions(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppEventsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppEventsForAppV1.swift index 61421017e..29b998141 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppEventsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppEventsForAppV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/apps/{id}/appEvents + # GET /v1/apps/{id}/appEvents - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppEventsForAppV1(id: String, fields: [ListAppEventsForAppV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppEventsForAppV1.Include]? = nil, limits: [ListAppEventsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/appEvents", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/appEvents", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppInfosForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppInfosForAppV1.swift index f5a36245e..2f922489a 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppInfosForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppInfosForAppV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # List All App Infos for an App - Get information about an app that is currently live on App Store, or that goes live with the next version. + # List All App Infos for an App + Get information about an app that is currently live on App Store, or that goes live with the next version. - Use this endpoint to retrieve the derived app-level information for an app. If the app has both a “Ready for Sale” version and a version you’re preparing for release, it will have two app infos. One represents information about the app currently in the App Store, and the other represents the information that will take effect when you release the next version. Use the `appStoreState` attribute to differentiate them. + Use this endpoint to retrieve the derived app-level information for an app. If the app has both a “Ready for Sale” version and a version you’re preparing for release, it will have two app infos. One represents information about the app currently in the App Store, and the other represents the information that will take effect when you release the next version. Use the `appStoreState` attribute to differentiate them. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppInfosForAppV1(id: String, fields: [ListAppInfosForAppV1.Field]? = nil, includes: [ListAppInfosForAppV1.Include]? = nil, limits: [ListAppInfosForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/appInfos", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/appInfos", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -139,16 +139,24 @@ public enum ListAppInfosForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appInfoLocalizations, primaryCategory, primarySubcategoryOne, primarySubcategoryTwo, secondaryCategory, secondarySubcategoryOne, secondarySubcategoryTwo + case ageRatingDeclaration + case app + case appInfoLocalizations + case primaryCategory + case primarySubcategoryOne + case primarySubcategoryTwo + case secondaryCategory + case secondarySubcategoryOne + case secondarySubcategoryTwo } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appInfoLocalizations returned (when they are included) - maximum 50 case appInfoLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppStoreVersionsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppStoreVersionsForAppV1.swift index e70f6e651..11ac4ea51 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAppStoreVersionsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAppStoreVersionsForAppV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All App Store Versions for an App - Get a list of all App Store versions of an app across all platforms. + # List All App Store Versions for an App + Get a list of all App Store versions of an app across all platforms. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreVersionsForAppV1(id: String, fields: [ListAppStoreVersionsForAppV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppStoreVersionsForAppV1.Include]? = nil, limits: [ListAppStoreVersionsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/appStoreVersions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/appStoreVersions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -280,18 +280,27 @@ public enum ListAppStoreVersionsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appClipDefaultExperience, appStoreReviewDetail, appStoreVersionExperiments, appStoreVersionLocalizations, appStoreVersionPhasedRelease, appStoreVersionSubmission, build, routingAppCoverage + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreVersionExperiments + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case routingAppCoverage } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) - /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 - case appStoreVersionLocalizations(Int) /// Maximum number of related appStoreVersionExperiments returned (when they are included) - maximum 50 case appStoreVersionExperiments(Int) + /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 + case appStoreVersionLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListAvailableTerritoriesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListAvailableTerritoriesForAppV1.swift index 25483654a..2c9b729df 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListAvailableTerritoriesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListAvailableTerritoriesForAppV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Available Territories for an App - Get a list of App Store territories where an app is or will be available. + # List All Available Territories for an App + Get a list of App Store territories where an app is or will be available. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAvailableTerritoriesForAppV1(id: String, fields: [ListAvailableTerritoriesForAppV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/availableTerritories", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/apps/\(id)/availableTerritories", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaAppLocalizationsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaAppLocalizationsForAppV1.swift index 65d5d71fc..053c3f243 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaAppLocalizationsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaAppLocalizationsForAppV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Beta App Localizations of an App - Get a list of localized beta test information for a specific app. + # List All Beta App Localizations of an App + Get a list of localized beta test information for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaAppLocalizationsForAppV1(id: String, fields: [ListBetaAppLocalizationsForAppV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/betaAppLocalizations", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/apps/\(id)/betaAppLocalizations", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaGroupsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaGroupsForAppV1.swift index dfca7e699..30ee0f43d 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaGroupsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListBetaGroupsForAppV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Beta Groups for an App - Get a list of beta groups associated with a specific app. + # List All Beta Groups for an App + Get a list of beta groups associated with a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaGroupsForAppV1(id: String, fields: [ListBetaGroupsForAppV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/betaGroups", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/apps/\(id)/betaGroups", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListBuildsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListBuildsForAppV1.swift index d729d55c0..1258b52ff 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListBuildsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListBuildsForAppV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Builds of an App - Get a list of builds associated with a specific app. + # List All Builds of an App + Get a list of builds associated with a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsForAppV1(id: String, fields: [ListBuildsForAppV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/builds", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/apps/\(id)/builds", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListCustomerReviewsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListCustomerReviewsForAppV1.swift index b82a51ba3..27aebabdb 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListCustomerReviewsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListCustomerReviewsForAppV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # List All Customer Reviews for an App - Get a list of customer reviews for a specific app. + # List All Customer Reviews for an App + Get a list of customer reviews for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCustomerReviewsForAppV1(id: String, fields: [ListCustomerReviewsForAppV1.Field]? = nil, @@ -23,12 +23,12 @@ public extension Request { sorts: [ListCustomerReviewsForAppV1.Sort]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/customerReviews", method: .get, parameters: .init(fields: fields, - filters: filters, - exists: exists, - includes: includes, - sorts: sorts, - limit: limit)) + .init(path: "/v1/apps/\(id)/customerReviews", method: .get, parameters: .init(fields: fields, + filters: filters, + exists: exists, + includes: includes, + sorts: sorts, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListGameCenterEnabledVersionsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListGameCenterEnabledVersionsForAppV1.swift index 45843ff3d..7d65d573c 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListGameCenterEnabledVersionsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListGameCenterEnabledVersionsForAppV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Game Center Enabled Versions for an App + # List All Game Center Enabled Versions for an App - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listGameCenterEnabledVersionsForAppV1(id: String, fields: [ListGameCenterEnabledVersionsForAppV1.Field]? = nil, @@ -20,11 +20,11 @@ public extension Request { sorts: [ListGameCenterEnabledVersionsForAppV1.Sort]? = nil, limits: [ListGameCenterEnabledVersionsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/gameCenterEnabledVersions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/apps/\(id)/gameCenterEnabledVersions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -110,7 +110,8 @@ public enum ListGameCenterEnabledVersionsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, compatibleVersions + case app + case compatibleVersions } /** @@ -125,9 +126,9 @@ public enum ListGameCenterEnabledVersionsForAppV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related compatibleVersions returned (when they are included) - maximum 50 case compatibleVersions(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesForAppV1.swift index ea48e7679..98ffa8b31 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All In-App Purchases for an App V1 - List the in-app purchases that are available for your app. + # List All In-App Purchases for an App V1 + List the in-app purchases that are available for your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func listInAppPurchasesForAppV1(id: String, @@ -22,11 +22,11 @@ public extension Request { sorts: [ListInAppPurchasesForAppV1.Sort]? = nil, limits: [ListInAppPurchasesForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/inAppPurchases", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/apps/\(id)/inAppPurchases", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -131,9 +131,9 @@ public enum ListInAppPurchasesForAppV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related apps returned (when they are included) - maximum 50 case apps(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesV2ForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesV2ForAppV1.swift index bff26bfe5..3cbe488ee 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesV2ForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListInAppPurchasesV2ForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All In-App Purchases for an App - Get a list of the in-app purchases for a specific app. - - Full documentation: - - - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + # List All In-App Purchases for an App + Get a list of the in-app purchases for a specific app. + + Full documentation: + + + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listInAppPurchasesV2ForAppV1(id: String, fields: [ListInAppPurchasesV2ForAppV1.Field]? = nil, @@ -21,11 +21,11 @@ public extension Request { sorts: [ListInAppPurchasesV2ForAppV1.Sort]? = nil, limits: [ListInAppPurchasesV2ForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/inAppPurchasesV2", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/apps/\(id)/inAppPurchasesV2", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -159,7 +159,12 @@ public enum ListInAppPurchasesV2ForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewScreenshot, content, iapPriceSchedule, inAppPurchaseLocalizations, pricePoints, promotedPurchase + case appStoreReviewScreenshot + case content + case iapPriceSchedule + case inAppPurchaseLocalizations + case pricePoints + case promotedPurchase } /** @@ -176,10 +181,10 @@ public enum ListInAppPurchasesV2ForAppV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related inAppPurchaseLocalizations returned (when they are included) - maximum 50 case inAppPurchaseLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) /// Maximum number of related pricePoints returned (when they are included) - maximum 40000 case pricePoints(Int) } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPerfPowerMetricsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPerfPowerMetricsForAppV1.swift index 838f27366..51876b42b 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPerfPowerMetricsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPerfPowerMetricsForAppV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Get Power and Performance Metrics for an App - Get the performance and power metrics data for the most recent version of an app. + # Get Power and Performance Metrics for an App + Get the performance and power metrics data for the most recent version of an app. - The example below requests iOS app launch metrics on all iPhones for the most-recent app versions. To get metrics for a specific app version instead, use the [Get Power and Performance Metrics for a Build](https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_a_build) endpoint. + The example below requests iOS app launch metrics on all iPhones for the most-recent app versions. To get metrics for a specific app version instead, use the [Get Power and Performance Metrics for a Build](https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_a_build) endpoint. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPerfPowerMetricsForAppV1(id: String, filters: [ListPerfPowerMetricsForAppV1.Filter]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/perfPowerMetrics", method: .get, parameters: .init(filters: filters)) + .init(path: "/v1/apps/\(id)/perfPowerMetrics", method: .get, parameters: .init(filters: filters)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPreReleaseVersionsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPreReleaseVersionsForAppV1.swift index e1277eacb..9800a4538 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPreReleaseVersionsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPreReleaseVersionsForAppV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Prerelease Versions for an App - Get a list of prerelease versions associated with a specific app. + # List All Prerelease Versions for an App + Get a list of prerelease versions associated with a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPreReleaseVersionsForAppV1(id: String, fields: [ListPreReleaseVersionsForAppV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/preReleaseVersions", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/apps/\(id)/preReleaseVersions", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPricePointsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPricePointsForAppV1.swift index bf919780d..5d5f7b3eb 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPricePointsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPricePointsForAppV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Price Points for an App - Get all the available price points for a specific app. + # List All Price Points for an App + Get all the available price points for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricePointsForAppV1(id: String, fields: [ListPricePointsForAppV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricePointsForAppV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/apps/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -112,6 +112,8 @@ public enum ListPricePointsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, priceTier, territory + case app + case priceTier + case territory } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPricesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPricesForAppV1.swift index 26c30b497..aaa2541ad 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPricesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPricesForAppV1.swift @@ -1,28 +1,28 @@ public extension Request { /** - # List All Prices for an App - Get the current price tier of an app and any future scheduled price changes. + # List All Prices for an App + Get the current price tier of an app and any future scheduled price changes. - Use this endpoint to retrieve the price schedule for an app, including the current price and any scheduled future price changes. - The current price has a `null` start date. Each additional price has a start date that indicates the date when the price will take effect around the world. See [List All Price Points for an App](https://developer.apple.com/documentation/appstoreconnectapi/list_all_price_points_for_an_app) to determine the price the customer sees and the related proceeds in each App Store territory. + Use this endpoint to retrieve the price schedule for an app, including the current price and any scheduled future price changes. + The current price has a `null` start date. Each additional price has a start date that indicates the date when the price will take effect around the world. See [List All Price Points for an App](https://developer.apple.com/documentation/appstoreconnectapi/list_all_price_points_for_an_app) to determine the price the customer sees and the related proceeds in each App Store territory. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricesForAppV1(id: String, fields: [ListPricesForAppV1.Field]? = nil, includes: [ListPricesForAppV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/prices", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/apps/\(id)/prices", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -93,6 +93,7 @@ public enum ListPricesForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, priceTier + case app + case priceTier } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchaseIdsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchaseIdsForAppV1.swift index 1fb28870c..1c63f258f 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchaseIdsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchaseIdsForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List Promoted Purchase IDs for an App - Get a list of resource IDs representing promoted purchases for an auto-renewable subscription. + # List Promoted Purchase IDs for an App + Get a list of resource IDs representing promoted purchases for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPromotedPurchaseIdsForAppV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/relationships/promotedPurchases", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/apps/\(id)/relationships/promotedPurchases", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchasesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchasesForAppV1.swift index 8ffcc9d84..15b146ae6 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchasesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListPromotedPurchasesForAppV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Promoted Purchases for an App - Get a list of promoted in-app purchases, including promoted auto-renewable subscriptions, for an app. + # List All Promoted Purchases for an App + Get a list of promoted in-app purchases, including promoted auto-renewable subscriptions, for an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPromotedPurchasesForAppV1(id: String, fields: [ListPromotedPurchasesForAppV1.Field]? = nil, includes: [ListPromotedPurchasesForAppV1.Include]? = nil, limits: [ListPromotedPurchasesForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/promotedPurchases", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/promotedPurchases", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -103,7 +103,9 @@ public enum ListPromotedPurchasesForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchaseV2, promotionImages, subscription + case inAppPurchaseV2 + case promotionImages + case subscription } /** diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListReviewSubmissionsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListReviewSubmissionsForAppV1.swift index 7d42a7720..64115f576 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListReviewSubmissionsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListReviewSubmissionsForAppV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/apps/{id}/reviewSubmissions + # GET /v1/apps/{id}/reviewSubmissions - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listReviewSubmissionsForAppV1(id: String, fields: [ListReviewSubmissionsForAppV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListReviewSubmissionsForAppV1.Include]? = nil, limits: [ListReviewSubmissionsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/reviewSubmissions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/apps/\(id)/reviewSubmissions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -155,16 +155,18 @@ public enum ListReviewSubmissionsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appStoreVersionForReview, items + case app + case appStoreVersionForReview + case items } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related items returned (when they are included) - maximum 50 case items(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ListSubscriptionGroupsForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ListSubscriptionGroupsForAppV1.swift index 0580f93e2..a2784abb6 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ListSubscriptionGroupsForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ListSubscriptionGroupsForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All Subscription Groups for an App - Get a list of subscription groups for a specific app. + # List All Subscription Groups for an App + Get a list of subscription groups for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listSubscriptionGroupsForAppV1(id: String, fields: [ListSubscriptionGroupsForAppV1.Field]? = nil, @@ -21,11 +21,11 @@ public extension Request { sorts: [ListSubscriptionGroupsForAppV1.Sort]? = nil, limits: [ListSubscriptionGroupsForAppV1.Limit]? = nil) -> Request { - return .init(path: "/v1/apps/\(id)/subscriptionGroups", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/apps/\(id)/subscriptionGroups", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -104,7 +104,8 @@ public enum ListSubscriptionGroupsForAppV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscriptionGroupLocalizations, subscriptions + case subscriptionGroupLocalizations + case subscriptions } /** @@ -121,9 +122,9 @@ public enum ListSubscriptionGroupsForAppV1 { public enum Limit: LimitParameter { /// Maximum resources per page - maximum 200 case limit(Int) - /// Maximum number of related subscriptions returned (when they are included) - maximum 50 - case subscriptions(Int) /// Maximum number of related subscriptionGroupLocalizations returned (when they are included) - maximum 50 case subscriptionGroupLocalizations(Int) + /// Maximum number of related subscriptions returned (when they are included) - maximum 50 + case subscriptions(Int) } } diff --git a/Sources/Bagbutik/Endpoints/App/Relationships/ReplacePromotedPurchasesForAppV1.swift b/Sources/Bagbutik/Endpoints/App/Relationships/ReplacePromotedPurchasesForAppV1.swift index 9513df0a1..86ac8d442 100644 --- a/Sources/Bagbutik/Endpoints/App/Relationships/ReplacePromotedPurchasesForAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/Relationships/ReplacePromotedPurchasesForAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Order of a Promoted Purchase for an App - Update the order of promoted purchases. + # Modify the Order of a Promoted Purchase for an App + Update the order of promoted purchases. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func replacePromotedPurchasesForAppV1(id: String, requestBody: AppPromotedPurchasesLinkagesRequest) -> Request { - return .init(path: "/v1/apps/\(id)/relationships/promotedPurchases", method: .patch, requestBody: requestBody) + .init(path: "/v1/apps/\(id)/relationships/promotedPurchases", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/App/UpdateAppV1.swift b/Sources/Bagbutik/Endpoints/App/UpdateAppV1.swift index f918315ea..28195f681 100644 --- a/Sources/Bagbutik/Endpoints/App/UpdateAppV1.swift +++ b/Sources/Bagbutik/Endpoints/App/UpdateAppV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App - Update app information including bundle ID, primary locale, price schedule, and global availability. + # Modify an App + Update app information including bundle ID, primary locale, price schedule, and global availability. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: App representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: App representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppV1(id: String, requestBody: AppUpdateRequest) -> Request { - return .init(path: "/v1/apps/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/apps/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCategory/GetAppCategoryV1.swift b/Sources/Bagbutik/Endpoints/AppCategory/GetAppCategoryV1.swift index 37589e481..0d83d37fe 100644 --- a/Sources/Bagbutik/Endpoints/AppCategory/GetAppCategoryV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCategory/GetAppCategoryV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Category Information - Get a specific app category. + # Read App Category Information + Get a specific app category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related subcategories returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related subcategories returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppCategoryV1(id: String, fields: [GetAppCategoryV1.Field]? = nil, includes: [GetAppCategoryV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appCategories/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appCategories/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -42,6 +42,7 @@ public enum GetAppCategoryV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case parent, subcategories + case parent + case subcategories } } diff --git a/Sources/Bagbutik/Endpoints/AppCategory/ListAppCategoriesV1.swift b/Sources/Bagbutik/Endpoints/AppCategory/ListAppCategoriesV1.swift index 5554fc63b..e13ad136a 100644 --- a/Sources/Bagbutik/Endpoints/AppCategory/ListAppCategoriesV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCategory/ListAppCategoriesV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # List App Categories - List all categories on the App Store, including the category and subcategory hierarchy. + # List App Categories + List all categories on the App Store, including the category and subcategory hierarchy. - Use this endpoint to retrieve the list of available App Store categories and subcategories. Associate an app with categories using the [Modify an App Info](https://developer.apple.com/documentation/appstoreconnectapi/modify_an_app_info) endpoint. - The first example retrieves the full category and subcategory hierarchy in one request. The second example retrieves just the top-level categories for macOS apps. + Use this endpoint to retrieve the list of available App Store categories and subcategories. Associate an app with categories using the [Modify an App Info](https://developer.apple.com/documentation/appstoreconnectapi/modify_an_app_info) endpoint. + The first example retrieves the full category and subcategory hierarchy in one request. The second example retrieves just the top-level categories for macOS apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppCategoriesV1(fields: [ListAppCategoriesV1.Field]? = nil, filters: [ListAppCategoriesV1.Filter]? = nil, @@ -22,11 +22,11 @@ public extension Request { includes: [ListAppCategoriesV1.Include]? = nil, limits: [ListAppCategoriesV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCategories", method: .get, parameters: .init(fields: fields, - filters: filters, - exists: exists, - includes: includes, - limits: limits)) + .init(path: "/v1/appCategories", method: .get, parameters: .init(fields: fields, + filters: filters, + exists: exists, + includes: includes, + limits: limits)) } } @@ -71,7 +71,8 @@ public enum ListAppCategoriesV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case parent, subcategories + case parent + case subcategories } /** diff --git a/Sources/Bagbutik/Endpoints/AppCategory/Relationships/GetParentForAppCategoryV1.swift b/Sources/Bagbutik/Endpoints/AppCategory/Relationships/GetParentForAppCategoryV1.swift index c2f05cd96..989c76827 100644 --- a/Sources/Bagbutik/Endpoints/AppCategory/Relationships/GetParentForAppCategoryV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCategory/Relationships/GetParentForAppCategoryV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Parent Information of an App Category - Get the App Store category to which a specific subcategory belongs. + # Read the Parent Information of an App Category + Get the App Store category to which a specific subcategory belongs. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getParentForAppCategoryV1(id: String, fields: [GetParentForAppCategoryV1.Field]? = nil) -> Request { - return .init(path: "/v1/appCategories/\(id)/parent", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appCategories/\(id)/parent", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppCategory/Relationships/ListSubcategoriesForAppCategoryV1.swift b/Sources/Bagbutik/Endpoints/AppCategory/Relationships/ListSubcategoriesForAppCategoryV1.swift index 2c39f59b4..2cfc941ff 100644 --- a/Sources/Bagbutik/Endpoints/AppCategory/Relationships/ListSubcategoriesForAppCategoryV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCategory/Relationships/ListSubcategoriesForAppCategoryV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Subcategories for an App Category - List all App Store subcategories that belong to a specific category. + # List All Subcategories for an App Category + List all App Store subcategories that belong to a specific category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listSubcategoriesForAppCategoryV1(id: String, fields: [ListSubcategoriesForAppCategoryV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appCategories/\(id)/subcategories", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/appCategories/\(id)/subcategories", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClip/GetAppClipV1.swift b/Sources/Bagbutik/Endpoints/AppClip/GetAppClipV1.swift index 76d26db99..88e4e32df 100644 --- a/Sources/Bagbutik/Endpoints/AppClip/GetAppClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClip/GetAppClipV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Clip Information - Get a specific App Clip. + # Read App Clip Information + Get a specific App Clip. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appClipDefaultExperiences returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appClipDefaultExperiences returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipV1(id: String, fields: [GetAppClipV1.Field]? = nil, includes: [GetAppClipV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appClips/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appClips/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -72,6 +72,7 @@ public enum GetAppClipV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appClipDefaultExperiences + case app + case appClipDefaultExperiences } } diff --git a/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipAdvancedExperiencesForAppClipV1.swift b/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipAdvancedExperiencesForAppClipV1.swift index 3ac386254..892c846a4 100644 --- a/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipAdvancedExperiencesForAppClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipAdvancedExperiencesForAppClipV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Advanced App Clip Experiences for an App Clip - Get all advanced App Clip experiences for an App Clip. + # List All Advanced App Clip Experiences for an App Clip + Get all advanced App Clip experiences for an App Clip. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppClipAdvancedExperiencesForAppClipV1(id: String, fields: [ListAppClipAdvancedExperiencesForAppClipV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppClipAdvancedExperiencesForAppClipV1.Include]? = nil, limits: [ListAppClipAdvancedExperiencesForAppClipV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appClips/\(id)/appClipAdvancedExperiences", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appClips/\(id)/appClipAdvancedExperiences", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -114,7 +114,9 @@ public enum ListAppClipAdvancedExperiencesForAppClipV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClip, headerImage, localizations + case appClip + case headerImage + case localizations } /** diff --git a/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipDefaultExperiencesForAppClipV1.swift b/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipDefaultExperiencesForAppClipV1.swift index b1850bd44..a3e72984a 100644 --- a/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipDefaultExperiencesForAppClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClip/Relationships/ListAppClipDefaultExperiencesForAppClipV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Default App Clip Experiences for an App Clip - Get all default App Clip experiences for an App Clip. + # List All Default App Clip Experiences for an App Clip + Get all default App Clip experiences for an App Clip. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppClipDefaultExperiencesForAppClipV1(id: String, fields: [ListAppClipDefaultExperiencesForAppClipV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppClipDefaultExperiencesForAppClipV1.Include]? = nil, limits: [ListAppClipDefaultExperiencesForAppClipV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appClips/\(id)/appClipDefaultExperiences", method: .get, parameters: .init(fields: fields, - exists: exists, - includes: includes, - limits: limits)) + .init(path: "/v1/appClips/\(id)/appClipDefaultExperiences", method: .get, parameters: .init(fields: fields, + exists: exists, + includes: includes, + limits: limits)) } } @@ -105,16 +105,19 @@ public enum ListAppClipDefaultExperiencesForAppClipV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClip, appClipAppStoreReviewDetail, appClipDefaultExperienceLocalizations, releaseWithAppStoreVersion + case appClip + case appClipAppStoreReviewDetail + case appClipDefaultExperienceLocalizations + case releaseWithAppStoreVersion } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appClipDefaultExperienceLocalizations returned (when they are included) - maximum 50 case appClipDefaultExperienceLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/CreateAppClipAdvancedExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/CreateAppClipAdvancedExperienceV1.swift index 50dbfcbfd..ab5ff1ae3 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/CreateAppClipAdvancedExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/CreateAppClipAdvancedExperienceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an Advanced App Clip Experience - Configure a new advanced App Clip experience. + # Create an Advanced App Clip Experience + Configure a new advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipAdvancedExperience representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipAdvancedExperience representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipAdvancedExperienceV1(requestBody: AppClipAdvancedExperienceCreateRequest) -> Request { - return .init(path: "/v1/appClipAdvancedExperiences", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipAdvancedExperiences", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/GetAppClipAdvancedExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/GetAppClipAdvancedExperienceV1.swift index 3f5a34058..394af9a81 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/GetAppClipAdvancedExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/GetAppClipAdvancedExperienceV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Advanced App Clip Experience Information - Get information about a specific advanced App Clip experience. + # Read Advanced App Clip Experience Information + Get information about a specific advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related localizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related localizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipAdvancedExperienceV1(id: String, fields: [GetAppClipAdvancedExperienceV1.Field]? = nil, includes: [GetAppClipAdvancedExperienceV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appClipAdvancedExperiences/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appClipAdvancedExperiences/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -52,6 +52,8 @@ public enum GetAppClipAdvancedExperienceV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClip, headerImage, localizations + case appClip + case headerImage + case localizations } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/UpdateAppClipAdvancedExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/UpdateAppClipAdvancedExperienceV1.swift index 360355e59..179b40dd6 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/UpdateAppClipAdvancedExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperience/UpdateAppClipAdvancedExperienceV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify and Delete an Advanced App Clip Experience - Update and delete an existing advanced App Clip experience. + # Modify and Delete an Advanced App Clip Experience + Update and delete an existing advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipAdvancedExperience representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipAdvancedExperience representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipAdvancedExperienceV1(id: String, requestBody: AppClipAdvancedExperienceUpdateRequest) -> Request { - return .init(path: "/v1/appClipAdvancedExperiences/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipAdvancedExperiences/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/CreateAppClipAdvancedExperienceImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/CreateAppClipAdvancedExperienceImageV1.swift index 22c16de7d..ec0bba71e 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/CreateAppClipAdvancedExperienceImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/CreateAppClipAdvancedExperienceImageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Clip Card Image for an Advanced App Clip Experience - Reserve an image asset that appears on the App Clip card of an advanced App Clip experience. + # Create an App Clip Card Image for an Advanced App Clip Experience + Reserve an image asset that appears on the App Clip card of an advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipAdvancedExperienceImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipAdvancedExperienceImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipAdvancedExperienceImageV1(requestBody: AppClipAdvancedExperienceImageCreateRequest) -> Request { - return .init(path: "/v1/appClipAdvancedExperienceImages", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipAdvancedExperienceImages", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/GetAppClipAdvancedExperienceImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/GetAppClipAdvancedExperienceImageV1.swift index 0d022d5d3..cf8abfb95 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/GetAppClipAdvancedExperienceImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/GetAppClipAdvancedExperienceImageV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read Image Information for an Advanced App Clip Experience - Get information about the image that appears on the App Clip card of an advanced App Clip experience. + # Read Image Information for an Advanced App Clip Experience + Get information about the image that appears on the App Clip card of an advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipAdvancedExperienceImageV1(id: String, fields: [GetAppClipAdvancedExperienceImageV1.Field]? = nil) -> Request { - return .init(path: "/v1/appClipAdvancedExperienceImages/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appClipAdvancedExperienceImages/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/UpdateAppClipAdvancedExperienceImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/UpdateAppClipAdvancedExperienceImageV1.swift index 5006ebf65..a9084744f 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/UpdateAppClipAdvancedExperienceImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAdvancedExperienceImage/UpdateAppClipAdvancedExperienceImageV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Image for an Advanced App Clip Experience - Update image information or commit the image asset of an advanced App Clip experience. + # Modify the Image for an Advanced App Clip Experience + Update image information or commit the image asset of an advanced App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipAdvancedExperienceImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipAdvancedExperienceImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipAdvancedExperienceImageV1(id: String, requestBody: AppClipAdvancedExperienceImageUpdateRequest) -> Request { - return .init(path: "/v1/appClipAdvancedExperienceImages/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipAdvancedExperienceImages/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/CreateAppClipAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/CreateAppClipAppStoreReviewDetailV1.swift index a1881350d..d5d285a7b 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/CreateAppClipAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/CreateAppClipAppStoreReviewDetailV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create App Store Review Details for an App Clip - Provide App Clip metadata required by App Store Review. + # Create App Store Review Details for an App Clip + Provide App Clip metadata required by App Store Review. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipAppStoreReviewDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipAppStoreReviewDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipAppStoreReviewDetailV1(requestBody: AppClipAppStoreReviewDetailCreateRequest) -> Request { - return .init(path: "/v1/appClipAppStoreReviewDetails", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipAppStoreReviewDetails", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/GetAppClipAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/GetAppClipAppStoreReviewDetailV1.swift index 874641e0b..143831f22 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/GetAppClipAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/GetAppClipAppStoreReviewDetailV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read the App Store Review Details of an App Clip - Get App Store Review details for an App Clip. + # Read the App Store Review Details of an App Clip + Get App Store Review details for an App Clip. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipAppStoreReviewDetailV1(id: String, fields: [GetAppClipAppStoreReviewDetailV1.Field]? = nil, includes: [GetAppClipAppStoreReviewDetailV1.Include]? = nil) -> Request { - return .init(path: "/v1/appClipAppStoreReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appClipAppStoreReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/UpdateAppClipAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/UpdateAppClipAppStoreReviewDetailV1.swift index 8bbeead50..a9d1fe9e2 100644 --- a/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/UpdateAppClipAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipAppStoreReviewDetail/UpdateAppClipAppStoreReviewDetailV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify App Store Review Details for an App Clip - Update App Clip metadata you provide to App Store Review. + # Modify App Store Review Details for an App Clip + Update App Clip metadata you provide to App Store Review. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipAppStoreReviewDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipAppStoreReviewDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipAppStoreReviewDetailV1(id: String, requestBody: AppClipAppStoreReviewDetailUpdateRequest) -> Request { - return .init(path: "/v1/appClipAppStoreReviewDetails/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipAppStoreReviewDetails/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/CreateAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/CreateAppClipDefaultExperienceV1.swift index 0f3ae7f68..7d5b485ac 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/CreateAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/CreateAppClipDefaultExperienceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Default App Clip Experience - Configure a new default App Clip experience. + # Create a Default App Clip Experience + Configure a new default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipDefaultExperience representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipDefaultExperience representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipDefaultExperienceV1(requestBody: AppClipDefaultExperienceCreateRequest) -> Request { - return .init(path: "/v1/appClipDefaultExperiences", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipDefaultExperiences", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/DeleteAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/DeleteAppClipDefaultExperienceV1.swift index 36e6ec21f..d55d1349b 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/DeleteAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/DeleteAppClipDefaultExperienceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Default App Clip Experience - Delete a specific default App Clip experience. + # Delete a Default App Clip Experience + Delete a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppClipDefaultExperienceV1(id: String) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .delete) + .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/GetAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/GetAppClipDefaultExperienceV1.swift index e9e442280..7b84888e9 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/GetAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/GetAppClipDefaultExperienceV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Default App Clip Experience Information - Get a specific default App Clip experience. + # Read Default App Clip Experience Information + Get a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appClipDefaultExperienceLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appClipDefaultExperienceLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDefaultExperienceV1(id: String, fields: [GetAppClipDefaultExperienceV1.Field]? = nil, includes: [GetAppClipDefaultExperienceV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -85,6 +85,9 @@ public enum GetAppClipDefaultExperienceV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClip, appClipAppStoreReviewDetail, appClipDefaultExperienceLocalizations, releaseWithAppStoreVersion + case appClip + case appClipAppStoreReviewDetail + case appClipDefaultExperienceLocalizations + case releaseWithAppStoreVersion } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.swift index 80693abf1..056181978 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read the App Store Review Detail for a Default App Clip Experience - Get App Store Review details for a specific default App Clip experience. + # Read the App Store Review Detail for a Default App Clip Experience + Get App Store Review details for a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1(id: String, fields: [GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.Field]? = nil, includes: [GetAppClipAppStoreReviewDetailForAppClipDefaultExperienceV1.Include]? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)/appClipAppStoreReviewDetail", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appClipDefaultExperiences/\(id)/appClipAppStoreReviewDetail", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift index 34fef7971..a14617188 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Store Version Information for a Default App Clip Experience - Get App Store Version information for a default App Clip experience. + # Read App Store Version Information for a Default App Clip Experience + Get App Store Version information for a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getReleaseWithAppStoreVersionForAppClipDefaultExperienceV1(id: String, fields: [GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.Field]? = nil, includes: [GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.Include]? = nil, limits: [GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)/releaseWithAppStoreVersion", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appClipDefaultExperiences/\(id)/releaseWithAppStoreVersion", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -235,16 +235,25 @@ public enum GetReleaseWithAppStoreVersionForAppClipDefaultExperienceV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appClipDefaultExperience, appStoreReviewDetail, appStoreVersionExperiments, appStoreVersionLocalizations, appStoreVersionPhasedRelease, appStoreVersionSubmission, build, routingAppCoverage + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreVersionExperiments + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case routingAppCoverage } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 - case appStoreVersionLocalizations(Int) /// Maximum number of related appStoreVersionExperiments returned (when they are included) - maximum 50 case appStoreVersionExperiments(Int) + /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 + case appStoreVersionLocalizations(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionIdsForAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionIdsForAppClipDefaultExperienceV1.swift index b3201f69e..7ca8e4796 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionIdsForAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/GetReleaseWithAppStoreVersionIdsForAppClipDefaultExperienceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Get the App Store Versions Resource ID for a Default App Clip Experience - Get IDs for App Store Versions related to a default App Clip experience. + # Get the App Store Versions Resource ID for a Default App Clip Experience + Get IDs for App Store Versions related to a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getReleaseWithAppStoreVersionIdsForAppClipDefaultExperienceV1(id: String) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)/relationships/releaseWithAppStoreVersion", method: .get) + .init(path: "/v1/appClipDefaultExperiences/\(id)/relationships/releaseWithAppStoreVersion", method: .get) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.swift index b3924a1cd..ab0eb9055 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Read Localization Information for a Default App Clip Experience - Get localized metadata that appears on the App Clip card for a specific default App Clip experience. + # Read Localization Information for a Default App Clip Experience + Get localized metadata that appears on the App Clip card for a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1(id: String, fields: [ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperienceV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)/appClipDefaultExperienceLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/appClipDefaultExperiences/\(id)/appClipDefaultExperienceLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -78,6 +78,7 @@ public enum ListAppClipDefaultExperienceLocalizationsForAppClipDefaultExperience Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClipDefaultExperience, appClipHeaderImage + case appClipDefaultExperience + case appClipHeaderImage } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/UpdateReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/UpdateReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift index 072821b3d..38b48401c 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/UpdateReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/Relationships/UpdateReleaseWithAppStoreVersionForAppClipDefaultExperienceV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Related App Store Version for a Default App Clip Experience - Update the relationship between a default App Clip experience and an App Store Version. + # Modify the Related App Store Version for a Default App Clip Experience + Update the relationship between a default App Clip experience and an App Store Version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Related linkage - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Related linkage + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateReleaseWithAppStoreVersionForAppClipDefaultExperienceV1(id: String, requestBody: AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)/relationships/releaseWithAppStoreVersion", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipDefaultExperiences/\(id)/relationships/releaseWithAppStoreVersion", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/UpdateAppClipDefaultExperienceV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/UpdateAppClipDefaultExperienceV1.swift index c92d30b81..430d27a8c 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/UpdateAppClipDefaultExperienceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperience/UpdateAppClipDefaultExperienceV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Default App Clip Experience - Update a default App Clip experience. + # Modify a Default App Clip Experience + Update a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipDefaultExperience representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipDefaultExperience representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipDefaultExperienceV1(id: String, requestBody: AppClipDefaultExperienceUpdateRequest) -> Request { - return .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipDefaultExperiences/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/CreateAppClipDefaultExperienceLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/CreateAppClipDefaultExperienceLocalizationV1.swift index 134607598..ca3c436d0 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/CreateAppClipDefaultExperienceLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/CreateAppClipDefaultExperienceLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create the Localized Metadata for a Default App Clip Experience - Provide localized metadata that appears on the App Clip card of a default App Clip experience. + # Create the Localized Metadata for a Default App Clip Experience + Provide localized metadata that appears on the App Clip card of a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipDefaultExperienceLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipDefaultExperienceLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipDefaultExperienceLocalizationV1(requestBody: AppClipDefaultExperienceLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appClipDefaultExperienceLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipDefaultExperienceLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/DeleteAppClipDefaultExperienceLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/DeleteAppClipDefaultExperienceLocalizationV1.swift index 6b3e095b4..dd3838f1a 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/DeleteAppClipDefaultExperienceLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/DeleteAppClipDefaultExperienceLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Default App Clip Experience Localization - Delete localized metadata that appears on the App Clip card of a default App Clip experience. + # Delete a Default App Clip Experience Localization + Delete localized metadata that appears on the App Clip card of a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppClipDefaultExperienceLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .delete) + .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/GetAppClipDefaultExperienceLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/GetAppClipDefaultExperienceLocalizationV1.swift index fae13d865..b82497d2c 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/GetAppClipDefaultExperienceLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/GetAppClipDefaultExperienceLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Localization Information of a Default App Clip Experience - Get localized metadata that appears on the App Clip card of a specific default App Clip experience. + # Read Localization Information of a Default App Clip Experience + Get localized metadata that appears on the App Clip card of a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDefaultExperienceLocalizationV1(id: String, fields: [GetAppClipDefaultExperienceLocalizationV1.Field]? = nil, includes: [GetAppClipDefaultExperienceLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -53,6 +53,7 @@ public enum GetAppClipDefaultExperienceLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClipDefaultExperience, appClipHeaderImage + case appClipDefaultExperience + case appClipHeaderImage } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/Relationships/GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/Relationships/GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.swift index eba078587..a2d0d90f5 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/Relationships/GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/Relationships/GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Clip Card Image Information for a Localized Default App Clip Experience - Get the image that appears on the App Clip card, specific to a locale, for a default App Clip experience. + # Read App Clip Card Image Information for a Localized Default App Clip Experience + Get the image that appears on the App Clip card, specific to a locale, for a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1(id: String, fields: [GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.Field]? = nil, includes: [GetAppClipHeaderImageForAppClipDefaultExperienceLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)/appClipHeaderImage", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)/appClipHeaderImage", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/UpdateAppClipDefaultExperienceLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/UpdateAppClipDefaultExperienceLocalizationV1.swift index dc13a9f33..073801f35 100644 --- a/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/UpdateAppClipDefaultExperienceLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipDefaultExperienceLocalization/UpdateAppClipDefaultExperienceLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Localization for a Default App Clip Experience - Update localized metadata for a specific default App Clip experience. + # Modify the Localization for a Default App Clip Experience + Update localized metadata for a specific default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipDefaultExperienceLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipDefaultExperienceLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipDefaultExperienceLocalizationV1(id: String, requestBody: AppClipDefaultExperienceLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipDefaultExperienceLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/CreateAppClipHeaderImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/CreateAppClipHeaderImageV1.swift index 5e3111868..0256e0d77 100644 --- a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/CreateAppClipHeaderImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/CreateAppClipHeaderImageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Clip Card Image for a Default App Clip Experience - Reserve an image asset that appears on the App Clip card of a default App Clip experience. + # Create an App Clip Card Image for a Default App Clip Experience + Reserve an image asset that appears on the App Clip card of a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppClipHeaderImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppClipHeaderImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppClipHeaderImageV1(requestBody: AppClipHeaderImageCreateRequest) -> Request { - return .init(path: "/v1/appClipHeaderImages", method: .post, requestBody: requestBody) + .init(path: "/v1/appClipHeaderImages", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/DeleteAppClipHeaderImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/DeleteAppClipHeaderImageV1.swift index c37d08996..85998128a 100644 --- a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/DeleteAppClipHeaderImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/DeleteAppClipHeaderImageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Default App Clip Experience Image - Delete the image asset that appears on the App Clip card for a default App Clip experience. + # Delete a Default App Clip Experience Image + Delete the image asset that appears on the App Clip card for a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppClipHeaderImageV1(id: String) -> Request { - return .init(path: "/v1/appClipHeaderImages/\(id)", method: .delete) + .init(path: "/v1/appClipHeaderImages/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/GetAppClipHeaderImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/GetAppClipHeaderImageV1.swift index 8291ba6e0..65bd7d8ec 100644 --- a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/GetAppClipHeaderImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/GetAppClipHeaderImageV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read the App Clip Card Image - Get the image that appears on the App Clip card of a default App Clip experience. + # Read the App Clip Card Image + Get the image that appears on the App Clip card of a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipHeaderImageV1(id: String, fields: [GetAppClipHeaderImageV1.Field]? = nil, includes: [GetAppClipHeaderImageV1.Include]? = nil) -> Request { - return .init(path: "/v1/appClipHeaderImages/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appClipHeaderImages/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/UpdateAppClipHeaderImageV1.swift b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/UpdateAppClipHeaderImageV1.swift index 1a8f99636..711fe49da 100644 --- a/Sources/Bagbutik/Endpoints/AppClipHeaderImage/UpdateAppClipHeaderImageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppClipHeaderImage/UpdateAppClipHeaderImageV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Clip Card Image - Change the image that appears on the App Clip card of a default App Clip experience. + # Modify an App Clip Card Image + Change the image that appears on the App Clip card of a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppClipHeaderImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppClipHeaderImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipHeaderImageV1(id: String, requestBody: AppClipHeaderImageUpdateRequest) -> Request { - return .init(path: "/v1/appClipHeaderImages/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appClipHeaderImages/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPage/CreateAppCustomProductPageV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPage/CreateAppCustomProductPageV1.swift index 50d7b3de6..20209c119 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPage/CreateAppCustomProductPageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPage/CreateAppCustomProductPageV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appCustomProductPages + # POST /v1/appCustomProductPages - Full documentation: - + Full documentation: + - - Parameter requestBody: AppCustomProductPage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppCustomProductPage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppCustomProductPageV1(requestBody: AppCustomProductPageCreateRequest) -> Request { - return .init(path: "/v1/appCustomProductPages", method: .post, requestBody: requestBody) + .init(path: "/v1/appCustomProductPages", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPage/DeleteAppCustomProductPageV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPage/DeleteAppCustomProductPageV1.swift index 8db41c905..715dbda69 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPage/DeleteAppCustomProductPageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPage/DeleteAppCustomProductPageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Custom Product Page - Delete metadata that you configured for a custom product page. + # Delete an App Custom Product Page + Delete metadata that you configured for a custom product page. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppCustomProductPageV1(id: String) -> Request { - return .init(path: "/v1/appCustomProductPages/\(id)", method: .delete) + .init(path: "/v1/appCustomProductPages/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPage/GetAppCustomProductPageV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPage/GetAppCustomProductPageV1.swift index 37caa1f73..0b251bff1 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPage/GetAppCustomProductPageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPage/GetAppCustomProductPageV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appCustomProductPages/{id} + # GET /v1/appCustomProductPages/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appCustomProductPageVersions returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appCustomProductPageVersions returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppCustomProductPageV1(id: String, fields: [GetAppCustomProductPageV1.Field]? = nil, includes: [GetAppCustomProductPageV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appCustomProductPages/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appCustomProductPages/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -54,6 +54,7 @@ public enum GetAppCustomProductPageV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appCustomProductPageVersions + case app + case appCustomProductPageVersions } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPage/Relationships/ListAppCustomProductPageVersionsForAppCustomProductPageV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPage/Relationships/ListAppCustomProductPageVersionsForAppCustomProductPageV1.swift index 385617add..a48cc22c0 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPage/Relationships/ListAppCustomProductPageVersionsForAppCustomProductPageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPage/Relationships/ListAppCustomProductPageVersionsForAppCustomProductPageV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appCustomProductPages/{id}/appCustomProductPageVersions + # GET /v1/appCustomProductPages/{id}/appCustomProductPageVersions - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppCustomProductPageVersionsForAppCustomProductPageV1(id: String, fields: [ListAppCustomProductPageVersionsForAppCustomProductPageV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppCustomProductPageVersionsForAppCustomProductPageV1.Include]? = nil, limits: [ListAppCustomProductPageVersionsForAppCustomProductPageV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCustomProductPages/\(id)/appCustomProductPageVersions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appCustomProductPages/\(id)/appCustomProductPageVersions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -86,16 +86,17 @@ public enum ListAppCustomProductPageVersionsForAppCustomProductPageV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPage, appCustomProductPageLocalizations + case appCustomProductPage + case appCustomProductPageLocalizations } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appCustomProductPageLocalizations returned (when they are included) - maximum 50 case appCustomProductPageLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPage/UpdateAppCustomProductPageV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPage/UpdateAppCustomProductPageV1.swift index ee0871564..d9b900911 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPage/UpdateAppCustomProductPageV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPage/UpdateAppCustomProductPageV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appCustomProductPages/{id} + # PATCH /v1/appCustomProductPages/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppCustomProductPage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppCustomProductPage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppCustomProductPageV1(id: String, requestBody: AppCustomProductPageUpdateRequest) -> Request { - return .init(path: "/v1/appCustomProductPages/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appCustomProductPages/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/CreateAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/CreateAppCustomProductPageLocalizationV1.swift index d5c00a9fa..cff1eaf4c 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/CreateAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/CreateAppCustomProductPageLocalizationV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appCustomProductPageLocalizations + # POST /v1/appCustomProductPageLocalizations - Full documentation: - + Full documentation: + - - Parameter requestBody: AppCustomProductPageLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppCustomProductPageLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppCustomProductPageLocalizationV1(requestBody: AppCustomProductPageLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appCustomProductPageLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/DeleteAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/DeleteAppCustomProductPageLocalizationV1.swift index 4f4af9548..846f21b5e 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/DeleteAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/DeleteAppCustomProductPageLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Custom Product Page Localization - Delete localized metadata that you configured for a custom product page. + # Delete an App Custom Product Page Localization + Delete localized metadata that you configured for a custom product page. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppCustomProductPageLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .delete) + .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/GetAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/GetAppCustomProductPageLocalizationV1.swift index cea5e072f..62ba6ee82 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/GetAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/GetAppCustomProductPageLocalizationV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appCustomProductPageLocalizations/{id} + # GET /v1/appCustomProductPageLocalizations/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppCustomProductPageLocalizationV1(id: String, fields: [GetAppCustomProductPageLocalizationV1.Field]? = nil, includes: [GetAppCustomProductPageLocalizationV1.Include]? = nil, limits: [GetAppCustomProductPageLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -63,7 +63,9 @@ public enum GetAppCustomProductPageLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageVersion, appPreviewSets, appScreenshotSets + case appCustomProductPageVersion + case appPreviewSets + case appScreenshotSets } /** diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppPreviewSetsForAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppPreviewSetsForAppCustomProductPageLocalizationV1.swift index 87f3da4f1..b205b0868 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppPreviewSetsForAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppPreviewSetsForAppCustomProductPageLocalizationV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appCustomProductPageLocalizations/{id}/appPreviewSets + # GET /v1/appCustomProductPageLocalizations/{id}/appPreviewSets - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPreviewSetsForAppCustomProductPageLocalizationV1(id: String, fields: [ListAppPreviewSetsForAppCustomProductPageLocalizationV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppPreviewSetsForAppCustomProductPageLocalizationV1.Include]? = nil, limits: [ListAppPreviewSetsForAppCustomProductPageLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appCustomProductPageLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -126,16 +126,19 @@ public enum ListAppPreviewSetsForAppCustomProductPageLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appPreviews, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appPreviews + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appPreviews returned (when they are included) - maximum 50 case appPreviews(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.swift index bd5a11289..58c58b4aa 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/Relationships/ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appCustomProductPageLocalizations/{id}/appScreenshotSets + # GET /v1/appCustomProductPageLocalizations/{id}/appScreenshotSets - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppScreenshotSetsForAppCustomProductPageLocalizationV1(id: String, fields: [ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.Include]? = nil, limits: [ListAppScreenshotSetsForAppCustomProductPageLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appCustomProductPageLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -136,16 +136,19 @@ public enum ListAppScreenshotSetsForAppCustomProductPageLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appScreenshots, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appScreenshots + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appScreenshots returned (when they are included) - maximum 50 case appScreenshots(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/UpdateAppCustomProductPageLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/UpdateAppCustomProductPageLocalizationV1.swift index 4b9252315..21d2a39b2 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/UpdateAppCustomProductPageLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageLocalization/UpdateAppCustomProductPageLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appCustomProductPageLocalizations/{id} + # PATCH /v1/appCustomProductPageLocalizations/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppCustomProductPageLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppCustomProductPageLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppCustomProductPageLocalizationV1(id: String, requestBody: AppCustomProductPageLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appCustomProductPageLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/CreateAppCustomProductPageVersionV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/CreateAppCustomProductPageVersionV1.swift index 447194ece..34e1db87f 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/CreateAppCustomProductPageVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/CreateAppCustomProductPageVersionV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appCustomProductPageVersions + # POST /v1/appCustomProductPageVersions - Full documentation: - + Full documentation: + - - Parameter requestBody: AppCustomProductPageVersion representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppCustomProductPageVersion representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppCustomProductPageVersionV1(requestBody: AppCustomProductPageVersionCreateRequest) -> Request { - return .init(path: "/v1/appCustomProductPageVersions", method: .post, requestBody: requestBody) + .init(path: "/v1/appCustomProductPageVersions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/GetAppCustomProductPageVersionV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/GetAppCustomProductPageVersionV1.swift index bdea70ee6..b6ce7dc0b 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/GetAppCustomProductPageVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/GetAppCustomProductPageVersionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appCustomProductPageVersions/{id} + # GET /v1/appCustomProductPageVersions/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appCustomProductPageLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appCustomProductPageLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppCustomProductPageVersionV1(id: String, fields: [GetAppCustomProductPageVersionV1.Field]? = nil, includes: [GetAppCustomProductPageVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appCustomProductPageVersions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appCustomProductPageVersions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -52,6 +52,7 @@ public enum GetAppCustomProductPageVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPage, appCustomProductPageLocalizations + case appCustomProductPage + case appCustomProductPageLocalizations } } diff --git a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/Relationships/ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.swift b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/Relationships/ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.swift index 6ada788f1..56b327542 100644 --- a/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/Relationships/ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppCustomProductPageVersion/Relationships/ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations + # GET /v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1(id: String, fields: [ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.Include]? = nil, limits: [ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appCustomProductPageVersions/\(id)/appCustomProductPageLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appCustomProductPageVersions/\(id)/appCustomProductPageLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -83,18 +83,20 @@ public enum ListAppCustomProductPageLocalizationsForAppCustomProductPageVersionV Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageVersion, appPreviewSets, appScreenshotSets + case appCustomProductPageVersion + case appPreviewSets + case appScreenshotSets } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) - /// Maximum number of related appScreenshotSets returned (when they are included) - maximum 50 - case appScreenshotSets(Int) /// Maximum number of related appPreviewSets returned (when they are included) - maximum 50 case appPreviewSets(Int) + /// Maximum number of related appScreenshotSets returned (when they are included) - maximum 50 + case appScreenshotSets(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/GetAppEncryptionDeclarationV1.swift b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/GetAppEncryptionDeclarationV1.swift index 74d1d05ca..aeee928b9 100644 --- a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/GetAppEncryptionDeclarationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/GetAppEncryptionDeclarationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Encryption Declaration Information - Get information about a specific app encryption declaration. + # Read App Encryption Declaration Information + Get information about a specific app encryption declaration. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEncryptionDeclarationV1(id: String, fields: [GetAppEncryptionDeclarationV1.Field]? = nil, includes: [GetAppEncryptionDeclarationV1.Include]? = nil) -> Request { - return .init(path: "/v1/appEncryptionDeclarations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appEncryptionDeclarations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/ListAppEncryptionDeclarationsV1.swift b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/ListAppEncryptionDeclarationsV1.swift index d60af9ed4..516a61e36 100644 --- a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/ListAppEncryptionDeclarationsV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/ListAppEncryptionDeclarationsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List App Encryption Declarations - Find and list all available app encryption declarations. + # List App Encryption Declarations + Find and list all available app encryption declarations. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppEncryptionDeclarationsV1(fields: [ListAppEncryptionDeclarationsV1.Field]? = nil, filters: [ListAppEncryptionDeclarationsV1.Filter]? = nil, includes: [ListAppEncryptionDeclarationsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appEncryptionDeclarations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/appEncryptionDeclarations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/CreateBuildsForAppEncryptionDeclarationV1.swift b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/CreateBuildsForAppEncryptionDeclarationV1.swift index 05d388483..fd4d6ab4b 100644 --- a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/CreateBuildsForAppEncryptionDeclarationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/CreateBuildsForAppEncryptionDeclarationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Assign Builds to an App Encryption Declaration - Assign one or more builds to an app encryption declaration. + # Assign Builds to an App Encryption Declaration + Assign one or more builds to an app encryption declaration. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBuildsForAppEncryptionDeclarationV1(id: String, requestBody: AppEncryptionDeclarationBuildsLinkagesRequest) -> Request { - return .init(path: "/v1/appEncryptionDeclarations/\(id)/relationships/builds", method: .post, requestBody: requestBody) + .init(path: "/v1/appEncryptionDeclarations/\(id)/relationships/builds", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/GetAppForAppEncryptionDeclarationV1.swift b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/GetAppForAppEncryptionDeclarationV1.swift index 0c40d05f2..252d03bab 100644 --- a/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/GetAppForAppEncryptionDeclarationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEncryptionDeclaration/Relationships/GetAppForAppEncryptionDeclarationV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of an App Encryption Declaration - Get the app information from a specific app encryption declaration. + # Read the App Information of an App Encryption Declaration + Get the app information from a specific app encryption declaration. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForAppEncryptionDeclarationV1(id: String, fields: [GetAppForAppEncryptionDeclarationV1.Field]? = nil) -> Request { - return .init(path: "/v1/appEncryptionDeclarations/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appEncryptionDeclarations/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEvent/CreateAppEventV1.swift b/Sources/Bagbutik/Endpoints/AppEvent/CreateAppEventV1.swift index 08922dd78..ad91312c9 100644 --- a/Sources/Bagbutik/Endpoints/AppEvent/CreateAppEventV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEvent/CreateAppEventV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appEvents + # POST /v1/appEvents - Full documentation: - + Full documentation: + - - Parameter requestBody: AppEvent representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppEvent representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppEventV1(requestBody: AppEventCreateRequest) -> Request { - return .init(path: "/v1/appEvents", method: .post, requestBody: requestBody) + .init(path: "/v1/appEvents", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEvent/DeleteAppEventV1.swift b/Sources/Bagbutik/Endpoints/AppEvent/DeleteAppEventV1.swift index d8cc865ee..10f1952b0 100644 --- a/Sources/Bagbutik/Endpoints/AppEvent/DeleteAppEventV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEvent/DeleteAppEventV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Event - Delete an in-app event and its related metadata. + # Delete an App Event + Delete an in-app event and its related metadata. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppEventV1(id: String) -> Request { - return .init(path: "/v1/appEvents/\(id)", method: .delete) + .init(path: "/v1/appEvents/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppEvent/GetAppEventV1.swift b/Sources/Bagbutik/Endpoints/AppEvent/GetAppEventV1.swift index ba77a5aaa..01c343a8a 100644 --- a/Sources/Bagbutik/Endpoints/AppEvent/GetAppEventV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEvent/GetAppEventV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appEvents/{id} + # GET /v1/appEvents/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related localizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related localizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEventV1(id: String, fields: [GetAppEventV1.Field]? = nil, includes: [GetAppEventV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appEvents/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appEvents/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEvent/Relationships/ListLocalizationsForAppEventV1.swift b/Sources/Bagbutik/Endpoints/AppEvent/Relationships/ListLocalizationsForAppEventV1.swift index ac735531f..600d77c17 100644 --- a/Sources/Bagbutik/Endpoints/AppEvent/Relationships/ListLocalizationsForAppEventV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEvent/Relationships/ListLocalizationsForAppEventV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appEvents/{id}/localizations + # GET /v1/appEvents/{id}/localizations - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listLocalizationsForAppEventV1(id: String, fields: [ListLocalizationsForAppEventV1.Field]? = nil, includes: [ListLocalizationsForAppEventV1.Include]? = nil, limits: [ListLocalizationsForAppEventV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appEvents/\(id)/localizations", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appEvents/\(id)/localizations", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -91,18 +91,20 @@ public enum ListLocalizationsForAppEventV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appEvent, appEventScreenshots, appEventVideoClips + case appEvent + case appEventScreenshots + case appEventVideoClips } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appEventScreenshots returned (when they are included) - maximum 50 case appEventScreenshots(Int) /// Maximum number of related appEventVideoClips returned (when they are included) - maximum 50 case appEventVideoClips(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppEvent/UpdateAppEventV1.swift b/Sources/Bagbutik/Endpoints/AppEvent/UpdateAppEventV1.swift index ab5f5fd7b..a8a1f1a9d 100644 --- a/Sources/Bagbutik/Endpoints/AppEvent/UpdateAppEventV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEvent/UpdateAppEventV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appEvents/{id} + # PATCH /v1/appEvents/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppEvent representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppEvent representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppEventV1(id: String, requestBody: AppEventUpdateRequest) -> Request { - return .init(path: "/v1/appEvents/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appEvents/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/CreateAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/CreateAppEventLocalizationV1.swift index 29e40370b..a440e5fcf 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/CreateAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/CreateAppEventLocalizationV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appEventLocalizations + # POST /v1/appEventLocalizations - Full documentation: - + Full documentation: + - - Parameter requestBody: AppEventLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppEventLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppEventLocalizationV1(requestBody: AppEventLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appEventLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appEventLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/DeleteAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/DeleteAppEventLocalizationV1.swift index 99a6f5ee8..28ec58a45 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/DeleteAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/DeleteAppEventLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Event Localization - Delete localized metadata that you configured for an in-app event. + # Delete an App Event Localization + Delete localized metadata that you configured for an in-app event. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppEventLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appEventLocalizations/\(id)", method: .delete) + .init(path: "/v1/appEventLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/GetAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/GetAppEventLocalizationV1.swift index 0d6228b8c..45a1161a8 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/GetAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/GetAppEventLocalizationV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appEventLocalizations/{id} + # GET /v1/appEventLocalizations/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEventLocalizationV1(id: String, fields: [GetAppEventLocalizationV1.Field]? = nil, includes: [GetAppEventLocalizationV1.Include]? = nil, limits: [GetAppEventLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appEventLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appEventLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -74,7 +74,9 @@ public enum GetAppEventLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appEvent, appEventScreenshots, appEventVideoClips + case appEvent + case appEventScreenshots + case appEventVideoClips } /** diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventScreenshotsForAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventScreenshotsForAppEventLocalizationV1.swift index d220adab2..d45df1b4a 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventScreenshotsForAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventScreenshotsForAppEventLocalizationV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appEventLocalizations/{id}/appEventScreenshots + # GET /v1/appEventLocalizations/{id}/appEventScreenshots - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppEventScreenshotsForAppEventLocalizationV1(id: String, fields: [ListAppEventScreenshotsForAppEventLocalizationV1.Field]? = nil, includes: [ListAppEventScreenshotsForAppEventLocalizationV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appEventLocalizations/\(id)/appEventScreenshots", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appEventLocalizations/\(id)/appEventScreenshots", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventVideoClipsForAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventVideoClipsForAppEventLocalizationV1.swift index 08155026f..3e26ef7e8 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventVideoClipsForAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/Relationships/ListAppEventVideoClipsForAppEventLocalizationV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appEventLocalizations/{id}/appEventVideoClips + # GET /v1/appEventLocalizations/{id}/appEventVideoClips - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppEventVideoClipsForAppEventLocalizationV1(id: String, fields: [ListAppEventVideoClipsForAppEventLocalizationV1.Field]? = nil, includes: [ListAppEventVideoClipsForAppEventLocalizationV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appEventLocalizations/\(id)/appEventVideoClips", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appEventLocalizations/\(id)/appEventVideoClips", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventLocalization/UpdateAppEventLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppEventLocalization/UpdateAppEventLocalizationV1.swift index f0fc301eb..b63ea9e17 100644 --- a/Sources/Bagbutik/Endpoints/AppEventLocalization/UpdateAppEventLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventLocalization/UpdateAppEventLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appEventLocalizations/{id} + # PATCH /v1/appEventLocalizations/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppEventLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppEventLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppEventLocalizationV1(id: String, requestBody: AppEventLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/appEventLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appEventLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventScreenshot/CreateAppEventScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppEventScreenshot/CreateAppEventScreenshotV1.swift index 9a8647d0c..9a9dac73e 100644 --- a/Sources/Bagbutik/Endpoints/AppEventScreenshot/CreateAppEventScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventScreenshot/CreateAppEventScreenshotV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appEventScreenshots + # POST /v1/appEventScreenshots - Full documentation: - + Full documentation: + - - Parameter requestBody: AppEventScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppEventScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppEventScreenshotV1(requestBody: AppEventScreenshotCreateRequest) -> Request { - return .init(path: "/v1/appEventScreenshots", method: .post, requestBody: requestBody) + .init(path: "/v1/appEventScreenshots", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventScreenshot/DeleteAppEventScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppEventScreenshot/DeleteAppEventScreenshotV1.swift index 34d48205b..5c3a4779c 100644 --- a/Sources/Bagbutik/Endpoints/AppEventScreenshot/DeleteAppEventScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventScreenshot/DeleteAppEventScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Event Screenshot - Delete a specific screenshot from an in-app event. + # Delete an App Event Screenshot + Delete a specific screenshot from an in-app event. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppEventScreenshotV1(id: String) -> Request { - return .init(path: "/v1/appEventScreenshots/\(id)", method: .delete) + .init(path: "/v1/appEventScreenshots/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventScreenshot/GetAppEventScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppEventScreenshot/GetAppEventScreenshotV1.swift index cba466e28..b07fd1642 100644 --- a/Sources/Bagbutik/Endpoints/AppEventScreenshot/GetAppEventScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventScreenshot/GetAppEventScreenshotV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # GET /v1/appEventScreenshots/{id} + # GET /v1/appEventScreenshots/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEventScreenshotV1(id: String, fields: [GetAppEventScreenshotV1.Field]? = nil, includes: [GetAppEventScreenshotV1.Include]? = nil) -> Request { - return .init(path: "/v1/appEventScreenshots/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appEventScreenshots/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventScreenshot/UpdateAppEventScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppEventScreenshot/UpdateAppEventScreenshotV1.swift index 823060a00..5c2226b01 100644 --- a/Sources/Bagbutik/Endpoints/AppEventScreenshot/UpdateAppEventScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventScreenshot/UpdateAppEventScreenshotV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appEventScreenshots/{id} + # PATCH /v1/appEventScreenshots/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppEventScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppEventScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppEventScreenshotV1(id: String, requestBody: AppEventScreenshotUpdateRequest) -> Request { - return .init(path: "/v1/appEventScreenshots/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appEventScreenshots/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventVideoClip/CreateAppEventVideoClipV1.swift b/Sources/Bagbutik/Endpoints/AppEventVideoClip/CreateAppEventVideoClipV1.swift index 59a7fa7fa..416c48c4f 100644 --- a/Sources/Bagbutik/Endpoints/AppEventVideoClip/CreateAppEventVideoClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventVideoClip/CreateAppEventVideoClipV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appEventVideoClips + # POST /v1/appEventVideoClips - Full documentation: - + Full documentation: + - - Parameter requestBody: AppEventVideoClip representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppEventVideoClip representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppEventVideoClipV1(requestBody: AppEventVideoClipCreateRequest) -> Request { - return .init(path: "/v1/appEventVideoClips", method: .post, requestBody: requestBody) + .init(path: "/v1/appEventVideoClips", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventVideoClip/DeleteAppEventVideoClipV1.swift b/Sources/Bagbutik/Endpoints/AppEventVideoClip/DeleteAppEventVideoClipV1.swift index 833a89a30..7e2599910 100644 --- a/Sources/Bagbutik/Endpoints/AppEventVideoClip/DeleteAppEventVideoClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventVideoClip/DeleteAppEventVideoClipV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Event Video Clip - Delete a specific video clip from an in-app event. + # Delete an App Event Video Clip + Delete a specific video clip from an in-app event. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppEventVideoClipV1(id: String) -> Request { - return .init(path: "/v1/appEventVideoClips/\(id)", method: .delete) + .init(path: "/v1/appEventVideoClips/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventVideoClip/GetAppEventVideoClipV1.swift b/Sources/Bagbutik/Endpoints/AppEventVideoClip/GetAppEventVideoClipV1.swift index 64f2e723d..f33e916c2 100644 --- a/Sources/Bagbutik/Endpoints/AppEventVideoClip/GetAppEventVideoClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventVideoClip/GetAppEventVideoClipV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # GET /v1/appEventVideoClips/{id} + # GET /v1/appEventVideoClips/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEventVideoClipV1(id: String, fields: [GetAppEventVideoClipV1.Field]? = nil, includes: [GetAppEventVideoClipV1.Include]? = nil) -> Request { - return .init(path: "/v1/appEventVideoClips/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appEventVideoClips/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppEventVideoClip/UpdateAppEventVideoClipV1.swift b/Sources/Bagbutik/Endpoints/AppEventVideoClip/UpdateAppEventVideoClipV1.swift index f317abb8e..067d0ce3e 100644 --- a/Sources/Bagbutik/Endpoints/AppEventVideoClip/UpdateAppEventVideoClipV1.swift +++ b/Sources/Bagbutik/Endpoints/AppEventVideoClip/UpdateAppEventVideoClipV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appEventVideoClips/{id} + # PATCH /v1/appEventVideoClips/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppEventVideoClip representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppEventVideoClip representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppEventVideoClipV1(id: String, requestBody: AppEventVideoClipUpdateRequest) -> Request { - return .init(path: "/v1/appEventVideoClips/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appEventVideoClips/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/GetAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/GetAppInfoV1.swift index da4a71acf..9cc11ea04 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/GetAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/GetAppInfoV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read App Info Information - Read App Store information including your App Store state, age ratings, Brazil age rating, and kids' age band. + # Read App Info Information + Read App Store information including your App Store state, age ratings, Brazil age rating, and kids' age band. - For request and response examples for reading an age rating declaration, see [GET /v1/appInfos/{id}/ageRatingDeclaration](https://developer.apple.com/documentation/appstoreconnectapi/get_v1_appinfos_id_ageratingdeclaration). + For request and response examples for reading an age rating declaration, see [GET /v1/appInfos/{id}/ageRatingDeclaration](https://developer.apple.com/documentation/appstoreconnectapi/get_v1_appinfos_id_ageratingdeclaration). - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appInfoLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appInfoLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppInfoV1(id: String, fields: [GetAppInfoV1.Field]? = nil, includes: [GetAppInfoV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appInfos/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -96,6 +96,14 @@ public enum GetAppInfoV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appInfoLocalizations, primaryCategory, primarySubcategoryOne, primarySubcategoryTwo, secondaryCategory, secondarySubcategoryOne, secondarySubcategoryTwo + case ageRatingDeclaration + case app + case appInfoLocalizations + case primaryCategory + case primarySubcategoryOne + case primarySubcategoryTwo + case secondaryCategory + case secondarySubcategoryOne + case secondarySubcategoryTwo } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetAgeRatingDeclarationForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetAgeRatingDeclarationForAppInfoV1.swift index 168878bd8..18a263cd3 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetAgeRatingDeclarationForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetAgeRatingDeclarationForAppInfoV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # GET /v1/appInfos/{id}/ageRatingDeclaration - Get the age rating declaration for the app info. + # GET /v1/appInfos/{id}/ageRatingDeclaration + Get the age rating declaration for the app info. - Responses for this endpoint include the `gamblingAndContests` attribute for legacy clients. For new clients, use `contents` or `gambling` properties instead. For example, in an app that has a `FREQUENT_OR_INTENSE` declaration for contests, the age rating for the `AppInfos` is 12+. If you declare a value of true for `gamblingAndContests` instead, the age rating for the `AppInfos` is 17+. + Responses for this endpoint include the `gamblingAndContests` attribute for legacy clients. For new clients, use `contents` or `gambling` properties instead. For example, in an app that has a `FREQUENT_OR_INTENSE` declaration for contests, the age rating for the `AppInfos` is 12+. If you declare a value of true for `gamblingAndContests` instead, the age rating for the `AppInfos` is 17+. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAgeRatingDeclarationForAppInfoV1(id: String, fields: [GetAgeRatingDeclarationForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/ageRatingDeclaration", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/ageRatingDeclaration", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimaryCategoryForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimaryCategoryForAppInfoV1.swift index d9a28b3d8..c218d0b13 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimaryCategoryForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimaryCategoryForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Primary Category Information of an App Info - Get an app’s primary App Store category. + # Read the Primary Category Information of an App Info + Get an app’s primary App Store category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPrimaryCategoryForAppInfoV1(id: String, fields: [GetPrimaryCategoryForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/primaryCategory", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/primaryCategory", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryOneForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryOneForAppInfoV1.swift index 04fc281ad..77447f106 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryOneForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryOneForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Primary Subcategory One Information of an App Info - Get the first App Store subcategory within an app’s primary category. + # Read the Primary Subcategory One Information of an App Info + Get the first App Store subcategory within an app’s primary category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPrimarySubcategoryOneForAppInfoV1(id: String, fields: [GetPrimarySubcategoryOneForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/primarySubcategoryOne", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/primarySubcategoryOne", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryTwoForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryTwoForAppInfoV1.swift index 3c459fc7e..5feee77f5 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryTwoForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetPrimarySubcategoryTwoForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Primary Subcategory Two Information of an App Info - Get the second App Store subcategory within an app’s primary category. + # Read the Primary Subcategory Two Information of an App Info + Get the second App Store subcategory within an app’s primary category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPrimarySubcategoryTwoForAppInfoV1(id: String, fields: [GetPrimarySubcategoryTwoForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/primarySubcategoryTwo", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/primarySubcategoryTwo", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondaryCategoryForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondaryCategoryForAppInfoV1.swift index 379057842..34131cf18 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondaryCategoryForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondaryCategoryForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Secondary Category Information of an App Info - Get an app’s secondary App Store category. + # Read the Secondary Category Information of an App Info + Get an app’s secondary App Store category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSecondaryCategoryForAppInfoV1(id: String, fields: [GetSecondaryCategoryForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/secondaryCategory", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/secondaryCategory", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryOneForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryOneForAppInfoV1.swift index 5793e92f9..ee1f9ec36 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryOneForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryOneForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Secondary Subcategory One Information of an App Info - Get the first App Store subcategory within an app’s secondary category. + # Read the Secondary Subcategory One Information of an App Info + Get the first App Store subcategory within an app’s secondary category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSecondarySubcategoryOneForAppInfoV1(id: String, fields: [GetSecondarySubcategoryOneForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/secondarySubcategoryOne", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/secondarySubcategoryOne", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryTwoForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryTwoForAppInfoV1.swift index 0c54e610e..af5a0bb7f 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryTwoForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/GetSecondarySubcategoryTwoForAppInfoV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Secondary Subcategory Two Information of an App Info - Get the second App Store subcategory within an app’s secondary category. + # Read the Secondary Subcategory Two Information of an App Info + Get the second App Store subcategory within an app’s secondary category. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSecondarySubcategoryTwoForAppInfoV1(id: String, fields: [GetSecondarySubcategoryTwoForAppInfoV1.Field]? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/secondarySubcategoryTwo", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appInfos/\(id)/secondarySubcategoryTwo", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/ListAppInfoLocalizationsForAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/ListAppInfoLocalizationsForAppInfoV1.swift index 4e82b944f..48e919044 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/Relationships/ListAppInfoLocalizationsForAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/Relationships/ListAppInfoLocalizationsForAppInfoV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All App Info Localizations for an App Info - Get a list of localized, app-level information for an app. + # List All App Info Localizations for an App Info + Get a list of localized, app-level information for an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppInfoLocalizationsForAppInfoV1(id: String, fields: [ListAppInfoLocalizationsForAppInfoV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppInfoLocalizationsForAppInfoV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appInfos/\(id)/appInfoLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/appInfos/\(id)/appInfoLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfo/UpdateAppInfoV1.swift b/Sources/Bagbutik/Endpoints/AppInfo/UpdateAppInfoV1.swift index bed1b1e12..bc377ecab 100644 --- a/Sources/Bagbutik/Endpoints/AppInfo/UpdateAppInfoV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfo/UpdateAppInfoV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Modify an App Info - Update the App Store categories and sub-categories for your app. + # Modify an App Info + Update the App Store categories and sub-categories for your app. - Use this endpoint to modify the primary and secondary categories and subcategories for an app. + Use this endpoint to modify the primary and secondary categories and subcategories for an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppInfo representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppInfo representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppInfoV1(id: String, requestBody: AppInfoUpdateRequest) -> Request { - return .init(path: "/v1/appInfos/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appInfos/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfoLocalization/CreateAppInfoLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppInfoLocalization/CreateAppInfoLocalizationV1.swift index 48c037b77..e05f6d0cc 100644 --- a/Sources/Bagbutik/Endpoints/AppInfoLocalization/CreateAppInfoLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfoLocalization/CreateAppInfoLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Create an App Info Localization - Add app-level localized information for a new locale. + # Create an App Info Localization + Add app-level localized information for a new locale. - Use this endpoint to add localized app information for a new locale. Be sure to use [Create an App Store Version Localization](https://developer.apple.com/documentation/appstoreconnectapi/create_an_app_store_version_localization) to add the same locale to the version as well. + Use this endpoint to add localized app information for a new locale. Be sure to use [Create an App Store Version Localization](https://developer.apple.com/documentation/appstoreconnectapi/create_an_app_store_version_localization) to add the same locale to the version as well. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppInfoLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppInfoLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppInfoLocalizationV1(requestBody: AppInfoLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appInfoLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appInfoLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfoLocalization/DeleteAppInfoLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppInfoLocalization/DeleteAppInfoLocalizationV1.swift index 4a0cb0b83..e838c689d 100644 --- a/Sources/Bagbutik/Endpoints/AppInfoLocalization/DeleteAppInfoLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfoLocalization/DeleteAppInfoLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Info Localization - Delete an app information localization that is associated with an app. + # Delete an App Info Localization + Delete an app information localization that is associated with an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppInfoLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appInfoLocalizations/\(id)", method: .delete) + .init(path: "/v1/appInfoLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfoLocalization/GetAppInfoLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppInfoLocalization/GetAppInfoLocalizationV1.swift index 60ce84ad0..b1b7affcf 100644 --- a/Sources/Bagbutik/Endpoints/AppInfoLocalization/GetAppInfoLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfoLocalization/GetAppInfoLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Info Localization Information - Read localized app-level information. + # Read App Info Localization Information + Read localized app-level information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppInfoLocalizationV1(id: String, fields: [GetAppInfoLocalizationV1.Field]? = nil, includes: [GetAppInfoLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/appInfoLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appInfoLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppInfoLocalization/UpdateAppInfoLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppInfoLocalization/UpdateAppInfoLocalizationV1.swift index dd8d49d68..1180f22ea 100644 --- a/Sources/Bagbutik/Endpoints/AppInfoLocalization/UpdateAppInfoLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppInfoLocalization/UpdateAppInfoLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Info Localization - Modify localized app-level information for a particular language. + # Modify an App Info Localization + Modify localized app-level information for a particular language. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppInfoLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppInfoLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppInfoLocalizationV1(id: String, requestBody: AppInfoLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/appInfoLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appInfoLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreOrder/CreateAppPreOrderV1.swift b/Sources/Bagbutik/Endpoints/AppPreOrder/CreateAppPreOrderV1.swift index 6d66f3ab2..02b7d9a63 100644 --- a/Sources/Bagbutik/Endpoints/AppPreOrder/CreateAppPreOrderV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreOrder/CreateAppPreOrderV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Pre-Order - Turn on pre-order and set the expected app release date. + # Create an App Pre-Order + Turn on pre-order and set the expected app release date. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppPreOrder representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppPreOrder representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppPreOrderV1(requestBody: AppPreOrderCreateRequest) -> Request { - return .init(path: "/v1/appPreOrders", method: .post, requestBody: requestBody) + .init(path: "/v1/appPreOrders", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreOrder/DeleteAppPreOrderV1.swift b/Sources/Bagbutik/Endpoints/AppPreOrder/DeleteAppPreOrderV1.swift index f021ba39f..dbac151f3 100644 --- a/Sources/Bagbutik/Endpoints/AppPreOrder/DeleteAppPreOrderV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreOrder/DeleteAppPreOrderV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Pre-Order - Cancel a planned app pre-order that has not begun. + # Delete an App Pre-Order + Cancel a planned app pre-order that has not begun. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppPreOrderV1(id: String) -> Request { - return .init(path: "/v1/appPreOrders/\(id)", method: .delete) + .init(path: "/v1/appPreOrders/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreOrder/GetAppPreOrderV1.swift b/Sources/Bagbutik/Endpoints/AppPreOrder/GetAppPreOrderV1.swift index b27b69eb8..8605e3bf0 100644 --- a/Sources/Bagbutik/Endpoints/AppPreOrder/GetAppPreOrderV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreOrder/GetAppPreOrderV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Pre-Order Information - Get information about your app's pre-order configuration. + # Read App Pre-Order Information + Get information about your app's pre-order configuration. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppPreOrderV1(id: String, fields: [GetAppPreOrderV1.Field]? = nil, includes: [GetAppPreOrderV1.Include]? = nil) -> Request { - return .init(path: "/v1/appPreOrders/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appPreOrders/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreOrder/UpdateAppPreOrderV1.swift b/Sources/Bagbutik/Endpoints/AppPreOrder/UpdateAppPreOrderV1.swift index de3550a0e..de8059ad2 100644 --- a/Sources/Bagbutik/Endpoints/AppPreOrder/UpdateAppPreOrderV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreOrder/UpdateAppPreOrderV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Pre-Order - Update the release date for your app pre-order. + # Modify an App Pre-Order + Update the release date for your app pre-order. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppPreOrder representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppPreOrder representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppPreOrderV1(id: String, requestBody: AppPreOrderUpdateRequest) -> Request { - return .init(path: "/v1/appPreOrders/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appPreOrders/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreview/CreateAppPreviewV1.swift b/Sources/Bagbutik/Endpoints/AppPreview/CreateAppPreviewV1.swift index caa42af33..a453756f4 100644 --- a/Sources/Bagbutik/Endpoints/AppPreview/CreateAppPreviewV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreview/CreateAppPreviewV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Preview - Add a new app preview to a preview set. + # Create an App Preview + Add a new app preview to a preview set. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppPreview representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppPreview representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppPreviewV1(requestBody: AppPreviewCreateRequest) -> Request { - return .init(path: "/v1/appPreviews", method: .post, requestBody: requestBody) + .init(path: "/v1/appPreviews", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreview/DeleteAppPreviewV1.swift b/Sources/Bagbutik/Endpoints/AppPreview/DeleteAppPreviewV1.swift index 19b8273ae..237f17d95 100644 --- a/Sources/Bagbutik/Endpoints/AppPreview/DeleteAppPreviewV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreview/DeleteAppPreviewV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Preview - Delete an app preview within a preview set. + # Delete an App Preview + Delete an app preview within a preview set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppPreviewV1(id: String) -> Request { - return .init(path: "/v1/appPreviews/\(id)", method: .delete) + .init(path: "/v1/appPreviews/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreview/GetAppPreviewV1.swift b/Sources/Bagbutik/Endpoints/AppPreview/GetAppPreviewV1.swift index 4887d7aa5..c53a7a7c9 100644 --- a/Sources/Bagbutik/Endpoints/AppPreview/GetAppPreviewV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreview/GetAppPreviewV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Preview Information - Get information about an app preview and its upload and processing status. + # Read App Preview Information + Get information about an app preview and its upload and processing status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppPreviewV1(id: String, fields: [GetAppPreviewV1.Field]? = nil, includes: [GetAppPreviewV1.Include]? = nil) -> Request { - return .init(path: "/v1/appPreviews/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appPreviews/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreview/UpdateAppPreviewV1.swift b/Sources/Bagbutik/Endpoints/AppPreview/UpdateAppPreviewV1.swift index 554d2f201..a49da55e4 100644 --- a/Sources/Bagbutik/Endpoints/AppPreview/UpdateAppPreviewV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreview/UpdateAppPreviewV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Preview - Commit the app preview after uploading it, and update the poster frame timecode. + # Modify an App Preview + Commit the app preview after uploading it, and update the poster frame timecode. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppPreview representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppPreview representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppPreviewV1(id: String, requestBody: AppPreviewUpdateRequest) -> Request { - return .init(path: "/v1/appPreviews/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appPreviews/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/CreateAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/CreateAppPreviewSetV1.swift index 0789cf3f2..f844c6cfd 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/CreateAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/CreateAppPreviewSetV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Preview Set - Add a new app preview set to an App Store version localization for a specific app preview type and display size. + # Create an App Preview Set + Add a new app preview set to an App Store version localization for a specific app preview type and display size. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppPreviewSet representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppPreviewSet representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppPreviewSetV1(requestBody: AppPreviewSetCreateRequest) -> Request { - return .init(path: "/v1/appPreviewSets", method: .post, requestBody: requestBody) + .init(path: "/v1/appPreviewSets", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/DeleteAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/DeleteAppPreviewSetV1.swift index 4ebcca7b7..ead0bc910 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/DeleteAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/DeleteAppPreviewSetV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Preview Set - Delete an app preview set and all of its previews. + # Delete an App Preview Set + Delete an app preview set and all of its previews. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppPreviewSetV1(id: String) -> Request { - return .init(path: "/v1/appPreviewSets/\(id)", method: .delete) + .init(path: "/v1/appPreviewSets/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/GetAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/GetAppPreviewSetV1.swift index 676d7cb97..77e472eb0 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/GetAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/GetAppPreviewSetV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Preview Set Information - Get an app preview set that includes its display target, language, and the previews it contains. + # Read App Preview Set Information + Get an app preview set that includes its display target, language, and the previews it contains. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appPreviews returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appPreviews returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppPreviewSetV1(id: String, fields: [GetAppPreviewSetV1.Field]? = nil, includes: [GetAppPreviewSetV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPreviewSets/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appPreviewSets/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -60,6 +60,9 @@ public enum GetAppPreviewSetV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appPreviews, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appPreviews + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewIdsForAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewIdsForAppPreviewSetV1.swift index 491fcc2e3..b33ed2067 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewIdsForAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewIdsForAppPreviewSetV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All App Preview IDs for an App Preview Set - Get the ordered app preview IDs in a preview set. + # Get All App Preview IDs for an App Preview Set + Get the ordered app preview IDs in a preview set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPreviewIdsForAppPreviewSetV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPreviewSets/\(id)/relationships/appPreviews", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/appPreviewSets/\(id)/relationships/appPreviews", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewsForAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewsForAppPreviewSetV1.swift index e38e261a6..b124eebd4 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewsForAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ListAppPreviewsForAppPreviewSetV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All App Previews for an App Preview Set - List all ordered app previews in a preview set. + # List All App Previews for an App Preview Set + List all ordered app previews in a preview set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPreviewsForAppPreviewSetV1(id: String, fields: [ListAppPreviewsForAppPreviewSetV1.Field]? = nil, includes: [ListAppPreviewsForAppPreviewSetV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPreviewSets/\(id)/appPreviews", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appPreviewSets/\(id)/appPreviews", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ReplaceAppPreviewsForAppPreviewSetV1.swift b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ReplaceAppPreviewsForAppPreviewSetV1.swift index 5b20b0a19..651a750e5 100644 --- a/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ReplaceAppPreviewsForAppPreviewSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPreviewSet/Relationships/ReplaceAppPreviewsForAppPreviewSetV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Replace All App Previews for an App Preview Set - Change the order of the app previews in a preview set. + # Replace All App Previews for an App Preview Set + Change the order of the app previews in a preview set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func replaceAppPreviewsForAppPreviewSetV1(id: String, requestBody: AppPreviewSetAppPreviewsLinkagesRequest) -> Request { - return .init(path: "/v1/appPreviewSets/\(id)/relationships/appPreviews", method: .patch, requestBody: requestBody) + .init(path: "/v1/appPreviewSets/\(id)/relationships/appPreviews", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppPrice/GetAppPriceV1.swift b/Sources/Bagbutik/Endpoints/AppPrice/GetAppPriceV1.swift index 28af185de..8648df22c 100644 --- a/Sources/Bagbutik/Endpoints/AppPrice/GetAppPriceV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPrice/GetAppPriceV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Price Information - Read current price and scheduled price changes for an app, including price tier and start date. + # Read App Price Information + Read current price and scheduled price changes for an app, including price tier and start date. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppPriceV1(id: String, fields: [GetAppPriceV1.Field]? = nil, includes: [GetAppPriceV1.Include]? = nil) -> Request { - return .init(path: "/v1/appPrices/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appPrices/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -38,6 +38,7 @@ public enum GetAppPriceV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, priceTier + case app + case priceTier } } diff --git a/Sources/Bagbutik/Endpoints/AppPricePoint/GetAppPricePointV1.swift b/Sources/Bagbutik/Endpoints/AppPricePoint/GetAppPricePointV1.swift index f3a01f917..ec1577573 100644 --- a/Sources/Bagbutik/Endpoints/AppPricePoint/GetAppPricePointV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPricePoint/GetAppPricePointV1.swift @@ -1,23 +1,23 @@ public extension Request { /** - # Read App Price Point Information - Read the customer prices and your proceeds for a price tier. + # Read App Price Point Information + Read the customer prices and your proceeds for a price tier. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func getAppPricePointV1(id: String, fields: [GetAppPricePointV1.Field]? = nil, includes: [GetAppPricePointV1.Include]? = nil) -> Request { - return .init(path: "/v1/appPricePoints/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appPricePoints/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -47,6 +47,7 @@ public enum GetAppPricePointV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case priceTier, territory + case priceTier + case territory } } diff --git a/Sources/Bagbutik/Endpoints/AppPricePoint/ListAppPricePointsV1.swift b/Sources/Bagbutik/Endpoints/AppPricePoint/ListAppPricePointsV1.swift index f4bbe290d..a497d0576 100644 --- a/Sources/Bagbutik/Endpoints/AppPricePoint/ListAppPricePointsV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPricePoint/ListAppPricePointsV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # List App Price Points - List all app price points available in App Store Connect, including related price tier, developer proceeds, and territory. + # List App Price Points + List all app price points available in App Store Connect, including related price tier, developer proceeds, and territory. - Use this endpoint to retrieve the customer price and proceeds earned for each App Store price point in the currency of any App Store territory. - The data returned by this endpoint is equivalent to the information you find when you log in to App Store Connect and view [All Prices and Currencies](https://appstoreconnect.apple.com/apps/pricingmatrix). + Use this endpoint to retrieve the customer price and proceeds earned for each App Store price point in the currency of any App Store territory. + The data returned by this endpoint is equivalent to the information you find when you log in to App Store Connect and view [All Prices and Currencies](https://appstoreconnect.apple.com/apps/pricingmatrix). - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func listAppPricePointsV1(fields: [ListAppPricePointsV1.Field]? = nil, @@ -21,10 +21,10 @@ public extension Request { includes: [ListAppPricePointsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPricePoints", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/appPricePoints", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -64,6 +64,7 @@ public enum ListAppPricePointsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case priceTier, territory + case priceTier + case territory } } diff --git a/Sources/Bagbutik/Endpoints/AppPricePoint/Relationships/GetTerritoryForAppPricePointV1.swift b/Sources/Bagbutik/Endpoints/AppPricePoint/Relationships/GetTerritoryForAppPricePointV1.swift index 1a2412ddd..2188a9829 100644 --- a/Sources/Bagbutik/Endpoints/AppPricePoint/Relationships/GetTerritoryForAppPricePointV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPricePoint/Relationships/GetTerritoryForAppPricePointV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Read the Territory Information of an App Price Point - Get the territory in which a specific price point applies. + # Read the Territory Information of an App Price Point + Get the territory in which a specific price point applies. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func getTerritoryForAppPricePointV1(id: String, fields: [GetTerritoryForAppPricePointV1.Field]? = nil) -> Request { - return .init(path: "/v1/appPricePoints/\(id)/territory", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appPricePoints/\(id)/territory", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPriceTier/GetAppPriceTierV1.swift b/Sources/Bagbutik/Endpoints/AppPriceTier/GetAppPriceTierV1.swift index d19df63b9..35f607869 100644 --- a/Sources/Bagbutik/Endpoints/AppPriceTier/GetAppPriceTierV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPriceTier/GetAppPriceTierV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Price Tier Information - Read available app price tiers. + # Read App Price Tier Information + Read available app price tiers. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related pricePoints returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related pricePoints returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppPriceTierV1(id: String, fields: [GetAppPriceTierV1.Field]? = nil, includes: [GetAppPriceTierV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPriceTiers/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appPriceTiers/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPriceTier/ListAppPriceTiersV1.swift b/Sources/Bagbutik/Endpoints/AppPriceTier/ListAppPriceTiersV1.swift index 9074b99d0..a4d778f76 100644 --- a/Sources/Bagbutik/Endpoints/AppPriceTier/ListAppPriceTiersV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPriceTier/ListAppPriceTiersV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List App Price Tiers - List all app price tiers available in App Store Connect. + # List App Price Tiers + List all app price tiers available in App Store Connect. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPriceTiersV1(fields: [ListAppPriceTiersV1.Field]? = nil, filters: [ListAppPriceTiersV1.Filter]? = nil, includes: [ListAppPriceTiersV1.Include]? = nil, limits: [ListAppPriceTiersV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appPriceTiers", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appPriceTiers", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/AppPriceTier/Relationships/ListPricePointsForAppPriceTierV1.swift b/Sources/Bagbutik/Endpoints/AppPriceTier/Relationships/ListPricePointsForAppPriceTierV1.swift index 31af16d4c..578c61783 100644 --- a/Sources/Bagbutik/Endpoints/AppPriceTier/Relationships/ListPricePointsForAppPriceTierV1.swift +++ b/Sources/Bagbutik/Endpoints/AppPriceTier/Relationships/ListPricePointsForAppPriceTierV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Price Points for an App Price Tier - List price points across all App Store territories for a specific price tier. + # List All Price Points for an App Price Tier + List price points across all App Store territories for a specific price tier. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func listPricePointsForAppPriceTierV1(id: String, @@ -20,10 +20,10 @@ public extension Request { includes: [ListPricePointsForAppPriceTierV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appPriceTiers/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/appPriceTiers/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -67,6 +67,7 @@ public enum ListPricePointsForAppPriceTierV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case priceTier, territory + case priceTier + case territory } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshot/CreateAppScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshot/CreateAppScreenshotV1.swift index 186b91cfd..20eb903c7 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshot/CreateAppScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshot/CreateAppScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Screenshot - Add a new screenshot to a screenshot set. + # Create an App Screenshot + Add a new screenshot to a screenshot set. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppScreenshotV1(requestBody: AppScreenshotCreateRequest) -> Request { - return .init(path: "/v1/appScreenshots", method: .post, requestBody: requestBody) + .init(path: "/v1/appScreenshots", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshot/DeleteAppScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshot/DeleteAppScreenshotV1.swift index 2c52da5c7..3d661dca2 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshot/DeleteAppScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshot/DeleteAppScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Screenshot - Delete an app screenshot that is associated with a screenshot set. + # Delete an App Screenshot + Delete an app screenshot that is associated with a screenshot set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppScreenshotV1(id: String) -> Request { - return .init(path: "/v1/appScreenshots/\(id)", method: .delete) + .init(path: "/v1/appScreenshots/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshot/GetAppScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshot/GetAppScreenshotV1.swift index 9b8a16eee..d8f926b64 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshot/GetAppScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshot/GetAppScreenshotV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Screenshot Information - Get information about an app screenshot and its upload and processing status. + # Read App Screenshot Information + Get information about an app screenshot and its upload and processing status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppScreenshotV1(id: String, fields: [GetAppScreenshotV1.Field]? = nil, includes: [GetAppScreenshotV1.Include]? = nil) -> Request { - return .init(path: "/v1/appScreenshots/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appScreenshots/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshot/UpdateAppScreenshotV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshot/UpdateAppScreenshotV1.swift index 9eeb43605..ae67c9426 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshot/UpdateAppScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshot/UpdateAppScreenshotV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Screenshot - Commit an app screenshot after uploading it. + # Modify an App Screenshot + Commit an app screenshot after uploading it. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppScreenshotV1(id: String, requestBody: AppScreenshotUpdateRequest) -> Request { - return .init(path: "/v1/appScreenshots/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appScreenshots/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/CreateAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/CreateAppScreenshotSetV1.swift index ff627a81c..325d5a23f 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/CreateAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/CreateAppScreenshotSetV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Screenshot Set - Add a new screenshot set to an App Store version localization for a specific screenshot type and display size. + # Create an App Screenshot Set + Add a new screenshot set to an App Store version localization for a specific screenshot type and display size. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppScreenshotSet representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppScreenshotSet representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppScreenshotSetV1(requestBody: AppScreenshotSetCreateRequest) -> Request { - return .init(path: "/v1/appScreenshotSets", method: .post, requestBody: requestBody) + .init(path: "/v1/appScreenshotSets", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/DeleteAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/DeleteAppScreenshotSetV1.swift index d185d3d1f..48f292228 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/DeleteAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/DeleteAppScreenshotSetV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Screenshot Set - Delete an app screenshot set and all of its screenshots. + # Delete an App Screenshot Set + Delete an app screenshot set and all of its screenshots. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppScreenshotSetV1(id: String) -> Request { - return .init(path: "/v1/appScreenshotSets/\(id)", method: .delete) + .init(path: "/v1/appScreenshotSets/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/GetAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/GetAppScreenshotSetV1.swift index d8119fa4b..16d6f64f0 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/GetAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/GetAppScreenshotSetV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Screenshot Set Information - Get an app screenshot set including its display target, language, and the screenshot it contains. + # Read App Screenshot Set Information + Get an app screenshot set including its display target, language, and the screenshot it contains. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appScreenshots returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appScreenshots returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppScreenshotSetV1(id: String, fields: [GetAppScreenshotSetV1.Field]? = nil, includes: [GetAppScreenshotSetV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appScreenshotSets/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appScreenshotSets/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -59,6 +59,9 @@ public enum GetAppScreenshotSetV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appScreenshots, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appScreenshots + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotIdsForAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotIdsForAppScreenshotSetV1.swift index 6a4134445..a92c4012d 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotIdsForAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotIdsForAppScreenshotSetV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All App Screenshot IDs for an App Screenshot Set - Get the ordered screenshot IDs in a screenshot set. + # Get All App Screenshot IDs for an App Screenshot Set + Get the ordered screenshot IDs in a screenshot set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppScreenshotIdsForAppScreenshotSetV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/appScreenshotSets/\(id)/relationships/appScreenshots", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/appScreenshotSets/\(id)/relationships/appScreenshots", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotsForAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotsForAppScreenshotSetV1.swift index 717a03af9..6cd37f8c2 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotsForAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ListAppScreenshotsForAppScreenshotSetV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All App Screenshots for an App Screenshot Set - List all ordered screenshots in a screenshot set. + # List All App Screenshots for an App Screenshot Set + List all ordered screenshots in a screenshot set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppScreenshotsForAppScreenshotSetV1(id: String, fields: [ListAppScreenshotsForAppScreenshotSetV1.Field]? = nil, includes: [ListAppScreenshotsForAppScreenshotSetV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appScreenshotSets/\(id)/appScreenshots", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appScreenshotSets/\(id)/appScreenshots", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ReplaceAppScreenshotsForAppScreenshotSetV1.swift b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ReplaceAppScreenshotsForAppScreenshotSetV1.swift index b019b2d3d..8272ee22d 100644 --- a/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ReplaceAppScreenshotsForAppScreenshotSetV1.swift +++ b/Sources/Bagbutik/Endpoints/AppScreenshotSet/Relationships/ReplaceAppScreenshotsForAppScreenshotSetV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Replace All App Screenshots for an App Screenshot Set - Change the order of the screenshots in a screenshot set. + # Replace All App Screenshots for an App Screenshot Set + Change the order of the screenshots in a screenshot set. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func replaceAppScreenshotsForAppScreenshotSetV1(id: String, requestBody: AppScreenshotSetAppScreenshotsLinkagesRequest) -> Request { - return .init(path: "/v1/appScreenshotSets/\(id)/relationships/appScreenshots", method: .patch, requestBody: requestBody) + .init(path: "/v1/appScreenshotSets/\(id)/relationships/appScreenshots", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/CreateAppStoreReviewAttachmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/CreateAppStoreReviewAttachmentV1.swift index f54b7210e..e88c07727 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/CreateAppStoreReviewAttachmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/CreateAppStoreReviewAttachmentV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Store Review Attachment - Attach a document for App Review to an App Store version. + # Create an App Store Review Attachment + Attach a document for App Review to an App Store version. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreReviewAttachment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreReviewAttachment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreReviewAttachmentV1(requestBody: AppStoreReviewAttachmentCreateRequest) -> Request { - return .init(path: "/v1/appStoreReviewAttachments", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreReviewAttachments", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/DeleteAppStoreReviewAttachmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/DeleteAppStoreReviewAttachmentV1.swift index 2e8b58dfc..7c8cc756e 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/DeleteAppStoreReviewAttachmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/DeleteAppStoreReviewAttachmentV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Store Review Attachment - Remove an attachment before you send your app to App Review. + # Delete an App Store Review Attachment + Remove an attachment before you send your app to App Review. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreReviewAttachmentV1(id: String) -> Request { - return .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .delete) + .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/GetAppStoreReviewAttachmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/GetAppStoreReviewAttachmentV1.swift index 709b77d7f..8e7e62644 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/GetAppStoreReviewAttachmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/GetAppStoreReviewAttachmentV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read App Store Review Attachment Information - Get information about an App Store review attachment and its upload and processing status. + # Read App Store Review Attachment Information + Get information about an App Store review attachment and its upload and processing status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreReviewAttachmentV1(id: String, fields: [GetAppStoreReviewAttachmentV1.Field]? = nil, includes: [GetAppStoreReviewAttachmentV1.Include]? = nil) -> Request { - return .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/UpdateAppStoreReviewAttachmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/UpdateAppStoreReviewAttachmentV1.swift index 37146890f..0278200e7 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/UpdateAppStoreReviewAttachmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewAttachment/UpdateAppStoreReviewAttachmentV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Commit an App Store Review Attachment - Commit an app screenshot after uploading it to the App Store. + # Commit an App Store Review Attachment + Commit an app screenshot after uploading it to the App Store. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreReviewAttachment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreReviewAttachment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreReviewAttachmentV1(id: String, requestBody: AppStoreReviewAttachmentUpdateRequest) -> Request { - return .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreReviewAttachments/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/CreateAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/CreateAppStoreReviewDetailV1.swift index cce59af09..b379021cd 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/CreateAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/CreateAppStoreReviewDetailV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Store Review Detail - Add App Store review details to an App Store version, including contact and demo account information. + # Create an App Store Review Detail + Add App Store review details to an App Store version, including contact and demo account information. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreReviewDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreReviewDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreReviewDetailV1(requestBody: AppStoreReviewDetailCreateRequest) -> Request { - return .init(path: "/v1/appStoreReviewDetails", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreReviewDetails", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/GetAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/GetAppStoreReviewDetailV1.swift index d4edea8b3..572a10e86 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/GetAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/GetAppStoreReviewDetailV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Store Review Detail Information - Get App Review details you provided, including contact information, demo account, and notes. + # Read App Store Review Detail Information + Get App Review details you provided, including contact information, demo account, and notes. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appStoreReviewAttachments returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appStoreReviewAttachments returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreReviewDetailV1(id: String, fields: [GetAppStoreReviewDetailV1.Field]? = nil, includes: [GetAppStoreReviewDetailV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -61,6 +61,7 @@ public enum GetAppStoreReviewDetailV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewAttachments, appStoreVersion + case appStoreReviewAttachments + case appStoreVersion } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/Relationships/ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/Relationships/ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.swift index d2f11c8ee..bb96c8413 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/Relationships/ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/Relationships/ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Review Attachments for an App Store Review Detail - List all the App Store review attachments you include with a version when you submit it for App Review. + # List All Review Attachments for an App Store Review Detail + List all the App Store review attachments you include with a version when you submit it for App Review. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreReviewAttachmentsForAppStoreReviewDetailV1(id: String, fields: [ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.Field]? = nil, includes: [ListAppStoreReviewAttachmentsForAppStoreReviewDetailV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreReviewDetails/\(id)/appStoreReviewAttachments", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreReviewDetails/\(id)/appStoreReviewAttachments", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/UpdateAppStoreReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/UpdateAppStoreReviewDetailV1.swift index cd7c0287a..aa63a0b6b 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/UpdateAppStoreReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreReviewDetail/UpdateAppStoreReviewDetailV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Store Review Detail - Update the app store review details, including the contact information, demo account, and notes. + # Modify an App Store Review Detail + Update the app store review details, including the contact information, demo account, and notes. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreReviewDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreReviewDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreReviewDetailV1(id: String, requestBody: AppStoreReviewDetailUpdateRequest) -> Request { - return .init(path: "/v1/appStoreReviewDetails/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreReviewDetails/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/CreateAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/CreateAppStoreVersionV1.swift index 684bc36e9..5650ee6c7 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/CreateAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/CreateAppStoreVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Create an App Store Version - Add a new App Store version or platform to an app. + # Create an App Store Version + Add a new App Store version or platform to an app. - Use this endpoint to add a new version of an app. The new version can be an incremental update of an existing app for a particular platform, or it can be the first version on a new platform for the app. + Use this endpoint to add a new version of an app. The new version can be an incremental update of an existing app for a particular platform, or it can be the first version on a new platform for the app. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersion representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersion representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionV1(requestBody: AppStoreVersionCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersions", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/DeleteAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/DeleteAppStoreVersionV1.swift index 9bde908a2..ed2ed30e9 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/DeleteAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/DeleteAppStoreVersionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Store Version - Delete an app store version that is associated with an app. + # Delete an App Store Version + Delete an app store version that is associated with an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)", method: .delete) + .init(path: "/v1/appStoreVersions/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/GetAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/GetAppStoreVersionV1.swift index 76f6199a7..389ad548a 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/GetAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/GetAppStoreVersionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Store Version Information - Get information for a specific app store version. + # Read App Store Version Information + Get information for a specific app store version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionV1(id: String, fields: [GetAppStoreVersionV1.Field]? = nil, includes: [GetAppStoreVersionV1.Include]? = nil, limits: [GetAppStoreVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -206,7 +206,16 @@ public enum GetAppStoreVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appClipDefaultExperience, appStoreReviewDetail, appStoreVersionExperiments, appStoreVersionLocalizations, appStoreVersionPhasedRelease, appStoreVersionSubmission, build, routingAppCoverage + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreVersionExperiments + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case routingAppCoverage } /** diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAgeRatingDeclarationForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAgeRatingDeclarationForAppStoreVersionV1.swift index 9f337ebc2..eed2084f4 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAgeRatingDeclarationForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAgeRatingDeclarationForAppStoreVersionV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Read the Age Rating Declaration Information of an App Store Version - Get the age-related information declared for your app. + # Read the Age Rating Declaration Information of an App Store Version + Get the age-related information declared for your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func getAgeRatingDeclarationForAppStoreVersionV1(id: String, fields: [GetAgeRatingDeclarationForAppStoreVersionV1.Field]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/ageRatingDeclaration", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appStoreVersions/\(id)/ageRatingDeclaration", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceForAppStoreVersionV1.swift index c112bae31..b8c4bbd92 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceForAppStoreVersionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Get the Default App Clip Experience for an App Store Version - Get the default App Clip experience for an App Store version of your app. + # Get the Default App Clip Experience for an App Store Version + Get the default App Clip experience for an App Store version of your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appClipDefaultExperienceLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appClipDefaultExperienceLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDefaultExperienceForAppStoreVersionV1(id: String, fields: [GetAppClipDefaultExperienceForAppStoreVersionV1.Field]? = nil, includes: [GetAppClipDefaultExperienceForAppStoreVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appClipDefaultExperience", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreVersions/\(id)/appClipDefaultExperience", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -94,6 +94,9 @@ public enum GetAppClipDefaultExperienceForAppStoreVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClip, appClipAppStoreReviewDetail, appClipDefaultExperienceLocalizations, releaseWithAppStoreVersion + case appClip + case appClipAppStoreReviewDetail + case appClipDefaultExperienceLocalizations + case releaseWithAppStoreVersion } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceIdsForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceIdsForAppStoreVersionV1.swift index a425d866f..1fdc943f0 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceIdsForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppClipDefaultExperienceIdsForAppStoreVersionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Get the Default App Clip Experiences Resource ID for an App Store Version - Get the ID of an app’s related default App Clip experience. + # Get the Default App Clip Experiences Resource ID for an App Store Version + Get the ID of an app’s related default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDefaultExperienceIdsForAppStoreVersionV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/relationships/appClipDefaultExperience", method: .get) + .init(path: "/v1/appStoreVersions/\(id)/relationships/appClipDefaultExperience", method: .get) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreReviewDetailForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreReviewDetailForAppStoreVersionV1.swift index 2454fc6af..9e4e04786 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreReviewDetailForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreReviewDetailForAppStoreVersionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read the App Store Review Details Resource Information of an App Store Version - Get the details you provide to App Review so they can test your app. + # Read the App Store Review Details Resource Information of an App Store Version + Get the details you provide to App Review so they can test your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appStoreReviewAttachments returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appStoreReviewAttachments returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreReviewDetailForAppStoreVersionV1(id: String, fields: [GetAppStoreReviewDetailForAppStoreVersionV1.Field]? = nil, includes: [GetAppStoreReviewDetailForAppStoreVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appStoreReviewDetail", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreVersions/\(id)/appStoreReviewDetail", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -85,6 +85,7 @@ public enum GetAppStoreReviewDetailForAppStoreVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewAttachments, appStoreVersion + case appStoreReviewAttachments + case appStoreVersion } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionPhasedReleaseForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionPhasedReleaseForAppStoreVersionV1.swift index 7bf7885d1..bef5e0a6d 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionPhasedReleaseForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionPhasedReleaseForAppStoreVersionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Store Version Phased Release Information of an App Store Version - Read the phased release status and configuration for a version with phased release enabled. + # Read the App Store Version Phased Release Information of an App Store Version + Read the phased release status and configuration for a version with phased release enabled. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionPhasedReleaseForAppStoreVersionV1(id: String, fields: [GetAppStoreVersionPhasedReleaseForAppStoreVersionV1.Field]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionPhasedRelease", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionPhasedRelease", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionSubmissionForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionSubmissionForAppStoreVersionV1.swift index 83bd5c9f6..04cf54e4c 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionSubmissionForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetAppStoreVersionSubmissionForAppStoreVersionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read the App Store Version Submission Information of an App Store Version + # Read the App Store Version Submission Information of an App Store Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func getAppStoreVersionSubmissionForAppStoreVersionV1(id: String, fields: [GetAppStoreVersionSubmissionForAppStoreVersionV1.Field]? = nil, includes: [GetAppStoreVersionSubmissionForAppStoreVersionV1.Include]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionSubmission", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionSubmission", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildForAppStoreVersionV1.swift index 837b891e5..50f13bc86 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildForAppStoreVersionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Build Information of an App Store Version - Get the build that is attached to a specific App Store version. + # Read the Build Information of an App Store Version + Get the build that is attached to a specific App Store version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildForAppStoreVersionV1(id: String, fields: [GetBuildForAppStoreVersionV1.Field]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/build", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appStoreVersions/\(id)/build", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildIdsForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildIdsForAppStoreVersionV1.swift index 5d9ba04f8..227e8a82a 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildIdsForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetBuildIdsForAppStoreVersionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Get the Build ID for an App Store Version - Get the ID of the build that is attached to a specific App Store version. + # Get the Build ID for an App Store Version + Get the ID of the build that is attached to a specific App Store version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildIdsForAppStoreVersionV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/relationships/build", method: .get) + .init(path: "/v1/appStoreVersions/\(id)/relationships/build", method: .get) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetRoutingAppCoverageForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetRoutingAppCoverageForAppStoreVersionV1.swift index 87a94e116..a568c1a6f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetRoutingAppCoverageForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/GetRoutingAppCoverageForAppStoreVersionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Routing App Coverage Information of an App Store Version - Get the routing app coverage file that is associated with a specific App Store version + # Read the Routing App Coverage Information of an App Store Version + Get the routing app coverage file that is associated with a specific App Store version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getRoutingAppCoverageForAppStoreVersionV1(id: String, fields: [GetRoutingAppCoverageForAppStoreVersionV1.Field]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/routingAppCoverage", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/appStoreVersions/\(id)/routingAppCoverage", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionExperimentsForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionExperimentsForAppStoreVersionV1.swift index a86a8dcea..a170bd371 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionExperimentsForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionExperimentsForAppStoreVersionV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appStoreVersions/{id}/appStoreVersionExperiments + # GET /v1/appStoreVersions/{id}/appStoreVersionExperiments - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreVersionExperimentsForAppStoreVersionV1(id: String, fields: [ListAppStoreVersionExperimentsForAppStoreVersionV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppStoreVersionExperimentsForAppStoreVersionV1.Include]? = nil, limits: [ListAppStoreVersionExperimentsForAppStoreVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionExperiments", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionExperiments", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -105,16 +105,17 @@ public enum ListAppStoreVersionExperimentsForAppStoreVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreVersion, appStoreVersionExperimentTreatments + case appStoreVersion + case appStoreVersionExperimentTreatments } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appStoreVersionExperimentTreatments returned (when they are included) - maximum 50 case appStoreVersionExperimentTreatments(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionLocalizationsForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionLocalizationsForAppStoreVersionV1.swift index 598df71f7..eccad356a 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionLocalizationsForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListAppStoreVersionLocalizationsForAppStoreVersionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All App Store Version Localizations for an App Store Version - Get a list of localized, version-level information about an app, for all locales. + # List All App Store Version Localizations for an App Store Version + Get a list of localized, version-level information about an app, for all locales. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreVersionLocalizationsForAppStoreVersionV1(id: String, fields: [ListAppStoreVersionLocalizationsForAppStoreVersionV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionLocalizations", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/appStoreVersions/\(id)/appStoreVersionLocalizations", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListCustomerReviewsForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListCustomerReviewsForAppStoreVersionV1.swift index e4e4c2af4..6f6e694c7 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListCustomerReviewsForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/ListCustomerReviewsForAppStoreVersionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # List All Customer Reviews for an App Store Version - Get a list of customer reviews for a specific version of your app. + # List All Customer Reviews for an App Store Version + Get a list of customer reviews for a specific version of your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCustomerReviewsForAppStoreVersionV1(id: String, fields: [ListCustomerReviewsForAppStoreVersionV1.Field]? = nil, @@ -23,12 +23,12 @@ public extension Request { sorts: [ListCustomerReviewsForAppStoreVersionV1.Sort]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/customerReviews", method: .get, parameters: .init(fields: fields, - filters: filters, - exists: exists, - includes: includes, - sorts: sorts, - limit: limit)) + .init(path: "/v1/appStoreVersions/\(id)/customerReviews", method: .get, parameters: .init(fields: fields, + filters: filters, + exists: exists, + includes: includes, + sorts: sorts, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateAppClipDefaultExperienceForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateAppClipDefaultExperienceForAppStoreVersionV1.swift index c17fe8be9..0dabe1298 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateAppClipDefaultExperienceForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateAppClipDefaultExperienceForAppStoreVersionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Default App Clip Experience of an App Store Version - Update the relationship between an App Store version and a default App Clip experience. + # Modify the Default App Clip Experience of an App Store Version + Update the relationship between an App Store version and a default App Clip experience. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Related linkage - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Related linkage + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppClipDefaultExperienceForAppStoreVersionV1(id: String, requestBody: AppStoreVersionAppClipDefaultExperienceLinkageRequest) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/relationships/appClipDefaultExperience", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersions/\(id)/relationships/appClipDefaultExperience", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateBuildForAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateBuildForAppStoreVersionV1.swift index 401abe06a..e0e014bf6 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateBuildForAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/Relationships/UpdateBuildForAppStoreVersionV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Modify the Build for an App Store Version - Change the build that is attached to a specific App Store version. + # Modify the Build for an App Store Version + Change the build that is attached to a specific App Store version. - Use this endpoint to associate a build with a version. The build you specify represents the build that’s installed when a customer purchases the app on the App Store. + Use this endpoint to associate a build with a version. The build you specify represents the build that’s installed when a customer purchases the app on the App Store. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Related linkage - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Related linkage + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBuildForAppStoreVersionV1(id: String, requestBody: AppStoreVersionBuildLinkageRequest) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)/relationships/build", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersions/\(id)/relationships/build", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersion/UpdateAppStoreVersionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersion/UpdateAppStoreVersionV1.swift index 58bade4e9..0a796b713 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersion/UpdateAppStoreVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersion/UpdateAppStoreVersionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Store Version - Update the app store version for a specific app. + # Modify an App Store Version + Update the app store version for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreVersion representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreVersion representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreVersionV1(id: String, requestBody: AppStoreVersionUpdateRequest) -> Request { - return .init(path: "/v1/appStoreVersions/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersions/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/CreateAppStoreVersionExperimentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/CreateAppStoreVersionExperimentV1.swift index 259875b10..91d8a151d 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/CreateAppStoreVersionExperimentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/CreateAppStoreVersionExperimentV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appStoreVersionExperiments + # POST /v1/appStoreVersionExperiments - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionExperiment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionExperiment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionExperimentV1(requestBody: AppStoreVersionExperimentCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionExperiments", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionExperiments", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/DeleteAppStoreVersionExperimentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/DeleteAppStoreVersionExperimentV1.swift index 1897e7213..68045c68f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/DeleteAppStoreVersionExperimentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/DeleteAppStoreVersionExperimentV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Store Version Experiment - Delete a specific App Store Version Experiment before it’s started. + # Delete an App Store Version Experiment + Delete a specific App Store Version Experiment before it’s started. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionExperimentV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/GetAppStoreVersionExperimentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/GetAppStoreVersionExperimentV1.swift index 14d9678c9..04373e1b4 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/GetAppStoreVersionExperimentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/GetAppStoreVersionExperimentV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appStoreVersionExperiments/{id} + # GET /v1/appStoreVersionExperiments/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appStoreVersionExperimentTreatments returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appStoreVersionExperimentTreatments returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionExperimentV1(id: String, fields: [GetAppStoreVersionExperimentV1.Field]? = nil, includes: [GetAppStoreVersionExperimentV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -58,6 +58,7 @@ public enum GetAppStoreVersionExperimentV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreVersion, appStoreVersionExperimentTreatments + case appStoreVersion + case appStoreVersionExperimentTreatments } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/Relationships/ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/Relationships/ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.swift index 64eed3498..71df52afc 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/Relationships/ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/Relationships/ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments + # GET /v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1(id: String, fields: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.Field]? = nil, includes: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.Include]? = nil, limits: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperiments/\(id)/appStoreVersionExperimentTreatments", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionExperiments/\(id)/appStoreVersionExperimentTreatments", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -67,16 +67,17 @@ public enum ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentV Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreVersionExperiment, appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included) - maximum 50 case appStoreVersionExperimentTreatmentLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/UpdateAppStoreVersionExperimentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/UpdateAppStoreVersionExperimentV1.swift index 256a7c91d..55302e382 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/UpdateAppStoreVersionExperimentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperiment/UpdateAppStoreVersionExperimentV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appStoreVersionExperiments/{id} + # PATCH /v1/appStoreVersionExperiments/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreVersionExperiment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreVersionExperiment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreVersionExperimentV1(id: String, requestBody: AppStoreVersionExperimentUpdateRequest) -> Request { - return .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersionExperiments/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/CreateAppStoreVersionExperimentTreatmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/CreateAppStoreVersionExperimentTreatmentV1.swift index 3bf76ee27..8b6be9868 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/CreateAppStoreVersionExperimentTreatmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/CreateAppStoreVersionExperimentTreatmentV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appStoreVersionExperimentTreatments + # POST /v1/appStoreVersionExperimentTreatments - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionExperimentTreatment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionExperimentTreatment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionExperimentTreatmentV1(requestBody: AppStoreVersionExperimentTreatmentCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatments", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionExperimentTreatments", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/DeleteAppStoreVersionExperimentTreatmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/DeleteAppStoreVersionExperimentTreatmentV1.swift index 89a51c438..99f32d7e1 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/DeleteAppStoreVersionExperimentTreatmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/DeleteAppStoreVersionExperimentTreatmentV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Treatment for an App Store Version Experiment - Delete metadata that you configured for an App Store Version experiment. + # Delete a Treatment for an App Store Version Experiment + Delete metadata that you configured for an App Store Version experiment. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionExperimentTreatmentV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/GetAppStoreVersionExperimentTreatmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/GetAppStoreVersionExperimentTreatmentV1.swift index 813170c60..b977971dc 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/GetAppStoreVersionExperimentTreatmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/GetAppStoreVersionExperimentTreatmentV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appStoreVersionExperimentTreatments/{id} + # GET /v1/appStoreVersionExperimentTreatments/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionExperimentTreatmentV1(id: String, fields: [GetAppStoreVersionExperimentTreatmentV1.Field]? = nil, includes: [GetAppStoreVersionExperimentTreatmentV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -53,6 +53,7 @@ public enum GetAppStoreVersionExperimentTreatmentV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreVersionExperiment, appStoreVersionExperimentTreatmentLocalizations + case appStoreVersionExperiment + case appStoreVersionExperimentTreatmentLocalizations } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/Relationships/ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/Relationships/ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.swift index fd48b3b8d..1f844ac0f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/Relationships/ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/Relationships/ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations + # GET /v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1(id: String, fields: [ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.Include]? = nil, limits: [ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersionExperimentTreatmentV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)/appStoreVersionExperimentTreatmentLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)/appStoreVersionExperimentTreatmentLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -84,18 +84,20 @@ public enum ListAppStoreVersionExperimentTreatmentLocalizationsForAppStoreVersio Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appPreviewSets, appScreenshotSets, appStoreVersionExperimentTreatment + case appPreviewSets + case appScreenshotSets + case appStoreVersionExperimentTreatment } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) - /// Maximum number of related appScreenshotSets returned (when they are included) - maximum 50 - case appScreenshotSets(Int) /// Maximum number of related appPreviewSets returned (when they are included) - maximum 50 case appPreviewSets(Int) + /// Maximum number of related appScreenshotSets returned (when they are included) - maximum 50 + case appScreenshotSets(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/UpdateAppStoreVersionExperimentTreatmentV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/UpdateAppStoreVersionExperimentTreatmentV1.swift index c98989baf..5f86a23e1 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/UpdateAppStoreVersionExperimentTreatmentV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatment/UpdateAppStoreVersionExperimentTreatmentV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/appStoreVersionExperimentTreatments/{id} + # PATCH /v1/appStoreVersionExperimentTreatments/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreVersionExperimentTreatment representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreVersionExperimentTreatment representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreVersionExperimentTreatmentV1(id: String, requestBody: AppStoreVersionExperimentTreatmentUpdateRequest) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersionExperimentTreatments/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/CreateAppStoreVersionExperimentTreatmentLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/CreateAppStoreVersionExperimentTreatmentLocalizationV1.swift index 62013b525..694db399d 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/CreateAppStoreVersionExperimentTreatmentLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/CreateAppStoreVersionExperimentTreatmentLocalizationV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appStoreVersionExperimentTreatmentLocalizations + # POST /v1/appStoreVersionExperimentTreatmentLocalizations - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionExperimentTreatmentLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionExperimentTreatmentLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionExperimentTreatmentLocalizationV1(requestBody: AppStoreVersionExperimentTreatmentLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/DeleteAppStoreVersionExperimentTreatmentLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/DeleteAppStoreVersionExperimentTreatmentLocalizationV1.swift index 0c30ce42a..198ebf5bf 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/DeleteAppStoreVersionExperimentTreatmentLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/DeleteAppStoreVersionExperimentTreatmentLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Treatment Localization for an App Store Version Experiment - Delete localized metatdata that you configured for an App Store Version experiment treatment. + # Delete a Treatment Localization for an App Store Version Experiment + Delete localized metatdata that you configured for an App Store Version experiment treatment. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionExperimentTreatmentLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/GetAppStoreVersionExperimentTreatmentLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/GetAppStoreVersionExperimentTreatmentLocalizationV1.swift index 5e31b7794..ca884ac89 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/GetAppStoreVersionExperimentTreatmentLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/GetAppStoreVersionExperimentTreatmentLocalizationV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id} + # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionExperimentTreatmentLocalizationV1(id: String, fields: [GetAppStoreVersionExperimentTreatmentLocalizationV1.Field]? = nil, includes: [GetAppStoreVersionExperimentTreatmentLocalizationV1.Include]? = nil, limits: [GetAppStoreVersionExperimentTreatmentLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -62,7 +62,9 @@ public enum GetAppStoreVersionExperimentTreatmentLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appPreviewSets, appScreenshotSets, appStoreVersionExperimentTreatment + case appPreviewSets + case appScreenshotSets + case appStoreVersionExperimentTreatment } /** diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift index 5df0a2cdd..fb7342276 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets + # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1(id: String, fields: [ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Include]? = nil, limits: [ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -126,16 +126,19 @@ public enum ListAppPreviewSetsForAppStoreVersionExperimentTreatmentLocalizationV Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appPreviews, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appPreviews + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appPreviews returned (when they are included) - maximum 50 case appPreviews(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift index d44182608..ab09f2144 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionExperimentTreatmentLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.swift @@ -1,16 +1,16 @@ public extension Request { /** - # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets + # GET /v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1(id: String, fields: [ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Field]? = nil, @@ -18,10 +18,10 @@ public extension Request { includes: [ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Include]? = nil, limits: [ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionExperimentTreatmentLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -136,16 +136,19 @@ public enum ListAppScreenshotSetsForAppStoreVersionExperimentTreatmentLocalizati Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appScreenshots, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appScreenshots + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appScreenshots returned (when they are included) - maximum 50 case appScreenshots(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/CreateAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/CreateAppStoreVersionLocalizationV1.swift index 0b3ab7f6e..d34942910 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/CreateAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/CreateAppStoreVersionLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Create an App Store Version Localization - Add localized version-level information for a new locale. + # Create an App Store Version Localization + Add localized version-level information for a new locale. - Use this endpoint to add localized version information for a new locale. Be sure to use [Create an App Info Localization](https://developer.apple.com/documentation/appstoreconnectapi/create_an_app_info_localization) to add the same locale to the version as well. + Use this endpoint to add localized version information for a new locale. Be sure to use [Create an App Info Localization](https://developer.apple.com/documentation/appstoreconnectapi/create_an_app_info_localization) to add the same locale to the version as well. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionLocalizationV1(requestBody: AppStoreVersionLocalizationCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/DeleteAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/DeleteAppStoreVersionLocalizationV1.swift index 84f0f460a..5d7c2b35c 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/DeleteAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/DeleteAppStoreVersionLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Store Version Localization - Delete a language from your version metadata. + # Delete an App Store Version Localization + Delete a language from your version metadata. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionLocalizationV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/GetAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/GetAppStoreVersionLocalizationV1.swift index b4a787b0a..cea692b0f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/GetAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/GetAppStoreVersionLocalizationV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Store Version Localization Information - Read localized version-level information. + # Read App Store Version Localization Information + Read localized version-level information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionLocalizationV1(id: String, fields: [GetAppStoreVersionLocalizationV1.Field]? = nil, includes: [GetAppStoreVersionLocalizationV1.Include]? = nil, limits: [GetAppStoreVersionLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -69,7 +69,9 @@ public enum GetAppStoreVersionLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appPreviewSets, appScreenshotSets, appStoreVersion + case appPreviewSets + case appScreenshotSets + case appStoreVersion } /** diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionLocalizationV1.swift index e30f0dff1..87076ae38 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppPreviewSetsForAppStoreVersionLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All App Preview Sets for an App Store Version Localization - List all app preview sets for a specific localization. + # List All App Preview Sets for an App Store Version Localization + List all app preview sets for a specific localization. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppPreviewSetsForAppStoreVersionLocalizationV1(id: String, fields: [ListAppPreviewSetsForAppStoreVersionLocalizationV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppPreviewSetsForAppStoreVersionLocalizationV1.Include]? = nil, limits: [ListAppPreviewSetsForAppStoreVersionLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionLocalizations/\(id)/appPreviewSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -127,16 +127,19 @@ public enum ListAppPreviewSetsForAppStoreVersionLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appPreviews, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appPreviews + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appPreviews returned (when they are included) - maximum 50 case appPreviews(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionLocalizationV1.swift index 3882b2512..a8e22457f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/Relationships/ListAppScreenshotSetsForAppStoreVersionLocalizationV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All App Screenshot Sets for an App Store Version Localization - List all screenshot sets for a specific localization. + # List All App Screenshot Sets for an App Store Version Localization + List all screenshot sets for a specific localization. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppScreenshotSetsForAppStoreVersionLocalizationV1(id: String, fields: [ListAppScreenshotSetsForAppStoreVersionLocalizationV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAppScreenshotSetsForAppStoreVersionLocalizationV1.Include]? = nil, limits: [ListAppScreenshotSetsForAppStoreVersionLocalizationV1.Limit]? = nil) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/appStoreVersionLocalizations/\(id)/appScreenshotSets", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -137,16 +137,19 @@ public enum ListAppScreenshotSetsForAppStoreVersionLocalizationV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageLocalization, appScreenshots, appStoreVersionExperimentTreatmentLocalization, appStoreVersionLocalization + case appCustomProductPageLocalization + case appScreenshots + case appStoreVersionExperimentTreatmentLocalization + case appStoreVersionLocalization } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related appScreenshots returned (when they are included) - maximum 50 case appScreenshots(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/UpdateAppStoreVersionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/UpdateAppStoreVersionLocalizationV1.swift index 415994e61..f6234e850 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/UpdateAppStoreVersionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionLocalization/UpdateAppStoreVersionLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Store Version Localization - Modify localized version-level information for a particular language. + # Modify an App Store Version Localization + Modify localized version-level information for a particular language. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreVersionLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreVersionLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreVersionLocalizationV1(id: String, requestBody: AppStoreVersionLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersionLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/CreateAppStoreVersionPhasedReleaseV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/CreateAppStoreVersionPhasedReleaseV1.swift index b92190828..356c3f07e 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/CreateAppStoreVersionPhasedReleaseV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/CreateAppStoreVersionPhasedReleaseV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Store Version Phased Release - Enable phased release for an App Store version. + # Create an App Store Version Phased Release + Enable phased release for an App Store version. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionPhasedRelease representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionPhasedRelease representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionPhasedReleaseV1(requestBody: AppStoreVersionPhasedReleaseCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionPhasedReleases", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionPhasedReleases", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/DeleteAppStoreVersionPhasedReleaseV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/DeleteAppStoreVersionPhasedReleaseV1.swift index 0b8233c8a..725721ddd 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/DeleteAppStoreVersionPhasedReleaseV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/DeleteAppStoreVersionPhasedReleaseV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Store Version Phased Release - Cancel a planned phased release that has not been started. + # Delete an App Store Version Phased Release + Cancel a planned phased release that has not been started. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppStoreVersionPhasedReleaseV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionPhasedReleases/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionPhasedReleases/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/UpdateAppStoreVersionPhasedReleaseV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/UpdateAppStoreVersionPhasedReleaseV1.swift index 57f445aa9..14fcc09a7 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/UpdateAppStoreVersionPhasedReleaseV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionPhasedRelease/UpdateAppStoreVersionPhasedReleaseV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Store Version Phased Release - Pause or resume a phased release, or immediately release an app. + # Modify an App Store Version Phased Release + Pause or resume a phased release, or immediately release an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: AppStoreVersionPhasedRelease representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: AppStoreVersionPhasedRelease representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppStoreVersionPhasedReleaseV1(id: String, requestBody: AppStoreVersionPhasedReleaseUpdateRequest) -> Request { - return .init(path: "/v1/appStoreVersionPhasedReleases/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/appStoreVersionPhasedReleases/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionPromotion/CreateAppStoreVersionPromotionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionPromotion/CreateAppStoreVersionPromotionV1.swift index 975669c37..5bd74437a 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionPromotion/CreateAppStoreVersionPromotionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionPromotion/CreateAppStoreVersionPromotionV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/appStoreVersionPromotions + # POST /v1/appStoreVersionPromotions - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionPromotion representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionPromotion representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionPromotionV1(requestBody: AppStoreVersionPromotionCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionPromotions", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionPromotions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionReleaseRequest/CreateAppStoreVersionReleaseRequestV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionReleaseRequest/CreateAppStoreVersionReleaseRequestV1.swift index 03d0d0c0a..b4438d09f 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionReleaseRequest/CreateAppStoreVersionReleaseRequestV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionReleaseRequest/CreateAppStoreVersionReleaseRequestV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Manually Release an App Store Approved Version of Your App - Release an approved version of your app to the App Store. + # Manually Release an App Store Approved Version of Your App + Release an approved version of your app to the App Store. - When you submit your app for review, if itʼs approved and the status changes to Pending Developer Release, then you can release a version. For more information about app review, see [Submit Your App for Review](https://help.apple.com/app-store-connect/#/dev301cb2b3e). For more information about manually releasing versions, see [Manually Release a Version](https://help.apple.com/app-store-connect/#/devabbb787a6). For more information about app status, see [App Statuses](https://help.apple.com/app-store-connect/#/dev18557d60e). + When you submit your app for review, if itʼs approved and the status changes to Pending Developer Release, then you can release a version. For more information about app review, see [Submit Your App for Review](https://help.apple.com/app-store-connect/#/dev301cb2b3e). For more information about manually releasing versions, see [Manually Release a Version](https://help.apple.com/app-store-connect/#/devabbb787a6). For more information about app status, see [App Statuses](https://help.apple.com/app-store-connect/#/dev18557d60e). - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionReleaseRequest representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionReleaseRequest representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createAppStoreVersionReleaseRequestV1(requestBody: AppStoreVersionReleaseRequestCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionReleaseRequests", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionReleaseRequests", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/CreateAppStoreVersionSubmissionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/CreateAppStoreVersionSubmissionV1.swift index 79bdd194c..69fd49d99 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/CreateAppStoreVersionSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/CreateAppStoreVersionSubmissionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Create an App Store Version Submission - Submit an App Store version to App Review. + # Create an App Store Version Submission + Submit an App Store version to App Review. - Use this endpoint to submit a version to the App Store. If the version is missing required information, this request fails and the response contains error messages that indicate the problems. - If the version’s `releaseType` attribute is `AFTER_APPROVAL`, after App Review approves the version App Store Connect automatically releases it to the App Store. + Use this endpoint to submit a version to the App Store. If the version is missing required information, this request fails and the response contains error messages that indicate the problems. + If the version’s `releaseType` attribute is `AFTER_APPROVAL`, after App Review approves the version App Store Connect automatically releases it to the App Store. - Full documentation: - + Full documentation: + - - Parameter requestBody: AppStoreVersionSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: AppStoreVersionSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func createAppStoreVersionSubmissionV1(requestBody: AppStoreVersionSubmissionCreateRequest) -> Request { - return .init(path: "/v1/appStoreVersionSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/appStoreVersionSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/DeleteAppStoreVersionSubmissionV1.swift b/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/DeleteAppStoreVersionSubmissionV1.swift index 54e4c75d1..b22236009 100644 --- a/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/DeleteAppStoreVersionSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/AppStoreVersionSubmission/DeleteAppStoreVersionSubmissionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Delete an App Store Version Submission - Remove a version from App Store review. + # Delete an App Store Version Submission + Remove a version from App Store review. - Use this endpoint to remove a version from App Review. This request fails with an appropriate error if the app can't be removed from review. For more information, see [Remove a version from review](https://help.apple.com/app-store-connect/#/dev04f55d711). + Use this endpoint to remove a version from App Review. This request fails with an appropriate error if the app can't be removed from review. For more information, see [Remove a version from review](https://help.apple.com/app-store-connect/#/dev04f55d711). - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func deleteAppStoreVersionSubmissionV1(id: String) -> Request { - return .init(path: "/v1/appStoreVersionSubmissions/\(id)", method: .delete) + .init(path: "/v1/appStoreVersionSubmissions/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/CreateBetaAppClipInvocationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/CreateBetaAppClipInvocationV1.swift index 3810dbc08..4e84ac81e 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/CreateBetaAppClipInvocationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/CreateBetaAppClipInvocationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an App Clip Invocation for Testers in TestFlight - Configure a new App Clip experience that testers launch using the TestFlight app. + # Create an App Clip Invocation for Testers in TestFlight + Configure a new App Clip experience that testers launch using the TestFlight app. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaAppClipInvocation representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaAppClipInvocation representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaAppClipInvocationV1(requestBody: BetaAppClipInvocationCreateRequest) -> Request { - return .init(path: "/v1/betaAppClipInvocations", method: .post, requestBody: requestBody) + .init(path: "/v1/betaAppClipInvocations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/DeleteBetaAppClipInvocationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/DeleteBetaAppClipInvocationV1.swift index 9b0bfe5c8..3ce74d984 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/DeleteBetaAppClipInvocationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/DeleteBetaAppClipInvocationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an App Clip Invocation for Testers in TestFlight - Delete an App Clip invocation you make available to testers in TestFlight. + # Delete an App Clip Invocation for Testers in TestFlight + Delete an App Clip invocation you make available to testers in TestFlight. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaAppClipInvocationV1(id: String) -> Request { - return .init(path: "/v1/betaAppClipInvocations/\(id)", method: .delete) + .init(path: "/v1/betaAppClipInvocations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/GetBetaAppClipInvocationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/GetBetaAppClipInvocationV1.swift index 072c3044d..da3c5c5a5 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/GetBetaAppClipInvocationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/GetBetaAppClipInvocationV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Beta App Clip Invocation Information - Get a specific App Clip invocation you configure for testing. + # Read Beta App Clip Invocation Information + Get a specific App Clip invocation you configure for testing. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related betaAppClipInvocationLocalizations returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related betaAppClipInvocationLocalizations returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppClipInvocationV1(id: String, fields: [GetBetaAppClipInvocationV1.Field]? = nil, includes: [GetBetaAppClipInvocationV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaAppClipInvocations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/betaAppClipInvocations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/UpdateBetaAppClipInvocationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/UpdateBetaAppClipInvocationV1.swift index 7cf30a2d8..573a10257 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/UpdateBetaAppClipInvocationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocation/UpdateBetaAppClipInvocationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an App Clip Invocation You Provide to Testers - Change an App Clip invocation you make available to testers in the TestFlight app. + # Modify an App Clip Invocation You Provide to Testers + Change an App Clip invocation you make available to testers in the TestFlight app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaAppClipInvocation representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaAppClipInvocation representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaAppClipInvocationV1(id: String, requestBody: BetaAppClipInvocationUpdateRequest) -> Request { - return .init(path: "/v1/betaAppClipInvocations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaAppClipInvocations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/CreateBetaAppClipInvocationLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/CreateBetaAppClipInvocationLocalizationV1.swift index 9968afa4e..f75bc896a 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/CreateBetaAppClipInvocationLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/CreateBetaAppClipInvocationLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create Localized Metadata for a Beta App Clip Invocation - Provide localized metadata for an App Clip experience you make available to testers. + # Create Localized Metadata for a Beta App Clip Invocation + Provide localized metadata for an App Clip experience you make available to testers. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaAppClipInvocationLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaAppClipInvocationLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaAppClipInvocationLocalizationV1(requestBody: BetaAppClipInvocationLocalizationCreateRequest) -> Request { - return .init(path: "/v1/betaAppClipInvocationLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/betaAppClipInvocationLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/DeleteBetaAppClipInvocationLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/DeleteBetaAppClipInvocationLocalizationV1.swift index 4d88618ab..6b39210d0 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/DeleteBetaAppClipInvocationLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/DeleteBetaAppClipInvocationLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Beta App Clip Invocation Localization - Delete localized metadata you configured for an App Clip that testers launch using the TestFlight app. + # Delete a Beta App Clip Invocation Localization + Delete localized metadata you configured for an App Clip that testers launch using the TestFlight app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaAppClipInvocationLocalizationV1(id: String) -> Request { - return .init(path: "/v1/betaAppClipInvocationLocalizations/\(id)", method: .delete) + .init(path: "/v1/betaAppClipInvocationLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/UpdateBetaAppClipInvocationLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/UpdateBetaAppClipInvocationLocalizationV1.swift index a4c07a633..a5a8b9c9c 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/UpdateBetaAppClipInvocationLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppClipInvocationLocalization/UpdateBetaAppClipInvocationLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify Localized Metadata of an App Clip Invocation for Testers - Change the metadata for an App Clip you make available to testers in the TestFlight app. + # Modify Localized Metadata of an App Clip Invocation for Testers + Change the metadata for an App Clip you make available to testers in the TestFlight app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaAppClipInvocationLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaAppClipInvocationLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaAppClipInvocationLocalizationV1(id: String, requestBody: BetaAppClipInvocationLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/betaAppClipInvocationLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaAppClipInvocationLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/CreateBetaAppLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/CreateBetaAppLocalizationV1.swift index c1e45e545..5d699fcac 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/CreateBetaAppLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/CreateBetaAppLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Beta App Localization - Create localized descriptive information for an app. + # Create a Beta App Localization + Create localized descriptive information for an app. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaAppLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaAppLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaAppLocalizationV1(requestBody: BetaAppLocalizationCreateRequest) -> Request { - return .init(path: "/v1/betaAppLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/betaAppLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/DeleteBetaAppLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/DeleteBetaAppLocalizationV1.swift index 87b051150..0364ff480 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/DeleteBetaAppLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/DeleteBetaAppLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Beta App Localization - Delete a beta app localization associated with an app. + # Delete a Beta App Localization + Delete a beta app localization associated with an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaAppLocalizationV1(id: String) -> Request { - return .init(path: "/v1/betaAppLocalizations/\(id)", method: .delete) + .init(path: "/v1/betaAppLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/GetBetaAppLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/GetBetaAppLocalizationV1.swift index 6915e67a2..a8ea1e312 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/GetBetaAppLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/GetBetaAppLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Beta App Localization Information - Get localized beta app information for a specific app and locale. + # Read Beta App Localization Information + Get localized beta app information for a specific app and locale. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppLocalizationV1(id: String, fields: [GetBetaAppLocalizationV1.Field]? = nil, includes: [GetBetaAppLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/betaAppLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/betaAppLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/ListBetaAppLocalizationsV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/ListBetaAppLocalizationsV1.swift index 65795afc0..d36993eb5 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/ListBetaAppLocalizationsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/ListBetaAppLocalizationsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Beta App Localizations - Find and list beta app localizations for all apps and locales. + # List Beta App Localizations + Find and list beta app localizations for all apps and locales. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaAppLocalizationsV1(fields: [ListBetaAppLocalizationsV1.Field]? = nil, filters: [ListBetaAppLocalizationsV1.Filter]? = nil, includes: [ListBetaAppLocalizationsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaAppLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/betaAppLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/Relationships/GetAppForBetaAppLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/Relationships/GetAppForBetaAppLocalizationV1.swift index 60af51b23..d92a7db0a 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/Relationships/GetAppForBetaAppLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/Relationships/GetAppForBetaAppLocalizationV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Beta App Localization - Get the app information associated with a specific beta app localization. + # Read the App Information of a Beta App Localization + Get the app information associated with a specific beta app localization. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBetaAppLocalizationV1(id: String, fields: [GetAppForBetaAppLocalizationV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaAppLocalizations/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaAppLocalizations/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppLocalization/UpdateBetaAppLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaAppLocalization/UpdateBetaAppLocalizationV1.swift index 1638116c1..4fc07b6d6 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppLocalization/UpdateBetaAppLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppLocalization/UpdateBetaAppLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Beta App Localization - Update the localized What’s New text for a specific app and locale. + # Modify a Beta App Localization + Update the localized What’s New text for a specific app and locale. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaAppLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaAppLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaAppLocalizationV1(id: String, requestBody: BetaAppLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/betaAppLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaAppLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/GetBetaAppReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/GetBetaAppReviewDetailV1.swift index 1f0a47643..f56ca1429 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/GetBetaAppReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/GetBetaAppReviewDetailV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Beta App Review Detail Information - Get beta app review details for a specific app. + # Read Beta App Review Detail Information + Get beta app review details for a specific app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppReviewDetailV1(id: String, fields: [GetBetaAppReviewDetailV1.Field]? = nil, includes: [GetBetaAppReviewDetailV1.Include]? = nil) -> Request { - return .init(path: "/v1/betaAppReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/betaAppReviewDetails/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/ListBetaAppReviewDetailsV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/ListBetaAppReviewDetailsV1.swift index bb5b9768a..50f8d94e4 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/ListBetaAppReviewDetailsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/ListBetaAppReviewDetailsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Beta App Review Details - Find and list beta app review details for all apps. + # List Beta App Review Details + Find and list beta app review details for all apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaAppReviewDetailsV1(fields: [ListBetaAppReviewDetailsV1.Field]? = nil, filters: [ListBetaAppReviewDetailsV1.Filter]? = nil, includes: [ListBetaAppReviewDetailsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaAppReviewDetails", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/betaAppReviewDetails", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -91,7 +91,7 @@ public enum ListBetaAppReviewDetailsV1 { /** Attributes, relationships, and IDs by which to filter. - Required: app + Required: `app` */ public enum Filter: FilterParameter { /// Filter by id(s) of related 'app' diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/Relationships/GetAppForBetaAppReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/Relationships/GetAppForBetaAppReviewDetailV1.swift index 630736501..e680bcc0c 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/Relationships/GetAppForBetaAppReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/Relationships/GetAppForBetaAppReviewDetailV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Beta App Review Detail - Get the app information for a specific beta app review details resource. + # Read the App Information of a Beta App Review Detail + Get the app information for a specific beta app review details resource. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBetaAppReviewDetailV1(id: String, fields: [GetAppForBetaAppReviewDetailV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaAppReviewDetails/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaAppReviewDetails/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/UpdateBetaAppReviewDetailV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/UpdateBetaAppReviewDetailV1.swift index aa97de38a..cc7a6492d 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/UpdateBetaAppReviewDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewDetail/UpdateBetaAppReviewDetailV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Beta App Review Detail - Update the details for a specific app's beta app review. + # Modify a Beta App Review Detail + Update the details for a specific app's beta app review. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaAppReviewDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaAppReviewDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaAppReviewDetailV1(id: String, requestBody: BetaAppReviewDetailUpdateRequest) -> Request { - return .init(path: "/v1/betaAppReviewDetails/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaAppReviewDetails/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/CreateBetaAppReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/CreateBetaAppReviewSubmissionV1.swift index f4d8b3952..e9fb1f9fe 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/CreateBetaAppReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/CreateBetaAppReviewSubmissionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Submit an App for Beta Review - Submit an app for beta app review to allow external testing. + # Submit an App for Beta Review + Submit an app for beta app review to allow external testing. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaAppReviewSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaAppReviewSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaAppReviewSubmissionV1(requestBody: BetaAppReviewSubmissionCreateRequest) -> Request { - return .init(path: "/v1/betaAppReviewSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/betaAppReviewSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/GetBetaAppReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/GetBetaAppReviewSubmissionV1.swift index e5c7fab9a..2be8dab00 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/GetBetaAppReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/GetBetaAppReviewSubmissionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Beta App Review Submission Information - Get a specific beta app review submission. + # Read Beta App Review Submission Information + Get a specific beta app review submission. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppReviewSubmissionV1(id: String, fields: [GetBetaAppReviewSubmissionV1.Field]? = nil, includes: [GetBetaAppReviewSubmissionV1.Include]? = nil) -> Request { - return .init(path: "/v1/betaAppReviewSubmissions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/betaAppReviewSubmissions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/ListBetaAppReviewSubmissionsV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/ListBetaAppReviewSubmissionsV1.swift index 42542c687..9c6103a33 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/ListBetaAppReviewSubmissionsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/ListBetaAppReviewSubmissionsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Beta App Review Submissions - Find and list beta app review submissions for all builds. + # List Beta App Review Submissions + Find and list beta app review submissions for all builds. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaAppReviewSubmissionsV1(fields: [ListBetaAppReviewSubmissionsV1.Field]? = nil, filters: [ListBetaAppReviewSubmissionsV1.Filter]? = nil, includes: [ListBetaAppReviewSubmissionsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaAppReviewSubmissions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/betaAppReviewSubmissions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -71,7 +71,7 @@ public enum ListBetaAppReviewSubmissionsV1 { /** Attributes, relationships, and IDs by which to filter. - Required: build + Required: `build` */ public enum Filter: FilterParameter { /// Filter by attribute 'betaReviewState' diff --git a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/Relationships/GetBuildForBetaAppReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/Relationships/GetBuildForBetaAppReviewSubmissionV1.swift index 72fa6b7c6..c0cc2a1fe 100644 --- a/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/Relationships/GetBuildForBetaAppReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaAppReviewSubmission/Relationships/GetBuildForBetaAppReviewSubmissionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Build Information of a Beta App Review Submission - Get the build information for a specific beta app review submission. + # Read the Build Information of a Beta App Review Submission + Get the build information for a specific beta app review submission. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildForBetaAppReviewSubmissionV1(id: String, fields: [GetBuildForBetaAppReviewSubmissionV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaAppReviewSubmissions/\(id)/build", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaAppReviewSubmissions/\(id)/build", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/CreateBetaBuildLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/CreateBetaBuildLocalizationV1.swift index 3a72cabf0..0f4619729 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/CreateBetaBuildLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/CreateBetaBuildLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Beta Build Localization - Create localized What’s New text for a build. + # Create a Beta Build Localization + Create localized What’s New text for a build. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaBuildLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaBuildLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaBuildLocalizationV1(requestBody: BetaBuildLocalizationCreateRequest) -> Request { - return .init(path: "/v1/betaBuildLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/betaBuildLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/DeleteBetaBuildLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/DeleteBetaBuildLocalizationV1.swift index 915eec263..db2deb423 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/DeleteBetaBuildLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/DeleteBetaBuildLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Beta Build Localization - Delete a specific beta build localization associated with a build. + # Delete a Beta Build Localization + Delete a specific beta build localization associated with a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaBuildLocalizationV1(id: String) -> Request { - return .init(path: "/v1/betaBuildLocalizations/\(id)", method: .delete) + .init(path: "/v1/betaBuildLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/GetBetaBuildLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/GetBetaBuildLocalizationV1.swift index 3e54b3fd5..4c55a8669 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/GetBetaBuildLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/GetBetaBuildLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Beta Build Localization Information - Get a specific beta build localization resource. + # Read Beta Build Localization Information + Get a specific beta build localization resource. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaBuildLocalizationV1(id: String, fields: [GetBetaBuildLocalizationV1.Field]? = nil, includes: [GetBetaBuildLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/betaBuildLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/betaBuildLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/ListBetaBuildLocalizationsV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/ListBetaBuildLocalizationsV1.swift index 25911e35a..8a709d6e0 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/ListBetaBuildLocalizationsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/ListBetaBuildLocalizationsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Beta Build Localizations - Find and list beta build localizations currently associated with apps. + # List Beta Build Localizations + Find and list beta build localizations currently associated with apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaBuildLocalizationsV1(fields: [ListBetaBuildLocalizationsV1.Field]? = nil, filters: [ListBetaBuildLocalizationsV1.Filter]? = nil, includes: [ListBetaBuildLocalizationsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaBuildLocalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/betaBuildLocalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/Relationships/GetBuildForBetaBuildLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/Relationships/GetBuildForBetaBuildLocalizationV1.swift index 88c022210..828ec3352 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/Relationships/GetBuildForBetaBuildLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/Relationships/GetBuildForBetaBuildLocalizationV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Build Information of a Beta Build Localization - Get the build information for a specific beta build localization. + # Read the Build Information of a Beta Build Localization + Get the build information for a specific beta build localization. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildForBetaBuildLocalizationV1(id: String, fields: [GetBuildForBetaBuildLocalizationV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaBuildLocalizations/\(id)/build", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaBuildLocalizations/\(id)/build", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/UpdateBetaBuildLocalizationV1.swift b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/UpdateBetaBuildLocalizationV1.swift index ad9a161f9..578bab1b4 100644 --- a/Sources/Bagbutik/Endpoints/BetaBuildLocalization/UpdateBetaBuildLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaBuildLocalization/UpdateBetaBuildLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Beta Build Localization - Update the localized What’s New text for a specific beta build and locale. + # Modify a Beta Build Localization + Update the localized What’s New text for a specific beta build and locale. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaBuildLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaBuildLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaBuildLocalizationV1(id: String, requestBody: BetaBuildLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/betaBuildLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaBuildLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/CreateBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/CreateBetaGroupV1.swift index aca06d800..d655c8799 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/CreateBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/CreateBetaGroupV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Beta Group - Create a beta group associated with an app, optionally enabling TestFlight public links. + # Create a Beta Group + Create a beta group associated with an app, optionally enabling TestFlight public links. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaGroup representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaGroup representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaGroupV1(requestBody: BetaGroupCreateRequest) -> Request { - return .init(path: "/v1/betaGroups", method: .post, requestBody: requestBody) + .init(path: "/v1/betaGroups", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/DeleteBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/DeleteBetaGroupV1.swift index 3ec58390a..14ce2022f 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/DeleteBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/DeleteBetaGroupV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Beta Group - Delete a beta group and remove beta tester access to associated builds. + # Delete a Beta Group + Delete a beta group and remove beta tester access to associated builds. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaGroupV1(id: String) -> Request { - return .init(path: "/v1/betaGroups/\(id)", method: .delete) + .init(path: "/v1/betaGroups/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/GetBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/GetBetaGroupV1.swift index 4ae525b7e..e7eb33213 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/GetBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/GetBetaGroupV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Beta Group Information - Get a specific beta group. + # Read Beta Group Information + Get a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaGroupV1(id: String, fields: [GetBetaGroupV1.Field]? = nil, includes: [GetBetaGroupV1.Include]? = nil, limits: [GetBetaGroupV1.Limit]? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/betaGroups/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -137,7 +137,9 @@ public enum GetBetaGroupV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, betaTesters, builds + case app + case betaTesters + case builds } /** diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/ListBetaGroupsV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/ListBetaGroupsV1.swift index a3e75e22b..2fabd1f21 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/ListBetaGroupsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/ListBetaGroupsV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Beta Groups - Find and list beta groups for all apps. + # List Beta Groups + Find and list beta groups for all apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaGroupsV1(fields: [ListBetaGroupsV1.Field]? = nil, filters: [ListBetaGroupsV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListBetaGroupsV1.Sort]? = nil, limits: [ListBetaGroupsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/betaGroups", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/betaGroups", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -163,7 +163,9 @@ public enum ListBetaGroupsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, betaTesters, builds + case app + case betaTesters + case builds } /** @@ -184,11 +186,11 @@ public enum ListBetaGroupsV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related betaTesters returned (when they are included) - maximum 50 case betaTesters(Int) /// Maximum number of related builds returned (when they are included) - maximum 1000 case builds(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBetaTestersForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBetaTestersForBetaGroupV1.swift index c505efeff..fe1c54a65 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBetaTestersForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBetaTestersForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Add Beta Testers to a Beta Group - Add a specific beta tester to one or more beta groups for beta testing. + # Add Beta Testers to a Beta Group + Add a specific beta tester to one or more beta groups for beta testing. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaTestersForBetaGroupV1(id: String, requestBody: BetaGroupBetaTestersLinkagesRequest) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .post, requestBody: requestBody) + .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBuildsForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBuildsForBetaGroupV1.swift index 7bb6eb506..6734c9835 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBuildsForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/CreateBuildsForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Add Builds to a Beta Group - Associate builds with a beta group to enable the group to test the builds. + # Add Builds to a Beta Group + Associate builds with a beta group to enable the group to test the builds. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBuildsForBetaGroupV1(id: String, requestBody: BetaGroupBuildsLinkagesRequest) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .post, requestBody: requestBody) + .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBetaTestersForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBetaTestersForBetaGroupV1.swift index e84c7be54..a42bff26c 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBetaTestersForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBetaTestersForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Beta Testers from a Beta Group - Remove a specific beta tester from a one or more beta groups, revoking their access to test builds associated with those groups. + # Remove Beta Testers from a Beta Group + Remove a specific beta tester from a one or more beta groups, revoking their access to test builds associated with those groups. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaTestersForBetaGroupV1(id: String, requestBody: BetaGroupBetaTestersLinkagesRequest) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .delete, requestBody: requestBody) + .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBuildsForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBuildsForBetaGroupV1.swift index 27b97fbc7..ee304b816 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBuildsForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/DeleteBuildsForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Builds from a Beta Group - Remove access to test one or more builds from beta testers in a specific beta group. + # Remove Builds from a Beta Group + Remove access to test one or more builds from beta testers in a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBuildsForBetaGroupV1(id: String, requestBody: BetaGroupBuildsLinkagesRequest) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .delete, requestBody: requestBody) + .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/GetAppForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/GetAppForBetaGroupV1.swift index c0848bcf8..bedc30e1d 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/GetAppForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/GetAppForBetaGroupV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Beta Group - Get the app information for a specific beta group. + # Read the App Information of a Beta Group + Get the app information for a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBetaGroupV1(id: String, fields: [GetAppForBetaGroupV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaGroups/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTesterIdsForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTesterIdsForBetaGroupV1.swift index ad21f9950..edd92b1ed 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTesterIdsForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTesterIdsForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All Beta Tester IDs in a Beta Group - Get a list of the beta tester resource IDs in a specific beta group. + # Get All Beta Tester IDs in a Beta Group + Get a list of the beta tester resource IDs in a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaTesterIdsForBetaGroupV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/betaGroups/\(id)/relationships/betaTesters", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTestersForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTestersForBetaGroupV1.swift index 0da15c842..d6a32721d 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTestersForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBetaTestersForBetaGroupV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Beta Testers in a Beta Group - Get a list of beta testers contained in a specific beta group. + # List All Beta Testers in a Beta Group + Get a list of beta testers contained in a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaTestersForBetaGroupV1(id: String, fields: [ListBetaTestersForBetaGroupV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)/betaTesters", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/betaGroups/\(id)/betaTesters", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildIdsForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildIdsForBetaGroupV1.swift index 486a15f15..3966bcfa9 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildIdsForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildIdsForBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All Build IDs in a Beta Group - Get a list of build resource IDs in a specific beta group. + # Get All Build IDs in a Beta Group + Get a list of build resource IDs in a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildIdsForBetaGroupV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/betaGroups/\(id)/relationships/builds", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildsForBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildsForBetaGroupV1.swift index a635d990d..e5115035b 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildsForBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/Relationships/ListBuildsForBetaGroupV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Builds for a Beta Group - Get a list of builds associated with a specific beta group. + # List All Builds for a Beta Group + Get a list of builds associated with a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsForBetaGroupV1(id: String, fields: [ListBuildsForBetaGroupV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaGroups/\(id)/builds", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/betaGroups/\(id)/builds", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaGroup/UpdateBetaGroupV1.swift b/Sources/Bagbutik/Endpoints/BetaGroup/UpdateBetaGroupV1.swift index 43878d03b..59e60d57e 100644 --- a/Sources/Bagbutik/Endpoints/BetaGroup/UpdateBetaGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaGroup/UpdateBetaGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Beta Group - Modify a beta group's metadata, including changing its Testflight public link status. + # Modify a Beta Group + Modify a beta group's metadata, including changing its Testflight public link status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaGroup representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaGroup representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaGroupV1(id: String, requestBody: BetaGroupUpdateRequest) -> Request { - return .init(path: "/v1/betaGroups/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaGroups/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/GetBetaLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/GetBetaLicenseAgreementV1.swift index 3b909c8bc..ab698381e 100644 --- a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/GetBetaLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/GetBetaLicenseAgreementV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Beta License Agreement Information - Get a specific beta license agreement. + # Read Beta License Agreement Information + Get a specific beta license agreement. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaLicenseAgreementV1(id: String, fields: [GetBetaLicenseAgreementV1.Field]? = nil, includes: [GetBetaLicenseAgreementV1.Include]? = nil) -> Request { - return .init(path: "/v1/betaLicenseAgreements/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/betaLicenseAgreements/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/ListBetaLicenseAgreementsV1.swift b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/ListBetaLicenseAgreementsV1.swift index 9d5d16850..3f6e1fe3a 100644 --- a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/ListBetaLicenseAgreementsV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/ListBetaLicenseAgreementsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Beta License Agreements - Find and list beta license agreements for all apps. + # List Beta License Agreements + Find and list beta license agreements for all apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaLicenseAgreementsV1(fields: [ListBetaLicenseAgreementsV1.Field]? = nil, filters: [ListBetaLicenseAgreementsV1.Filter]? = nil, includes: [ListBetaLicenseAgreementsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaLicenseAgreements", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/betaLicenseAgreements", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/Relationships/GetAppForBetaLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/Relationships/GetAppForBetaLicenseAgreementV1.swift index a674c0eb4..e9d208ae3 100644 --- a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/Relationships/GetAppForBetaLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/Relationships/GetAppForBetaLicenseAgreementV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Beta License Agreement - Get the app information for a specific beta license agreement. + # Read the App Information of a Beta License Agreement + Get the app information for a specific beta license agreement. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBetaLicenseAgreementV1(id: String, fields: [GetAppForBetaLicenseAgreementV1.Field]? = nil) -> Request { - return .init(path: "/v1/betaLicenseAgreements/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/betaLicenseAgreements/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/UpdateBetaLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/UpdateBetaLicenseAgreementV1.swift index 7a8308784..964fedd86 100644 --- a/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/UpdateBetaLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaLicenseAgreement/UpdateBetaLicenseAgreementV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Beta License Agreement - Update the text for your beta license agreement. + # Modify a Beta License Agreement + Update the text for your beta license agreement. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BetaLicenseAgreement representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BetaLicenseAgreement representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBetaLicenseAgreementV1(id: String, requestBody: BetaLicenseAgreementUpdateRequest) -> Request { - return .init(path: "/v1/betaLicenseAgreements/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/betaLicenseAgreements/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/CreateBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/CreateBetaTesterV1.swift index 43f3d4fcc..719d009ad 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/CreateBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/CreateBetaTesterV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Beta Tester - Create a beta tester assigned to a group, a build, or an app. + # Create a Beta Tester + Create a beta tester assigned to a group, a build, or an app. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaTester representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaTester representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaTesterV1(requestBody: BetaTesterCreateRequest) -> Request { - return .init(path: "/v1/betaTesters", method: .post, requestBody: requestBody) + .init(path: "/v1/betaTesters", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/DeleteBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/DeleteBetaTesterV1.swift index 8e1774237..9c6b6e6ff 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/DeleteBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/DeleteBetaTesterV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Beta Tester - Remove a beta tester's ability to test all apps. + # Delete a Beta Tester + Remove a beta tester's ability to test all apps. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaTesterV1(id: String) -> Request { - return .init(path: "/v1/betaTesters/\(id)", method: .delete) + .init(path: "/v1/betaTesters/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/GetBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/GetBetaTesterV1.swift index 54cf72414..473e5e8c2 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/GetBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/GetBetaTesterV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Beta Tester Information - Get a specific beta tester. + # Read Beta Tester Information + Get a specific beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaTesterV1(id: String, fields: [GetBetaTesterV1.Field]? = nil, includes: [GetBetaTesterV1.Include]? = nil, limits: [GetBetaTesterV1.Limit]? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/betaTesters/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -137,7 +137,9 @@ public enum GetBetaTesterV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case apps, betaGroups, builds + case apps + case betaGroups + case builds } /** diff --git a/Sources/Bagbutik/Endpoints/BetaTester/ListBetaTestersV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/ListBetaTestersV1.swift index ccb99bd0f..e14646768 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/ListBetaTestersV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/ListBetaTestersV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Beta Testers - Find and list beta testers for all apps, builds, and beta groups. + # List Beta Testers + Find and list beta testers for all apps, builds, and beta groups. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaTestersV1(fields: [ListBetaTestersV1.Field]? = nil, filters: [ListBetaTestersV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListBetaTestersV1.Sort]? = nil, limits: [ListBetaTestersV1.Limit]? = nil) -> Request { - return .init(path: "/v1/betaTesters", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/betaTesters", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -168,7 +168,9 @@ public enum ListBetaTestersV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case apps, betaGroups, builds + case apps + case betaGroups + case builds } /** @@ -189,13 +191,13 @@ public enum ListBetaTestersV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related apps returned (when they are included) - maximum 50 case apps(Int) /// Maximum number of related betaGroups returned (when they are included) - maximum 50 case betaGroups(Int) /// Maximum number of related builds returned (when they are included) - maximum 50 case builds(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBetaGroupsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBetaGroupsForBetaTesterV1.swift index bb888c527..56476bb95 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBetaGroupsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBetaGroupsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Add a Beta Tester to Beta Groups - Add one or more beta testers to a specific beta group. + # Add a Beta Tester to Beta Groups + Add one or more beta testers to a specific beta group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaGroupsForBetaTesterV1(id: String, requestBody: BetaTesterBetaGroupsLinkagesRequest) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .post, requestBody: requestBody) + .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBuildsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBuildsForBetaTesterV1.swift index e4b8b269a..1e48f62e8 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBuildsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/CreateBuildsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Individually Assign a Beta Tester to Builds - Individually assign a beta tester to a build. + # Individually Assign a Beta Tester to Builds + Individually assign a beta tester to a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBuildsForBetaTesterV1(id: String, requestBody: BetaTesterBuildsLinkagesRequest) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .post, requestBody: requestBody) + .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteAppsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteAppsForBetaTesterV1.swift index 21a6aecc4..cb2653c9f 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteAppsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteAppsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove a Beta Tester’s Access to Apps - Remove a specific beta tester's access to test any builds of one or more apps. + # Remove a Beta Tester’s Access to Apps + Remove a specific beta tester's access to test any builds of one or more apps. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteAppsForBetaTesterV1(id: String, requestBody: BetaTesterAppsLinkagesRequest) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/apps", method: .delete, requestBody: requestBody) + .init(path: "/v1/betaTesters/\(id)/relationships/apps", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBetaGroupsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBetaGroupsForBetaTesterV1.swift index 9096550e0..223ed7762 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBetaGroupsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBetaGroupsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove a Beta Tester from Beta Groups - Remove a specific beta tester from one or more beta groups, revoking their access to test builds associated with those groups. + # Remove a Beta Tester from Beta Groups + Remove a specific beta tester from one or more beta groups, revoking their access to test builds associated with those groups. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaGroupsForBetaTesterV1(id: String, requestBody: BetaTesterBetaGroupsLinkagesRequest) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .delete, requestBody: requestBody) + .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBuildsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBuildsForBetaTesterV1.swift index 412473d31..abf6bb047 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBuildsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/DeleteBuildsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Individually Unassign a Beta Tester from Builds - Remove an individually assigned beta tester's ability to test a build. + # Individually Unassign a Beta Tester from Builds + Remove an individually assigned beta tester's ability to test a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBuildsForBetaTesterV1(id: String, requestBody: BetaTesterBuildsLinkagesRequest) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .delete, requestBody: requestBody) + .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppIdsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppIdsForBetaTesterV1.swift index 7ae042dc4..cb04d540a 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppIdsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppIdsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All App Resource IDs for a Beta Tester - Get a list of app resource IDs associated with a beta tester. + # Get All App Resource IDs for a Beta Tester + Get a list of app resource IDs associated with a beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppIdsForBetaTesterV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/apps", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/betaTesters/\(id)/relationships/apps", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppsForBetaTesterV1.swift index d89621383..9c940f058 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListAppsForBetaTesterV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Apps for a Beta Tester - Get a list of apps that a beta tester can test. + # List All Apps for a Beta Tester + Get a list of apps that a beta tester can test. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAppsForBetaTesterV1(id: String, fields: [ListAppsForBetaTesterV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/apps", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/betaTesters/\(id)/apps", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupIdsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupIdsForBetaTesterV1.swift index ced4b9593..2a094583a 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupIdsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupIdsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All Beta Group IDs of a Beta Tester's Groups - Get a list of group resource IDs associated with a beta tester. + # Get All Beta Group IDs of a Beta Tester's Groups + Get a list of group resource IDs associated with a beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaGroupIdsForBetaTesterV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/betaTesters/\(id)/relationships/betaGroups", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupsForBetaTesterV1.swift index 1afcede79..894ee3208 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBetaGroupsForBetaTesterV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Beta Groups to Which a Beta Tester Belongs - Get a list of beta groups that contain a specific beta tester. + # List All Beta Groups to Which a Beta Tester Belongs + Get a list of beta groups that contain a specific beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaGroupsForBetaTesterV1(id: String, fields: [ListBetaGroupsForBetaTesterV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/betaGroups", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/betaTesters/\(id)/betaGroups", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildIdsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildIdsForBetaTesterV1.swift index 14183ac7d..63bad19b9 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildIdsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildIdsForBetaTesterV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All IDs of Builds Individually Assigned to a Beta Tester - Get a list of build resource IDs individually assigned to a specific beta tester. + # Get All IDs of Builds Individually Assigned to a Beta Tester + Get a list of build resource IDs individually assigned to a specific beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildIdsForBetaTesterV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/betaTesters/\(id)/relationships/builds", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildsForBetaTesterV1.swift b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildsForBetaTesterV1.swift index 2bc37d8b8..127c85685 100644 --- a/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildsForBetaTesterV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTester/Relationships/ListBuildsForBetaTesterV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Builds Individually Assigned to a Beta Tester - Get a list of builds individually assigned to a specific beta tester. + # List All Builds Individually Assigned to a Beta Tester + Get a list of builds individually assigned to a specific beta tester. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsForBetaTesterV1(id: String, fields: [ListBuildsForBetaTesterV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/betaTesters/\(id)/builds", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/betaTesters/\(id)/builds", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BetaTesterInvitation/CreateBetaTesterInvitationV1.swift b/Sources/Bagbutik/Endpoints/BetaTesterInvitation/CreateBetaTesterInvitationV1.swift index de39eaaee..94bc43ab9 100644 --- a/Sources/Bagbutik/Endpoints/BetaTesterInvitation/CreateBetaTesterInvitationV1.swift +++ b/Sources/Bagbutik/Endpoints/BetaTesterInvitation/CreateBetaTesterInvitationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Send an Invitation to a Beta Tester - Send or resend an invitation to a beta tester to test a specified app. + # Send an Invitation to a Beta Tester + Send or resend an invitation to a beta tester to test a specified app. - Full documentation: - + Full documentation: + - - Parameter requestBody: BetaTesterInvitation representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BetaTesterInvitation representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaTesterInvitationV1(requestBody: BetaTesterInvitationCreateRequest) -> Request { - return .init(path: "/v1/betaTesterInvitations", method: .post, requestBody: requestBody) + .init(path: "/v1/betaTesterInvitations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/GetBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/GetBuildV1.swift index 08629dfc2..9aaab81c1 100644 --- a/Sources/Bagbutik/Endpoints/Build/GetBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/GetBuildV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Build Information - Get information about a specific build. + # Read Build Information + Get information about a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildV1(id: String, fields: [GetBuildV1.Field]? = nil, includes: [GetBuildV1.Include]? = nil, limits: [GetBuildV1.Limit]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/builds/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -220,7 +220,17 @@ public enum GetBuildV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appEncryptionDeclaration, appStoreVersion, betaAppReviewSubmission, betaBuildLocalizations, betaGroups, buildBetaDetail, buildBundles, icons, individualTesters, preReleaseVersion + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildBetaDetail + case buildBundles + case icons + case individualTesters + case preReleaseVersion } /** diff --git a/Sources/Bagbutik/Endpoints/Build/ListBuildsV1.swift b/Sources/Bagbutik/Endpoints/Build/ListBuildsV1.swift index 02bc3dcd0..c8b65f4ea 100644 --- a/Sources/Bagbutik/Endpoints/Build/ListBuildsV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/ListBuildsV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Builds - Find and list builds for all apps in App Store Connect. + # List Builds + Find and list builds for all apps in App Store Connect. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsV1(fields: [ListBuildsV1.Field]? = nil, filters: [ListBuildsV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListBuildsV1.Sort]? = nil, limits: [ListBuildsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/builds", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/builds", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -274,7 +274,17 @@ public enum ListBuildsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appEncryptionDeclaration, appStoreVersion, betaAppReviewSubmission, betaBuildLocalizations, betaGroups, buildBetaDetail, buildBundles, icons, individualTesters, preReleaseVersion + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildBetaDetail + case buildBundles + case icons + case individualTesters + case preReleaseVersion } /** @@ -293,8 +303,6 @@ public enum ListBuildsV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related betaBuildLocalizations returned (when they are included) - maximum 50 case betaBuildLocalizations(Int) /// Maximum number of related betaGroups returned (when they are included) - maximum 50 @@ -305,5 +313,7 @@ public enum ListBuildsV1 { case icons(Int) /// Maximum number of related individualTesters returned (when they are included) - maximum 50 case individualTesters(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/CreateBetaGroupsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/CreateBetaGroupsForBuildV1.swift index 2c6005453..2f3909911 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/CreateBetaGroupsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/CreateBetaGroupsForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Add Access for Beta Groups to a Build - Add or create a beta group to a build to enable testing. + # Add Access for Beta Groups to a Build + Add or create a beta group to a build to enable testing. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBetaGroupsForBuildV1(id: String, requestBody: BuildBetaGroupsLinkagesRequest) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/betaGroups", method: .post, requestBody: requestBody) + .init(path: "/v1/builds/\(id)/relationships/betaGroups", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/CreateIndividualTestersForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/CreateIndividualTestersForBuildV1.swift index 996161a66..86178d010 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/CreateIndividualTestersForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/CreateIndividualTestersForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Assign Individual Testers to a Build - Enable a beta tester who is not a part of a beta group to test a build. + # Assign Individual Testers to a Build + Enable a beta tester who is not a part of a beta group to test a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createIndividualTestersForBuildV1(id: String, requestBody: BuildIndividualTestersLinkagesRequest) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .post, requestBody: requestBody) + .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteBetaGroupsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteBetaGroupsForBuildV1.swift index ec1682d13..61d0e0214 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteBetaGroupsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteBetaGroupsForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Access for Beta Groups to a Build - Remove access to a specific build for all beta testers in one or more beta groups. + # Remove Access for Beta Groups to a Build + Remove access to a specific build for all beta testers in one or more beta groups. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBetaGroupsForBuildV1(id: String, requestBody: BuildBetaGroupsLinkagesRequest) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/betaGroups", method: .delete, requestBody: requestBody) + .init(path: "/v1/builds/\(id)/relationships/betaGroups", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteIndividualTestersForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteIndividualTestersForBuildV1.swift index 988f96828..964334ad4 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteIndividualTestersForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/DeleteIndividualTestersForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Individual Testers from a Build - Remove access to test a specific build from one or more individually assigned testers. + # Remove Individual Testers from a Build + Remove access to test a specific build from one or more individually assigned testers. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteIndividualTestersForBuildV1(id: String, requestBody: BuildIndividualTestersLinkagesRequest) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .delete, requestBody: requestBody) + .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationForBuildV1.swift index d21c29886..ae03f6538 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationForBuildV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Encryption Declaration of a Build - Read an app encryption declaration associated with a specific build. + # Read the App Encryption Declaration of a Build + Read an app encryption declaration associated with a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEncryptionDeclarationForBuildV1(id: String, fields: [GetAppEncryptionDeclarationForBuildV1.Field]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/appEncryptionDeclaration", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/builds/\(id)/appEncryptionDeclaration", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationIdsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationIdsForBuildV1.swift index 90f4c8606..49dd85c67 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationIdsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppEncryptionDeclarationIdsForBuildV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Assign the App Encryption Declaration for a Build - Assign an app encryption declaration to a build. + # Assign the App Encryption Declaration for a Build + Assign an app encryption declaration to a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppEncryptionDeclarationIdsForBuildV1(id: String) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/appEncryptionDeclaration", method: .get) + .init(path: "/v1/builds/\(id)/relationships/appEncryptionDeclaration", method: .get) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppForBuildV1.swift index d15e0279b..56bf80287 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppForBuildV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Build - Get the app information for a specific build. + # Read the App Information of a Build + Get the app information for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBuildV1(id: String, fields: [GetAppForBuildV1.Field]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/builds/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppStoreVersionForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppStoreVersionForBuildV1.swift index fc49c93b3..5105dddcf 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppStoreVersionForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetAppStoreVersionForBuildV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read the App Store Version Information of a Build - Get the App Store version of a specific build. + # Read the App Store Version Information of a Build + Get the App Store version of a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreVersionForBuildV1(id: String, fields: [GetAppStoreVersionForBuildV1.Field]? = nil, includes: [GetAppStoreVersionForBuildV1.Include]? = nil, limits: [GetAppStoreVersionForBuildV1.Limit]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/appStoreVersion", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/builds/\(id)/appStoreVersion", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -235,16 +235,25 @@ public enum GetAppStoreVersionForBuildV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case ageRatingDeclaration, app, appClipDefaultExperience, appStoreReviewDetail, appStoreVersionExperiments, appStoreVersionLocalizations, appStoreVersionPhasedRelease, appStoreVersionSubmission, build, routingAppCoverage + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreVersionExperiments + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case routingAppCoverage } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 - case appStoreVersionLocalizations(Int) /// Maximum number of related appStoreVersionExperiments returned (when they are included) - maximum 50 case appStoreVersionExperiments(Int) + /// Maximum number of related appStoreVersionLocalizations returned (when they are included) - maximum 50 + case appStoreVersionLocalizations(Int) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetBetaAppReviewSubmissionForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetBetaAppReviewSubmissionForBuildV1.swift index 3930a5a2f..16378f051 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetBetaAppReviewSubmissionForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetBetaAppReviewSubmissionForBuildV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Beta App Review Submission of a Build - Get the beta app review submission status for a specific build. + # Read the Beta App Review Submission of a Build + Get the beta app review submission status for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBetaAppReviewSubmissionForBuildV1(id: String, fields: [GetBetaAppReviewSubmissionForBuildV1.Field]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/betaAppReviewSubmission", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/builds/\(id)/betaAppReviewSubmission", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetBuildBetaDetailForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetBuildBetaDetailForBuildV1.swift index 070a079f4..b0bfb54ca 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetBuildBetaDetailForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetBuildBetaDetailForBuildV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Build Beta Details Information of a Build - Get the beta test details for a specific build. + # Read the Build Beta Details Information of a Build + Get the beta test details for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildBetaDetailForBuildV1(id: String, fields: [GetBuildBetaDetailForBuildV1.Field]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/buildBetaDetail", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/builds/\(id)/buildBetaDetail", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/GetPreReleaseVersionForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/GetPreReleaseVersionForBuildV1.swift index af9085d4a..5e1a17284 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/GetPreReleaseVersionForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/GetPreReleaseVersionForBuildV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Prerelease Version of a Build - Get the prerelease version for a specific build. + # Read the Prerelease Version of a Build + Get the prerelease version for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPreReleaseVersionForBuildV1(id: String, fields: [GetPreReleaseVersionForBuildV1.Field]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/preReleaseVersion", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/builds/\(id)/preReleaseVersion", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListBetaBuildLocalizationsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListBetaBuildLocalizationsForBuildV1.swift index 3b74965b2..7e0c483d5 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListBetaBuildLocalizationsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListBetaBuildLocalizationsForBuildV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Beta Build Localizations of a Build - Get a list of localized beta test information for a specific build. + # List All Beta Build Localizations of a Build + Get a list of localized beta test information for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaBuildLocalizationsForBuildV1(id: String, fields: [ListBetaBuildLocalizationsForBuildV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/betaBuildLocalizations", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/builds/\(id)/betaBuildLocalizations", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListDiagnosticSignaturesForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListDiagnosticSignaturesForBuildV1.swift index c6cdc793c..52013e192 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListDiagnosticSignaturesForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListDiagnosticSignaturesForBuildV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # List All Diagnostic Signatures for a Build - List the aggregate backtrace signatures captured for a specific build. + # List All Diagnostic Signatures for a Build + List the aggregate backtrace signatures captured for a specific build. - The example below requests the top two weighted disk write diagnostic signatures. The example response returns two signatures that are responsible for 85% and 7% of disk writes. + The example below requests the top two weighted disk write diagnostic signatures. The example response returns two signatures that are responsible for 85% and 7% of disk writes. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listDiagnosticSignaturesForBuildV1(id: String, fields: [ListDiagnosticSignaturesForBuildV1.Field]? = nil, filters: [ListDiagnosticSignaturesForBuildV1.Filter]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/diagnosticSignatures", method: .get, parameters: .init(fields: fields, - filters: filters, - limit: limit)) + .init(path: "/v1/builds/\(id)/diagnosticSignatures", method: .get, parameters: .init(fields: fields, + filters: filters, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIconsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIconsForBuildV1.swift index 2828ee4e6..d10fd3a8e 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIconsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIconsForBuildV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Icons for a Build - List all the icons for various platforms delivered with a build. + # List All Icons for a Build + List all the icons for various platforms delivered with a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIconsForBuildV1(id: String, fields: [ListIconsForBuildV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/icons", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/builds/\(id)/icons", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTesterIdsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTesterIdsForBuildV1.swift index 944124c6c..352b597da 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTesterIdsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTesterIdsForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All Resource IDs of Individual Testers for a Build - Get a list of resource IDs of individual testers associated with a build. + # Get All Resource IDs of Individual Testers for a Build + Get a list of resource IDs of individual testers associated with a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIndividualTesterIdsForBuildV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/builds/\(id)/relationships/individualTesters", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTestersForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTestersForBuildV1.swift index 9a9f3c97e..96a35b85f 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTestersForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListIndividualTestersForBuildV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Individual Testers for a Build - Get a list of beta testers individually assigned to a build. + # List All Individual Testers for a Build + Get a list of beta testers individually assigned to a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIndividualTestersForBuildV1(id: String, fields: [ListIndividualTestersForBuildV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/individualTesters", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/builds/\(id)/individualTesters", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/ListPerfPowerMetricsForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/ListPerfPowerMetricsForBuildV1.swift index d6710e8a8..2e4260d77 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/ListPerfPowerMetricsForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/ListPerfPowerMetricsForBuildV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Get Power and Performance Metrics for a Build - Get the performance and power metrics data for a specific build. + # Get Power and Performance Metrics for a Build + Get the performance and power metrics data for a specific build. - The example below requests iOS animation metrics on all iPads for a specific build. To get the metrics for all of the most-recent app versions instead, use the [Get Power and Performance Metrics for an App](https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_an_app) endpoint. + The example below requests iOS animation metrics on all iPads for a specific build. To get the metrics for all of the most-recent app versions instead, use the [Get Power and Performance Metrics for an App](https://developer.apple.com/documentation/appstoreconnectapi/get_power_and_performance_metrics_for_an_app) endpoint. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPerfPowerMetricsForBuildV1(id: String, filters: [ListPerfPowerMetricsForBuildV1.Filter]? = nil) -> Request { - return .init(path: "/v1/builds/\(id)/perfPowerMetrics", method: .get, parameters: .init(filters: filters)) + .init(path: "/v1/builds/\(id)/perfPowerMetrics", method: .get, parameters: .init(filters: filters)) } } diff --git a/Sources/Bagbutik/Endpoints/Build/Relationships/UpdateAppEncryptionDeclarationForBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/Relationships/UpdateAppEncryptionDeclarationForBuildV1.swift index d746b4bcd..b1d032052 100644 --- a/Sources/Bagbutik/Endpoints/Build/Relationships/UpdateAppEncryptionDeclarationForBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/Relationships/UpdateAppEncryptionDeclarationForBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Assign the App Encryption Declaration for a Build - Assign an app encryption declaration to a build. + # Assign the App Encryption Declaration for a Build + Assign an app encryption declaration to a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Related linkage - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Related linkage + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateAppEncryptionDeclarationForBuildV1(id: String, requestBody: BuildAppEncryptionDeclarationLinkageRequest) -> Request { - return .init(path: "/v1/builds/\(id)/relationships/appEncryptionDeclaration", method: .patch, requestBody: requestBody) + .init(path: "/v1/builds/\(id)/relationships/appEncryptionDeclaration", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Build/UpdateBuildV1.swift b/Sources/Bagbutik/Endpoints/Build/UpdateBuildV1.swift index 108753b36..1ad811e75 100644 --- a/Sources/Bagbutik/Endpoints/Build/UpdateBuildV1.swift +++ b/Sources/Bagbutik/Endpoints/Build/UpdateBuildV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Build - Expire a build or change its encryption exemption setting. + # Modify a Build + Expire a build or change its encryption exemption setting. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Build representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Build representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBuildV1(id: String, requestBody: BuildUpdateRequest) -> Request { - return .init(path: "/v1/builds/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/builds/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBetaDetail/GetBuildBetaDetailV1.swift b/Sources/Bagbutik/Endpoints/BuildBetaDetail/GetBuildBetaDetailV1.swift index 7f76cb351..9a29b3915 100644 --- a/Sources/Bagbutik/Endpoints/BuildBetaDetail/GetBuildBetaDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBetaDetail/GetBuildBetaDetailV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Build Beta Detail Information - Get a specific build beta details resource. + # Read Build Beta Detail Information + Get a specific build beta details resource. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildBetaDetailV1(id: String, fields: [GetBuildBetaDetailV1.Field]? = nil, includes: [GetBuildBetaDetailV1.Include]? = nil) -> Request { - return .init(path: "/v1/buildBetaDetails/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/buildBetaDetails/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBetaDetail/ListBuildBetaDetailsV1.swift b/Sources/Bagbutik/Endpoints/BuildBetaDetail/ListBuildBetaDetailsV1.swift index d8d2ea95b..d89abf649 100644 --- a/Sources/Bagbutik/Endpoints/BuildBetaDetail/ListBuildBetaDetailsV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBetaDetail/ListBuildBetaDetailsV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Build Beta Details - Find and list build beta details for all builds. + # List Build Beta Details + Find and list build beta details for all builds. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildBetaDetailsV1(fields: [ListBuildBetaDetailsV1.Field]? = nil, filters: [ListBuildBetaDetailsV1.Filter]? = nil, includes: [ListBuildBetaDetailsV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/buildBetaDetails", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/buildBetaDetails", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBetaDetail/Relationships/GetBuildForBuildBetaDetailV1.swift b/Sources/Bagbutik/Endpoints/BuildBetaDetail/Relationships/GetBuildForBuildBetaDetailV1.swift index b9ad4048c..4b330f8d7 100644 --- a/Sources/Bagbutik/Endpoints/BuildBetaDetail/Relationships/GetBuildForBuildBetaDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBetaDetail/Relationships/GetBuildForBuildBetaDetailV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Build Information of a Build Beta Detail - Get the build information for a specific build beta details resource. + # Read the Build Information of a Build Beta Detail + Get the build information for a specific build beta details resource. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildForBuildBetaDetailV1(id: String, fields: [GetBuildForBuildBetaDetailV1.Field]? = nil) -> Request { - return .init(path: "/v1/buildBetaDetails/\(id)/build", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/buildBetaDetails/\(id)/build", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBetaDetail/UpdateBuildBetaDetailV1.swift b/Sources/Bagbutik/Endpoints/BuildBetaDetail/UpdateBuildBetaDetailV1.swift index 2e26b473a..9593c8383 100644 --- a/Sources/Bagbutik/Endpoints/BuildBetaDetail/UpdateBuildBetaDetailV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBetaDetail/UpdateBuildBetaDetailV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Build Beta Detail - Update beta test details for a specific build. + # Modify a Build Beta Detail + Update beta test details for a specific build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BuildBetaDetail representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BuildBetaDetail representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBuildBetaDetailV1(id: String, requestBody: BuildBetaDetailUpdateRequest) -> Request { - return .init(path: "/v1/buildBetaDetails/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/buildBetaDetails/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBetaNotification/CreateBuildBetaNotificationV1.swift b/Sources/Bagbutik/Endpoints/BuildBetaNotification/CreateBuildBetaNotificationV1.swift index 99ce5830f..727a3e874 100644 --- a/Sources/Bagbutik/Endpoints/BuildBetaNotification/CreateBuildBetaNotificationV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBetaNotification/CreateBuildBetaNotificationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Send Notification of an Available Build - Send a notification to all assigned beta testers that a build is available for testing. + # Send Notification of an Available Build + Send a notification to all assigned beta testers that a build is available for testing. - Full documentation: - + Full documentation: + - - Parameter requestBody: BuildBetaNotification representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BuildBetaNotification representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBuildBetaNotificationV1(requestBody: BuildBetaNotificationCreateRequest) -> Request { - return .init(path: "/v1/buildBetaNotifications", method: .post, requestBody: requestBody) + .init(path: "/v1/buildBetaNotifications", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainCacheStatusForBuildBundleV1.swift b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainCacheStatusForBuildBundleV1.swift index 0f310e3ca..f4f029511 100644 --- a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainCacheStatusForBuildBundleV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainCacheStatusForBuildBundleV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Clip Domain Cache Status Information for a Build Bundle - Get the cache status of the domain you associate with your App Clip for a specific build bundle. + # Read the App Clip Domain Cache Status Information for a Build Bundle + Get the cache status of the domain you associate with your App Clip for a specific build bundle. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDomainCacheStatusForBuildBundleV1(id: String, fields: [GetAppClipDomainCacheStatusForBuildBundleV1.Field]? = nil) -> Request { - return .init(path: "/v1/buildBundles/\(id)/appClipDomainCacheStatus", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/buildBundles/\(id)/appClipDomainCacheStatus", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainDebugStatusForBuildBundleV1.swift b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainDebugStatusForBuildBundleV1.swift index 828aa5d45..e27b9cbc7 100644 --- a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainDebugStatusForBuildBundleV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/GetAppClipDomainDebugStatusForBuildBundleV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read App Clip Domain Debug Status Information for a Build Bundle - Get the debug status of the domain you associate with your App Clip for a specific build bundle. + # Read App Clip Domain Debug Status Information for a Build Bundle + Get the debug status of the domain you associate with your App Clip for a specific build bundle. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppClipDomainDebugStatusForBuildBundleV1(id: String, fields: [GetAppClipDomainDebugStatusForBuildBundleV1.Field]? = nil) -> Request { - return .init(path: "/v1/buildBundles/\(id)/appClipDomainDebugStatus", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/buildBundles/\(id)/appClipDomainDebugStatus", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBetaAppClipInvocationsForBuildBundleV1.swift b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBetaAppClipInvocationsForBuildBundleV1.swift index 067ee4cb8..34d2bce6b 100644 --- a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBetaAppClipInvocationsForBuildBundleV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBetaAppClipInvocationsForBuildBundleV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Beta App Clip Invocations for a Build Bundle - Get all App Clip invocations you configure for testing for a specific build bundle. + # List All Beta App Clip Invocations for a Build Bundle + Get all App Clip invocations you configure for testing for a specific build bundle. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBetaAppClipInvocationsForBuildBundleV1(id: String, fields: [ListBetaAppClipInvocationsForBuildBundleV1.Field]? = nil, includes: [ListBetaAppClipInvocationsForBuildBundleV1.Include]? = nil, limits: [ListBetaAppClipInvocationsForBuildBundleV1.Limit]? = nil) -> Request { - return .init(path: "/v1/buildBundles/\(id)/betaAppClipInvocations", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/buildBundles/\(id)/betaAppClipInvocations", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -57,9 +57,9 @@ public enum ListBetaAppClipInvocationsForBuildBundleV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related betaAppClipInvocationLocalizations returned (when they are included) - maximum 50 case betaAppClipInvocationLocalizations(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBuildBundleFileSizesForBuildBundleV1.swift b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBuildBundleFileSizesForBuildBundleV1.swift index e7b7e35e7..e634437b4 100644 --- a/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBuildBundleFileSizesForBuildBundleV1.swift +++ b/Sources/Bagbutik/Endpoints/BuildBundle/Relationships/ListBuildBundleFileSizesForBuildBundleV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All File Sizes for a Build Bundle - Get all file sizes for a specific build bundle. + # List All File Sizes for a Build Bundle + Get all file sizes for a specific build bundle. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildBundleFileSizesForBuildBundleV1(id: String, fields: [ListBuildBundleFileSizesForBuildBundleV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/buildBundles/\(id)/buildBundleFileSizes", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/buildBundles/\(id)/buildBundleFileSizes", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/CreateBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/CreateBundleIdV1.swift index d1014630f..bd29ce579 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/CreateBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/CreateBundleIdV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Register a New Bundle ID - Register a new bundle ID for app development. + # Register a New Bundle ID + Register a new bundle ID for app development. - Full documentation: - + Full documentation: + - - Parameter requestBody: BundleId representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BundleId representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBundleIdV1(requestBody: BundleIdCreateRequest) -> Request { - return .init(path: "/v1/bundleIds", method: .post, requestBody: requestBody) + .init(path: "/v1/bundleIds", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/DeleteBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/DeleteBundleIdV1.swift index 79cc64c1c..0b4a78159 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/DeleteBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/DeleteBundleIdV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Delete a Bundle ID - Delete a bundle ID that is used for app development. + # Delete a Bundle ID + Delete a bundle ID that is used for app development. - You can only delete bundle IDs that are used for development. You can’t delete bundle IDs that are being used by an app in App Store Connect. + You can only delete bundle IDs that are used for development. You can’t delete bundle IDs that are being used by an app in App Store Connect. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBundleIdV1(id: String) -> Request { - return .init(path: "/v1/bundleIds/\(id)", method: .delete) + .init(path: "/v1/bundleIds/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/GetBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/GetBundleIdV1.swift index 797700100..497e8648b 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/GetBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/GetBundleIdV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Bundle ID Information - Get information about a specific bundle ID. + # Read Bundle ID Information + Get information about a specific bundle ID. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBundleIdV1(id: String, fields: [GetBundleIdV1.Field]? = nil, includes: [GetBundleIdV1.Include]? = nil, limits: [GetBundleIdV1.Limit]? = nil) -> Request { - return .init(path: "/v1/bundleIds/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/bundleIds/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -113,7 +113,9 @@ public enum GetBundleIdV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, bundleIdCapabilities, profiles + case app + case bundleIdCapabilities + case profiles } /** diff --git a/Sources/Bagbutik/Endpoints/BundleId/ListBundleIdsV1.swift b/Sources/Bagbutik/Endpoints/BundleId/ListBundleIdsV1.swift index 11e303eb1..919ab5107 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/ListBundleIdsV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/ListBundleIdsV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Bundle IDs - Find and list bundle IDs that are registered to your team. + # List Bundle IDs + Find and list bundle IDs that are registered to your team. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBundleIdsV1(fields: [ListBundleIdsV1.Field]? = nil, filters: [ListBundleIdsV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListBundleIdsV1.Sort]? = nil, limits: [ListBundleIdsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/bundleIds", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/bundleIds", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -138,7 +138,9 @@ public enum ListBundleIdsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, bundleIdCapabilities, profiles + case app + case bundleIdCapabilities + case profiles } /** @@ -161,10 +163,10 @@ public enum ListBundleIdsV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related bundleIdCapabilities returned (when they are included) - maximum 50 case bundleIdCapabilities(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) /// Maximum number of related profiles returned (when they are included) - maximum 50 case profiles(Int) } diff --git a/Sources/Bagbutik/Endpoints/BundleId/Relationships/GetAppForBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/Relationships/GetAppForBundleIdV1.swift index 1019f835a..6257c0a69 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/Relationships/GetAppForBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/Relationships/GetAppForBundleIdV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Read the App Information of a Bundle ID + # Read the App Information of a Bundle ID - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForBundleIdV1(id: String, fields: [GetAppForBundleIdV1.Field]? = nil) -> Request { - return .init(path: "/v1/bundleIds/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/bundleIds/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListBundleIdCapabilitiesForBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListBundleIdCapabilitiesForBundleIdV1.swift index e5b22fcd7..5160670be 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListBundleIdCapabilitiesForBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListBundleIdCapabilitiesForBundleIdV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Capabilities for a Bundle ID - Get a list of all capabilities for a specific bundle ID. + # List All Capabilities for a Bundle ID + Get a list of all capabilities for a specific bundle ID. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBundleIdCapabilitiesForBundleIdV1(id: String, fields: [ListBundleIdCapabilitiesForBundleIdV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/bundleIds/\(id)/bundleIdCapabilities", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/bundleIds/\(id)/bundleIdCapabilities", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListProfilesForBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListProfilesForBundleIdV1.swift index be05aca8c..80f063c43 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListProfilesForBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/Relationships/ListProfilesForBundleIdV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Profiles for a Bundle ID - Get a list of all profiles for a specific bundle ID. + # List All Profiles for a Bundle ID + Get a list of all profiles for a specific bundle ID. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listProfilesForBundleIdV1(id: String, fields: [ListProfilesForBundleIdV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/bundleIds/\(id)/profiles", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/bundleIds/\(id)/profiles", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/BundleId/UpdateBundleIdV1.swift b/Sources/Bagbutik/Endpoints/BundleId/UpdateBundleIdV1.swift index 50cb873d3..6b2e603c6 100644 --- a/Sources/Bagbutik/Endpoints/BundleId/UpdateBundleIdV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleId/UpdateBundleIdV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Bundle ID - Update a specific bundle ID’s name. + # Modify a Bundle ID + Update a specific bundle ID’s name. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BundleId representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BundleId representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBundleIdV1(id: String, requestBody: BundleIdUpdateRequest) -> Request { - return .init(path: "/v1/bundleIds/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/bundleIds/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BundleIdCapability/CreateBundleIdCapabilityV1.swift b/Sources/Bagbutik/Endpoints/BundleIdCapability/CreateBundleIdCapabilityV1.swift index 21374e5f6..3e08196ac 100644 --- a/Sources/Bagbutik/Endpoints/BundleIdCapability/CreateBundleIdCapabilityV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleIdCapability/CreateBundleIdCapabilityV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Enable a Capability - Enable a capability for a bundle ID. + # Enable a Capability + Enable a capability for a bundle ID. - Full documentation: - + Full documentation: + - - Parameter requestBody: BundleIdCapability representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: BundleIdCapability representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createBundleIdCapabilityV1(requestBody: BundleIdCapabilityCreateRequest) -> Request { - return .init(path: "/v1/bundleIdCapabilities", method: .post, requestBody: requestBody) + .init(path: "/v1/bundleIdCapabilities", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/BundleIdCapability/DeleteBundleIdCapabilityV1.swift b/Sources/Bagbutik/Endpoints/BundleIdCapability/DeleteBundleIdCapabilityV1.swift index ffa878472..930d07de1 100644 --- a/Sources/Bagbutik/Endpoints/BundleIdCapability/DeleteBundleIdCapabilityV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleIdCapability/DeleteBundleIdCapabilityV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Disable a Capability - Disable a capability for a bundle ID. + # Disable a Capability + Disable a capability for a bundle ID. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteBundleIdCapabilityV1(id: String) -> Request { - return .init(path: "/v1/bundleIdCapabilities/\(id)", method: .delete) + .init(path: "/v1/bundleIdCapabilities/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/BundleIdCapability/UpdateBundleIdCapabilityV1.swift b/Sources/Bagbutik/Endpoints/BundleIdCapability/UpdateBundleIdCapabilityV1.swift index 0c9f6f4dc..9fd68f536 100644 --- a/Sources/Bagbutik/Endpoints/BundleIdCapability/UpdateBundleIdCapabilityV1.swift +++ b/Sources/Bagbutik/Endpoints/BundleIdCapability/UpdateBundleIdCapabilityV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Capability Configuration - Update the configuration of a specific capability. + # Modify a Capability Configuration + Update the configuration of a specific capability. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: BundleIdCapability representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: BundleIdCapability representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateBundleIdCapabilityV1(id: String, requestBody: BundleIdCapabilityUpdateRequest) -> Request { - return .init(path: "/v1/bundleIdCapabilities/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/bundleIdCapabilities/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Certificate/CreateCertificateV1.swift b/Sources/Bagbutik/Endpoints/Certificate/CreateCertificateV1.swift index 157f248d0..c0f6687b5 100644 --- a/Sources/Bagbutik/Endpoints/Certificate/CreateCertificateV1.swift +++ b/Sources/Bagbutik/Endpoints/Certificate/CreateCertificateV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Certificate - Create a new certificate using a certificate signing request. + # Create a Certificate + Create a new certificate using a certificate signing request. - Full documentation: - + Full documentation: + - - Parameter requestBody: Certificate representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: Certificate representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createCertificateV1(requestBody: CertificateCreateRequest) -> Request { - return .init(path: "/v1/certificates", method: .post, requestBody: requestBody) + .init(path: "/v1/certificates", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Certificate/DeleteCertificateV1.swift b/Sources/Bagbutik/Endpoints/Certificate/DeleteCertificateV1.swift index 033a95ef9..3ed6fcea9 100644 --- a/Sources/Bagbutik/Endpoints/Certificate/DeleteCertificateV1.swift +++ b/Sources/Bagbutik/Endpoints/Certificate/DeleteCertificateV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Revoke a Certificate - Revoke a lost, stolen, compromised, or expiring signing certificate. + # Revoke a Certificate + Revoke a lost, stolen, compromised, or expiring signing certificate. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteCertificateV1(id: String) -> Request { - return .init(path: "/v1/certificates/\(id)", method: .delete) + .init(path: "/v1/certificates/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/Certificate/GetCertificateV1.swift b/Sources/Bagbutik/Endpoints/Certificate/GetCertificateV1.swift index 64f5deb86..fce9d3f97 100644 --- a/Sources/Bagbutik/Endpoints/Certificate/GetCertificateV1.swift +++ b/Sources/Bagbutik/Endpoints/Certificate/GetCertificateV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read and Download Certificate Information - Get information about a certificate and download the certificate data. + # Read and Download Certificate Information + Get information about a certificate and download the certificate data. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCertificateV1(id: String, fields: [GetCertificateV1.Field]? = nil) -> Request { - return .init(path: "/v1/certificates/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/certificates/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Certificate/ListCertificatesV1.swift b/Sources/Bagbutik/Endpoints/Certificate/ListCertificatesV1.swift index eb678dd62..2922f63f2 100644 --- a/Sources/Bagbutik/Endpoints/Certificate/ListCertificatesV1.swift +++ b/Sources/Bagbutik/Endpoints/Certificate/ListCertificatesV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List and Download Certificates - Find and list certificates and download their data. + # List and Download Certificates + Find and list certificates and download their data. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter sorts: Attributes by which to sort - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter sorts: Attributes by which to sort + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCertificatesV1(fields: [ListCertificatesV1.Field]? = nil, filters: [ListCertificatesV1.Filter]? = nil, sorts: [ListCertificatesV1.Sort]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/certificates", method: .get, parameters: .init(fields: fields, - filters: filters, - sorts: sorts, - limit: limit)) + .init(path: "/v1/certificates", method: .get, parameters: .init(fields: fields, + filters: filters, + sorts: sorts, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiArtifact/GetCiArtifactV1.swift b/Sources/Bagbutik/Endpoints/CiArtifact/GetCiArtifactV1.swift index 42dc9202e..146eaca25 100644 --- a/Sources/Bagbutik/Endpoints/CiArtifact/GetCiArtifactV1.swift +++ b/Sources/Bagbutik/Endpoints/CiArtifact/GetCiArtifactV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Read Xcode Cloud Artifact Information - Get information about the artifact Xcode Cloud created for a specific action when it performed a build. + # Read Xcode Cloud Artifact Information + Get information about the artifact Xcode Cloud created for a specific action when it performed a build. - The example request below retrieves detailed information about a specific artifact Xcode Cloud created when it performed a build. Use the information provided to download the artifact and store it on your own servers. Note that the returned download URL is only valid for a limited amount of time. + The example request below retrieves detailed information about a specific artifact Xcode Cloud created when it performed a build. Use the information provided to download the artifact and store it on your own servers. Note that the returned download URL is only valid for a limited amount of time. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiArtifactV1(id: String, fields: [GetCiArtifactV1.Field]? = nil) -> Request { - return .init(path: "/v1/ciArtifacts/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/ciArtifacts/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildAction/GetCiBuildActionV1.swift b/Sources/Bagbutik/Endpoints/CiBuildAction/GetCiBuildActionV1.swift index d6603d1fe..a41df097c 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildAction/GetCiBuildActionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildAction/GetCiBuildActionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # Read Build Action Information - Get information about a specific action Xcode Cloud performed as part of a build. + # Read Build Action Information + Get information about a specific action Xcode Cloud performed as part of a build. - The example request below retrieves detailed information about an action Xcode Cloud performed. It also requests detailed information about the action’s build by including the [Build Runs](https://developer.apple.com/documentation/appstoreconnectapi/xcode_cloud_workflows_and_builds/build_runs) resource in the query. Use the information provided in the response to display information on a dashboard or to access additional information; for example, information about other actions Xcode Cloud performed during the build. + The example request below retrieves detailed information about an action Xcode Cloud performed. It also requests detailed information about the action’s build by including the [Build Runs](https://developer.apple.com/documentation/appstoreconnectapi/xcode_cloud_workflows_and_builds/build_runs) resource in the query. Use the information provided in the response to display information on a dashboard or to access additional information; for example, information about other actions Xcode Cloud performed during the build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiBuildActionV1(id: String, fields: [GetCiBuildActionV1.Field]? = nil, includes: [GetCiBuildActionV1.Include]? = nil) -> Request { - return .init(path: "/v1/ciBuildActions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/ciBuildActions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/GetBuildRunForCiBuildActionV1.swift b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/GetBuildRunForCiBuildActionV1.swift index 63f8637f5..2a6e05405 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/GetBuildRunForCiBuildActionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/GetBuildRunForCiBuildActionV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read the Xcode Cloud Build Information for a Build Action - Get Xcode Cloud build information for a given build action. + # Read the Xcode Cloud Build Information for a Build Action + Get Xcode Cloud build information for a given build action. - The example request below retrieves detailed information for a specific action Xcode Cloud performed. Use the data provided in the response to display detailed build information on a dashboard or to access related information. + The example request below retrieves detailed information for a specific action Xcode Cloud performed. Use the data provided in the response to display detailed build information on a dashboard or to access related information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBuildRunForCiBuildActionV1(id: String, fields: [GetBuildRunForCiBuildActionV1.Field]? = nil, includes: [GetBuildRunForCiBuildActionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildActions/\(id)/buildRun", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciBuildActions/\(id)/buildRun", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -154,6 +154,11 @@ public enum GetBuildRunForCiBuildActionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case builds, destinationBranch, product, pullRequest, sourceBranchOrTag, workflow + case builds + case destinationBranch + case product + case pullRequest + case sourceBranchOrTag + case workflow } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListArtifactsForCiBuildActionV1.swift b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListArtifactsForCiBuildActionV1.swift index 50e5ee3e2..ac98d0eec 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListArtifactsForCiBuildActionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListArtifactsForCiBuildActionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Artifacts for a Build Action - List all artifacts Xcode Cloud created when it performed an action. + # List All Artifacts for a Build Action + List all artifacts Xcode Cloud created when it performed an action. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listArtifactsForCiBuildActionV1(id: String, fields: [ListArtifactsForCiBuildActionV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildActions/\(id)/artifacts", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/ciBuildActions/\(id)/artifacts", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListIssuesForCiBuildActionV1.swift b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListIssuesForCiBuildActionV1.swift index 4d52e7899..f04dab17b 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListIssuesForCiBuildActionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListIssuesForCiBuildActionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # List All Issues for a Build Action - List all issues that occurred for a specific action that Xcode Cloud performed as part of a build. + # List All Issues for a Build Action + List all issues that occurred for a specific action that Xcode Cloud performed as part of a build. - The example request below lists all issues Xcode Cloud encountered when it performed a build. Use the information provided in the response to display issue information on a dashboard, generate reports, automatically create tasks in your issue tracker, and so on. + The example request below lists all issues Xcode Cloud encountered when it performed a build. Use the information provided in the response to display issue information on a dashboard, generate reports, automatically create tasks in your issue tracker, and so on. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIssuesForCiBuildActionV1(id: String, fields: [ListIssuesForCiBuildActionV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildActions/\(id)/issues", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/ciBuildActions/\(id)/issues", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListTestResultsForCiBuildActionV1.swift b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListTestResultsForCiBuildActionV1.swift index 8a767dd4e..f2d02caa9 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListTestResultsForCiBuildActionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildAction/Relationships/ListTestResultsForCiBuildActionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # List All Test Results for an Xcode Cloud Test Action - List all test results for a specific test action Xcode Cloud performed as part of a build. + # List All Test Results for an Xcode Cloud Test Action + List all test results for a specific test action Xcode Cloud performed as part of a build. - The example request below lists the test results for an Xcode Cloud build that performed a test action. Use the information provided in the response to display test results on a dashboard, create a new task for a failing test in your issue tracker, and so on. + The example request below lists the test results for an Xcode Cloud build that performed a test action. Use the information provided in the response to display test results on a dashboard, create a new task for a failing test in your issue tracker, and so on. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listTestResultsForCiBuildActionV1(id: String, fields: [ListTestResultsForCiBuildActionV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildActions/\(id)/testResults", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/ciBuildActions/\(id)/testResults", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildRun/GetCiBuildRunV1.swift b/Sources/Bagbutik/Endpoints/CiBuildRun/GetCiBuildRunV1.swift index 2fd4cff4b..cfb343e9e 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildRun/GetCiBuildRunV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildRun/GetCiBuildRunV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read Xcode Cloud Build Information - Get information about a specific Xcode Cloud build. + # Read Xcode Cloud Build Information + Get information about a specific Xcode Cloud build. - The example request below retrieves detailed information for a specific build. Use the data provided in the response to display detailed build information on a dashboard or to access related information for each action Xcode Cloud performed. + The example request below retrieves detailed information for a specific build. Use the data provided in the response to display detailed build information on a dashboard or to access related information for each action Xcode Cloud performed. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiBuildRunV1(id: String, fields: [GetCiBuildRunV1.Field]? = nil, includes: [GetCiBuildRunV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildRuns/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciBuildRuns/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -108,6 +108,11 @@ public enum GetCiBuildRunV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case builds, destinationBranch, product, pullRequest, sourceBranchOrTag, workflow + case builds + case destinationBranch + case product + case pullRequest + case sourceBranchOrTag + case workflow } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListActionsForCiBuildRunV1.swift b/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListActionsForCiBuildRunV1.swift index 374df1daa..65f70a3a0 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListActionsForCiBuildRunV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListActionsForCiBuildRunV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # List All Actions for an Xcode Cloud Build - List all actions Xcode Cloud performed during a specific build. + # List All Actions for an Xcode Cloud Build + List all actions Xcode Cloud performed during a specific build. - The example request below lists actions Xcode Cloud performed during a specific build. Use the information provided in the response to display detailed action information on a dashboard or to read additional data; for example, test results. + The example request below lists actions Xcode Cloud performed during a specific build. Use the information provided in the response to display detailed action information on a dashboard or to read additional data; for example, test results. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listActionsForCiBuildRunV1(id: String, fields: [ListActionsForCiBuildRunV1.Field]? = nil, includes: [ListActionsForCiBuildRunV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciBuildRuns/\(id)/actions", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciBuildRuns/\(id)/actions", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListBuildsForCiBuildRunV1.swift b/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListBuildsForCiBuildRunV1.swift index d38bd07e8..16bc19980 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListBuildsForCiBuildRunV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildRun/Relationships/ListBuildsForCiBuildRunV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All Builds Xcode Cloud Created in App Store Connect - List All App Store Connect and TestFlight Builds when it performed a build. + # List All Builds Xcode Cloud Created in App Store Connect + List All App Store Connect and TestFlight Builds when it performed a build. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsForCiBuildRunV1(id: String, fields: [ListBuildsForCiBuildRunV1.Field]? = nil, @@ -21,11 +21,11 @@ public extension Request { sorts: [ListBuildsForCiBuildRunV1.Sort]? = nil, limits: [ListBuildsForCiBuildRunV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciBuildRuns/\(id)/builds", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/ciBuildRuns/\(id)/builds", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -311,7 +311,17 @@ public enum ListBuildsForCiBuildRunV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appEncryptionDeclaration, appStoreVersion, betaAppReviewSubmission, betaBuildLocalizations, betaGroups, buildBetaDetail, buildBundles, icons, individualTesters, preReleaseVersion + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildBetaDetail + case buildBundles + case icons + case individualTesters + case preReleaseVersion } /** @@ -330,17 +340,17 @@ public enum ListBuildsForCiBuildRunV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) - /// Maximum number of related individualTesters returned (when they are included) - maximum 50 - case individualTesters(Int) - /// Maximum number of related betaGroups returned (when they are included) - maximum 50 - case betaGroups(Int) /// Maximum number of related betaBuildLocalizations returned (when they are included) - maximum 50 case betaBuildLocalizations(Int) - /// Maximum number of related icons returned (when they are included) - maximum 50 - case icons(Int) + /// Maximum number of related betaGroups returned (when they are included) - maximum 50 + case betaGroups(Int) /// Maximum number of related buildBundles returned (when they are included) - maximum 50 case buildBundles(Int) + /// Maximum number of related icons returned (when they are included) - maximum 50 + case icons(Int) + /// Maximum number of related individualTesters returned (when they are included) - maximum 50 + case individualTesters(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/CiBuildRun/StartCiBuildRunV1.swift b/Sources/Bagbutik/Endpoints/CiBuildRun/StartCiBuildRunV1.swift index 894387564..db8fd9083 100644 --- a/Sources/Bagbutik/Endpoints/CiBuildRun/StartCiBuildRunV1.swift +++ b/Sources/Bagbutik/Endpoints/CiBuildRun/StartCiBuildRunV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Start a Build - Start a new Xcode Cloud build for a workflow. + # Start a Build + Start a new Xcode Cloud build for a workflow. - The example request below starts a new build for a specific workflow. Use the information provided in the response to display build information on a dashboard or to access additional information; for example, the actions Xcode Cloud performs during the build. + The example request below starts a new build for a specific workflow. Use the information provided in the response to display build information on a dashboard or to access additional information; for example, the actions Xcode Cloud performs during the build. - Full documentation: - + Full documentation: + - - Parameter requestBody: CiBuildRun representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: CiBuildRun representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func startCiBuildRunV1(requestBody: CiBuildRunCreateRequest) -> Request { - return .init(path: "/v1/ciBuildRuns", method: .post, requestBody: requestBody) + .init(path: "/v1/ciBuildRuns", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/CiIssue/GetCiIssueV1.swift b/Sources/Bagbutik/Endpoints/CiIssue/GetCiIssueV1.swift index 3da3ff601..e29060795 100644 --- a/Sources/Bagbutik/Endpoints/CiIssue/GetCiIssueV1.swift +++ b/Sources/Bagbutik/Endpoints/CiIssue/GetCiIssueV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Read Xcode Cloud Issue Information - Get information about a specific issue that occurred when Xcode Cloud performed a build. + # Read Xcode Cloud Issue Information + Get information about a specific issue that occurred when Xcode Cloud performed a build. - The example request below retrieves information about a specific issue Xcode Cloud encountered when it performed a build. Use the information provided to display issues on a dashboard, create reports, and so on. + The example request below retrieves information about a specific issue Xcode Cloud encountered when it performed a build. Use the information provided to display issues on a dashboard, create reports, and so on. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiIssueV1(id: String, fields: [GetCiIssueV1.Field]? = nil) -> Request { - return .init(path: "/v1/ciIssues/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/ciIssues/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/CiMacOsVersion/GetCiMacOsVersionV1.swift b/Sources/Bagbutik/Endpoints/CiMacOsVersion/GetCiMacOsVersionV1.swift index b25aa6da8..4acf13b9c 100644 --- a/Sources/Bagbutik/Endpoints/CiMacOsVersion/GetCiMacOsVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiMacOsVersion/GetCiMacOsVersionV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read macOS Version Information - Get information about a specific macOS version that’s available to Xcode Cloud workflows. + # Read macOS Version Information + Get information about a specific macOS version that’s available to Xcode Cloud workflows. - The example request below accesses information about a macOS version available to Xcode Cloud workflows. Use the data provided in the response to read additional information; for example, Xcode versions. + The example request below accesses information about a macOS version available to Xcode Cloud workflows. Use the data provided in the response to read additional information; for example, Xcode versions. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related xcodeVersions returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related xcodeVersions returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiMacOsVersionV1(id: String, fields: [GetCiMacOsVersionV1.Field]? = nil, includes: [GetCiMacOsVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciMacOsVersions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciMacOsVersions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiMacOsVersion/ListCiMacOsVersionsV1.swift b/Sources/Bagbutik/Endpoints/CiMacOsVersion/ListCiMacOsVersionsV1.swift index 0218f0a8b..052a02196 100644 --- a/Sources/Bagbutik/Endpoints/CiMacOsVersion/ListCiMacOsVersionsV1.swift +++ b/Sources/Bagbutik/Endpoints/CiMacOsVersion/ListCiMacOsVersionsV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All macOS Versions Available in Xcode Cloud - List all macOS versions available to Xcode Cloud workflows. + # List All macOS Versions Available in Xcode Cloud + List all macOS versions available to Xcode Cloud workflows. - The example request below lists macOS versions available to Xcode Cloud workflows. Use the information provided in the response to read additional data; for example, Xcode version information. + The example request below lists macOS versions available to Xcode Cloud workflows. Use the information provided in the response to read additional data; for example, Xcode version information. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCiMacOsVersionsV1(fields: [ListCiMacOsVersionsV1.Field]? = nil, includes: [ListCiMacOsVersionsV1.Include]? = nil, limits: [ListCiMacOsVersionsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciMacOsVersions", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/ciMacOsVersions", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/CiMacOsVersion/Relationships/ListXcodeVersionsForCiMacOsVersionV1.swift b/Sources/Bagbutik/Endpoints/CiMacOsVersion/Relationships/ListXcodeVersionsForCiMacOsVersionV1.swift index 970d938ec..f0cb3780f 100644 --- a/Sources/Bagbutik/Endpoints/CiMacOsVersion/Relationships/ListXcodeVersionsForCiMacOsVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiMacOsVersion/Relationships/ListXcodeVersionsForCiMacOsVersionV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # List Available Xcode Versions for a macOS Version - List all Xcode versions available for a specific macOS version in Xcode Cloud. + # List Available Xcode Versions for a macOS Version + List all Xcode versions available for a specific macOS version in Xcode Cloud. - The example request below lists Xcode versions available in Xcode Cloud for a specific macOS version. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard. + The example request below lists Xcode versions available in Xcode Cloud for a specific macOS version. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listXcodeVersionsForCiMacOsVersionV1(id: String, fields: [ListXcodeVersionsForCiMacOsVersionV1.Field]? = nil, includes: [ListXcodeVersionsForCiMacOsVersionV1.Include]? = nil, limits: [ListXcodeVersionsForCiMacOsVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciMacOsVersions/\(id)/xcodeVersions", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/ciMacOsVersions/\(id)/xcodeVersions", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/DeleteCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/DeleteCiProductV1.swift index 5ec03b0a5..324a70ac6 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/DeleteCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/DeleteCiProductV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Delete a Product - Delete an Xcode Cloud product and all of its associated workflows, builds, and artifacts. + # Delete a Product + Delete an Xcode Cloud product and all of its associated workflows, builds, and artifacts. - To delete an Xcode Cloud product, call this endpoint using the HTTP `DELETE` method like this: - ``` - https://api.appstoreconnect.apple.com/v1/ciProducts/9ad354b0-f380-40d3-b94f-dd5225b8b3d5 - ``` - App Store Connect confirms the deletion by responding with the `HTTP/1.1 204 No Content` HTTP status code. + To delete an Xcode Cloud product, call this endpoint using the HTTP `DELETE` method like this: + ``` + https://api.appstoreconnect.apple.com/v1/ciProducts/9ad354b0-f380-40d3-b94f-dd5225b8b3d5 + ``` + App Store Connect confirms the deletion by responding with the `HTTP/1.1 204 No Content` HTTP status code. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteCiProductV1(id: String) -> Request { - return .init(path: "/v1/ciProducts/\(id)", method: .delete) + .init(path: "/v1/ciProducts/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/GetCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/GetCiProductV1.swift index 76525749e..6ebfbb49d 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/GetCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/GetCiProductV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read Xcode Cloud Product Information - Get information about a specific Xcode Cloud product. + # Read Xcode Cloud Product Information + Get information about a specific Xcode Cloud product. - The example request below retrieves information about a specific Xcode Cloud product. Use the data provided in the response to read additional information; for example, workflow information. + The example request below retrieves information about a specific Xcode Cloud product. Use the data provided in the response to read additional information; for example, workflow information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related primaryRepositories returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related primaryRepositories returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiProductV1(id: String, fields: [GetCiProductV1.Field]? = nil, includes: [GetCiProductV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciProducts/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -155,6 +155,8 @@ public enum GetCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, bundleId, primaryRepositories + case app + case bundleId + case primaryRepositories } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/ListCiProductsV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/ListCiProductsV1.swift index f943eda0f..9ceb63534 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/ListCiProductsV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/ListCiProductsV1.swift @@ -1,28 +1,28 @@ public extension Request { /** - # List All Xcode Cloud Products - Get a list of all products you created in Xcode Cloud. + # List All Xcode Cloud Products + Get a list of all products you created in Xcode Cloud. - The example request below lists ten Xcode Cloud products and sorts the list using the `latestBuildCreatedDate` attribute. Use the information provided in the response to display data about your Xcode Cloud products on a dashboard or to read additional information; for example, workflow information. + The example request below lists ten Xcode Cloud products and sorts the list using the `latestBuildCreatedDate` attribute. Use the information provided in the response to display data about your Xcode Cloud products on a dashboard or to read additional information; for example, workflow information. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCiProductsV1(fields: [ListCiProductsV1.Field]? = nil, filters: [ListCiProductsV1.Filter]? = nil, includes: [ListCiProductsV1.Include]? = nil, limits: [ListCiProductsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciProducts", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/ciProducts", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -166,7 +166,9 @@ public enum ListCiProductsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, bundleId, primaryRepositories + case app + case bundleId + case primaryRepositories } /** diff --git a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/GetAppForCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/GetAppForCiProductV1.swift index fed1b5114..55e41c7e9 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/GetAppForCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/GetAppForCiProductV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read App Information for an Xcode Cloud Product - Get the app in App Store Connect that’s related to an Xcode Cloud product. + # Read App Information for an Xcode Cloud Product + Get the app in App Store Connect that’s related to an Xcode Cloud product. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForCiProductV1(id: String, fields: [GetAppForCiProductV1.Field]? = nil, includes: [GetAppForCiProductV1.Include]? = nil, limits: [GetAppForCiProductV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)/app", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/ciProducts/\(id)/app", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -351,46 +351,68 @@ public enum GetAppForCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appClips, appCustomProductPages, appEvents, appInfos, appStoreVersions, availableTerritories, betaAppLocalizations, betaAppReviewDetail, betaGroups, betaLicenseAgreement, builds, ciProduct, endUserLicenseAgreement, gameCenterEnabledVersions, inAppPurchases, inAppPurchasesV2, preOrder, preReleaseVersions, prices, promotedPurchases, reviewSubmissions, subscriptionGracePeriod, subscriptionGroups + case appClips + case appCustomProductPages + case appEvents + case appInfos + case appStoreVersions + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case builds + case ciProduct + case endUserLicenseAgreement + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case preOrder + case preReleaseVersions + case prices + case promotedPurchases + case reviewSubmissions + case subscriptionGracePeriod + case subscriptionGroups } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum number of related betaGroups returned (when they are included) - maximum 50 - case betaGroups(Int) + /// Maximum number of related appClips returned (when they are included) - maximum 50 + case appClips(Int) + /// Maximum number of related appCustomProductPages returned (when they are included) - maximum 50 + case appCustomProductPages(Int) + /// Maximum number of related appEvents returned (when they are included) - maximum 50 + case appEvents(Int) + /// Maximum number of related appInfos returned (when they are included) - maximum 50 + case appInfos(Int) /// Maximum number of related appStoreVersions returned (when they are included) - maximum 50 case appStoreVersions(Int) - /// Maximum number of related preReleaseVersions returned (when they are included) - maximum 50 - case preReleaseVersions(Int) + /// Maximum number of related availableTerritories returned (when they are included) - maximum 50 + case availableTerritories(Int) /// Maximum number of related betaAppLocalizations returned (when they are included) - maximum 50 case betaAppLocalizations(Int) + /// Maximum number of related betaGroups returned (when they are included) - maximum 50 + case betaGroups(Int) /// Maximum number of related builds returned (when they are included) - maximum 50 case builds(Int) - /// Maximum number of related appInfos returned (when they are included) - maximum 50 - case appInfos(Int) - /// Maximum number of related appClips returned (when they are included) - maximum 50 - case appClips(Int) - /// Maximum number of related prices returned (when they are included) - maximum 50 - case prices(Int) - /// Maximum number of related availableTerritories returned (when they are included) - maximum 50 - case availableTerritories(Int) - /// Maximum number of related inAppPurchases returned (when they are included) - maximum 50 - case inAppPurchases(Int) - /// Maximum number of related subscriptionGroups returned (when they are included) - maximum 50 - case subscriptionGroups(Int) /// Maximum number of related gameCenterEnabledVersions returned (when they are included) - maximum 50 case gameCenterEnabledVersions(Int) - /// Maximum number of related appCustomProductPages returned (when they are included) - maximum 50 - case appCustomProductPages(Int) + /// Maximum number of related inAppPurchases returned (when they are included) - maximum 50 + case inAppPurchases(Int) /// Maximum number of related inAppPurchasesV2 returned (when they are included) - maximum 50 case inAppPurchasesV2(Int) + /// Maximum number of related preReleaseVersions returned (when they are included) - maximum 50 + case preReleaseVersions(Int) + /// Maximum number of related prices returned (when they are included) - maximum 50 + case prices(Int) /// Maximum number of related promotedPurchases returned (when they are included) - maximum 50 case promotedPurchases(Int) - /// Maximum number of related appEvents returned (when they are included) - maximum 50 - case appEvents(Int) /// Maximum number of related reviewSubmissions returned (when they are included) - maximum 50 case reviewSubmissions(Int) + /// Maximum number of related subscriptionGroups returned (when they are included) - maximum 50 + case subscriptionGroups(Int) } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListAdditionalRepositoriesForCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListAdditionalRepositoriesForCiProductV1.swift index ddf7b3f75..618168c6d 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListAdditionalRepositoriesForCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListAdditionalRepositoriesForCiProductV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Additional Repositories for an Xcode Cloud Product - List all additional Git repositories you associated with an Xcode Cloud product. + # List All Additional Repositories for an Xcode Cloud Product + List all additional Git repositories you associated with an Xcode Cloud product. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listAdditionalRepositoriesForCiProductV1(id: String, fields: [ListAdditionalRepositoriesForCiProductV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListAdditionalRepositoriesForCiProductV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)/additionalRepositories", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/ciProducts/\(id)/additionalRepositories", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -77,6 +77,7 @@ public enum ListAdditionalRepositoriesForCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListBuildRunsForCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListBuildRunsForCiProductV1.swift index 7fb57a4de..512097568 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListBuildRunsForCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListBuildRunsForCiProductV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Xcode Cloud Builds for an Xcode Cloud Product - List all builds Xcode Cloud performed for a specific product. + # List All Xcode Cloud Builds for an Xcode Cloud Product + List all builds Xcode Cloud performed for a specific product. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildRunsForCiProductV1(id: String, fields: [ListBuildRunsForCiProductV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListBuildRunsForCiProductV1.Include]? = nil, limits: [ListBuildRunsForCiProductV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)/buildRuns", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/ciProducts/\(id)/buildRuns", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -163,16 +163,21 @@ public enum ListBuildRunsForCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case builds, destinationBranch, product, pullRequest, sourceBranchOrTag, workflow + case builds + case destinationBranch + case product + case pullRequest + case sourceBranchOrTag + case workflow } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related builds returned (when they are included) - maximum 50 case builds(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListPrimaryRepositoriesForCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListPrimaryRepositoriesForCiProductV1.swift index 6272400ce..995f3dfdc 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListPrimaryRepositoriesForCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListPrimaryRepositoriesForCiProductV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Primary Git Repositories for an Xcode Cloud Product - List all primary Git repositories for a specific Xcode Cloud product. + # List All Primary Git Repositories for an Xcode Cloud Product + List all primary Git repositories for a specific Xcode Cloud product. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPrimaryRepositoriesForCiProductV1(id: String, fields: [ListPrimaryRepositoriesForCiProductV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPrimaryRepositoriesForCiProductV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)/primaryRepositories", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/ciProducts/\(id)/primaryRepositories", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -77,6 +77,7 @@ public enum ListPrimaryRepositoriesForCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListWorkflowsForCiProductV1.swift b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListWorkflowsForCiProductV1.swift index 196394eee..83f5758d6 100644 --- a/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListWorkflowsForCiProductV1.swift +++ b/Sources/Bagbutik/Endpoints/CiProduct/Relationships/ListWorkflowsForCiProductV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Workflows for an Xcode Cloud Product - List all workflows for a specific Xcode Cloud product. + # List All Workflows for an Xcode Cloud Product + List all workflows for a specific Xcode Cloud product. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listWorkflowsForCiProductV1(id: String, fields: [ListWorkflowsForCiProductV1.Field]? = nil, includes: [ListWorkflowsForCiProductV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciProducts/\(id)/workflows", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciProducts/\(id)/workflows", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -101,6 +101,9 @@ public enum ListWorkflowsForCiProductV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case macOsVersion, product, repository, xcodeVersion + case macOsVersion + case product + case repository + case xcodeVersion } } diff --git a/Sources/Bagbutik/Endpoints/CiTestResult/GetCiTestResultV1.swift b/Sources/Bagbutik/Endpoints/CiTestResult/GetCiTestResultV1.swift index 1540f579b..f71ec8f2f 100644 --- a/Sources/Bagbutik/Endpoints/CiTestResult/GetCiTestResultV1.swift +++ b/Sources/Bagbutik/Endpoints/CiTestResult/GetCiTestResultV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Read Test Result Information - Get a specific test result Xcode Cloud created when it performed a build with a test action. + # Read Test Result Information + Get a specific test result Xcode Cloud created when it performed a build with a test action. - The example request below retrieves result information for a test Xcode Cloud performed. Use the data provided in the response to display test result information on a dashboard, create reports, or create a new issue in your issue tracker for a failing test. + The example request below retrieves result information for a test Xcode Cloud performed. Use the data provided in the response to display test result information on a dashboard, create reports, or create a new issue in your issue tracker for a failing test. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiTestResultV1(id: String, fields: [GetCiTestResultV1.Field]? = nil) -> Request { - return .init(path: "/v1/ciTestResults/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/ciTestResults/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/CreateCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/CreateCiWorkflowV1.swift index 8af2d57f0..ae6a57880 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/CreateCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/CreateCiWorkflowV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Create a Workflow - Create a new Xcode Cloud workflow for an Xcode Cloud product. + # Create a Workflow + Create a new Xcode Cloud workflow for an Xcode Cloud product. - The example request below creates a new workflow that performs the archive action. App Store Connect returns the `201` HTTP status code to indicate the successful creation of the workflow and returns information about the workflow. Use the data to access additional information or to start a new build. + The example request below creates a new workflow that performs the archive action. App Store Connect returns the `201` HTTP status code to indicate the successful creation of the workflow and returns information about the workflow. Use the data to access additional information or to start a new build. - Full documentation: - + Full documentation: + - - Parameter requestBody: CiWorkflow representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: CiWorkflow representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createCiWorkflowV1(requestBody: CiWorkflowCreateRequest) -> Request { - return .init(path: "/v1/ciWorkflows", method: .post, requestBody: requestBody) + .init(path: "/v1/ciWorkflows", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/DeleteCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/DeleteCiWorkflowV1.swift index e8aafc8b0..55d018cf7 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/DeleteCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/DeleteCiWorkflowV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Delete a Workflow - Delete an Xcode Cloud workflow and all of its associated data. + # Delete a Workflow + Delete an Xcode Cloud workflow and all of its associated data. - To delete an Xcode Cloud workflow, call this endpoint using the HTTP `DELETE` method like this: - ``` - https://api.appstoreconnect.apple.com/v1/ciWorkflows/9ad354b0-f380-40d3-b94f-dd5225b8b3d5 - ``` - App Store Connect confirms the deletion by responding with the `HTTP/1.1 204 No Content` HTTP status code. + To delete an Xcode Cloud workflow, call this endpoint using the HTTP `DELETE` method like this: + ``` + https://api.appstoreconnect.apple.com/v1/ciWorkflows/9ad354b0-f380-40d3-b94f-dd5225b8b3d5 + ``` + App Store Connect confirms the deletion by responding with the `HTTP/1.1 204 No Content` HTTP status code. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteCiWorkflowV1(id: String) -> Request { - return .init(path: "/v1/ciWorkflows/\(id)", method: .delete) + .init(path: "/v1/ciWorkflows/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/GetCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/GetCiWorkflowV1.swift index bbc5ef288..8d5e44a0b 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/GetCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/GetCiWorkflowV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # Read Xcode Cloud Workflow Information - Get information about a specific Xcode Cloud workflow. + # Read Xcode Cloud Workflow Information + Get information about a specific Xcode Cloud workflow. - The example request below accesses information about an Xcode Cloud workflow. Display the workflow data provided in the response on a dashboard or use it to read additional information; for example, detailed data about builds Xcode Cloud performed. + The example request below accesses information about an Xcode Cloud workflow. Display the workflow data provided in the response on a dashboard or use it to read additional information; for example, detailed data about builds Xcode Cloud performed. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiWorkflowV1(id: String, fields: [GetCiWorkflowV1.Field]? = nil, includes: [GetCiWorkflowV1.Include]? = nil) -> Request { - return .init(path: "/v1/ciWorkflows/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/ciWorkflows/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -95,6 +95,9 @@ public enum GetCiWorkflowV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case macOsVersion, product, repository, xcodeVersion + case macOsVersion + case product + case repository + case xcodeVersion } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/GetRepositoryForCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/GetRepositoryForCiWorkflowV1.swift index 1d6d943eb..e33543b4f 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/GetRepositoryForCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/GetRepositoryForCiWorkflowV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # Read the Repository Information for an Xcode Cloud Workflow - Get information about the Git repository of a specific Xcode Cloud workflow. + # Read the Repository Information for an Xcode Cloud Workflow + Get information about the Git repository of a specific Xcode Cloud workflow. - The example request below retrieves information about an Xcode Cloud workflow’s repository. Use the data provided in the response to read additional information; for example, pull request information. + The example request below retrieves information about an Xcode Cloud workflow’s repository. Use the data provided in the response to read additional information; for example, pull request information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getRepositoryForCiWorkflowV1(id: String, fields: [GetRepositoryForCiWorkflowV1.Field]? = nil, includes: [GetRepositoryForCiWorkflowV1.Include]? = nil) -> Request { - return .init(path: "/v1/ciWorkflows/\(id)/repository", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/ciWorkflows/\(id)/repository", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -65,6 +65,7 @@ public enum GetRepositoryForCiWorkflowV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/ListBuildRunsForCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/ListBuildRunsForCiWorkflowV1.swift index 5155b679e..3f3ed42fa 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/ListBuildRunsForCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/Relationships/ListBuildRunsForCiWorkflowV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Xcode Cloud Builds for a Workflow - List all builds Xcode Cloud performed for a specific workflow. + # List All Xcode Cloud Builds for a Workflow + List all builds Xcode Cloud performed for a specific workflow. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildRunsForCiWorkflowV1(id: String, fields: [ListBuildRunsForCiWorkflowV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListBuildRunsForCiWorkflowV1.Include]? = nil, limits: [ListBuildRunsForCiWorkflowV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciWorkflows/\(id)/buildRuns", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/ciWorkflows/\(id)/buildRuns", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -163,16 +163,21 @@ public enum ListBuildRunsForCiWorkflowV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case builds, destinationBranch, product, pullRequest, sourceBranchOrTag, workflow + case builds + case destinationBranch + case product + case pullRequest + case sourceBranchOrTag + case workflow } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related builds returned (when they are included) - maximum 50 case builds(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/CiWorkflow/UpdateCiWorkflowV1.swift b/Sources/Bagbutik/Endpoints/CiWorkflow/UpdateCiWorkflowV1.swift index 3ff1d11ac..b465833f5 100644 --- a/Sources/Bagbutik/Endpoints/CiWorkflow/UpdateCiWorkflowV1.swift +++ b/Sources/Bagbutik/Endpoints/CiWorkflow/UpdateCiWorkflowV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Update an Xcode Cloud Workflow - Make changes to an Xcode Cloud workflow. + # Update an Xcode Cloud Workflow + Make changes to an Xcode Cloud workflow. - The example request below updates the name of an existing Xcode Cloud workflow. For a successful update, the response includes detailed information about the workflow. Use it to access additional information, start a new build, and so on. + The example request below updates the name of an existing Xcode Cloud workflow. For a successful update, the response includes detailed information about the workflow. Use it to access additional information, start a new build, and so on. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: CiWorkflow representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: CiWorkflow representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateCiWorkflowV1(id: String, requestBody: CiWorkflowUpdateRequest) -> Request { - return .init(path: "/v1/ciWorkflows/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/ciWorkflows/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/CiXcodeVersion/GetCiXcodeVersionV1.swift b/Sources/Bagbutik/Endpoints/CiXcodeVersion/GetCiXcodeVersionV1.swift index b71674995..e46d90f90 100644 --- a/Sources/Bagbutik/Endpoints/CiXcodeVersion/GetCiXcodeVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiXcodeVersion/GetCiXcodeVersionV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # Read Xcode Version Information - Get information about a specific Xcode version that’s available to Xcode Cloud workflows. + # Read Xcode Version Information + Get information about a specific Xcode version that’s available to Xcode Cloud workflows. - The example request below accesses detailed information for a specific Xcode version available to Xcode Cloud workflows. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard or to read additional information; for example, macOS version information. + The example request below accesses detailed information for a specific Xcode version available to Xcode Cloud workflows. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard or to read additional information; for example, macOS version information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related macOsVersions returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related macOsVersions returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCiXcodeVersionV1(id: String, fields: [GetCiXcodeVersionV1.Field]? = nil, includes: [GetCiXcodeVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/ciXcodeVersions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/ciXcodeVersions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/CiXcodeVersion/ListCiXcodeVersionsV1.swift b/Sources/Bagbutik/Endpoints/CiXcodeVersion/ListCiXcodeVersionsV1.swift index b2dc69dc0..ef8adaee0 100644 --- a/Sources/Bagbutik/Endpoints/CiXcodeVersion/ListCiXcodeVersionsV1.swift +++ b/Sources/Bagbutik/Endpoints/CiXcodeVersion/ListCiXcodeVersionsV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Xcode Versions Available in Xcode Cloud - List all Xcode versions that are available to Xcode Cloud workflows. + # List All Xcode Versions Available in Xcode Cloud + List all Xcode versions that are available to Xcode Cloud workflows. - The example request below lists Xcode versions available to Xcode Cloud workflows and supported test destinations, including information about available simulated devices. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard or to read additional information; for example, macOS version information. + The example request below lists Xcode versions available to Xcode Cloud workflows and supported test destinations, including information about available simulated devices. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard or to read additional information; for example, macOS version information. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCiXcodeVersionsV1(fields: [ListCiXcodeVersionsV1.Field]? = nil, includes: [ListCiXcodeVersionsV1.Include]? = nil, limits: [ListCiXcodeVersionsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciXcodeVersions", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/ciXcodeVersions", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/CiXcodeVersion/Relationships/ListMacOsVersionsForCiXcodeVersionV1.swift b/Sources/Bagbutik/Endpoints/CiXcodeVersion/Relationships/ListMacOsVersionsForCiXcodeVersionV1.swift index 5c1cac832..3aa71890d 100644 --- a/Sources/Bagbutik/Endpoints/CiXcodeVersion/Relationships/ListMacOsVersionsForCiXcodeVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/CiXcodeVersion/Relationships/ListMacOsVersionsForCiXcodeVersionV1.swift @@ -1,27 +1,27 @@ public extension Request { /** - # List Available macOS Versions for an Xcode Version - List all macOS versions available in Xcode Cloud that support a specific Xcode version. + # List Available macOS Versions for an Xcode Version + List all macOS versions available in Xcode Cloud that support a specific Xcode version. - The example request below lists macOS versions available for a specific Xcode version. Use the information provided in the response to update workflows, build dashboards, and more. + The example request below lists macOS versions available for a specific Xcode version. Use the information provided in the response to update workflows, build dashboards, and more. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listMacOsVersionsForCiXcodeVersionV1(id: String, fields: [ListMacOsVersionsForCiXcodeVersionV1.Field]? = nil, includes: [ListMacOsVersionsForCiXcodeVersionV1.Include]? = nil, limits: [ListMacOsVersionsForCiXcodeVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/ciXcodeVersions/\(id)/macOsVersions", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/ciXcodeVersions/\(id)/macOsVersions", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/CustomerReview/GetCustomerReviewV1.swift b/Sources/Bagbutik/Endpoints/CustomerReview/GetCustomerReviewV1.swift index 966ca6c74..275cf73b3 100644 --- a/Sources/Bagbutik/Endpoints/CustomerReview/GetCustomerReviewV1.swift +++ b/Sources/Bagbutik/Endpoints/CustomerReview/GetCustomerReviewV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Customer Review Information - Get information about a specific customer review, including the review content. + # Read Customer Review Information + Get information about a specific customer review, including the review content. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCustomerReviewV1(id: String, fields: [GetCustomerReviewV1.Field]? = nil, includes: [GetCustomerReviewV1.Include]? = nil) -> Request { - return .init(path: "/v1/customerReviews/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/customerReviews/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/CustomerReview/Relationships/GetResponseForCustomerReviewV1.swift b/Sources/Bagbutik/Endpoints/CustomerReview/Relationships/GetResponseForCustomerReviewV1.swift index 2e524b9b4..bd1465acc 100644 --- a/Sources/Bagbutik/Endpoints/CustomerReview/Relationships/GetResponseForCustomerReviewV1.swift +++ b/Sources/Bagbutik/Endpoints/CustomerReview/Relationships/GetResponseForCustomerReviewV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Get a Customer Review Response - Get the response to a specific customer review. + # Get a Customer Review Response + Get the response to a specific customer review. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getResponseForCustomerReviewV1(id: String, fields: [GetResponseForCustomerReviewV1.Field]? = nil, includes: [GetResponseForCustomerReviewV1.Include]? = nil) -> Request { - return .init(path: "/v1/customerReviews/\(id)/response", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/customerReviews/\(id)/response", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/CreateCustomerReviewResponseV1.swift b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/CreateCustomerReviewResponseV1.swift index 74f901246..0c6658c6c 100644 --- a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/CreateCustomerReviewResponseV1.swift +++ b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/CreateCustomerReviewResponseV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Create or Update a Response to a Customer Review - Create a response or replace an existing response you wrote to a customer review. + # Create or Update a Response to a Customer Review + Create a response or replace an existing response you wrote to a customer review. - Use this endpoint to create a response to a customer review and publish it in the App Store. If a response already exists, this endpoint updates the response by overwriting it. - Responses don’t appear in the App Store instantly. Allow some time for the App Store to publish the response. + Use this endpoint to create a response to a customer review and publish it in the App Store. If a response already exists, this endpoint updates the response by overwriting it. + Responses don’t appear in the App Store instantly. Allow some time for the App Store to publish the response. - Full documentation: - + Full documentation: + - - Parameter requestBody: CustomerReviewResponse representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: CustomerReviewResponse representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createCustomerReviewResponseV1(requestBody: CustomerReviewResponseV1CreateRequest) -> Request { - return .init(path: "/v1/customerReviewResponses", method: .post, requestBody: requestBody) + .init(path: "/v1/customerReviewResponses", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/DeleteCustomerReviewResponseV1.swift b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/DeleteCustomerReviewResponseV1.swift index c7c3b5e76..b52ca9795 100644 --- a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/DeleteCustomerReviewResponseV1.swift +++ b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/DeleteCustomerReviewResponseV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Delete a Response to a Customer Review - Delete a specific response you wrote to a customer review. + # Delete a Response to a Customer Review + Delete a specific response you wrote to a customer review. - Deletions of responses don’t take effect instantly in the App Store. Allow some time for the deletion to take effect. + Deletions of responses don’t take effect instantly in the App Store. Allow some time for the deletion to take effect. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteCustomerReviewResponseV1(id: String) -> Request { - return .init(path: "/v1/customerReviewResponses/\(id)", method: .delete) + .init(path: "/v1/customerReviewResponses/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/GetCustomerReviewResponseV1.swift b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/GetCustomerReviewResponseV1.swift index 22546ecb1..9bfd96436 100644 --- a/Sources/Bagbutik/Endpoints/CustomerReviewResponse/GetCustomerReviewResponseV1.swift +++ b/Sources/Bagbutik/Endpoints/CustomerReviewResponse/GetCustomerReviewResponseV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Customer Review Response Information - Get information about a specific response you wrote to a customer review, including the response content and its state. + # Read Customer Review Response Information + Get information about a specific response you wrote to a customer review, including the response content and its state. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getCustomerReviewResponseV1(id: String, fields: [GetCustomerReviewResponseV1.Field]? = nil, includes: [GetCustomerReviewResponseV1.Include]? = nil) -> Request { - return .init(path: "/v1/customerReviewResponses/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/customerReviewResponses/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/Device/CreateDeviceV1.swift b/Sources/Bagbutik/Endpoints/Device/CreateDeviceV1.swift index 32162121b..70f455787 100644 --- a/Sources/Bagbutik/Endpoints/Device/CreateDeviceV1.swift +++ b/Sources/Bagbutik/Endpoints/Device/CreateDeviceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Register a New Device - Register a new device for app development. + # Register a New Device + Register a new device for app development. - Full documentation: - + Full documentation: + - - Parameter requestBody: Device representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: Device representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createDeviceV1(requestBody: DeviceCreateRequest) -> Request { - return .init(path: "/v1/devices", method: .post, requestBody: requestBody) + .init(path: "/v1/devices", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Device/GetDeviceV1.swift b/Sources/Bagbutik/Endpoints/Device/GetDeviceV1.swift index 4126edc7b..04ac0c999 100644 --- a/Sources/Bagbutik/Endpoints/Device/GetDeviceV1.swift +++ b/Sources/Bagbutik/Endpoints/Device/GetDeviceV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read Device Information - Get information for a specific device registered to your team. + # Read Device Information + Get information for a specific device registered to your team. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getDeviceV1(id: String, fields: [GetDeviceV1.Field]? = nil) -> Request { - return .init(path: "/v1/devices/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/devices/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Device/ListDevicesV1.swift b/Sources/Bagbutik/Endpoints/Device/ListDevicesV1.swift index 169f9ae05..a8daa2769 100644 --- a/Sources/Bagbutik/Endpoints/Device/ListDevicesV1.swift +++ b/Sources/Bagbutik/Endpoints/Device/ListDevicesV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List Devices - Find and list devices registered to your team. + # List Devices + Find and list devices registered to your team. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter sorts: Attributes by which to sort - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter sorts: Attributes by which to sort + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listDevicesV1(fields: [ListDevicesV1.Field]? = nil, filters: [ListDevicesV1.Filter]? = nil, sorts: [ListDevicesV1.Sort]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/devices", method: .get, parameters: .init(fields: fields, - filters: filters, - sorts: sorts, - limit: limit)) + .init(path: "/v1/devices", method: .get, parameters: .init(fields: fields, + filters: filters, + sorts: sorts, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Device/UpdateDeviceV1.swift b/Sources/Bagbutik/Endpoints/Device/UpdateDeviceV1.swift index c2a9d3591..428d018af 100644 --- a/Sources/Bagbutik/Endpoints/Device/UpdateDeviceV1.swift +++ b/Sources/Bagbutik/Endpoints/Device/UpdateDeviceV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Registered Device - Update the name or status of a specific device. + # Modify a Registered Device + Update the name or status of a specific device. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Device representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Device representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateDeviceV1(id: String, requestBody: DeviceUpdateRequest) -> Request { - return .init(path: "/v1/devices/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/devices/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/DiagnosticSignature/Relationships/ListLogsForDiagnosticSignatureV1.swift b/Sources/Bagbutik/Endpoints/DiagnosticSignature/Relationships/ListLogsForDiagnosticSignatureV1.swift index ee24f07d1..68f0aa978 100644 --- a/Sources/Bagbutik/Endpoints/DiagnosticSignature/Relationships/ListLogsForDiagnosticSignatureV1.swift +++ b/Sources/Bagbutik/Endpoints/DiagnosticSignature/Relationships/ListLogsForDiagnosticSignatureV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # Download Logs for a Diagnostic Signature - Get the anonymized backtrace logs associated with a specific diagnostic signature. + # Download Logs for a Diagnostic Signature + Get the anonymized backtrace logs associated with a specific diagnostic signature. - The example below requests a single disk write diagnostic log for a specific signature. + The example below requests a single disk write diagnostic log for a specific signature. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listLogsForDiagnosticSignatureV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/diagnosticSignatures/\(id)/logs", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/diagnosticSignatures/\(id)/logs", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/CreateEndUserLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/CreateEndUserLicenseAgreementV1.swift index 72c680286..b6c175299 100644 --- a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/CreateEndUserLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/CreateEndUserLicenseAgreementV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Create an End User License Agreement - Add a custom end user license agreement (EULA) to an app and configure the territories to which it applies. + # Create an End User License Agreement + Add a custom end user license agreement (EULA) to an app and configure the territories to which it applies. - Use this endpoint to associate a custom license agreement with an app in the specified App Store territories. Any other territories will use the standard Apple-provided license agreement. - In the following example the request contains a blank value for the `agreementText` attribute. Replace that attribute value with your actual agreement text. + Use this endpoint to associate a custom license agreement with an app in the specified App Store territories. Any other territories will use the standard Apple-provided license agreement. + In the following example the request contains a blank value for the `agreementText` attribute. Replace that attribute value with your actual agreement text. - Full documentation: - + Full documentation: + - - Parameter requestBody: EndUserLicenseAgreement representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: EndUserLicenseAgreement representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createEndUserLicenseAgreementV1(requestBody: EndUserLicenseAgreementCreateRequest) -> Request { - return .init(path: "/v1/endUserLicenseAgreements", method: .post, requestBody: requestBody) + .init(path: "/v1/endUserLicenseAgreements", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/DeleteEndUserLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/DeleteEndUserLicenseAgreementV1.swift index 9cf927015..608da1b17 100644 --- a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/DeleteEndUserLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/DeleteEndUserLicenseAgreementV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an End User License Agreement - Delete the custom end user license agreement that is associated with an app. + # Delete an End User License Agreement + Delete the custom end user license agreement that is associated with an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteEndUserLicenseAgreementV1(id: String) -> Request { - return .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .delete) + .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/GetEndUserLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/GetEndUserLicenseAgreementV1.swift index 29fbb8aa9..3cdef87d1 100644 --- a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/GetEndUserLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/GetEndUserLicenseAgreementV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read End User License Agreement Information - Get the custom end user license agreement associated with an app, and the territories it applies to. + # Read End User License Agreement Information + Get the custom end user license agreement associated with an app, and the territories it applies to. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related territories returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related territories returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getEndUserLicenseAgreementV1(id: String, fields: [GetEndUserLicenseAgreementV1.Field]? = nil, includes: [GetEndUserLicenseAgreementV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -48,6 +48,7 @@ public enum GetEndUserLicenseAgreementV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, territories + case app + case territories } } diff --git a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/Relationships/ListTerritoriesForEndUserLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/Relationships/ListTerritoriesForEndUserLicenseAgreementV1.swift index bf8a2496f..3e295820b 100644 --- a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/Relationships/ListTerritoriesForEndUserLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/Relationships/ListTerritoriesForEndUserLicenseAgreementV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Territories for an End User License Agreement - List all the App Store territories to which a specific custom app license agreement applies. + # List All Territories for an End User License Agreement + List all the App Store territories to which a specific custom app license agreement applies. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listTerritoriesForEndUserLicenseAgreementV1(id: String, fields: [ListTerritoriesForEndUserLicenseAgreementV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/endUserLicenseAgreements/\(id)/territories", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/endUserLicenseAgreements/\(id)/territories", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/UpdateEndUserLicenseAgreementV1.swift b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/UpdateEndUserLicenseAgreementV1.swift index 986a4269b..c8b21d01f 100644 --- a/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/UpdateEndUserLicenseAgreementV1.swift +++ b/Sources/Bagbutik/Endpoints/EndUserLicenseAgreement/UpdateEndUserLicenseAgreementV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Modify an End User License Agreement - Update the text or territories for your custom end user license agreement. + # Modify an End User License Agreement + Update the text or territories for your custom end user license agreement. - Use this endpoint to change the license agreement text or associate the agreement with different App Store territories. - In the following example the request contains a blank value for the `agreementText` attribute. Replace that attribute value with your actual agreement text. - If you change the territories relationship, the new territories replace the original territories. + Use this endpoint to change the license agreement text or associate the agreement with different App Store territories. + In the following example the request contains a blank value for the `agreementText` attribute. Replace that attribute value with your actual agreement text. + If you change the territories relationship, the new territories replace the original territories. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: EndUserLicenseAgreement representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: EndUserLicenseAgreement representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateEndUserLicenseAgreementV1(id: String, requestBody: EndUserLicenseAgreementUpdateRequest) -> Request { - return .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/endUserLicenseAgreements/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/FinanceReport/GetFinanceReportsV1.swift b/Sources/Bagbutik/Endpoints/FinanceReport/GetFinanceReportsV1.swift index ae0800b03..aee834124 100644 --- a/Sources/Bagbutik/Endpoints/FinanceReport/GetFinanceReportsV1.swift +++ b/Sources/Bagbutik/Endpoints/FinanceReport/GetFinanceReportsV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Download Finance Reports - Download finance reports filtered by your specified criteria. + # Download Finance Reports + Download finance reports filtered by your specified criteria. - For more information see [Finance reports](https://help.apple.com/app-store-connect/#/dev716cf3a0d). + For more information see [Finance reports](https://help.apple.com/app-store-connect/#/dev716cf3a0d). - Full documentation: - + Full documentation: + - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getFinanceReportsV1(filters: [GetFinanceReportsV1.Filter]? = nil) -> Request { - return .init(path: "/v1/financeReports", method: .get, parameters: .init(filters: filters)) + .init(path: "/v1/financeReports", method: .get, parameters: .init(filters: filters)) } } @@ -20,7 +20,7 @@ public enum GetFinanceReportsV1 { /** Attributes, relationships, and IDs by which to filter. - Required: regionCode, reportDate, reportType, vendorNumber + Required: `regionCode`, `reportDate`, `reportType`, `vendorNumber` */ public enum Filter: FilterParameter { /// Filter by attribute 'regionCode' diff --git a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/CreateCompatibleVersionsForGameCenterEnabledVersionV1.swift b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/CreateCompatibleVersionsForGameCenterEnabledVersionV1.swift index 158b8ba7e..6c5807cba 100644 --- a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/CreateCompatibleVersionsForGameCenterEnabledVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/CreateCompatibleVersionsForGameCenterEnabledVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Add Compatible Versions to a Game Center Enabled Version + # Add Compatible Versions to a Game Center Enabled Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createCompatibleVersionsForGameCenterEnabledVersionV1(id: String, requestBody: GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - return .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .post, requestBody: requestBody) + .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/DeleteCompatibleVersionsForGameCenterEnabledVersionV1.swift b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/DeleteCompatibleVersionsForGameCenterEnabledVersionV1.swift index 3438d3bd8..8865b1051 100644 --- a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/DeleteCompatibleVersionsForGameCenterEnabledVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/DeleteCompatibleVersionsForGameCenterEnabledVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Remove Compatible Versions from a Game Center Enabled Version + # Remove Compatible Versions from a Game Center Enabled Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteCompatibleVersionsForGameCenterEnabledVersionV1(id: String, requestBody: GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - return .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .delete, requestBody: requestBody) + .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionIdsForGameCenterEnabledVersionV1.swift b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionIdsForGameCenterEnabledVersionV1.swift index 1b4748370..905ea5db5 100644 --- a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionIdsForGameCenterEnabledVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionIdsForGameCenterEnabledVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Get All Compatible Version IDs for a Game Center Enabled Version + # Get All Compatible Version IDs for a Game Center Enabled Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCompatibleVersionIdsForGameCenterEnabledVersionV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionsForGameCenterEnabledVersionV1.swift b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionsForGameCenterEnabledVersionV1.swift index c5259a78b..75771fd35 100644 --- a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionsForGameCenterEnabledVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ListCompatibleVersionsForGameCenterEnabledVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Compatible Versions for a Game Center Enabled Version + # List All Compatible Versions for a Game Center Enabled Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCompatibleVersionsForGameCenterEnabledVersionV1(id: String, fields: [ListCompatibleVersionsForGameCenterEnabledVersionV1.Field]? = nil, @@ -20,11 +20,11 @@ public extension Request { sorts: [ListCompatibleVersionsForGameCenterEnabledVersionV1.Sort]? = nil, limits: [ListCompatibleVersionsForGameCenterEnabledVersionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/gameCenterEnabledVersions/\(id)/compatibleVersions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/gameCenterEnabledVersions/\(id)/compatibleVersions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -112,7 +112,8 @@ public enum ListCompatibleVersionsForGameCenterEnabledVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, compatibleVersions + case app + case compatibleVersions } /** @@ -127,9 +128,9 @@ public enum ListCompatibleVersionsForGameCenterEnabledVersionV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related compatibleVersions returned (when they are included) - maximum 50 case compatibleVersions(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ReplaceCompatibleVersionsForGameCenterEnabledVersionV1.swift b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ReplaceCompatibleVersionsForGameCenterEnabledVersionV1.swift index 61eded192..1030c1df9 100644 --- a/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ReplaceCompatibleVersionsForGameCenterEnabledVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/GameCenterEnabledVersion/Relationships/ReplaceCompatibleVersionsForGameCenterEnabledVersionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Replace All Compatible Versions for a Game Center Enabled Version + # Replace All Compatible Versions for a Game Center Enabled Version - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func replaceCompatibleVersionsForGameCenterEnabledVersionV1(id: String, requestBody: GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - return .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .patch, requestBody: requestBody) + .init(path: "/v1/gameCenterEnabledVersions/\(id)/relationships/compatibleVersions", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/CreateInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/CreateInAppPurchaseV2.swift index 8ca78e3db..82a2b3d4c 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/CreateInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/CreateInAppPurchaseV2.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an In-App Purchase - Create an in-app purchase, including a consumable, non-consumable, or non-renewing subscription. + # Create an In-App Purchase + Create an in-app purchase, including a consumable, non-consumable, or non-renewing subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: InAppPurchase representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: InAppPurchase representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createInAppPurchaseV2(requestBody: InAppPurchaseV2CreateRequest) -> Request { - return .init(path: "/v2/inAppPurchases", method: .post, requestBody: requestBody) + .init(path: "/v2/inAppPurchases", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/DeleteInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/DeleteInAppPurchaseV2.swift index 6cb189770..151ee4a76 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/DeleteInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/DeleteInAppPurchaseV2.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an In-App Purchase - Delete a specific in-app purchase from your app. + # Delete an In-App Purchase + Delete a specific in-app purchase from your app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteInAppPurchaseV2(id: String) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)", method: .delete) + .init(path: "/v2/inAppPurchases/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV1.swift index 5af4acf8b..39e4aab23 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read In-App Purchase Information - Get information about an in-app purchase. + # Read In-App Purchase Information + Get information about an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related apps returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related apps returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchaseV1(id: String, fields: [GetInAppPurchaseV1.Field]? = nil, includes: [GetInAppPurchaseV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/inAppPurchases/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/inAppPurchases/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV2.swift index 1b39d418e..fb09efce7 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/GetInAppPurchaseV2.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read In-App Purchase Information - Get information about an in-app purchase. + # Read In-App Purchase Information + Get information about an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchaseV2(id: String, fields: [GetInAppPurchaseV2.Field]? = nil, includes: [GetInAppPurchaseV2.Include]? = nil, limits: [GetInAppPurchaseV2.Limit]? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v2/inAppPurchases/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -118,7 +118,12 @@ public enum GetInAppPurchaseV2 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewScreenshot, content, iapPriceSchedule, inAppPurchaseLocalizations, pricePoints, promotedPurchase + case appStoreReviewScreenshot + case content + case iapPriceSchedule + case inAppPurchaseLocalizations + case pricePoints + case promotedPurchase } /** diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetAppStoreReviewScreenshotForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetAppStoreReviewScreenshotForInAppPurchaseV2.swift index 7547aec09..aa84f6ce8 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetAppStoreReviewScreenshotForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetAppStoreReviewScreenshotForInAppPurchaseV2.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Review Screenshot Information for an In-App Purchase - Get information about a review screenshot for a specific in-app purchase. + # Read Review Screenshot Information for an In-App Purchase + Get information about a review screenshot for a specific in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreReviewScreenshotForInAppPurchaseV2(id: String, fields: [GetAppStoreReviewScreenshotForInAppPurchaseV2.Field]? = nil, includes: [GetAppStoreReviewScreenshotForInAppPurchaseV2.Include]? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/appStoreReviewScreenshot", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v2/inAppPurchases/\(id)/appStoreReviewScreenshot", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetContentForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetContentForInAppPurchaseV2.swift index ac29dfab5..3f22dd227 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetContentForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetContentForInAppPurchaseV2.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Content Information for an In-App Purchase - Get the details about hosted content for an in-app purchase. + # Read Content Information for an In-App Purchase + Get the details about hosted content for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getContentForInAppPurchaseV2(id: String, fields: [GetContentForInAppPurchaseV2.Field]? = nil, includes: [GetContentForInAppPurchaseV2.Include]? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/content", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v2/inAppPurchases/\(id)/content", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetIapPriceScheduleForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetIapPriceScheduleForInAppPurchaseV2.swift index 227747f07..fee104bf6 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetIapPriceScheduleForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetIapPriceScheduleForInAppPurchaseV2.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read the Price Schedule for an In-App Purchase - Get a list of the scheduled prices for an in-app purchase. + # Read the Price Schedule for an In-App Purchase + Get a list of the scheduled prices for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related manualPrices returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related manualPrices returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getIapPriceScheduleForInAppPurchaseV2(id: String, fields: [GetIapPriceScheduleForInAppPurchaseV2.Field]? = nil, includes: [GetIapPriceScheduleForInAppPurchaseV2.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/iapPriceSchedule", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v2/inAppPurchases/\(id)/iapPriceSchedule", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -70,6 +70,7 @@ public enum GetIapPriceScheduleForInAppPurchaseV2 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchase, manualPrices + case inAppPurchase + case manualPrices } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetPromotedPurchaseForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetPromotedPurchaseForInAppPurchaseV2.swift index c7ea99a47..58c4ecc86 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetPromotedPurchaseForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/GetPromotedPurchaseForInAppPurchaseV2.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Promoted Purchase Information for an In-App Purchase - Get details about the promoted purchase of an in-app purchase. + # Read Promoted Purchase Information for an In-App Purchase + Get details about the promoted purchase of an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPromotedPurchaseForInAppPurchaseV2(id: String, fields: [GetPromotedPurchaseForInAppPurchaseV2.Field]? = nil, includes: [GetPromotedPurchaseForInAppPurchaseV2.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/promotedPurchase", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v2/inAppPurchases/\(id)/promotedPurchase", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -103,6 +103,8 @@ public enum GetPromotedPurchaseForInAppPurchaseV2 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchaseV2, promotionImages, subscription + case inAppPurchaseV2 + case promotionImages + case subscription } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListInAppPurchaseLocalizationsForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListInAppPurchaseLocalizationsForInAppPurchaseV2.swift index d79ddc5f6..d6099ce06 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListInAppPurchaseLocalizationsForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListInAppPurchaseLocalizationsForInAppPurchaseV2.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Localizations for an In-App Purchase - Get a list of localized display names and descriptions for a specific in-app purchase. + # List All Localizations for an In-App Purchase + Get a list of localized display names and descriptions for a specific in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listInAppPurchaseLocalizationsForInAppPurchaseV2(id: String, fields: [ListInAppPurchaseLocalizationsForInAppPurchaseV2.Field]? = nil, includes: [ListInAppPurchaseLocalizationsForInAppPurchaseV2.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/inAppPurchaseLocalizations", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v2/inAppPurchases/\(id)/inAppPurchaseLocalizations", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListPricePointsForInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListPricePointsForInAppPurchaseV2.swift index 2132ae0a1..f322461a1 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListPricePointsForInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/Relationships/ListPricePointsForInAppPurchaseV2.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Price Points for an In-App Purchase - Get a list of possible price points for an in-app purchase. + # List All Price Points for an In-App Purchase + Get a list of possible price points for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricePointsForInAppPurchaseV2(id: String, fields: [ListPricePointsForInAppPurchaseV2.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricePointsForInAppPurchaseV2.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v2/inAppPurchases/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchase/UpdateInAppPurchaseV2.swift b/Sources/Bagbutik/Endpoints/InAppPurchase/UpdateInAppPurchaseV2.swift index 059044e86..73fd9074f 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchase/UpdateInAppPurchaseV2.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchase/UpdateInAppPurchaseV2.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an In-App Purchase - Update the reference name of a specific in-app purchase. + # Modify an In-App Purchase + Update the reference name of a specific in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: InAppPurchase representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: InAppPurchase representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateInAppPurchaseV2(id: String, requestBody: InAppPurchaseV2UpdateRequest) -> Request { - return .init(path: "/v2/inAppPurchases/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v2/inAppPurchases/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/CreateInAppPurchaseAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/CreateInAppPurchaseAppStoreReviewScreenshotV1.swift index af75fa0c4..5029e39d8 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/CreateInAppPurchaseAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/CreateInAppPurchaseAppStoreReviewScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an In-App Purchase Review Screenshot - Reserve a review screenshot for an in-app purchase. + # Create an In-App Purchase Review Screenshot + Reserve a review screenshot for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter requestBody: InAppPurchaseAppStoreReviewScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: InAppPurchaseAppStoreReviewScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createInAppPurchaseAppStoreReviewScreenshotV1(requestBody: InAppPurchaseAppStoreReviewScreenshotCreateRequest) -> Request { - return .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots", method: .post, requestBody: requestBody) + .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/DeleteInAppPurchaseAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/DeleteInAppPurchaseAppStoreReviewScreenshotV1.swift index 6274e5d3e..09372c50c 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/DeleteInAppPurchaseAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/DeleteInAppPurchaseAppStoreReviewScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Review Screenshot for an In-App Purchase - Delete an image that you uploaded for review of an in-app purchase. + # Delete a Review Screenshot for an In-App Purchase + Delete an image that you uploaded for review of an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteInAppPurchaseAppStoreReviewScreenshotV1(id: String) -> Request { - return .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .delete) + .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/GetInAppPurchaseAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/GetInAppPurchaseAppStoreReviewScreenshotV1.swift index d27122b46..b7943664a 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/GetInAppPurchaseAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/GetInAppPurchaseAppStoreReviewScreenshotV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read In-App Purchase Review Screenshot Information - Get information about a specific review screenshot for an in-app purchase. + # Read In-App Purchase Review Screenshot Information + Get information about a specific review screenshot for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchaseAppStoreReviewScreenshotV1(id: String, fields: [GetInAppPurchaseAppStoreReviewScreenshotV1.Field]? = nil, includes: [GetInAppPurchaseAppStoreReviewScreenshotV1.Include]? = nil) -> Request { - return .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/UpdateInAppPurchaseAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/UpdateInAppPurchaseAppStoreReviewScreenshotV1.swift index acfe3f7aa..f7f95dca9 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/UpdateInAppPurchaseAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseAppStoreReviewScreenshot/UpdateInAppPurchaseAppStoreReviewScreenshotV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Commit a Review Screenshot for an In-App Purchase - Commit an uploaded image asset as a review screenshot for an in-app purchase. + # Commit a Review Screenshot for an In-App Purchase + Commit an uploaded image asset as a review screenshot for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: InAppPurchaseAppStoreReviewScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: InAppPurchaseAppStoreReviewScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateInAppPurchaseAppStoreReviewScreenshotV1(id: String, requestBody: InAppPurchaseAppStoreReviewScreenshotUpdateRequest) -> Request { - return .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/inAppPurchaseAppStoreReviewScreenshots/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseContent/GetInAppPurchaseContentV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseContent/GetInAppPurchaseContentV1.swift index 3d3ea3fc5..be7627a16 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseContent/GetInAppPurchaseContentV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseContent/GetInAppPurchaseContentV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read In-App Purchase Content Information - Get details about uploaded in-app purchase content. + # Read In-App Purchase Content Information + Get details about uploaded in-app purchase content. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchaseContentV1(id: String, fields: [GetInAppPurchaseContentV1.Field]? = nil, includes: [GetInAppPurchaseContentV1.Include]? = nil) -> Request { - return .init(path: "/v1/inAppPurchaseContents/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/inAppPurchaseContents/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/CreateInAppPurchaseLocalizationV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/CreateInAppPurchaseLocalizationV1.swift index 1e1e19ecb..dcb04636d 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/CreateInAppPurchaseLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/CreateInAppPurchaseLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an In-App Purchase Localization - Create a localized display name and description for an in-app purchase. + # Create an In-App Purchase Localization + Create a localized display name and description for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter requestBody: InAppPurchaseLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: InAppPurchaseLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createInAppPurchaseLocalizationV1(requestBody: InAppPurchaseLocalizationCreateRequest) -> Request { - return .init(path: "/v1/inAppPurchaseLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/inAppPurchaseLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/DeleteInAppPurchaseLocalizationV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/DeleteInAppPurchaseLocalizationV1.swift index ba0f03098..f005be8d9 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/DeleteInAppPurchaseLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/DeleteInAppPurchaseLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an In-App Purchase Localization - Delete the metadata for a single in-app purchase localization. + # Delete an In-App Purchase Localization + Delete the metadata for a single in-app purchase localization. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteInAppPurchaseLocalizationV1(id: String) -> Request { - return .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .delete) + .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/GetInAppPurchaseLocalizationV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/GetInAppPurchaseLocalizationV1.swift index 1956fcaad..d1e0f63c4 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/GetInAppPurchaseLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/GetInAppPurchaseLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read In-App Purchase Localization Information - Get the display name and description for a specific locale for an in-app purchase. + # Read In-App Purchase Localization Information + Get the display name and description for a specific locale for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchaseLocalizationV1(id: String, fields: [GetInAppPurchaseLocalizationV1.Field]? = nil, includes: [GetInAppPurchaseLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/UpdateInAppPurchaseLocalizationV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/UpdateInAppPurchaseLocalizationV1.swift index 2d896903a..a38ab7041 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/UpdateInAppPurchaseLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseLocalization/UpdateInAppPurchaseLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an In-App Purchase Localization - Update the display name and description for a specific locale of an in-app purchase. + # Modify an In-App Purchase Localization + Update the display name and description for a specific locale of an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: InAppPurchaseLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: InAppPurchaseLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateInAppPurchaseLocalizationV1(id: String, requestBody: InAppPurchaseLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/inAppPurchaseLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/CreateInAppPurchasePriceScheduleV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/CreateInAppPurchasePriceScheduleV1.swift index 5acd9ccf1..3c8ce3c3a 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/CreateInAppPurchasePriceScheduleV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/CreateInAppPurchasePriceScheduleV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Add a Scheduled Price Change to an In-App Purchase - Create a scheduled price change for an in-app purchase. + # Add a Scheduled Price Change to an In-App Purchase + Create a scheduled price change for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter requestBody: InAppPurchasePriceSchedule representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: InAppPurchasePriceSchedule representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createInAppPurchasePriceScheduleV1(requestBody: InAppPurchasePriceScheduleCreateRequest) -> Request { - return .init(path: "/v1/inAppPurchasePriceSchedules", method: .post, requestBody: requestBody) + .init(path: "/v1/inAppPurchasePriceSchedules", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/GetInAppPurchasePriceScheduleV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/GetInAppPurchasePriceScheduleV1.swift index e58ffe8c8..6401b3712 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/GetInAppPurchasePriceScheduleV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/GetInAppPurchasePriceScheduleV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read In-App Purchase Price Schedule Information - Get information about a specific scheduled price change for an in-app purchase. + # Read In-App Purchase Price Schedule Information + Get information about a specific scheduled price change for an in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related manualPrices returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related manualPrices returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getInAppPurchasePriceScheduleV1(id: String, fields: [GetInAppPurchasePriceScheduleV1.Field]? = nil, includes: [GetInAppPurchasePriceScheduleV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/inAppPurchasePriceSchedules/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/inAppPurchasePriceSchedules/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -50,6 +50,7 @@ public enum GetInAppPurchasePriceScheduleV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchase, manualPrices + case inAppPurchase + case manualPrices } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/Relationships/ListManualPricesForInAppPurchasePriceScheduleV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/Relationships/ListManualPricesForInAppPurchasePriceScheduleV1.swift index e7e321153..e5da672a9 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/Relationships/ListManualPricesForInAppPurchasePriceScheduleV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchasePriceSchedule/Relationships/ListManualPricesForInAppPurchasePriceScheduleV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Read Price Information for an In-App Purchase Price Schedule - Get information about a set price or prices for an in-app purchase price schedule. + # Read Price Information for an In-App Purchase Price Schedule + Get information about a set price or prices for an in-app purchase price schedule. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listManualPricesForInAppPurchasePriceScheduleV1(id: String, fields: [ListManualPricesForInAppPurchasePriceScheduleV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListManualPricesForInAppPurchasePriceScheduleV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/inAppPurchasePriceSchedules/\(id)/manualPrices", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/inAppPurchasePriceSchedules/\(id)/manualPrices", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -70,6 +70,7 @@ public enum ListManualPricesForInAppPurchasePriceScheduleV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchasePricePoint, territory + case inAppPurchasePricePoint + case territory } } diff --git a/Sources/Bagbutik/Endpoints/InAppPurchaseSubmission/CreateInAppPurchaseSubmissionV1.swift b/Sources/Bagbutik/Endpoints/InAppPurchaseSubmission/CreateInAppPurchaseSubmissionV1.swift index d08a93dda..ee3867f66 100644 --- a/Sources/Bagbutik/Endpoints/InAppPurchaseSubmission/CreateInAppPurchaseSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/InAppPurchaseSubmission/CreateInAppPurchaseSubmissionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Review Submission for an In-App Purchase - Create an in-app purchase submission for review. + # Create a Review Submission for an In-App Purchase + Create an in-app purchase submission for review. - Full documentation: - + Full documentation: + - - Parameter requestBody: InAppPurchaseSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: InAppPurchaseSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createInAppPurchaseSubmissionV1(requestBody: InAppPurchaseSubmissionCreateRequest) -> Request { - return .init(path: "/v1/inAppPurchaseSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/inAppPurchaseSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/PreReleaseVersion/GetPreReleaseVersionV1.swift b/Sources/Bagbutik/Endpoints/PreReleaseVersion/GetPreReleaseVersionV1.swift index fa5f57d6e..56e4bcb98 100644 --- a/Sources/Bagbutik/Endpoints/PreReleaseVersion/GetPreReleaseVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/PreReleaseVersion/GetPreReleaseVersionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Prerelease Version Information - Get information about a specific prerelease version. + # Read Prerelease Version Information + Get information about a specific prerelease version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related builds returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPreReleaseVersionV1(id: String, fields: [GetPreReleaseVersionV1.Field]? = nil, includes: [GetPreReleaseVersionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/preReleaseVersions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/preReleaseVersions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -115,6 +115,7 @@ public enum GetPreReleaseVersionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, builds + case app + case builds } } diff --git a/Sources/Bagbutik/Endpoints/PreReleaseVersion/ListPreReleaseVersionsV1.swift b/Sources/Bagbutik/Endpoints/PreReleaseVersion/ListPreReleaseVersionsV1.swift index fd61f3c9e..778372574 100644 --- a/Sources/Bagbutik/Endpoints/PreReleaseVersion/ListPreReleaseVersionsV1.swift +++ b/Sources/Bagbutik/Endpoints/PreReleaseVersion/ListPreReleaseVersionsV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Prerelease Versions - Get a list of prerelease versions for all apps. + # List Prerelease Versions + Get a list of prerelease versions for all apps. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPreReleaseVersionsV1(fields: [ListPreReleaseVersionsV1.Field]? = nil, filters: [ListPreReleaseVersionsV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListPreReleaseVersionsV1.Sort]? = nil, limits: [ListPreReleaseVersionsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/preReleaseVersions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/preReleaseVersions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -152,7 +152,8 @@ public enum ListPreReleaseVersionsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, builds + case app + case builds } /** @@ -167,9 +168,9 @@ public enum ListPreReleaseVersionsV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related builds returned (when they are included) - maximum 50 case builds(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/GetAppForPreReleaseVersionV1.swift b/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/GetAppForPreReleaseVersionV1.swift index c1e133d63..6199f7857 100644 --- a/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/GetAppForPreReleaseVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/GetAppForPreReleaseVersionV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the App Information of a Prerelease Version - Get the app information for a specific prerelease version. + # Read the App Information of a Prerelease Version + Get the app information for a specific prerelease version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppForPreReleaseVersionV1(id: String, fields: [GetAppForPreReleaseVersionV1.Field]? = nil) -> Request { - return .init(path: "/v1/preReleaseVersions/\(id)/app", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/preReleaseVersions/\(id)/app", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/ListBuildsForPreReleaseVersionV1.swift b/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/ListBuildsForPreReleaseVersionV1.swift index b040d3612..6b93a694c 100644 --- a/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/ListBuildsForPreReleaseVersionV1.swift +++ b/Sources/Bagbutik/Endpoints/PreReleaseVersion/Relationships/ListBuildsForPreReleaseVersionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Builds of a Prerelease Version - Get a list of builds of a specific prerelease version. + # List All Builds of a Prerelease Version + Get a list of builds of a specific prerelease version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listBuildsForPreReleaseVersionV1(id: String, fields: [ListBuildsForPreReleaseVersionV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/preReleaseVersions/\(id)/builds", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/preReleaseVersions/\(id)/builds", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/CreateProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/CreateProfileV1.swift index 4e8d1ba8e..daa5ec22b 100644 --- a/Sources/Bagbutik/Endpoints/Profile/CreateProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/CreateProfileV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Profile - Create a new provisioning profile. + # Create a Profile + Create a new provisioning profile. - Full documentation: - + Full documentation: + - - Parameter requestBody: Profile representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: Profile representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createProfileV1(requestBody: ProfileCreateRequest) -> Request { - return .init(path: "/v1/profiles", method: .post, requestBody: requestBody) + .init(path: "/v1/profiles", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/DeleteProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/DeleteProfileV1.swift index 4138f366f..ee2f7e50a 100644 --- a/Sources/Bagbutik/Endpoints/Profile/DeleteProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/DeleteProfileV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # Delete a Profile - Delete a provisioning profile that is used for app development or distribution. + # Delete a Profile + Delete a provisioning profile that is used for app development or distribution. - You can delete provisioning profiles, and may wish to do so if they are expiring or obsolete. + You can delete provisioning profiles, and may wish to do so if they are expiring or obsolete. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteProfileV1(id: String) -> Request { - return .init(path: "/v1/profiles/\(id)", method: .delete) + .init(path: "/v1/profiles/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/GetProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/GetProfileV1.swift index f26844b18..f9793e686 100644 --- a/Sources/Bagbutik/Endpoints/Profile/GetProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/GetProfileV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read and Download Profile Information - Get information for a specific provisioning profile and download its data. + # Read and Download Profile Information + Get information for a specific provisioning profile and download its data. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getProfileV1(id: String, fields: [GetProfileV1.Field]? = nil, includes: [GetProfileV1.Include]? = nil, limits: [GetProfileV1.Limit]? = nil) -> Request { - return .init(path: "/v1/profiles/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/profiles/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -87,7 +87,9 @@ public enum GetProfileV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case bundleId, certificates, devices + case bundleId + case certificates + case devices } /** diff --git a/Sources/Bagbutik/Endpoints/Profile/ListProfilesV1.swift b/Sources/Bagbutik/Endpoints/Profile/ListProfilesV1.swift index ed876f899..31573b914 100644 --- a/Sources/Bagbutik/Endpoints/Profile/ListProfilesV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/ListProfilesV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List and Download Profiles - Find and list provisioning profiles and download their data. + # List and Download Profiles + Find and list provisioning profiles and download their data. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listProfilesV1(fields: [ListProfilesV1.Field]? = nil, filters: [ListProfilesV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListProfilesV1.Sort]? = nil, limits: [ListProfilesV1.Limit]? = nil) -> Request { - return .init(path: "/v1/profiles", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/profiles", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -105,7 +105,9 @@ public enum ListProfilesV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case bundleId, certificates, devices + case bundleId + case certificates + case devices } /** @@ -126,11 +128,11 @@ public enum ListProfilesV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related certificates returned (when they are included) - maximum 50 case certificates(Int) /// Maximum number of related devices returned (when they are included) - maximum 50 case devices(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/Relationships/GetBundleIdForProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/Relationships/GetBundleIdForProfileV1.swift index 03b3153c3..516e5e158 100644 --- a/Sources/Bagbutik/Endpoints/Profile/Relationships/GetBundleIdForProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/Relationships/GetBundleIdForProfileV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read the Bundle ID in a Profile - Get the bundle ID information for a specific provisioning profile. + # Read the Bundle ID in a Profile + Get the bundle ID information for a specific provisioning profile. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getBundleIdForProfileV1(id: String, fields: [GetBundleIdForProfileV1.Field]? = nil) -> Request { - return .init(path: "/v1/profiles/\(id)/bundleId", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/profiles/\(id)/bundleId", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/Relationships/ListCertificatesForProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/Relationships/ListCertificatesForProfileV1.swift index f7129a563..ab1ca278e 100644 --- a/Sources/Bagbutik/Endpoints/Profile/Relationships/ListCertificatesForProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/Relationships/ListCertificatesForProfileV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Certificates in a Profile - Get a list of all certificates and their data for a specific provisioning profile. + # List All Certificates in a Profile + Get a list of all certificates and their data for a specific provisioning profile. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCertificatesForProfileV1(id: String, fields: [ListCertificatesForProfileV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/profiles/\(id)/certificates", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/profiles/\(id)/certificates", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Profile/Relationships/ListDevicesForProfileV1.swift b/Sources/Bagbutik/Endpoints/Profile/Relationships/ListDevicesForProfileV1.swift index 52a4ca8f1..bb4608d34 100644 --- a/Sources/Bagbutik/Endpoints/Profile/Relationships/ListDevicesForProfileV1.swift +++ b/Sources/Bagbutik/Endpoints/Profile/Relationships/ListDevicesForProfileV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Devices in a Profile - Get a list of all devices for a specific provisioning profile. + # List All Devices in a Profile + Get a list of all devices for a specific provisioning profile. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listDevicesForProfileV1(id: String, fields: [ListDevicesForProfileV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/profiles/\(id)/devices", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/profiles/\(id)/devices", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchase/CreatePromotedPurchaseV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchase/CreatePromotedPurchaseV1.swift index 9fc502549..e295aa98b 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchase/CreatePromotedPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchase/CreatePromotedPurchaseV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Promote a Purchase - Add an existing in-app purchase or auto-renewable subscription to the promoted in-app purchases on an app listing in the App Store. + # Promote a Purchase + Add an existing in-app purchase or auto-renewable subscription to the promoted in-app purchases on an app listing in the App Store. - Full documentation: - + Full documentation: + - - Parameter requestBody: PromotedPurchase representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: PromotedPurchase representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createPromotedPurchaseV1(requestBody: PromotedPurchaseCreateRequest) -> Request { - return .init(path: "/v1/promotedPurchases", method: .post, requestBody: requestBody) + .init(path: "/v1/promotedPurchases", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchase/DeletePromotedPurchaseV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchase/DeletePromotedPurchaseV1.swift index 10313109e..5a96b3bda 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchase/DeletePromotedPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchase/DeletePromotedPurchaseV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Remove a Promoted Purchase - Remove a promotion for an in-app purchase or auto-renewable subscription from the App Store listing. + # Remove a Promoted Purchase + Remove a promotion for an in-app purchase or auto-renewable subscription from the App Store listing. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deletePromotedPurchaseV1(id: String) -> Request { - return .init(path: "/v1/promotedPurchases/\(id)", method: .delete) + .init(path: "/v1/promotedPurchases/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchase/GetPromotedPurchaseV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchase/GetPromotedPurchaseV1.swift index 960be0fe4..bacabdd39 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchase/GetPromotedPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchase/GetPromotedPurchaseV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Promoted Purchase Information - Get details about a specific promoted in-app purchase. + # Read Promoted Purchase Information + Get details about a specific promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPromotedPurchaseV1(id: String, fields: [GetPromotedPurchaseV1.Field]? = nil, includes: [GetPromotedPurchaseV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/promotedPurchases/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/promotedPurchases/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -61,6 +61,8 @@ public enum GetPromotedPurchaseV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchaseV2, promotionImages, subscription + case inAppPurchaseV2 + case promotionImages + case subscription } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchase/Relationships/ListPromotionImagesForPromotedPurchaseV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchase/Relationships/ListPromotionImagesForPromotedPurchaseV1.swift index 88411ea87..603563133 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchase/Relationships/ListPromotionImagesForPromotedPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchase/Relationships/ListPromotionImagesForPromotedPurchaseV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Promoted Purchase Image Information for an In-App Purchase - Get information about a promotional image for a promoted in-app purchase. + # Read Promoted Purchase Image Information for an In-App Purchase + Get information about a promotional image for a promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPromotionImagesForPromotedPurchaseV1(id: String, fields: [ListPromotionImagesForPromotedPurchaseV1.Field]? = nil, includes: [ListPromotionImagesForPromotedPurchaseV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/promotedPurchases/\(id)/promotionImages", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/promotedPurchases/\(id)/promotionImages", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchase/UpdatePromotedPurchaseV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchase/UpdatePromotedPurchaseV1.swift index 112f57bc0..3640bd06f 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchase/UpdatePromotedPurchaseV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchase/UpdatePromotedPurchaseV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Promoted In-App Purchase - Update the visibility of a promoted in-app purchase. + # Modify a Promoted In-App Purchase + Update the visibility of a promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: PromotedPurchase representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: PromotedPurchase representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updatePromotedPurchaseV1(id: String, requestBody: PromotedPurchaseUpdateRequest) -> Request { - return .init(path: "/v1/promotedPurchases/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/promotedPurchases/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/CreatePromotedPurchaseImageV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/CreatePromotedPurchaseImageV1.swift index 3391f3a9a..1928f03ec 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/CreatePromotedPurchaseImageV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/CreatePromotedPurchaseImageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Promoted Purchase Image for an In-App Purchase - Reserve an image asset to appear in the App Store, representing a promoted in-app purchase. + # Create a Promoted Purchase Image for an In-App Purchase + Reserve an image asset to appear in the App Store, representing a promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter requestBody: PromotedPurchaseImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: PromotedPurchaseImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createPromotedPurchaseImageV1(requestBody: PromotedPurchaseImageCreateRequest) -> Request { - return .init(path: "/v1/promotedPurchaseImages", method: .post, requestBody: requestBody) + .init(path: "/v1/promotedPurchaseImages", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/DeletePromotedPurchaseImageV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/DeletePromotedPurchaseImageV1.swift index d89c1d1bf..e8a43f3b0 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/DeletePromotedPurchaseImageV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/DeletePromotedPurchaseImageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Promoted Purchase Image - Delete the image asset that appears on the App Store listing that represents a promoted in-app purchase. + # Delete a Promoted Purchase Image + Delete the image asset that appears on the App Store listing that represents a promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deletePromotedPurchaseImageV1(id: String) -> Request { - return .init(path: "/v1/promotedPurchaseImages/\(id)", method: .delete) + .init(path: "/v1/promotedPurchaseImages/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/GetPromotedPurchaseImageV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/GetPromotedPurchaseImageV1.swift index 94e9decdd..b47011440 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/GetPromotedPurchaseImageV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/GetPromotedPurchaseImageV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Get Promoted Purchase Image Information - Get information about a specific image for a promoted in-app purchase. + # Get Promoted Purchase Image Information + Get information about a specific image for a promoted in-app purchase. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPromotedPurchaseImageV1(id: String, fields: [GetPromotedPurchaseImageV1.Field]? = nil, includes: [GetPromotedPurchaseImageV1.Include]? = nil) -> Request { - return .init(path: "/v1/promotedPurchaseImages/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/promotedPurchaseImages/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/UpdatePromotedPurchaseImageV1.swift b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/UpdatePromotedPurchaseImageV1.swift index a9d12bf07..8a603e315 100644 --- a/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/UpdatePromotedPurchaseImageV1.swift +++ b/Sources/Bagbutik/Endpoints/PromotedPurchaseImage/UpdatePromotedPurchaseImageV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Commit an Image for a Promoted Purchase - Commit an uploaded image asset as a promoted in-app purchase image. + # Commit an Image for a Promoted Purchase + Commit an uploaded image asset as a promoted in-app purchase image. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: PromotedPurchaseImage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: PromotedPurchaseImage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updatePromotedPurchaseImageV1(id: String, requestBody: PromotedPurchaseImageUpdateRequest) -> Request { - return .init(path: "/v1/promotedPurchaseImages/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/promotedPurchaseImages/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmission/CreateReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmission/CreateReviewSubmissionV1.swift index 084c911bb..00a17b2cd 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmission/CreateReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmission/CreateReviewSubmissionV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/reviewSubmissions + # POST /v1/reviewSubmissions - Full documentation: - + Full documentation: + - - Parameter requestBody: ReviewSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: ReviewSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createReviewSubmissionV1(requestBody: ReviewSubmissionCreateRequest) -> Request { - return .init(path: "/v1/reviewSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/reviewSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmission/GetReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmission/GetReviewSubmissionV1.swift index b5432174d..f8494225a 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmission/GetReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmission/GetReviewSubmissionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/reviewSubmissions/{id} + # GET /v1/reviewSubmissions/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related items returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related items returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getReviewSubmissionV1(id: String, fields: [GetReviewSubmissionV1.Field]? = nil, includes: [GetReviewSubmissionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/reviewSubmissions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/reviewSubmissions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -59,6 +59,8 @@ public enum GetReviewSubmissionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appStoreVersionForReview, items + case app + case appStoreVersionForReview + case items } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmission/ListReviewSubmissionsV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmission/ListReviewSubmissionsV1.swift index 72a218d15..1bb5f29e5 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmission/ListReviewSubmissionsV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmission/ListReviewSubmissionsV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # GET /v1/reviewSubmissions + # GET /v1/reviewSubmissions - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listReviewSubmissionsV1(fields: [ListReviewSubmissionsV1.Field]? = nil, filters: [ListReviewSubmissionsV1.Filter]? = nil, includes: [ListReviewSubmissionsV1.Include]? = nil, limits: [ListReviewSubmissionsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/reviewSubmissions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/reviewSubmissions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -59,7 +59,7 @@ public enum ListReviewSubmissionsV1 { /** Attributes, relationships, and IDs by which to filter. - Required: app + Required: `app` */ public enum Filter: FilterParameter { /// Filter by id(s) of related 'app' @@ -80,16 +80,18 @@ public enum ListReviewSubmissionsV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case app, appStoreVersionForReview, items + case app + case appStoreVersionForReview + case items } /** Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) /// Maximum number of related items returned (when they are included) - maximum 50 case items(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmission/Relationships/ListItemsForReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmission/Relationships/ListItemsForReviewSubmissionV1.swift index 1da3b3008..bb91d6210 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmission/Relationships/ListItemsForReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmission/Relationships/ListItemsForReviewSubmissionV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # GET /v1/reviewSubmissions/{id}/items + # GET /v1/reviewSubmissions/{id}/items - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listItemsForReviewSubmissionV1(id: String, fields: [ListItemsForReviewSubmissionV1.Field]? = nil, includes: [ListItemsForReviewSubmissionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/reviewSubmissions/\(id)/items", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/reviewSubmissions/\(id)/items", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -110,6 +110,9 @@ public enum ListItemsForReviewSubmissionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appCustomProductPageVersion, appEvent, appStoreVersion, appStoreVersionExperiment + case appCustomProductPageVersion + case appEvent + case appStoreVersion + case appStoreVersionExperiment } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmission/UpdateReviewSubmissionV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmission/UpdateReviewSubmissionV1.swift index c4f927306..5c955aaa6 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmission/UpdateReviewSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmission/UpdateReviewSubmissionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/reviewSubmissions/{id} + # PATCH /v1/reviewSubmissions/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: ReviewSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: ReviewSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateReviewSubmissionV1(id: String, requestBody: ReviewSubmissionUpdateRequest) -> Request { - return .init(path: "/v1/reviewSubmissions/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/reviewSubmissions/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/CreateReviewSubmissionItemV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/CreateReviewSubmissionItemV1.swift index 98ebfde2a..3f341a6f4 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/CreateReviewSubmissionItemV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/CreateReviewSubmissionItemV1.swift @@ -1,14 +1,14 @@ public extension Request { /** - # POST /v1/reviewSubmissions + # POST /v1/reviewSubmissions - Full documentation: - + Full documentation: + - - Parameter requestBody: ReviewSubmissionItem representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: ReviewSubmissionItem representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createReviewSubmissionItemV1(requestBody: ReviewSubmissionItemCreateRequest) -> Request { - return .init(path: "/v1/reviewSubmissionItems", method: .post, requestBody: requestBody) + .init(path: "/v1/reviewSubmissionItems", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/DeleteReviewSubmissionItemV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/DeleteReviewSubmissionItemV1.swift index bd17934d4..c3944da78 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/DeleteReviewSubmissionItemV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/DeleteReviewSubmissionItemV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Remove a Review Submission Item - Remove a specific item from a review submission. + # Remove a Review Submission Item + Remove a specific item from a review submission. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteReviewSubmissionItemV1(id: String) -> Request { - return .init(path: "/v1/reviewSubmissionItems/\(id)", method: .delete) + .init(path: "/v1/reviewSubmissionItems/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/UpdateReviewSubmissionItemV1.swift b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/UpdateReviewSubmissionItemV1.swift index 9e1170f0f..485c69764 100644 --- a/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/UpdateReviewSubmissionItemV1.swift +++ b/Sources/Bagbutik/Endpoints/ReviewSubmissionItem/UpdateReviewSubmissionItemV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # PATCH /v1/reviewSubmissionItems/{id} + # PATCH /v1/reviewSubmissionItems/{id} - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: ReviewSubmissionItem representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: ReviewSubmissionItem representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateReviewSubmissionItemV1(id: String, requestBody: ReviewSubmissionItemUpdateRequest) -> Request { - return .init(path: "/v1/reviewSubmissionItems/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/reviewSubmissionItems/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/CreateRoutingAppCoverageV1.swift b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/CreateRoutingAppCoverageV1.swift index d7f969b1d..7c1138d71 100644 --- a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/CreateRoutingAppCoverageV1.swift +++ b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/CreateRoutingAppCoverageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Routing App Coverage - Attach a routing app coverage file to an App Store version. + # Create a Routing App Coverage + Attach a routing app coverage file to an App Store version. - Full documentation: - + Full documentation: + - - Parameter requestBody: RoutingAppCoverage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: RoutingAppCoverage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createRoutingAppCoverageV1(requestBody: RoutingAppCoverageCreateRequest) -> Request { - return .init(path: "/v1/routingAppCoverages", method: .post, requestBody: requestBody) + .init(path: "/v1/routingAppCoverages", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/DeleteRoutingAppCoverageV1.swift b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/DeleteRoutingAppCoverageV1.swift index 5452615b0..9fc3ef42d 100644 --- a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/DeleteRoutingAppCoverageV1.swift +++ b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/DeleteRoutingAppCoverageV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Routing App Coverage - Delete the routing app coverage file that is associated with a version. + # Delete a Routing App Coverage + Delete the routing app coverage file that is associated with a version. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteRoutingAppCoverageV1(id: String) -> Request { - return .init(path: "/v1/routingAppCoverages/\(id)", method: .delete) + .init(path: "/v1/routingAppCoverages/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/GetRoutingAppCoverageV1.swift b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/GetRoutingAppCoverageV1.swift index 1d93ee42a..05b7a75c5 100644 --- a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/GetRoutingAppCoverageV1.swift +++ b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/GetRoutingAppCoverageV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Routing App Coverage Information - Get information about the routing app coverage file and its upload and processing status. + # Read Routing App Coverage Information + Get information about the routing app coverage file and its upload and processing status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getRoutingAppCoverageV1(id: String, fields: [GetRoutingAppCoverageV1.Field]? = nil, includes: [GetRoutingAppCoverageV1.Include]? = nil) -> Request { - return .init(path: "/v1/routingAppCoverages/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/routingAppCoverages/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/UpdateRoutingAppCoverageV1.swift b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/UpdateRoutingAppCoverageV1.swift index 2df313ef2..f6c2705b7 100644 --- a/Sources/Bagbutik/Endpoints/RoutingAppCoverage/UpdateRoutingAppCoverageV1.swift +++ b/Sources/Bagbutik/Endpoints/RoutingAppCoverage/UpdateRoutingAppCoverageV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Routing App Coverage - Commit a routing app coverage file after uploading it. + # Modify a Routing App Coverage + Commit a routing app coverage file after uploading it. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: RoutingAppCoverage representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: RoutingAppCoverage representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateRoutingAppCoverageV1(id: String, requestBody: RoutingAppCoverageUpdateRequest) -> Request { - return .init(path: "/v1/routingAppCoverages/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/routingAppCoverages/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SalesReport/GetSalesReportsV1.swift b/Sources/Bagbutik/Endpoints/SalesReport/GetSalesReportsV1.swift index 2f7fde849..3fe734748 100644 --- a/Sources/Bagbutik/Endpoints/SalesReport/GetSalesReportsV1.swift +++ b/Sources/Bagbutik/Endpoints/SalesReport/GetSalesReportsV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Download Sales and Trends Reports - Download sales and trends reports filtered by your specified criteria. + # Download Sales and Trends Reports + Download sales and trends reports filtered by your specified criteria. - For more information, see [Sales and Trends reports](https://help.apple.com/itc/appssalesandtrends/#/itc37a18bcbf). - Each sales report type has specific valid values for `reportType`, `reportSubType`, `frequency`, and `version`. Using other values results in an error. For more details on each report type, see [About Reports](https://help.apple.com/itc/appssalesandtrends/#/itc37a18bcbf). + For more information, see [Sales and Trends reports](https://help.apple.com/itc/appssalesandtrends/#/itc37a18bcbf). + Each sales report type has specific valid values for `reportType`, `reportSubType`, `frequency`, and `version`. Using other values results in an error. For more details on each report type, see [About Reports](https://help.apple.com/itc/appssalesandtrends/#/itc37a18bcbf). - Full documentation: - + Full documentation: + - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSalesReportsV1(filters: [GetSalesReportsV1.Filter]? = nil) -> Request { - return .init(path: "/v1/salesReports", method: .get, parameters: .init(filters: filters)) + .init(path: "/v1/salesReports", method: .get, parameters: .init(filters: filters)) } } @@ -21,7 +21,7 @@ public enum GetSalesReportsV1 { /** Attributes, relationships, and IDs by which to filter. - Required: frequency, reportSubType, reportType, vendorNumber + Required: `frequency`, `reportSubType`, `reportType`, `vendorNumber` */ public enum Filter: FilterParameter { /// Filter by attribute 'frequency' diff --git a/Sources/Bagbutik/Endpoints/ScmGitReference/GetScmGitReferenceV1.swift b/Sources/Bagbutik/Endpoints/ScmGitReference/GetScmGitReferenceV1.swift index 5bf6520fa..972c07a06 100644 --- a/Sources/Bagbutik/Endpoints/ScmGitReference/GetScmGitReferenceV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmGitReference/GetScmGitReferenceV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Git Reference Information - Get information about a specific Git reference. + # Read Git Reference Information + Get information about a specific Git reference. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getScmGitReferenceV1(id: String, fields: [GetScmGitReferenceV1.Field]? = nil, includes: [GetScmGitReferenceV1.Include]? = nil) -> Request { - return .init(path: "/v1/scmGitReferences/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/scmGitReferences/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/ScmProvider/GetScmProviderV1.swift b/Sources/Bagbutik/Endpoints/ScmProvider/GetScmProviderV1.swift index 22ef092a4..2cb84782e 100644 --- a/Sources/Bagbutik/Endpoints/ScmProvider/GetScmProviderV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmProvider/GetScmProviderV1.swift @@ -1,21 +1,21 @@ public extension Request { /** - # Get a Source Code Management Provider - Get information about a specific source code management provider you connected to Xcode Cloud. + # Get a Source Code Management Provider + Get information about a specific source code management provider you connected to Xcode Cloud. - The example request below retrieves information about a specific source code management provider you connected to Xcode Cloud. Use the data provided in the response to read additional information; for example, repository information. + The example request below retrieves information about a specific source code management provider you connected to Xcode Cloud. Use the data provided in the response to read additional information; for example, repository information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getScmProviderV1(id: String, fields: [GetScmProviderV1.Field]? = nil) -> Request { - return .init(path: "/v1/scmProviders/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/scmProviders/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/ScmProvider/ListScmProvidersV1.swift b/Sources/Bagbutik/Endpoints/ScmProvider/ListScmProvidersV1.swift index ddd869824..a501376ae 100644 --- a/Sources/Bagbutik/Endpoints/ScmProvider/ListScmProvidersV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmProvider/ListScmProvidersV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # List All Source Code Management Providers - List all source code management providers you connected to Xcode Cloud. + # List All Source Code Management Providers + List all source code management providers you connected to Xcode Cloud. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listScmProvidersV1(fields: [ListScmProvidersV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/scmProviders", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/scmProviders", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/ScmProvider/Relationships/ListRepositoriesForScmProviderV1.swift b/Sources/Bagbutik/Endpoints/ScmProvider/Relationships/ListRepositoriesForScmProviderV1.swift index 03a96b405..1d335bd66 100644 --- a/Sources/Bagbutik/Endpoints/ScmProvider/Relationships/ListRepositoriesForScmProviderV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmProvider/Relationships/ListRepositoriesForScmProviderV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List all Repositories for a Source Code Management Provider - List all Git repositories for a specific source code management provider you connected to Xcode Cloud. + # List all Repositories for a Source Code Management Provider + List all Git repositories for a specific source code management provider you connected to Xcode Cloud. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listRepositoriesForScmProviderV1(id: String, fields: [ListRepositoriesForScmProviderV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListRepositoriesForScmProviderV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/scmProviders/\(id)/repositories", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/scmProviders/\(id)/repositories", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -77,6 +77,7 @@ public enum ListRepositoriesForScmProviderV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/ScmPullRequest/GetScmPullRequestV1.swift b/Sources/Bagbutik/Endpoints/ScmPullRequest/GetScmPullRequestV1.swift index 16f02f92f..f746c5854 100644 --- a/Sources/Bagbutik/Endpoints/ScmPullRequest/GetScmPullRequestV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmPullRequest/GetScmPullRequestV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # Read Pull Request Information - Get information about a specific pull request. + # Read Pull Request Information + Get information about a specific pull request. - The example request below retrieves information about a specific pull request. For example, use the data provided in the response to display pull request information on a custom dashboard. + The example request below retrieves information about a specific pull request. For example, use the data provided in the response to display pull request information on a custom dashboard. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getScmPullRequestV1(id: String, fields: [GetScmPullRequestV1.Field]? = nil, includes: [GetScmPullRequestV1.Include]? = nil) -> Request { - return .init(path: "/v1/scmPullRequests/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/scmPullRequests/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/ScmRepository/GetScmRepositoryV1.swift b/Sources/Bagbutik/Endpoints/ScmRepository/GetScmRepositoryV1.swift index c3064e3f5..962f19e25 100644 --- a/Sources/Bagbutik/Endpoints/ScmRepository/GetScmRepositoryV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmRepository/GetScmRepositoryV1.swift @@ -1,24 +1,24 @@ public extension Request { /** - # Read Git Repository Information - Get information about a Git repository that Xcode Cloud can access. + # Read Git Repository Information + Get information about a Git repository that Xcode Cloud can access. - The example request below retrieves information about a specific Git repository that Xcode Cloud can access. Use the data provided in the response to read additional information; for example, pull request information. + The example request below retrieves information about a specific Git repository that Xcode Cloud can access. Use the data provided in the response to read additional information; for example, pull request information. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getScmRepositoryV1(id: String, fields: [GetScmRepositoryV1.Field]? = nil, includes: [GetScmRepositoryV1.Include]? = nil) -> Request { - return .init(path: "/v1/scmRepositories/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/scmRepositories/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } @@ -74,6 +74,7 @@ public enum GetScmRepositoryV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/ScmRepository/ListScmRepositoriesV1.swift b/Sources/Bagbutik/Endpoints/ScmRepository/ListScmRepositoriesV1.swift index e5365178f..e0ab06aa6 100644 --- a/Sources/Bagbutik/Endpoints/ScmRepository/ListScmRepositoriesV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmRepository/ListScmRepositoriesV1.swift @@ -1,26 +1,26 @@ public extension Request { /** - # List All Git Repositories - List all Git repositories Xcode Cloud can access. + # List All Git Repositories + List all Git repositories Xcode Cloud can access. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listScmRepositoriesV1(fields: [ListScmRepositoriesV1.Field]? = nil, filters: [ListScmRepositoriesV1.Filter]? = nil, includes: [ListScmRepositoriesV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/scmRepositories", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/scmRepositories", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -84,6 +84,7 @@ public enum ListScmRepositoriesV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case defaultBranch, scmProvider + case defaultBranch + case scmProvider } } diff --git a/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListGitReferencesForScmRepositoryV1.swift b/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListGitReferencesForScmRepositoryV1.swift index b8d7c933d..f4587acee 100644 --- a/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListGitReferencesForScmRepositoryV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListGitReferencesForScmRepositoryV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Git References for a Repository - List all Git references for a specific repository that Xcode Cloud can access. + # List All Git References for a Repository + List all Git references for a specific repository that Xcode Cloud can access. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listGitReferencesForScmRepositoryV1(id: String, fields: [ListGitReferencesForScmRepositoryV1.Field]? = nil, includes: [ListGitReferencesForScmRepositoryV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/scmRepositories/\(id)/gitReferences", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/scmRepositories/\(id)/gitReferences", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListPullRequestsForScmRepositoryV1.swift b/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListPullRequestsForScmRepositoryV1.swift index 4b892d6b2..6841faea1 100644 --- a/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListPullRequestsForScmRepositoryV1.swift +++ b/Sources/Bagbutik/Endpoints/ScmRepository/Relationships/ListPullRequestsForScmRepositoryV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Pull Requests for a Repository - List all pull requests for a specific repository that Xcode Cloud can access. + # List All Pull Requests for a Repository + List all pull requests for a specific repository that Xcode Cloud can access. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPullRequestsForScmRepositoryV1(id: String, fields: [ListPullRequestsForScmRepositoryV1.Field]? = nil, includes: [ListPullRequestsForScmRepositoryV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/scmRepositories/\(id)/pullRequests", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/scmRepositories/\(id)/pullRequests", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/CreateSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/CreateSubscriptionV1.swift index f61025ba5..132511bdc 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/CreateSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/CreateSubscriptionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an Auto-Renewable Subscription - Create an auto-renewable subscription for your app. + # Create an Auto-Renewable Subscription + Create an auto-renewable subscription for your app. - Full documentation: - + Full documentation: + - - Parameter requestBody: Subscription representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: Subscription representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionV1(requestBody: SubscriptionCreateRequest) -> Request { - return .init(path: "/v1/subscriptions", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/DeleteSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/DeleteSubscriptionV1.swift index 3e7cd09a7..bf2dd2e87 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/DeleteSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/DeleteSubscriptionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Subscription - Delete a specific auto-renewable subscription that you configured for an app. + # Delete a Subscription + Delete a specific auto-renewable subscription that you configured for an app. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionV1(id: String) -> Request { - return .init(path: "/v1/subscriptions/\(id)", method: .delete) + .init(path: "/v1/subscriptions/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/GetSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/GetSubscriptionV1.swift index d7b192af3..4f88533d2 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/GetSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/GetSubscriptionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Subscription Information - Get information about a specific auto-renewable subscription. + # Read Subscription Information + Get information about a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionV1(id: String, fields: [GetSubscriptionV1.Field]? = nil, includes: [GetSubscriptionV1.Include]? = nil, limits: [GetSubscriptionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/subscriptions/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -157,7 +157,14 @@ public enum GetSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewScreenshot, group, introductoryOffers, offerCodes, prices, promotedPurchase, promotionalOffers, subscriptionLocalizations + case appStoreReviewScreenshot + case group + case introductoryOffers + case offerCodes + case prices + case promotedPurchase + case promotionalOffers + case subscriptionLocalizations } /** diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeleteIntroductoryOffersForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeleteIntroductoryOffersForSubscriptionV1.swift index 27d2734ba..b4c432d5d 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeleteIntroductoryOffersForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeleteIntroductoryOffersForSubscriptionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Delete an Introductory Offer from a Subscription - Delete a specific introductory offer for an auto-renewable subscription. + # Delete an Introductory Offer from a Subscription + Delete a specific introductory offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteIntroductoryOffersForSubscriptionV1(id: String, requestBody: SubscriptionIntroductoryOffersLinkagesRequest) -> Request { - return .init(path: "/v1/subscriptions/\(id)/relationships/introductoryOffers", method: .delete, requestBody: requestBody) + .init(path: "/v1/subscriptions/\(id)/relationships/introductoryOffers", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeletePricesForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeletePricesForSubscriptionV1.swift index 3c0142a72..5208fc023 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeletePricesForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/DeletePricesForSubscriptionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Delete Prices from a Subscription - Delete a scheduled subscription price change for an auto-renewable subscription. + # Delete Prices from a Subscription + Delete a scheduled subscription price change for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deletePricesForSubscriptionV1(id: String, requestBody: SubscriptionPricesLinkagesRequest) -> Request { - return .init(path: "/v1/subscriptions/\(id)/relationships/prices", method: .delete, requestBody: requestBody) + .init(path: "/v1/subscriptions/\(id)/relationships/prices", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetAppStoreReviewScreenshotForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetAppStoreReviewScreenshotForSubscriptionV1.swift index 013095310..d5b31a658 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetAppStoreReviewScreenshotForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetAppStoreReviewScreenshotForSubscriptionV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Review Screenshot Information for a Subscription - Get information about review screenshot for a specific auto-renewable subscription. + # Read Review Screenshot Information for a Subscription + Get information about review screenshot for a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getAppStoreReviewScreenshotForSubscriptionV1(id: String, fields: [GetAppStoreReviewScreenshotForSubscriptionV1.Field]? = nil, includes: [GetAppStoreReviewScreenshotForSubscriptionV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/appStoreReviewScreenshot", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptions/\(id)/appStoreReviewScreenshot", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetPromotedPurchaseForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetPromotedPurchaseForSubscriptionV1.swift index 624af9f71..6cf5c11be 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetPromotedPurchaseForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/GetPromotedPurchaseForSubscriptionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Promoted Purchase Information for a Subscription - Get details about the promoted purchase of an auto-renewable subscription. + # Read Promoted Purchase Information for a Subscription + Get details about the promoted purchase of an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related promotionImages returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getPromotedPurchaseForSubscriptionV1(id: String, fields: [GetPromotedPurchaseForSubscriptionV1.Field]? = nil, includes: [GetPromotedPurchaseForSubscriptionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/promotedPurchase", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptions/\(id)/promotedPurchase", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -103,6 +103,8 @@ public enum GetPromotedPurchaseForSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case inAppPurchaseV2, promotionImages, subscription + case inAppPurchaseV2 + case promotionImages + case subscription } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOfferIdsForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOfferIdsForSubscriptionV1.swift index be19395cc..45ca2cfae 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOfferIdsForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOfferIdsForSubscriptionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All Introductory Offer Resource IDs for an Auto-Renewable Subscription - Get a list of resource IDs representing introductory offers for an auto-renewable subscription. + # List All Introductory Offer Resource IDs for an Auto-Renewable Subscription + Get a list of resource IDs representing introductory offers for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIntroductoryOfferIdsForSubscriptionV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/relationships/introductoryOffers", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/subscriptions/\(id)/relationships/introductoryOffers", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOffersForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOffersForSubscriptionV1.swift index 35b6d8dbe..a45075f90 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOffersForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListIntroductoryOffersForSubscriptionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Introductory Offers for a Subscription - Get a list of introductory offers for a specific auto-renewable subscription. + # List All Introductory Offers for a Subscription + Get a list of introductory offers for a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listIntroductoryOffersForSubscriptionV1(id: String, fields: [ListIntroductoryOffersForSubscriptionV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListIntroductoryOffersForSubscriptionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/introductoryOffers", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptions/\(id)/introductoryOffers", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -97,6 +97,8 @@ public enum ListIntroductoryOffersForSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscription, subscriptionPricePoint, territory + case subscription + case subscriptionPricePoint + case territory } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListOfferCodesForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListOfferCodesForSubscriptionV1.swift index bfa96090b..981d5aa76 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListOfferCodesForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListOfferCodesForSubscriptionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Offer Codes for a Subscription - Get a list of subscription offer codes for a specific auto-renewable subscription. + # List All Offer Codes for a Subscription + Get a list of subscription offer codes for a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listOfferCodesForSubscriptionV1(id: String, fields: [ListOfferCodesForSubscriptionV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListOfferCodesForSubscriptionV1.Include]? = nil, limits: [ListOfferCodesForSubscriptionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/offerCodes", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/subscriptions/\(id)/offerCodes", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -113,19 +113,22 @@ public enum ListOfferCodesForSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case customCodes, oneTimeUseCodes, prices, subscription + case customCodes + case oneTimeUseCodes + case prices + case subscription } /** Number of included related resources to return. */ public enum Limit: LimitParameter { + /// Maximum number of related customCodes returned (when they are included) - maximum 50 + case customCodes(Int) /// Maximum resources per page - maximum 200 case limit(Int) /// Maximum number of related oneTimeUseCodes returned (when they are included) - maximum 50 case oneTimeUseCodes(Int) - /// Maximum number of related customCodes returned (when they are included) - maximum 50 - case customCodes(Int) /// Maximum number of related prices returned (when they are included) - maximum 50 case prices(Int) } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPriceIdsForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPriceIdsForSubscriptionV1.swift index 225c364e1..8295f591b 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPriceIdsForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPriceIdsForSubscriptionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All Subscription Prices IDs for an Auto-Renewable Subscription - Get a list of resource IDs representing subscription prices for an auto-renewable subscription. + # List All Subscription Prices IDs for an Auto-Renewable Subscription + Get a list of resource IDs representing subscription prices for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPriceIdsForSubscriptionV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/relationships/prices", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/subscriptions/\(id)/relationships/prices", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricePointsForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricePointsForSubscriptionV1.swift index 4358ffb65..acbb171aa 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricePointsForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricePointsForSubscriptionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Price Points for a Subscription - Get a list of price points for an auto-renewable subscription by territory. + # List All Price Points for a Subscription + Get a list of price points for an auto-renewable subscription by territory. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricePointsForSubscriptionV1(id: String, fields: [ListPricePointsForSubscriptionV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricePointsForSubscriptionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptions/\(id)/pricePoints", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricesForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricesForSubscriptionV1.swift index 29f3162a2..1a9ac3502 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricesForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPricesForSubscriptionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Prices for a Subscription - Get a list of prices for an auto-renewable subscription, by territory. + # List All Prices for a Subscription + Get a list of prices for an auto-renewable subscription, by territory. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricesForSubscriptionV1(id: String, fields: [ListPricesForSubscriptionV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricesForSubscriptionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/prices", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptions/\(id)/prices", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -75,6 +75,7 @@ public enum ListPricesForSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscriptionPricePoint, territory + case subscriptionPricePoint + case territory } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPromotionalOffersForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPromotionalOffersForSubscriptionV1.swift index 52bfeaae6..bf9ec6a8e 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPromotionalOffersForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListPromotionalOffersForSubscriptionV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Promotional Offer Resource IDs for an Auto-Renewable Subscription - Get a list of promotional offers for a specific auto-renewable subscription. + # List All Promotional Offer Resource IDs for an Auto-Renewable Subscription + Get a list of promotional offers for a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPromotionalOffersForSubscriptionV1(id: String, fields: [ListPromotionalOffersForSubscriptionV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPromotionalOffersForSubscriptionV1.Include]? = nil, limits: [ListPromotionalOffersForSubscriptionV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/promotionalOffers", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limits: limits)) + .init(path: "/v1/subscriptions/\(id)/promotionalOffers", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limits: limits)) } } @@ -86,7 +86,8 @@ public enum ListPromotionalOffersForSubscriptionV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case prices, subscription + case prices + case subscription } /** diff --git a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListSubscriptionLocalizationsForSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListSubscriptionLocalizationsForSubscriptionV1.swift index 47bdaf128..959af992e 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListSubscriptionLocalizationsForSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/Relationships/ListSubscriptionLocalizationsForSubscriptionV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Localizations for an Auto-Renewable Subscription - Get a list of the subscription localizations for a specific auto-renewable subscription. + # List All Localizations for an Auto-Renewable Subscription + Get a list of the subscription localizations for a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listSubscriptionLocalizationsForSubscriptionV1(id: String, fields: [ListSubscriptionLocalizationsForSubscriptionV1.Field]? = nil, includes: [ListSubscriptionLocalizationsForSubscriptionV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptions/\(id)/subscriptionLocalizations", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptions/\(id)/subscriptionLocalizations", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/Subscription/UpdateSubscriptionV1.swift b/Sources/Bagbutik/Endpoints/Subscription/UpdateSubscriptionV1.swift index 512528519..8576df295 100644 --- a/Sources/Bagbutik/Endpoints/Subscription/UpdateSubscriptionV1.swift +++ b/Sources/Bagbutik/Endpoints/Subscription/UpdateSubscriptionV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an Auto-Renewable Subscription - Update a specific auto-renewable subscription. + # Modify an Auto-Renewable Subscription + Update a specific auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: Subscription representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: Subscription representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionV1(id: String, requestBody: SubscriptionUpdateRequest) -> Request { - return .init(path: "/v1/subscriptions/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptions/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/CreateSubscriptionAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/CreateSubscriptionAppStoreReviewScreenshotV1.swift index b73611850..61e36e0c1 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/CreateSubscriptionAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/CreateSubscriptionAppStoreReviewScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Review Screenshot for an Auto-Renewable Subscription - Reserve a review screenshot for an auto-renewable subscription. + # Create a Review Screenshot for an Auto-Renewable Subscription + Reserve a review screenshot for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionAppStoreReviewScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionAppStoreReviewScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionAppStoreReviewScreenshotV1(requestBody: SubscriptionAppStoreReviewScreenshotCreateRequest) -> Request { - return .init(path: "/v1/subscriptionAppStoreReviewScreenshots", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionAppStoreReviewScreenshots", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/DeleteSubscriptionAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/DeleteSubscriptionAppStoreReviewScreenshotV1.swift index 6b2c3d15e..7ac79ec39 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/DeleteSubscriptionAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/DeleteSubscriptionAppStoreReviewScreenshotV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Review Screenshot for an Auto-Renewable Subscription - Delete an image that you uploaded for review of an auto-renewable subscription. + # Delete a Review Screenshot for an Auto-Renewable Subscription + Delete an image that you uploaded for review of an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionAppStoreReviewScreenshotV1(id: String) -> Request { - return .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .delete) + .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/GetSubscriptionAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/GetSubscriptionAppStoreReviewScreenshotV1.swift index f00fad93b..316c378fd 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/GetSubscriptionAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/GetSubscriptionAppStoreReviewScreenshotV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Subscription Review Screenshot Information - Get the information about a review screenshot for an auto-renewable subscription. + # Read Subscription Review Screenshot Information + Get the information about a review screenshot for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionAppStoreReviewScreenshotV1(id: String, fields: [GetSubscriptionAppStoreReviewScreenshotV1.Field]? = nil, includes: [GetSubscriptionAppStoreReviewScreenshotV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/UpdateSubscriptionAppStoreReviewScreenshotV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/UpdateSubscriptionAppStoreReviewScreenshotV1.swift index 14d782426..6a25b99c1 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/UpdateSubscriptionAppStoreReviewScreenshotV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionAppStoreReviewScreenshot/UpdateSubscriptionAppStoreReviewScreenshotV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Commit a Review Screenshot for an Auto-Renewable Subscription - Commit an uploaded image asset as a review screenshot for an auto-renewable subscription. + # Commit a Review Screenshot for an Auto-Renewable Subscription + Commit an uploaded image asset as a review screenshot for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionAppStoreReviewScreenshot representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionAppStoreReviewScreenshot representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionAppStoreReviewScreenshotV1(id: String, requestBody: SubscriptionAppStoreReviewScreenshotUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionAppStoreReviewScreenshots/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/GetSubscriptionGracePeriodV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/GetSubscriptionGracePeriodV1.swift index 7530c4e61..847de8cde 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/GetSubscriptionGracePeriodV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/GetSubscriptionGracePeriodV1.swift @@ -1,19 +1,19 @@ public extension Request { /** - # Read Subscription Grace Period Value - Get the Boolean value that represents the subscription grace period opt-in state. + # Read Subscription Grace Period Value + Get the Boolean value that represents the subscription grace period opt-in state. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionGracePeriodV1(id: String, fields: [GetSubscriptionGracePeriodV1.Field]? = nil) -> Request { - return .init(path: "/v1/subscriptionGracePeriods/\(id)", method: .get, parameters: .init(fields: fields)) + .init(path: "/v1/subscriptionGracePeriods/\(id)", method: .get, parameters: .init(fields: fields)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/UpdateSubscriptionGracePeriodV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/UpdateSubscriptionGracePeriodV1.swift index 2362a35ad..519ffe3e5 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/UpdateSubscriptionGracePeriodV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGracePeriod/UpdateSubscriptionGracePeriodV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify the Grace Period Opt-in Status - Change the Boolean value representing the subscription grace period opt-in status. + # Modify the Grace Period Opt-in Status + Change the Boolean value representing the subscription grace period opt-in status. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionGracePeriod representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionGracePeriod representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionGracePeriodV1(id: String, requestBody: SubscriptionGracePeriodUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionGracePeriods/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionGracePeriods/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/CreateSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/CreateSubscriptionGroupV1.swift index aebde34c2..f19df4b22 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/CreateSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/CreateSubscriptionGroupV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Subscription Group - Create a subscription group for an app. + # Create a Subscription Group + Create a subscription group for an app. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionGroup representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionGroup representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionGroupV1(requestBody: SubscriptionGroupCreateRequest) -> Request { - return .init(path: "/v1/subscriptionGroups", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionGroups", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/DeleteSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/DeleteSubscriptionGroupV1.swift index f6ba390b5..802206e18 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/DeleteSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/DeleteSubscriptionGroupV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Subscription Group - Delete a specific empty subscription group. + # Delete a Subscription Group + Delete a specific empty subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionGroupV1(id: String) -> Request { - return .init(path: "/v1/subscriptionGroups/\(id)", method: .delete) + .init(path: "/v1/subscriptionGroups/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/GetSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/GetSubscriptionGroupV1.swift index ab2c774a3..4aacb265f 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/GetSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/GetSubscriptionGroupV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Subscription Group Information - Get the details of a specific subscription group. + # Read Subscription Group Information + Get the details of a specific subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionGroupV1(id: String, fields: [GetSubscriptionGroupV1.Field]? = nil, includes: [GetSubscriptionGroupV1.Include]? = nil, limits: [GetSubscriptionGroupV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptionGroups/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/subscriptionGroups/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -75,7 +75,8 @@ public enum GetSubscriptionGroupV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscriptionGroupLocalizations, subscriptions + case subscriptionGroupLocalizations + case subscriptions } /** diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.swift index 47cd37320..05f057178 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Subscription Group Localizations - Get a list of all localized metadata for a specific subscription group. + # List All Subscription Group Localizations + Get a list of all localized metadata for a specific subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listSubscriptionGroupLocalizationsForSubscriptionGroupV1(id: String, fields: [ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.Field]? = nil, includes: [ListSubscriptionGroupLocalizationsForSubscriptionGroupV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionGroups/\(id)/subscriptionGroupLocalizations", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionGroups/\(id)/subscriptionGroupLocalizations", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionsForSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionsForSubscriptionGroupV1.swift index 26a2a123b..df90a3076 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionsForSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/Relationships/ListSubscriptionsForSubscriptionGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # List All Subscriptions for a Subscription Group - Get a list of all auto-renewable subscriptions in a subscription group. - - Full documentation: - - - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + # List All Subscriptions for a Subscription Group + Get a list of all auto-renewable subscriptions in a subscription group. + + Full documentation: + + + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listSubscriptionsForSubscriptionGroupV1(id: String, fields: [ListSubscriptionsForSubscriptionGroupV1.Field]? = nil, @@ -21,11 +21,11 @@ public extension Request { sorts: [ListSubscriptionsForSubscriptionGroupV1.Sort]? = nil, limits: [ListSubscriptionsForSubscriptionGroupV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptionGroups/\(id)/subscriptions", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/subscriptionGroups/\(id)/subscriptions", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -186,7 +186,14 @@ public enum ListSubscriptionsForSubscriptionGroupV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case appStoreReviewScreenshot, group, introductoryOffers, offerCodes, prices, promotedPurchase, promotionalOffers, subscriptionLocalizations + case appStoreReviewScreenshot + case group + case introductoryOffers + case offerCodes + case prices + case promotedPurchase + case promotionalOffers + case subscriptionLocalizations } /** @@ -201,17 +208,17 @@ public enum ListSubscriptionsForSubscriptionGroupV1 { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum resources per page - maximum 200 - case limit(Int) - /// Maximum number of related subscriptionLocalizations returned (when they are included) - maximum 50 - case subscriptionLocalizations(Int) /// Maximum number of related introductoryOffers returned (when they are included) - maximum 50 case introductoryOffers(Int) - /// Maximum number of related promotionalOffers returned (when they are included) - maximum 50 - case promotionalOffers(Int) + /// Maximum resources per page - maximum 200 + case limit(Int) /// Maximum number of related offerCodes returned (when they are included) - maximum 50 case offerCodes(Int) /// Maximum number of related prices returned (when they are included) - maximum 50 case prices(Int) + /// Maximum number of related promotionalOffers returned (when they are included) - maximum 50 + case promotionalOffers(Int) + /// Maximum number of related subscriptionLocalizations returned (when they are included) - maximum 50 + case subscriptionLocalizations(Int) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroup/UpdateSubscriptionGroupV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroup/UpdateSubscriptionGroupV1.swift index 633c44ac9..7b9f66b52 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroup/UpdateSubscriptionGroupV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroup/UpdateSubscriptionGroupV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Subscription Group - Update the reference name for a specific subscription group. + # Modify a Subscription Group + Update the reference name for a specific subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionGroup representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionGroup representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionGroupV1(id: String, requestBody: SubscriptionGroupUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionGroups/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionGroups/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/CreateSubscriptionGroupLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/CreateSubscriptionGroupLocalizationV1.swift index 907547dc2..35153186d 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/CreateSubscriptionGroupLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/CreateSubscriptionGroupLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Subscription Group Localization - Create a localized display name and optional custom app name for a subscription group. + # Create a Subscription Group Localization + Create a localized display name and optional custom app name for a subscription group. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionGroupLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionGroupLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionGroupLocalizationV1(requestBody: SubscriptionGroupLocalizationCreateRequest) -> Request { - return .init(path: "/v1/subscriptionGroupLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionGroupLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/DeleteSubscriptionGroupLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/DeleteSubscriptionGroupLocalizationV1.swift index 222914878..7ee65af88 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/DeleteSubscriptionGroupLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/DeleteSubscriptionGroupLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Subscription Group Localization - Delete localized metadata that you configured for a subscription group. + # Delete a Subscription Group Localization + Delete localized metadata that you configured for a subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionGroupLocalizationV1(id: String) -> Request { - return .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .delete) + .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/GetSubscriptionGroupLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/GetSubscriptionGroupLocalizationV1.swift index 9dcc819c9..112fce143 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/GetSubscriptionGroupLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/GetSubscriptionGroupLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Subscription Group Localization Information - Get the specific localized subscription group display name and optional custom app name for a subscription group. + # Read Subscription Group Localization Information + Get the specific localized subscription group display name and optional custom app name for a subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionGroupLocalizationV1(id: String, fields: [GetSubscriptionGroupLocalizationV1.Field]? = nil, includes: [GetSubscriptionGroupLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/UpdateSubscriptionGroupLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/UpdateSubscriptionGroupLocalizationV1.swift index 42253b5af..3791c9ab0 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/UpdateSubscriptionGroupLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroupLocalization/UpdateSubscriptionGroupLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Subscription Group Localization - Update a specific localized display name and optional custom app name for a subscription group. + # Modify a Subscription Group Localization + Update a specific localized display name and optional custom app name for a subscription group. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionGroupLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionGroupLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionGroupLocalizationV1(id: String, requestBody: SubscriptionGroupLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionGroupLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionGroupSubmission/CreateSubscriptionGroupSubmissionV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionGroupSubmission/CreateSubscriptionGroupSubmissionV1.swift index 0d1e9625e..3903beac4 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionGroupSubmission/CreateSubscriptionGroupSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionGroupSubmission/CreateSubscriptionGroupSubmissionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Review Submission for a Subscription Group - Create a subscription group submission for review. + # Create a Review Submission for a Subscription Group + Create a subscription group submission for review. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionGroupSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionGroupSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionGroupSubmissionV1(requestBody: SubscriptionGroupSubmissionCreateRequest) -> Request { - return .init(path: "/v1/subscriptionGroupSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionGroupSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/CreateSubscriptionIntroductoryOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/CreateSubscriptionIntroductoryOfferV1.swift index 0aa19560e..1e7b0c947 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/CreateSubscriptionIntroductoryOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/CreateSubscriptionIntroductoryOfferV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create an Introductory Offer - Create an introductory offer for an auto-renewable subscription. + # Create an Introductory Offer + Create an introductory offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionIntroductoryOffer representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionIntroductoryOffer representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionIntroductoryOfferV1(requestBody: SubscriptionIntroductoryOfferCreateRequest) -> Request { - return .init(path: "/v1/subscriptionIntroductoryOffers", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionIntroductoryOffers", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/DeleteSubscriptionIntroductoryOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/DeleteSubscriptionIntroductoryOfferV1.swift index 5bd9dfa97..302e4a000 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/DeleteSubscriptionIntroductoryOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/DeleteSubscriptionIntroductoryOfferV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete an Introductory Offer for a Subscription - Delete a specific introductory offer for an auto-renewable subscription. + # Delete an Introductory Offer for a Subscription + Delete a specific introductory offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionIntroductoryOfferV1(id: String) -> Request { - return .init(path: "/v1/subscriptionIntroductoryOffers/\(id)", method: .delete) + .init(path: "/v1/subscriptionIntroductoryOffers/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/UpdateSubscriptionIntroductoryOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/UpdateSubscriptionIntroductoryOfferV1.swift index 9077ef88d..628ce154e 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/UpdateSubscriptionIntroductoryOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionIntroductoryOffer/UpdateSubscriptionIntroductoryOfferV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify an Introductory Offer - Update a specific introductory offer for an auto-renewable subscription. + # Modify an Introductory Offer + Update a specific introductory offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionIntroductoryOffer representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionIntroductoryOffer representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionIntroductoryOfferV1(id: String, requestBody: SubscriptionIntroductoryOfferUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionIntroductoryOffers/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionIntroductoryOffers/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/CreateSubscriptionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/CreateSubscriptionLocalizationV1.swift index 499e9caa0..dedb0ed20 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/CreateSubscriptionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/CreateSubscriptionLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Subscription Localization - Create a localized display name and description for an auto-renewable subscription. + # Create a Subscription Localization + Create a localized display name and description for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionLocalizationV1(requestBody: SubscriptionLocalizationCreateRequest) -> Request { - return .init(path: "/v1/subscriptionLocalizations", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionLocalizations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/DeleteSubscriptionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/DeleteSubscriptionLocalizationV1.swift index c7af74c06..16f53d8fe 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/DeleteSubscriptionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/DeleteSubscriptionLocalizationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Subscription Localization - Delete localized metadata that you configured for an auto-renewable subscription. + # Delete a Subscription Localization + Delete localized metadata that you configured for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionLocalizationV1(id: String) -> Request { - return .init(path: "/v1/subscriptionLocalizations/\(id)", method: .delete) + .init(path: "/v1/subscriptionLocalizations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/GetSubscriptionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/GetSubscriptionLocalizationV1.swift index c4ab9e65c..cbc00a2d2 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/GetSubscriptionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/GetSubscriptionLocalizationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Subscription Localization Information - Get the specific localized metadata for an auto-renewable subscription. + # Read Subscription Localization Information + Get the specific localized metadata for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionLocalizationV1(id: String, fields: [GetSubscriptionLocalizationV1.Field]? = nil, includes: [GetSubscriptionLocalizationV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionLocalizations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionLocalizations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/UpdateSubscriptionLocalizationV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/UpdateSubscriptionLocalizationV1.swift index 555d2325d..d38b54561 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionLocalization/UpdateSubscriptionLocalizationV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionLocalization/UpdateSubscriptionLocalizationV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Subscription Localization - Update a specific localized subscription display name and description for an auto-renewable subscription. + # Modify a Subscription Localization + Update a specific localized subscription display name and description for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionLocalization representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionLocalization representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionLocalizationV1(id: String, requestBody: SubscriptionLocalizationUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionLocalizations/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionLocalizations/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/CreateSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/CreateSubscriptionOfferCodeV1.swift index 03243cefc..f30514c47 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/CreateSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/CreateSubscriptionOfferCodeV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Subscription Offer - Create a subscription offer that provides offer codes for an auto-renewable subscription. + # Create a Subscription Offer + Create a subscription offer that provides offer codes for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionOfferCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionOfferCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionOfferCodeV1(requestBody: SubscriptionOfferCodeCreateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodes", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodes", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/GetSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/GetSubscriptionOfferCodeV1.swift index 4ba27ca0c..5a11e22f2 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/GetSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/GetSubscriptionOfferCodeV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Subscription Offer Code Information - Get details about a specific subscription offer that has offer codes for an auto-renewable subscription. + # Read Subscription Offer Code Information + Get details about a specific subscription offer that has offer codes for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionOfferCodeV1(id: String, fields: [GetSubscriptionOfferCodeV1.Field]? = nil, includes: [GetSubscriptionOfferCodeV1.Include]? = nil, limits: [GetSubscriptionOfferCodeV1.Limit]? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodes/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limits: limits)) + .init(path: "/v1/subscriptionOfferCodes/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limits: limits)) } } @@ -80,7 +80,10 @@ public enum GetSubscriptionOfferCodeV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case customCodes, oneTimeUseCodes, prices, subscription + case customCodes + case oneTimeUseCodes + case prices + case subscription } /** diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListCustomCodesForSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListCustomCodesForSubscriptionOfferCodeV1.swift index e6547ff3f..67a834064 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListCustomCodesForSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListCustomCodesForSubscriptionOfferCodeV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All Custom Offer Codes for an Auto-Renewable Subscription - Get details about a custom code for a specific subscription offer for an auto-renewable subscription. + # List All Custom Offer Codes for an Auto-Renewable Subscription + Get details about a custom code for a specific subscription offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listCustomCodesForSubscriptionOfferCodeV1(id: String, fields: [ListCustomCodesForSubscriptionOfferCodeV1.Field]? = nil, includes: [ListCustomCodesForSubscriptionOfferCodeV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodes/\(id)/customCodes", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionOfferCodes/\(id)/customCodes", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListOneTimeUseCodesForSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListOneTimeUseCodesForSubscriptionOfferCodeV1.swift index a40044da2..0bd1c3331 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListOneTimeUseCodesForSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListOneTimeUseCodesForSubscriptionOfferCodeV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # List All One-Time Use Offer Codes for an Auto-Renewable Subscription - Get details about a one-time use code for a specific subscription offer for an auto-renewable subscription. + # List All One-Time Use Offer Codes for an Auto-Renewable Subscription + Get details about a one-time use code for a specific subscription offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listOneTimeUseCodesForSubscriptionOfferCodeV1(id: String, fields: [ListOneTimeUseCodesForSubscriptionOfferCodeV1.Field]? = nil, includes: [ListOneTimeUseCodesForSubscriptionOfferCodeV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodes/\(id)/oneTimeUseCodes", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionOfferCodes/\(id)/oneTimeUseCodes", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListPricesForSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListPricesForSubscriptionOfferCodeV1.swift index d3b92a658..fce002259 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListPricesForSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/Relationships/ListPricesForSubscriptionOfferCodeV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Subscription Offer Code Prices - Get a list of price tiers for a subscription offer code. + # List All Subscription Offer Code Prices + Get a list of price tiers for a subscription offer code. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricesForSubscriptionOfferCodeV1(id: String, fields: [ListPricesForSubscriptionOfferCodeV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricesForSubscriptionOfferCodeV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodes/\(id)/prices", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionOfferCodes/\(id)/prices", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -69,6 +69,7 @@ public enum ListPricesForSubscriptionOfferCodeV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscriptionPricePoint, territory + case subscriptionPricePoint + case territory } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/UpdateSubscriptionOfferCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/UpdateSubscriptionOfferCodeV1.swift index fd4671a4e..e400492b7 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/UpdateSubscriptionOfferCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCode/UpdateSubscriptionOfferCodeV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Deactivate a Subscription Offer with Offer Codes - Deactivate a subscription offer that has offer codes for an auto-renewable subscription. + # Deactivate a Subscription Offer with Offer Codes + Deactivate a subscription offer that has offer codes for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionOfferCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionOfferCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionOfferCodeV1(id: String, requestBody: SubscriptionOfferCodeUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodes/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodes/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/CreateSubscriptionOfferCodeCustomCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/CreateSubscriptionOfferCodeCustomCodeV1.swift index 8f4b65f3b..524933a73 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/CreateSubscriptionOfferCodeCustomCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/CreateSubscriptionOfferCodeCustomCodeV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create Custom Offer Codes - Create custom offer codes for an auto-renewable subscription offer. + # Create Custom Offer Codes + Create custom offer codes for an auto-renewable subscription offer. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionOfferCodeCustomCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionOfferCodeCustomCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionOfferCodeCustomCodeV1(requestBody: SubscriptionOfferCodeCustomCodeCreateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodeCustomCodes", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodeCustomCodes", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/GetSubscriptionOfferCodeCustomCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/GetSubscriptionOfferCodeCustomCodeV1.swift index cdba1f696..642a59dbe 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/GetSubscriptionOfferCodeCustomCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/GetSubscriptionOfferCodeCustomCodeV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Custom Offer Code Information - Get details about a specific offer code for an auto-renewable subscription. + # Read Custom Offer Code Information + Get details about a specific offer code for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionOfferCodeCustomCodeV1(id: String, fields: [GetSubscriptionOfferCodeCustomCodeV1.Field]? = nil, includes: [GetSubscriptionOfferCodeCustomCodeV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodeCustomCodes/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionOfferCodeCustomCodes/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/UpdateSubscriptionOfferCodeCustomCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/UpdateSubscriptionOfferCodeCustomCodeV1.swift index e4bd24712..9baa78748 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/UpdateSubscriptionOfferCodeCustomCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeCustomCode/UpdateSubscriptionOfferCodeCustomCodeV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Deactivate Custom Offer Codes - Deactivate a batch of custom offer codes for an auto-renewable subscription. + # Deactivate Custom Offer Codes + Deactivate a batch of custom offer codes for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionOfferCodeCustomCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionOfferCodeCustomCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionOfferCodeCustomCodeV1(id: String, requestBody: SubscriptionOfferCodeCustomCodeUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodeCustomCodes/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodeCustomCodes/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/CreateSubscriptionOfferCodeOneTimeUseCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/CreateSubscriptionOfferCodeOneTimeUseCodeV1.swift index 0bbc51ad2..74c205de9 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/CreateSubscriptionOfferCodeOneTimeUseCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/CreateSubscriptionOfferCodeOneTimeUseCodeV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create One-Time Use Offer Codes - Create one-time use codes for an auto-renewable subscription offer. + # Create One-Time Use Offer Codes + Create one-time use codes for an auto-renewable subscription offer. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionOfferCodeOneTimeUseCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionOfferCodeOneTimeUseCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionOfferCodeOneTimeUseCodeV1(requestBody: SubscriptionOfferCodeOneTimeUseCodeCreateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/GetSubscriptionOfferCodeOneTimeUseCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/GetSubscriptionOfferCodeOneTimeUseCodeV1.swift index 5aa43148f..b164fb9af 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/GetSubscriptionOfferCodeOneTimeUseCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/GetSubscriptionOfferCodeOneTimeUseCodeV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read One-Time Use Offer Code Information - Get details about a specific one-time use offer code for an auto-renewable subscription. + # Read One-Time Use Offer Code Information + Get details about a specific one-time use offer code for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionOfferCodeOneTimeUseCodeV1(id: String, fields: [GetSubscriptionOfferCodeOneTimeUseCodeV1.Field]? = nil, includes: [GetSubscriptionOfferCodeOneTimeUseCodeV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/Relationships/GetValuesForSubscriptionOfferCodeOneTimeUseCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/Relationships/GetValuesForSubscriptionOfferCodeOneTimeUseCodeV1.swift index d48e0e6b7..2a87875e0 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/Relationships/GetValuesForSubscriptionOfferCodeOneTimeUseCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/Relationships/GetValuesForSubscriptionOfferCodeOneTimeUseCodeV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # List One-Time Use Offer Code Values - Get a list of one-time use offer codes for an auto-renewable subscription in CSV format. + # List One-Time Use Offer Code Values + Get a list of one-time use offer codes for an auto-renewable subscription in CSV format. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getValuesForSubscriptionOfferCodeOneTimeUseCodeV1(id: String) -> Request { - return .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)/values", method: .get) + .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)/values", method: .get) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/UpdateSubscriptionOfferCodeOneTimeUseCodeV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/UpdateSubscriptionOfferCodeOneTimeUseCodeV1.swift index 119f9a138..af297f4c2 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/UpdateSubscriptionOfferCodeOneTimeUseCodeV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionOfferCodeOneTimeUseCode/UpdateSubscriptionOfferCodeOneTimeUseCodeV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Deactivate One-Time Use Offer Codes - Deactivate a batch of one-time use offer codes for an auto-renewable subscription. + # Deactivate One-Time Use Offer Codes + Deactivate a batch of one-time use offer codes for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionOfferCodeOneTimeUseCode representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionOfferCodeOneTimeUseCode representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionOfferCodeOneTimeUseCodeV1(id: String, requestBody: SubscriptionOfferCodeOneTimeUseCodeUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPrice/CreateSubscriptionPriceV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPrice/CreateSubscriptionPriceV1.swift index 053fe5be2..f4961121c 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPrice/CreateSubscriptionPriceV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPrice/CreateSubscriptionPriceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Subscription Price Change - Schedule a subscription price change for a specific territory. + # Create a Subscription Price Change + Schedule a subscription price change for a specific territory. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionPrice representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionPrice representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionPriceV1(requestBody: SubscriptionPriceCreateRequest) -> Request { - return .init(path: "/v1/subscriptionPrices", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionPrices", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPrice/DeleteSubscriptionPriceV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPrice/DeleteSubscriptionPriceV1.swift index 78fbb5737..c6345ff4f 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPrice/DeleteSubscriptionPriceV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPrice/DeleteSubscriptionPriceV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete Subscription Prices - Delete a scheduled price change for an auto-renewable subscription. + # Delete Subscription Prices + Delete a scheduled price change for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionPriceV1(id: String) -> Request { - return .init(path: "/v1/subscriptionPrices/\(id)", method: .delete) + .init(path: "/v1/subscriptionPrices/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/GetSubscriptionPricePointV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/GetSubscriptionPricePointV1.swift index e9474dd58..56ba35013 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/GetSubscriptionPricePointV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/GetSubscriptionPricePointV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # Read Subscription Price Point Information - Get details about a specific subscription price point. + # Read Subscription Price Point Information + Get details about a specific subscription price point. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionPricePointV1(id: String, fields: [GetSubscriptionPricePointV1.Field]? = nil, includes: [GetSubscriptionPricePointV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionPricePoints/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionPricePoints/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/Relationships/ListEqualizationsForSubscriptionPricePointV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/Relationships/ListEqualizationsForSubscriptionPricePointV1.swift index b231c8a91..05ae49676 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/Relationships/ListEqualizationsForSubscriptionPricePointV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPricePoint/Relationships/ListEqualizationsForSubscriptionPricePointV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Subscription Price Point Equalizations - Get a list of subscription price points and their equivalent in a specified currency. + # List All Subscription Price Point Equalizations + Get a list of subscription price points and their equivalent in a specified currency. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 40000 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 40000 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listEqualizationsForSubscriptionPricePointV1(id: String, fields: [ListEqualizationsForSubscriptionPricePointV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListEqualizationsForSubscriptionPricePointV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionPricePoints/\(id)/equalizations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionPricePoints/\(id)/equalizations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/CreateSubscriptionPromotionalOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/CreateSubscriptionPromotionalOfferV1.swift index 70600fe22..28cb2c049 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/CreateSubscriptionPromotionalOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/CreateSubscriptionPromotionalOfferV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Promotional Offer - Create a promotional offer for an auto-renewable subscription. + # Create a Promotional Offer + Create a promotional offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionPromotionalOffer representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionPromotionalOffer representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionPromotionalOfferV1(requestBody: SubscriptionPromotionalOfferCreateRequest) -> Request { - return .init(path: "/v1/subscriptionPromotionalOffers", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionPromotionalOffers", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/DeleteSubscriptionPromotionalOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/DeleteSubscriptionPromotionalOfferV1.swift index 79755118f..0ec962d45 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/DeleteSubscriptionPromotionalOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/DeleteSubscriptionPromotionalOfferV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Delete a Promotional Offer from a Subscription - Delete a specific promotional offer from an auto-renewable subscription. + # Delete a Promotional Offer from a Subscription + Delete a specific promotional offer from an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteSubscriptionPromotionalOfferV1(id: String) -> Request { - return .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .delete) + .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/GetSubscriptionPromotionalOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/GetSubscriptionPromotionalOfferV1.swift index 6d41bfa36..c51e6a2eb 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/GetSubscriptionPromotionalOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/GetSubscriptionPromotionalOfferV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read Promotional Offer Information - Get details about a specific promotional offer for an auto-renewable subscription. + # Read Promotional Offer Information + Get details about a specific promotional offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related prices returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related prices returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionPromotionalOfferV1(id: String, fields: [GetSubscriptionPromotionalOfferV1.Field]? = nil, includes: [GetSubscriptionPromotionalOfferV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } @@ -53,6 +53,7 @@ public enum GetSubscriptionPromotionalOfferV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case prices, subscription + case prices + case subscription } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/Relationships/ListPricesForSubscriptionPromotionalOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/Relationships/ListPricesForSubscriptionPromotionalOfferV1.swift index ab3c222cd..c62b95c12 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/Relationships/ListPricesForSubscriptionPromotionalOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/Relationships/ListPricesForSubscriptionPromotionalOfferV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List All Promotional Offer Prices for a Subscription - Get a list of prices of a promotional offer for an auto-renewable subscription, for a specified territory. + # List All Promotional Offer Prices for a Subscription + Get a list of prices of a promotional offer for an auto-renewable subscription, for a specified territory. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listPricesForSubscriptionPromotionalOfferV1(id: String, fields: [ListPricesForSubscriptionPromotionalOfferV1.Field]? = nil, @@ -19,10 +19,10 @@ public extension Request { includes: [ListPricesForSubscriptionPromotionalOfferV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/subscriptionPromotionalOffers/\(id)/prices", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - limit: limit)) + .init(path: "/v1/subscriptionPromotionalOffers/\(id)/prices", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + limit: limit)) } } @@ -69,6 +69,7 @@ public enum ListPricesForSubscriptionPromotionalOfferV1 { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case subscriptionPricePoint, territory + case subscriptionPricePoint + case territory } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/UpdateSubscriptionPromotionalOfferV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/UpdateSubscriptionPromotionalOfferV1.swift index 36c66e991..9d1074eb9 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/UpdateSubscriptionPromotionalOfferV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionPromotionalOffer/UpdateSubscriptionPromotionalOfferV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a Promotional Offer - Update the prices for a specific promotional offer for an auto-renewable subscription. + # Modify a Promotional Offer + Update the prices for a specific promotional offer for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: SubscriptionPromotionalOffer representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: SubscriptionPromotionalOffer representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateSubscriptionPromotionalOfferV1(id: String, requestBody: SubscriptionPromotionalOfferUpdateRequest) -> Request { - return .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/subscriptionPromotionalOffers/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/SubscriptionSubmission/CreateSubscriptionSubmissionV1.swift b/Sources/Bagbutik/Endpoints/SubscriptionSubmission/CreateSubscriptionSubmissionV1.swift index d47b70e83..9c2f0690c 100644 --- a/Sources/Bagbutik/Endpoints/SubscriptionSubmission/CreateSubscriptionSubmissionV1.swift +++ b/Sources/Bagbutik/Endpoints/SubscriptionSubmission/CreateSubscriptionSubmissionV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Create a Review Submission for a Subscription - Create a review submission for an auto-renewable subscription. + # Create a Review Submission for a Subscription + Create a review submission for an auto-renewable subscription. - Full documentation: - + Full documentation: + - - Parameter requestBody: SubscriptionSubmission representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: SubscriptionSubmission representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createSubscriptionSubmissionV1(requestBody: SubscriptionSubmissionCreateRequest) -> Request { - return .init(path: "/v1/subscriptionSubmissions", method: .post, requestBody: requestBody) + .init(path: "/v1/subscriptionSubmissions", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/Territory/ListTerritoriesV1.swift b/Sources/Bagbutik/Endpoints/Territory/ListTerritoriesV1.swift index ac6b13281..30ad45545 100644 --- a/Sources/Bagbutik/Endpoints/Territory/ListTerritoriesV1.swift +++ b/Sources/Bagbutik/Endpoints/Territory/ListTerritoriesV1.swift @@ -1,20 +1,20 @@ public extension Request { /** - # List Territories - List all territories where the App Store operates. + # List Territories + List all territories where the App Store operates. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listTerritoriesV1(fields: [ListTerritoriesV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/territories", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/territories", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/User/DeleteUserV1.swift b/Sources/Bagbutik/Endpoints/User/DeleteUserV1.swift index ee79da97b..85de58284 100644 --- a/Sources/Bagbutik/Endpoints/User/DeleteUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/DeleteUserV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Remove a User Account - Remove a user from your team. + # Remove a User Account + Remove a user from your team. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteUserV1(id: String) -> Request { - return .init(path: "/v1/users/\(id)", method: .delete) + .init(path: "/v1/users/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/User/GetUserV1.swift b/Sources/Bagbutik/Endpoints/User/GetUserV1.swift index 6ca84fd51..eb285cf75 100644 --- a/Sources/Bagbutik/Endpoints/User/GetUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/GetUserV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read User Information - Get information about a user on your team, such as name, roles, and app visibility. + # Read User Information + Get information about a user on your team, such as name, roles, and app visibility. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related visibleApps returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related visibleApps returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getUserV1(id: String, fields: [GetUserV1.Field]? = nil, includes: [GetUserV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/users/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/users/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/User/ListUsersV1.swift b/Sources/Bagbutik/Endpoints/User/ListUsersV1.swift index 596a7ed75..532f3e81c 100644 --- a/Sources/Bagbutik/Endpoints/User/ListUsersV1.swift +++ b/Sources/Bagbutik/Endpoints/User/ListUsersV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Users - Get a list of the users on your team. + # List Users + Get a list of the users on your team. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listUsersV1(fields: [ListUsersV1.Field]? = nil, filters: [ListUsersV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListUsersV1.Sort]? = nil, limits: [ListUsersV1.Limit]? = nil) -> Request { - return .init(path: "/v1/users", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/users", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/User/Relationships/CreateVisibleAppsForUserV1.swift b/Sources/Bagbutik/Endpoints/User/Relationships/CreateVisibleAppsForUserV1.swift index 8710f6535..a93204e41 100644 --- a/Sources/Bagbutik/Endpoints/User/Relationships/CreateVisibleAppsForUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/Relationships/CreateVisibleAppsForUserV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Add Visible Apps to a User - Give a user on your team access to one or more apps. + # Add Visible Apps to a User + Give a user on your team access to one or more apps. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createVisibleAppsForUserV1(id: String, requestBody: UserVisibleAppsLinkagesRequest) -> Request { - return .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .post, requestBody: requestBody) + .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/User/Relationships/DeleteVisibleAppsForUserV1.swift b/Sources/Bagbutik/Endpoints/User/Relationships/DeleteVisibleAppsForUserV1.swift index e91365494..9f2b1b7e4 100644 --- a/Sources/Bagbutik/Endpoints/User/Relationships/DeleteVisibleAppsForUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/Relationships/DeleteVisibleAppsForUserV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Remove Visible Apps from a User - Remove a user on your team’s access to one or more apps. + # Remove Visible Apps from a User + Remove a user on your team’s access to one or more apps. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteVisibleAppsForUserV1(id: String, requestBody: UserVisibleAppsLinkagesRequest) -> Request { - return .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .delete, requestBody: requestBody) + .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .delete, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppIdsForUserV1.swift b/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppIdsForUserV1.swift index 3a83afe4a..e3b6c2895 100644 --- a/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppIdsForUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppIdsForUserV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Get All Visible App Resource IDs for a User - Get a list of app resource IDs to which a user on your team has access. + # Get All Visible App Resource IDs for a User + Get a list of app resource IDs to which a user on your team has access. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listVisibleAppIdsForUserV1(id: String, limit: Int? = nil) -> Request { - return .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .get, parameters: .init(limit: limit)) + .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .get, parameters: .init(limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppsForUserV1.swift b/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppsForUserV1.swift index d9bbaa560..991a214f5 100644 --- a/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppsForUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/Relationships/ListVisibleAppsForUserV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Apps Visible to a User - Get a list of apps that a user on your team can view. + # List All Apps Visible to a User + Get a list of apps that a user on your team can view. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listVisibleAppsForUserV1(id: String, fields: [ListVisibleAppsForUserV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/users/\(id)/visibleApps", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/users/\(id)/visibleApps", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/User/Relationships/ReplaceVisibleAppsForUserV1.swift b/Sources/Bagbutik/Endpoints/User/Relationships/ReplaceVisibleAppsForUserV1.swift index 2677711e0..42b8c61fd 100644 --- a/Sources/Bagbutik/Endpoints/User/Relationships/ReplaceVisibleAppsForUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/Relationships/ReplaceVisibleAppsForUserV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Replace the List of Visible Apps for a User - Replace the list of apps a user on your team can see. + # Replace the List of Visible Apps for a User + Replace the list of apps a user on your team can see. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: List of related linkages - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: List of related linkages + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func replaceVisibleAppsForUserV1(id: String, requestBody: UserVisibleAppsLinkagesRequest) -> Request { - return .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .patch, requestBody: requestBody) + .init(path: "/v1/users/\(id)/relationships/visibleApps", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/User/UpdateUserV1.swift b/Sources/Bagbutik/Endpoints/User/UpdateUserV1.swift index b42c2da3c..3b6f51a6b 100644 --- a/Sources/Bagbutik/Endpoints/User/UpdateUserV1.swift +++ b/Sources/Bagbutik/Endpoints/User/UpdateUserV1.swift @@ -1,18 +1,18 @@ public extension Request { /** - # Modify a User Account - Change a user's role, app visibility information, or other account details. + # Modify a User Account + Change a user's role, app visibility information, or other account details. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter requestBody: User representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter requestBody: User representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateUserV1(id: String, requestBody: UserUpdateRequest) -> Request { - return .init(path: "/v1/users/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/v1/users/\(id)", method: .patch, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/UserInvitation/CreateUserInvitationV1.swift b/Sources/Bagbutik/Endpoints/UserInvitation/CreateUserInvitationV1.swift index 8fd9cad0e..3a9679909 100644 --- a/Sources/Bagbutik/Endpoints/UserInvitation/CreateUserInvitationV1.swift +++ b/Sources/Bagbutik/Endpoints/UserInvitation/CreateUserInvitationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Invite a User - Invite a user with assigned user roles to join your team. + # Invite a User + Invite a user with assigned user roles to join your team. - Full documentation: - + Full documentation: + - - Parameter requestBody: UserInvitation representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter requestBody: UserInvitation representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func createUserInvitationV1(requestBody: UserInvitationCreateRequest) -> Request { - return .init(path: "/v1/userInvitations", method: .post, requestBody: requestBody) + .init(path: "/v1/userInvitations", method: .post, requestBody: requestBody) } } diff --git a/Sources/Bagbutik/Endpoints/UserInvitation/DeleteUserInvitationV1.swift b/Sources/Bagbutik/Endpoints/UserInvitation/DeleteUserInvitationV1.swift index c8e840e40..c9818e512 100644 --- a/Sources/Bagbutik/Endpoints/UserInvitation/DeleteUserInvitationV1.swift +++ b/Sources/Bagbutik/Endpoints/UserInvitation/DeleteUserInvitationV1.swift @@ -1,15 +1,15 @@ public extension Request { /** - # Cancel a User Invitation - Cancel a pending invitation for a user to join your team. + # Cancel a User Invitation + Cancel a pending invitation for a user to join your team. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func deleteUserInvitationV1(id: String) -> Request { - return .init(path: "/v1/userInvitations/\(id)", method: .delete) + .init(path: "/v1/userInvitations/\(id)", method: .delete) } } diff --git a/Sources/Bagbutik/Endpoints/UserInvitation/GetUserInvitationV1.swift b/Sources/Bagbutik/Endpoints/UserInvitation/GetUserInvitationV1.swift index 7a68110c2..62d2f383f 100644 --- a/Sources/Bagbutik/Endpoints/UserInvitation/GetUserInvitationV1.swift +++ b/Sources/Bagbutik/Endpoints/UserInvitation/GetUserInvitationV1.swift @@ -1,25 +1,25 @@ public extension Request { /** - # Read User Invitation Information - Get information about a pending invitation to join your team. + # Read User Invitation Information + Get information about a pending invitation to join your team. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Parameter limit: Maximum number of related visibleApps returned (when they are included) - maximum 50 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Parameter limit: Maximum number of related visibleApps returned (when they are included) - maximum 50 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getUserInvitationV1(id: String, fields: [GetUserInvitationV1.Field]? = nil, includes: [GetUserInvitationV1.Include]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/userInvitations/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes, - limit: limit)) + .init(path: "/v1/userInvitations/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes, + limit: limit)) } } diff --git a/Sources/Bagbutik/Endpoints/UserInvitation/ListUserInvitationsV1.swift b/Sources/Bagbutik/Endpoints/UserInvitation/ListUserInvitationsV1.swift index 5ccf7a1ef..398425b4e 100644 --- a/Sources/Bagbutik/Endpoints/UserInvitation/ListUserInvitationsV1.swift +++ b/Sources/Bagbutik/Endpoints/UserInvitation/ListUserInvitationsV1.swift @@ -1,17 +1,17 @@ public extension Request { /** - # List Invited Users - Get a list of pending invitations to join your team. + # List Invited Users + Get a list of pending invitations to join your team. - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listUserInvitationsV1(fields: [ListUserInvitationsV1.Field]? = nil, filters: [ListUserInvitationsV1.Filter]? = nil, @@ -19,11 +19,11 @@ public extension Request { sorts: [ListUserInvitationsV1.Sort]? = nil, limits: [ListUserInvitationsV1.Limit]? = nil) -> Request { - return .init(path: "/v1/userInvitations", method: .get, parameters: .init(fields: fields, - filters: filters, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/v1/userInvitations", method: .get, parameters: .init(fields: fields, + filters: filters, + includes: includes, + sorts: sorts, + limits: limits)) } } diff --git a/Sources/Bagbutik/Endpoints/UserInvitation/Relationships/ListVisibleAppsForUserInvitationV1.swift b/Sources/Bagbutik/Endpoints/UserInvitation/Relationships/ListVisibleAppsForUserInvitationV1.swift index 080fb2ab5..ed67066e6 100644 --- a/Sources/Bagbutik/Endpoints/UserInvitation/Relationships/ListVisibleAppsForUserInvitationV1.swift +++ b/Sources/Bagbutik/Endpoints/UserInvitation/Relationships/ListVisibleAppsForUserInvitationV1.swift @@ -1,22 +1,22 @@ public extension Request { /** - # List All Apps Visible to an Invited User - Get a list of apps that will be visible to a user with a pending invitation. + # List All Apps Visible to an Invited User + Get a list of apps that will be visible to a user with a pending invitation. - Full documentation: - + Full documentation: + - - Parameter id: The id of the requested resource - - Parameter fields: Fields to return for included related types - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: The id of the requested resource + - Parameter fields: Fields to return for included related types + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listVisibleAppsForUserInvitationV1(id: String, fields: [ListVisibleAppsForUserInvitationV1.Field]? = nil, limit: Int? = nil) -> Request { - return .init(path: "/v1/userInvitations/\(id)/visibleApps", method: .get, parameters: .init(fields: fields, - limit: limit)) + .init(path: "/v1/userInvitations/\(id)/visibleApps", method: .get, parameters: .init(fields: fields, + limit: limit)) } } diff --git a/Sources/Bagbutik/Models/AgeRatingDeclaration.swift b/Sources/Bagbutik/Models/AgeRatingDeclaration.swift index 3d9497086..eaac2bf7e 100644 --- a/Sources/Bagbutik/Models/AgeRatingDeclaration.swift +++ b/Sources/Bagbutik/Models/AgeRatingDeclaration.swift @@ -1,6 +1,7 @@ import Foundation /** + # AgeRatingDeclaration The data structure that represents an Age Rating Declarations resource. Full documentation: @@ -16,7 +17,10 @@ public struct AgeRatingDeclaration: Codable { /// Attributes that describe this Age Rating Declarations resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct AgeRatingDeclaration: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # AgeRatingDeclaration.Attributes Attributes that describe an Age Rating Declarations resource. Full documentation: @@ -91,7 +96,24 @@ public struct AgeRatingDeclaration: Codable { public var violenceRealisticProlongedGraphicOrSadistic: ViolenceRealisticProlongedGraphicOrSadistic? @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init(alcoholTobaccoOrDrugUseOrReferences: AlcoholTobaccoOrDrugUseOrReferences? = nil, contests: Contests? = nil, gambling: Bool? = nil, gamblingAndContests: Bool? = nil, gamblingSimulated: GamblingSimulated? = nil, horrorOrFearThemes: HorrorOrFearThemes? = nil, kidsAgeBand: KidsAgeBand? = nil, matureOrSuggestiveThemes: MatureOrSuggestiveThemes? = nil, medicalOrTreatmentInformation: MedicalOrTreatmentInformation? = nil, profanityOrCrudeHumor: ProfanityOrCrudeHumor? = nil, seventeenPlus: Bool? = nil, sexualContentGraphicAndNudity: SexualContentGraphicAndNudity? = nil, sexualContentOrNudity: SexualContentOrNudity? = nil, unrestrictedWebAccess: Bool? = nil, violenceCartoonOrFantasy: ViolenceCartoonOrFantasy? = nil, violenceRealistic: ViolenceRealistic? = nil, violenceRealisticProlongedGraphicOrSadistic: ViolenceRealisticProlongedGraphicOrSadistic? = nil) { + public init(alcoholTobaccoOrDrugUseOrReferences: AlcoholTobaccoOrDrugUseOrReferences? = nil, + contests: Contests? = nil, + gambling: Bool? = nil, + gamblingAndContests: Bool? = nil, + gamblingSimulated: GamblingSimulated? = nil, + horrorOrFearThemes: HorrorOrFearThemes? = nil, + kidsAgeBand: KidsAgeBand? = nil, + matureOrSuggestiveThemes: MatureOrSuggestiveThemes? = nil, + medicalOrTreatmentInformation: MedicalOrTreatmentInformation? = nil, + profanityOrCrudeHumor: ProfanityOrCrudeHumor? = nil, + seventeenPlus: Bool? = nil, + sexualContentGraphicAndNudity: SexualContentGraphicAndNudity? = nil, + sexualContentOrNudity: SexualContentOrNudity? = nil, + unrestrictedWebAccess: Bool? = nil, + violenceCartoonOrFantasy: ViolenceCartoonOrFantasy? = nil, + violenceRealistic: ViolenceRealistic? = nil, + violenceRealisticProlongedGraphicOrSadistic: ViolenceRealisticProlongedGraphicOrSadistic? = nil) + { self.alcoholTobaccoOrDrugUseOrReferences = alcoholTobaccoOrDrugUseOrReferences self.contests = contests self.gambling = gambling @@ -111,7 +133,23 @@ public struct AgeRatingDeclaration: Codable { self.violenceRealisticProlongedGraphicOrSadistic = violenceRealisticProlongedGraphicOrSadistic } - public init(alcoholTobaccoOrDrugUseOrReferences: AlcoholTobaccoOrDrugUseOrReferences? = nil, contests: Contests? = nil, gambling: Bool? = nil, gamblingSimulated: GamblingSimulated? = nil, horrorOrFearThemes: HorrorOrFearThemes? = nil, kidsAgeBand: KidsAgeBand? = nil, matureOrSuggestiveThemes: MatureOrSuggestiveThemes? = nil, medicalOrTreatmentInformation: MedicalOrTreatmentInformation? = nil, profanityOrCrudeHumor: ProfanityOrCrudeHumor? = nil, seventeenPlus: Bool? = nil, sexualContentGraphicAndNudity: SexualContentGraphicAndNudity? = nil, sexualContentOrNudity: SexualContentOrNudity? = nil, unrestrictedWebAccess: Bool? = nil, violenceCartoonOrFantasy: ViolenceCartoonOrFantasy? = nil, violenceRealistic: ViolenceRealistic? = nil, violenceRealisticProlongedGraphicOrSadistic: ViolenceRealisticProlongedGraphicOrSadistic? = nil) { + public init(alcoholTobaccoOrDrugUseOrReferences: AlcoholTobaccoOrDrugUseOrReferences? = nil, + contests: Contests? = nil, + gambling: Bool? = nil, + gamblingSimulated: GamblingSimulated? = nil, + horrorOrFearThemes: HorrorOrFearThemes? = nil, + kidsAgeBand: KidsAgeBand? = nil, + matureOrSuggestiveThemes: MatureOrSuggestiveThemes? = nil, + medicalOrTreatmentInformation: MedicalOrTreatmentInformation? = nil, + profanityOrCrudeHumor: ProfanityOrCrudeHumor? = nil, + seventeenPlus: Bool? = nil, + sexualContentGraphicAndNudity: SexualContentGraphicAndNudity? = nil, + sexualContentOrNudity: SexualContentOrNudity? = nil, + unrestrictedWebAccess: Bool? = nil, + violenceCartoonOrFantasy: ViolenceCartoonOrFantasy? = nil, + violenceRealistic: ViolenceRealistic? = nil, + violenceRealisticProlongedGraphicOrSadistic: ViolenceRealisticProlongedGraphicOrSadistic? = nil) + { self.alcoholTobaccoOrDrugUseOrReferences = alcoholTobaccoOrDrugUseOrReferences self.contests = contests self.gambling = gambling diff --git a/Sources/Bagbutik/Models/AgeRatingDeclarationResponse.swift b/Sources/Bagbutik/Models/AgeRatingDeclarationResponse.swift index 29c6acab3..d5a3b0964 100644 --- a/Sources/Bagbutik/Models/AgeRatingDeclarationResponse.swift +++ b/Sources/Bagbutik/Models/AgeRatingDeclarationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AgeRatingDeclarationResponse A response that contains a single Age Rating Declarations resource. Full documentation: @@ -12,7 +13,9 @@ public struct AgeRatingDeclarationResponse: Codable { /// Navigational links including the self-link and links to the related data. public let links: DocumentLinks - public init(data: AgeRatingDeclaration, links: DocumentLinks) { + public init(data: AgeRatingDeclaration, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AgeRatingDeclarationUpdateRequest.swift b/Sources/Bagbutik/Models/AgeRatingDeclarationUpdateRequest.swift index 415d286f6..f971c9a46 100644 --- a/Sources/Bagbutik/Models/AgeRatingDeclarationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AgeRatingDeclarationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AgeRatingDeclarationUpdateRequest The request body you use to update an Age Rating Declaration. Full documentation: @@ -15,6 +16,7 @@ public struct AgeRatingDeclarationUpdateRequest: Codable, RequestBody { } /** + # AgeRatingDeclarationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AgeRatingDeclarationUpdateRequest: Codable, RequestBody { /// The attributes you change as part of the update request. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,18 +54,19 @@ public struct AgeRatingDeclarationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AgeRatingDeclarationUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. + For more information about app ratings, see [App ratings](https://help.apple.com/app-store-connect/#/dev269f11291). + Full documentation: - - For more information about app ratings, see [App ratings](https://help.apple.com/app-store-connect/#/dev269f11291). */ public struct Attributes: Codable { /// Declaration for alcohol, tobacco, or drug use. @@ -101,7 +106,24 @@ public struct AgeRatingDeclarationUpdateRequest: Codable, RequestBody { public var violenceRealisticProlongedGraphicOrSadistic: AgeRatingDeclaration.Attributes.ViolenceRealisticProlongedGraphicOrSadistic? @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init(alcoholTobaccoOrDrugUseOrReferences: AgeRatingDeclaration.Attributes.AlcoholTobaccoOrDrugUseOrReferences? = nil, contests: AgeRatingDeclaration.Attributes.Contests? = nil, gambling: Bool? = nil, gamblingAndContests: Bool? = nil, gamblingSimulated: AgeRatingDeclaration.Attributes.GamblingSimulated? = nil, horrorOrFearThemes: AgeRatingDeclaration.Attributes.HorrorOrFearThemes? = nil, kidsAgeBand: KidsAgeBand? = nil, matureOrSuggestiveThemes: AgeRatingDeclaration.Attributes.MatureOrSuggestiveThemes? = nil, medicalOrTreatmentInformation: AgeRatingDeclaration.Attributes.MedicalOrTreatmentInformation? = nil, profanityOrCrudeHumor: AgeRatingDeclaration.Attributes.ProfanityOrCrudeHumor? = nil, seventeenPlus: Bool? = nil, sexualContentGraphicAndNudity: AgeRatingDeclaration.Attributes.SexualContentGraphicAndNudity? = nil, sexualContentOrNudity: AgeRatingDeclaration.Attributes.SexualContentOrNudity? = nil, unrestrictedWebAccess: Bool? = nil, violenceCartoonOrFantasy: AgeRatingDeclaration.Attributes.ViolenceCartoonOrFantasy? = nil, violenceRealistic: AgeRatingDeclaration.Attributes.ViolenceRealistic? = nil, violenceRealisticProlongedGraphicOrSadistic: AgeRatingDeclaration.Attributes.ViolenceRealisticProlongedGraphicOrSadistic? = nil) { + public init(alcoholTobaccoOrDrugUseOrReferences: AgeRatingDeclaration.Attributes.AlcoholTobaccoOrDrugUseOrReferences? = nil, + contests: AgeRatingDeclaration.Attributes.Contests? = nil, + gambling: Bool? = nil, + gamblingAndContests: Bool? = nil, + gamblingSimulated: AgeRatingDeclaration.Attributes.GamblingSimulated? = nil, + horrorOrFearThemes: AgeRatingDeclaration.Attributes.HorrorOrFearThemes? = nil, + kidsAgeBand: KidsAgeBand? = nil, + matureOrSuggestiveThemes: AgeRatingDeclaration.Attributes.MatureOrSuggestiveThemes? = nil, + medicalOrTreatmentInformation: AgeRatingDeclaration.Attributes.MedicalOrTreatmentInformation? = nil, + profanityOrCrudeHumor: AgeRatingDeclaration.Attributes.ProfanityOrCrudeHumor? = nil, + seventeenPlus: Bool? = nil, + sexualContentGraphicAndNudity: AgeRatingDeclaration.Attributes.SexualContentGraphicAndNudity? = nil, + sexualContentOrNudity: AgeRatingDeclaration.Attributes.SexualContentOrNudity? = nil, + unrestrictedWebAccess: Bool? = nil, + violenceCartoonOrFantasy: AgeRatingDeclaration.Attributes.ViolenceCartoonOrFantasy? = nil, + violenceRealistic: AgeRatingDeclaration.Attributes.ViolenceRealistic? = nil, + violenceRealisticProlongedGraphicOrSadistic: AgeRatingDeclaration.Attributes.ViolenceRealisticProlongedGraphicOrSadistic? = nil) + { self.alcoholTobaccoOrDrugUseOrReferences = alcoholTobaccoOrDrugUseOrReferences self.contests = contests self.gambling = gambling @@ -121,7 +143,23 @@ public struct AgeRatingDeclarationUpdateRequest: Codable, RequestBody { self.violenceRealisticProlongedGraphicOrSadistic = violenceRealisticProlongedGraphicOrSadistic } - public init(alcoholTobaccoOrDrugUseOrReferences: AgeRatingDeclaration.Attributes.AlcoholTobaccoOrDrugUseOrReferences? = nil, contests: AgeRatingDeclaration.Attributes.Contests? = nil, gambling: Bool? = nil, gamblingSimulated: AgeRatingDeclaration.Attributes.GamblingSimulated? = nil, horrorOrFearThemes: AgeRatingDeclaration.Attributes.HorrorOrFearThemes? = nil, kidsAgeBand: KidsAgeBand? = nil, matureOrSuggestiveThemes: AgeRatingDeclaration.Attributes.MatureOrSuggestiveThemes? = nil, medicalOrTreatmentInformation: AgeRatingDeclaration.Attributes.MedicalOrTreatmentInformation? = nil, profanityOrCrudeHumor: AgeRatingDeclaration.Attributes.ProfanityOrCrudeHumor? = nil, seventeenPlus: Bool? = nil, sexualContentGraphicAndNudity: AgeRatingDeclaration.Attributes.SexualContentGraphicAndNudity? = nil, sexualContentOrNudity: AgeRatingDeclaration.Attributes.SexualContentOrNudity? = nil, unrestrictedWebAccess: Bool? = nil, violenceCartoonOrFantasy: AgeRatingDeclaration.Attributes.ViolenceCartoonOrFantasy? = nil, violenceRealistic: AgeRatingDeclaration.Attributes.ViolenceRealistic? = nil, violenceRealisticProlongedGraphicOrSadistic: AgeRatingDeclaration.Attributes.ViolenceRealisticProlongedGraphicOrSadistic? = nil) { + public init(alcoholTobaccoOrDrugUseOrReferences: AgeRatingDeclaration.Attributes.AlcoholTobaccoOrDrugUseOrReferences? = nil, + contests: AgeRatingDeclaration.Attributes.Contests? = nil, + gambling: Bool? = nil, + gamblingSimulated: AgeRatingDeclaration.Attributes.GamblingSimulated? = nil, + horrorOrFearThemes: AgeRatingDeclaration.Attributes.HorrorOrFearThemes? = nil, + kidsAgeBand: KidsAgeBand? = nil, + matureOrSuggestiveThemes: AgeRatingDeclaration.Attributes.MatureOrSuggestiveThemes? = nil, + medicalOrTreatmentInformation: AgeRatingDeclaration.Attributes.MedicalOrTreatmentInformation? = nil, + profanityOrCrudeHumor: AgeRatingDeclaration.Attributes.ProfanityOrCrudeHumor? = nil, + seventeenPlus: Bool? = nil, + sexualContentGraphicAndNudity: AgeRatingDeclaration.Attributes.SexualContentGraphicAndNudity? = nil, + sexualContentOrNudity: AgeRatingDeclaration.Attributes.SexualContentOrNudity? = nil, + unrestrictedWebAccess: Bool? = nil, + violenceCartoonOrFantasy: AgeRatingDeclaration.Attributes.ViolenceCartoonOrFantasy? = nil, + violenceRealistic: AgeRatingDeclaration.Attributes.ViolenceRealistic? = nil, + violenceRealisticProlongedGraphicOrSadistic: AgeRatingDeclaration.Attributes.ViolenceRealisticProlongedGraphicOrSadistic? = nil) + { self.alcoholTobaccoOrDrugUseOrReferences = alcoholTobaccoOrDrugUseOrReferences self.contests = contests self.gambling = gambling diff --git a/Sources/Bagbutik/Models/App.swift b/Sources/Bagbutik/Models/App.swift index 9ce8fedb2..06dd951d4 100644 --- a/Sources/Bagbutik/Models/App.swift +++ b/Sources/Bagbutik/Models/App.swift @@ -1,6 +1,7 @@ import Foundation /** + # App The data structure that represents an Apps resource. Full documentation: @@ -18,7 +19,11 @@ public struct App: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # App.Attributes Attributes that describe an Apps resource. Full documentation: @@ -76,7 +82,18 @@ public struct App: Codable { public var subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? public var subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? - public init(availableInNewTerritories: Bool? = nil, bundleId: String? = nil, contentRightsDeclaration: ContentRightsDeclaration? = nil, isOrEverWasMadeForKids: Bool? = nil, name: String? = nil, primaryLocale: String? = nil, sku: String? = nil, subscriptionStatusUrl: String? = nil, subscriptionStatusUrlForSandbox: String? = nil, subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? = nil, subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? = nil) { + public init(availableInNewTerritories: Bool? = nil, + bundleId: String? = nil, + contentRightsDeclaration: ContentRightsDeclaration? = nil, + isOrEverWasMadeForKids: Bool? = nil, + name: String? = nil, + primaryLocale: String? = nil, + sku: String? = nil, + subscriptionStatusUrl: String? = nil, + subscriptionStatusUrlForSandbox: String? = nil, + subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? = nil, + subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? = nil) + { self.availableInNewTerritories = availableInNewTerritories self.bundleId = bundleId self.contentRightsDeclaration = contentRightsDeclaration @@ -97,6 +114,7 @@ public struct App: Codable { } /** + # App.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -145,7 +163,30 @@ public struct App: Codable { public var subscriptionGroups: SubscriptionGroups? @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init(appClips: AppClips? = nil, appCustomProductPages: AppCustomProductPages? = nil, appEvents: AppEvents? = nil, appInfos: AppInfos? = nil, appStoreVersions: AppStoreVersions? = nil, availableTerritories: AvailableTerritories? = nil, betaAppLocalizations: BetaAppLocalizations? = nil, betaAppReviewDetail: BetaAppReviewDetail? = nil, betaGroups: BetaGroups? = nil, betaLicenseAgreement: BetaLicenseAgreement? = nil, builds: Builds? = nil, ciProduct: CiProduct? = nil, endUserLicenseAgreement: EndUserLicenseAgreement? = nil, gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, inAppPurchases: InAppPurchases? = nil, inAppPurchasesV2: InAppPurchasesV2? = nil, preOrder: PreOrder? = nil, preReleaseVersions: PreReleaseVersions? = nil, prices: Prices? = nil, promotedPurchases: PromotedPurchases? = nil, reviewSubmissions: ReviewSubmissions? = nil, subscriptionGracePeriod: SubscriptionGracePeriod? = nil, subscriptionGroups: SubscriptionGroups? = nil) { + public init(appClips: AppClips? = nil, + appCustomProductPages: AppCustomProductPages? = nil, + appEvents: AppEvents? = nil, + appInfos: AppInfos? = nil, + appStoreVersions: AppStoreVersions? = nil, + availableTerritories: AvailableTerritories? = nil, + betaAppLocalizations: BetaAppLocalizations? = nil, + betaAppReviewDetail: BetaAppReviewDetail? = nil, + betaGroups: BetaGroups? = nil, + betaLicenseAgreement: BetaLicenseAgreement? = nil, + builds: Builds? = nil, + ciProduct: CiProduct? = nil, + endUserLicenseAgreement: EndUserLicenseAgreement? = nil, + gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, + inAppPurchases: InAppPurchases? = nil, + inAppPurchasesV2: InAppPurchasesV2? = nil, + preOrder: PreOrder? = nil, + preReleaseVersions: PreReleaseVersions? = nil, + prices: Prices? = nil, + promotedPurchases: PromotedPurchases? = nil, + reviewSubmissions: ReviewSubmissions? = nil, + subscriptionGracePeriod: SubscriptionGracePeriod? = nil, + subscriptionGroups: SubscriptionGroups? = nil) + { self.appClips = appClips self.appCustomProductPages = appCustomProductPages self.appEvents = appEvents @@ -171,7 +212,29 @@ public struct App: Codable { self.subscriptionGroups = subscriptionGroups } - public init(appClips: AppClips? = nil, appCustomProductPages: AppCustomProductPages? = nil, appEvents: AppEvents? = nil, appInfos: AppInfos? = nil, appStoreVersions: AppStoreVersions? = nil, availableTerritories: AvailableTerritories? = nil, betaAppLocalizations: BetaAppLocalizations? = nil, betaAppReviewDetail: BetaAppReviewDetail? = nil, betaGroups: BetaGroups? = nil, betaLicenseAgreement: BetaLicenseAgreement? = nil, builds: Builds? = nil, ciProduct: CiProduct? = nil, endUserLicenseAgreement: EndUserLicenseAgreement? = nil, gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, inAppPurchasesV2: InAppPurchasesV2? = nil, preOrder: PreOrder? = nil, preReleaseVersions: PreReleaseVersions? = nil, prices: Prices? = nil, promotedPurchases: PromotedPurchases? = nil, reviewSubmissions: ReviewSubmissions? = nil, subscriptionGracePeriod: SubscriptionGracePeriod? = nil, subscriptionGroups: SubscriptionGroups? = nil) { + public init(appClips: AppClips? = nil, + appCustomProductPages: AppCustomProductPages? = nil, + appEvents: AppEvents? = nil, + appInfos: AppInfos? = nil, + appStoreVersions: AppStoreVersions? = nil, + availableTerritories: AvailableTerritories? = nil, + betaAppLocalizations: BetaAppLocalizations? = nil, + betaAppReviewDetail: BetaAppReviewDetail? = nil, + betaGroups: BetaGroups? = nil, + betaLicenseAgreement: BetaLicenseAgreement? = nil, + builds: Builds? = nil, + ciProduct: CiProduct? = nil, + endUserLicenseAgreement: EndUserLicenseAgreement? = nil, + gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, + inAppPurchasesV2: InAppPurchasesV2? = nil, + preOrder: PreOrder? = nil, + preReleaseVersions: PreReleaseVersions? = nil, + prices: Prices? = nil, + promotedPurchases: PromotedPurchases? = nil, + reviewSubmissions: ReviewSubmissions? = nil, + subscriptionGracePeriod: SubscriptionGracePeriod? = nil, + subscriptionGroups: SubscriptionGroups? = nil) + { self.appClips = appClips self.appCustomProductPages = appCustomProductPages self.appEvents = appEvents @@ -197,6 +260,7 @@ public struct App: Codable { } /** + # App.Relationships.AppClips The data and links that describe the relationship between the Apps and the App Clips resources. Full documentation: @@ -210,13 +274,17 @@ public struct App: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.AppClips.Data The type and ID of a related App Clips resource. Full documentation: @@ -253,6 +321,7 @@ public struct App: Codable { } /** + # App.Relationships.AppClips.Links The links to the related App Clips resource and the relationship’s self-link. Full documentation: @@ -264,7 +333,9 @@ public struct App: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -282,8 +353,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -293,7 +364,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -331,7 +405,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -349,8 +425,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -360,7 +436,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -398,7 +477,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -416,13 +497,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.AppInfos The data and links that describe the relationship between the resources. Full documentation: @@ -433,13 +515,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.AppInfos.Data The type and ID of a related resource. Full documentation: @@ -474,6 +560,7 @@ public struct App: Codable { } /** + # App.Relationships.AppInfos.Links The links to the related data and the relationship's self-link. Full documentation: @@ -483,7 +570,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -501,13 +590,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.AppStoreVersions The data and links that describe the relationship between the resources. Full documentation: @@ -518,13 +608,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.AppStoreVersions.Data The type and ID of a related resource. Full documentation: @@ -559,6 +653,7 @@ public struct App: Codable { } /** + # App.Relationships.AppStoreVersions.Links The links to the related data and the relationship's self-link. Full documentation: @@ -568,7 +663,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -586,13 +683,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.AvailableTerritories The data and links that describe the relationship between the resources. Full documentation: @@ -603,13 +701,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.AvailableTerritories.Data The type and ID of a related resource. Full documentation: @@ -644,6 +746,7 @@ public struct App: Codable { } /** + # App.Relationships.AvailableTerritories.Links The links to the related data and the relationship's self-link. Full documentation: @@ -653,7 +756,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -671,13 +776,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.BetaAppLocalizations The data and links that describe the relationship between the resources. Full documentation: @@ -688,13 +794,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.BetaAppLocalizations.Data The type and ID of a related resource. Full documentation: @@ -731,6 +841,7 @@ public struct App: Codable { } /** + # App.Relationships.BetaAppLocalizations.Links The links to the related data and the relationship's self-link. Full documentation: @@ -740,7 +851,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -758,13 +871,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.BetaAppReviewDetail The data and links that describe the relationship between the resources. Full documentation: @@ -774,12 +888,15 @@ public struct App: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # App.Relationships.BetaAppReviewDetail.Data The type and ID of a related resource. Full documentation: @@ -816,6 +933,7 @@ public struct App: Codable { } /** + # App.Relationships.BetaAppReviewDetail.Links The links to the related data and the relationship's self-link. Full documentation: @@ -825,7 +943,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -843,13 +963,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.BetaGroups The data and links that describe the relationship between the resources. Full documentation: @@ -860,13 +981,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.BetaGroups.Data The type and ID of a related resource. Full documentation: @@ -903,6 +1028,7 @@ public struct App: Codable { } /** + # App.Relationships.BetaGroups.Links The links to the related data and the relationship's self-link. Full documentation: @@ -912,7 +1038,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -930,13 +1058,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.BetaLicenseAgreement The data and links that describe the relationship between the resources. Full documentation: @@ -946,12 +1075,15 @@ public struct App: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # App.Relationships.BetaLicenseAgreement.Data The type and ID of a related resource. Full documentation: @@ -988,6 +1120,7 @@ public struct App: Codable { } /** + # App.Relationships.BetaLicenseAgreement.Links The links to the related data and the relationship's self-link. Full documentation: @@ -997,7 +1130,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1015,13 +1150,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.Builds The data and links that describe the relationship between the resources. Full documentation: @@ -1032,13 +1168,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.Builds.Data The type and ID of a related resource. Full documentation: @@ -1075,6 +1215,7 @@ public struct App: Codable { } /** + # App.Relationships.Builds.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1084,7 +1225,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1102,13 +1245,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.CiProduct The data and links that describe the relationship between the Apps and Products resources. Full documentation: @@ -1120,12 +1264,15 @@ public struct App: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # App.Relationships.CiProduct.Data The type and ID of a related Products resource. Full documentation: @@ -1162,6 +1309,7 @@ public struct App: Codable { } /** + # App.Relationships.CiProduct.Links The links to the related Products resource and the relationship’s self-link. Full documentation: @@ -1173,7 +1321,9 @@ public struct App: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1191,13 +1341,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.EndUserLicenseAgreement The data and links that describe the relationship between the resources. Full documentation: @@ -1207,12 +1358,15 @@ public struct App: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # App.Relationships.EndUserLicenseAgreement.Data The type and ID of a related resource. Full documentation: @@ -1247,6 +1401,7 @@ public struct App: Codable { } /** + # App.Relationships.EndUserLicenseAgreement.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1256,7 +1411,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1274,13 +1431,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.GameCenterEnabledVersions The data and links that describe the relationship between the resources. Full documentation: @@ -1291,13 +1449,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.GameCenterEnabledVersions.Data The type and ID of a related resource. Full documentation: @@ -1332,6 +1494,7 @@ public struct App: Codable { } /** + # App.Relationships.GameCenterEnabledVersions.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1341,7 +1504,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1359,13 +1524,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.InAppPurchases The data and links that describe the relationship between the resources. Full documentation: @@ -1376,13 +1542,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.InAppPurchases.Data The type and ID of a related resource. Full documentation: @@ -1417,6 +1587,7 @@ public struct App: Codable { } /** + # App.Relationships.InAppPurchases.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -1426,7 +1597,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1444,8 +1617,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -1455,7 +1628,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -1493,7 +1669,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1511,13 +1689,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.PreOrder The data and links that describe the relationship between the resources. Full documentation: @@ -1527,12 +1706,15 @@ public struct App: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # App.Relationships.PreOrder.Data The type and ID of a related resource. Full documentation: @@ -1567,6 +1749,7 @@ public struct App: Codable { } /** + # App.Relationships.PreOrder.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1576,7 +1759,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1594,13 +1779,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.PreReleaseVersions The data and links that describe the relationship between the resources. Full documentation: @@ -1611,13 +1797,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.PreReleaseVersions.Data The type and ID of a related resource. Full documentation: @@ -1654,6 +1844,7 @@ public struct App: Codable { } /** + # App.Relationships.PreReleaseVersions.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1663,7 +1854,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1681,13 +1874,14 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # App.Relationships.Prices The data and links that describe the relationship between the resources. Full documentation: @@ -1698,13 +1892,17 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # App.Relationships.Prices.Data The type and ID of a related resource. Full documentation: @@ -1739,6 +1937,7 @@ public struct App: Codable { } /** + # App.Relationships.Prices.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1748,7 +1947,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1766,8 +1967,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -1777,7 +1978,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -1815,7 +2019,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1833,8 +2039,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -1844,7 +2050,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -1882,7 +2091,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1900,8 +2111,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -1910,7 +2121,9 @@ public struct App: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -1947,7 +2160,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1965,8 +2180,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -1976,7 +2191,10 @@ public struct App: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -2014,7 +2232,9 @@ public struct App: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -2032,8 +2252,8 @@ public struct App: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppBetaTestersLinkagesRequest.swift b/Sources/Bagbutik/Models/AppBetaTestersLinkagesRequest.swift index f0df6084e..82e10c188 100644 --- a/Sources/Bagbutik/Models/AppBetaTestersLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/AppBetaTestersLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppBetaTestersLinkagesRequest A request body you use to remove beta testers from an app. Full documentation: @@ -15,6 +16,7 @@ public struct AppBetaTestersLinkagesRequest: Codable, RequestBody { } /** + # AppBetaTestersLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppCategoriesResponse.swift b/Sources/Bagbutik/Models/AppCategoriesResponse.swift index 1bc35bd57..f6b0bb6df 100644 --- a/Sources/Bagbutik/Models/AppCategoriesResponse.swift +++ b/Sources/Bagbutik/Models/AppCategoriesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppCategoriesResponse A response that contains a list of App Category resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppCategoriesResponse: Codable, PagedResponse { public typealias Data = AppCategory + public let data: [AppCategory] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppCategory], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppCategory], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCategory.swift b/Sources/Bagbutik/Models/AppCategory.swift index 7a97d7ed8..b9e5c7e9e 100644 --- a/Sources/Bagbutik/Models/AppCategory.swift +++ b/Sources/Bagbutik/Models/AppCategory.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppCategory The data structure that represent an App Categories resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppCategory: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppCategory: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppCategory.Attributes Attributes that describe an App Categories resource. Full documentation: @@ -63,6 +69,7 @@ public struct AppCategory: Codable { } /** + # AppCategory.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -72,12 +79,15 @@ public struct AppCategory: Codable { public var parent: Parent? public var subcategories: Subcategories? - public init(parent: Parent? = nil, subcategories: Subcategories? = nil) { + public init(parent: Parent? = nil, + subcategories: Subcategories? = nil) + { self.parent = parent self.subcategories = subcategories } /** + # AppCategory.Relationships.Parent The data and links that describe the relationship between the resources. Full documentation: @@ -87,12 +97,15 @@ public struct AppCategory: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppCategory.Relationships.Parent.Data The type and ID of a related resource. Full documentation: @@ -127,6 +140,7 @@ public struct AppCategory: Codable { } /** + # AppCategory.Relationships.Parent.Links The links to the related data and the relationship's self-link. Full documentation: @@ -136,7 +150,9 @@ public struct AppCategory: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -154,13 +170,14 @@ public struct AppCategory: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppCategory.Relationships.Subcategories The data and links that describe the relationship between the resources. Full documentation: @@ -171,13 +188,17 @@ public struct AppCategory: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppCategory.Relationships.Subcategories.Data The type and ID of a related resource. Full documentation: @@ -212,6 +233,7 @@ public struct AppCategory: Codable { } /** + # AppCategory.Relationships.Subcategories.Links The links to the related data and the relationship's self-link. Full documentation: @@ -221,7 +243,9 @@ public struct AppCategory: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -239,8 +263,8 @@ public struct AppCategory: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppCategoryResponse.swift b/Sources/Bagbutik/Models/AppCategoryResponse.swift index de8dc186c..a1c52a6b0 100644 --- a/Sources/Bagbutik/Models/AppCategoryResponse.swift +++ b/Sources/Bagbutik/Models/AppCategoryResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppCategoryResponse A response that contains a single App Categories resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppCategoryResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppCategory, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppCategory, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClip.swift b/Sources/Bagbutik/Models/AppClip.swift index d20bbb687..4265f5d40 100644 --- a/Sources/Bagbutik/Models/AppClip.swift +++ b/Sources/Bagbutik/Models/AppClip.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClip The data structure that represents an App Clips resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppClip: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClip: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClip.Attributes The attributes that describe an App Clips resource. Full documentation: @@ -69,6 +75,7 @@ public struct AppClip: Codable { } /** + # AppClip.Relationships The relationships of the App Clips resource you included in the request and those on which you can operate. Full documentation: @@ -80,12 +87,15 @@ public struct AppClip: Codable { /// The related Default App Clip Experiences resource. public var appClipDefaultExperiences: AppClipDefaultExperiences? - public init(app: App? = nil, appClipDefaultExperiences: AppClipDefaultExperiences? = nil) { + public init(app: App? = nil, + appClipDefaultExperiences: AppClipDefaultExperiences? = nil) + { self.app = app self.appClipDefaultExperiences = appClipDefaultExperiences } /** + # AppClip.Relationships.App The data and links that describe the relationship between the App Clips and the Apps resource. Full documentation: @@ -97,12 +107,15 @@ public struct AppClip: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClip.Relationships.App.Data The type and ID of a related Apps resource. Full documentation: @@ -139,6 +152,7 @@ public struct AppClip: Codable { } /** + # AppClip.Relationships.App.Links The links to the related Apps resource and the relationship’s self-link. Full documentation: @@ -150,7 +164,9 @@ public struct AppClip: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -168,13 +184,14 @@ public struct AppClip: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClip.Relationships.AppClipDefaultExperiences The data and links that describe the relationship between the App Clips and the Default App Clip Experiences resources. Full documentation: @@ -188,13 +205,17 @@ public struct AppClip: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppClip.Relationships.AppClipDefaultExperiences.Data The links to the related Default App Clip Experiences resource and the relationship’s self-link. Full documentation: @@ -231,6 +252,7 @@ public struct AppClip: Codable { } /** + # AppClip.Relationships.AppClipDefaultExperiences.Links The type and ID of a related Default App Clip Experiences resource. Full documentation: @@ -242,7 +264,9 @@ public struct AppClip: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -260,8 +284,8 @@ public struct AppClip: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipAction.swift b/Sources/Bagbutik/Models/AppClipAction.swift index 071562a15..829c11d67 100644 --- a/Sources/Bagbutik/Models/AppClipAction.swift +++ b/Sources/Bagbutik/Models/AppClipAction.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the call-to-action verb on the App Clip card. + # AppClipAction + A string that represents the call-to-action verb on the App Clip card. - Full documentation: - + Full documentation: + */ public enum AppClipAction: String, Codable, CaseIterable { case open = "OPEN" diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperience.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperience.swift index 0c153f3d9..e937b3f3e 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperience.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperience.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperience The data structure that represents an Advanced App Clip Experiences resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppClipAdvancedExperience: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClipAdvancedExperience: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClipAdvancedExperience.Attributes The attributes that describe an Advanced App Clip Experiences resource. Full documentation: @@ -79,7 +85,16 @@ public struct AppClipAdvancedExperience: Codable { /// The build version of the App Clip as an integer value; for example, `1234`. public var version: Int? - public init(action: AppClipAction? = nil, businessCategory: BusinessCategory? = nil, defaultLanguage: AppClipAdvancedExperienceLanguage? = nil, isPoweredBy: Bool? = nil, link: String? = nil, place: Place? = nil, placeStatus: PlaceStatus? = nil, status: Status? = nil, version: Int? = nil) { + public init(action: AppClipAction? = nil, + businessCategory: BusinessCategory? = nil, + defaultLanguage: AppClipAdvancedExperienceLanguage? = nil, + isPoweredBy: Bool? = nil, + link: String? = nil, + place: Place? = nil, + placeStatus: PlaceStatus? = nil, + status: Status? = nil, + version: Int? = nil) + { self.action = action self.businessCategory = businessCategory self.defaultLanguage = defaultLanguage @@ -122,6 +137,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Attributes.Place The place information of an advanced App Clip experience. Full documentation: @@ -147,7 +163,16 @@ public struct AppClipAdvancedExperience: Codable { /// A navigational link to related data and included resource types and IDs. public var relationship: Relationship? - public init(categories: [String]? = nil, displayPoint: DisplayPoint? = nil, homePage: String? = nil, mainAddress: MainAddress? = nil, mapAction: MapAction? = nil, names: [String]? = nil, phoneNumber: PhoneNumber? = nil, placeId: String? = nil, relationship: Relationship? = nil) { + public init(categories: [String]? = nil, + displayPoint: DisplayPoint? = nil, + homePage: String? = nil, + mainAddress: MainAddress? = nil, + mapAction: MapAction? = nil, + names: [String]? = nil, + phoneNumber: PhoneNumber? = nil, + placeId: String? = nil, + relationship: Relationship? = nil) + { self.categories = categories self.displayPoint = displayPoint self.homePage = homePage @@ -160,6 +185,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Attributes.Place.DisplayPoint A point-based representation of a place in Apple Maps. Full documentation: @@ -171,12 +197,15 @@ public struct AppClipAdvancedExperience: Codable { /// A string that describes the means by which you captured the data for a display point. public var source: Source? - public init(coordinates: Coordinates? = nil, source: Source? = nil) { + public init(coordinates: Coordinates? = nil, + source: Source? = nil) + { self.coordinates = coordinates self.source = source } /** + # AppClipAdvancedExperience.Attributes.Place.DisplayPoint.Coordinates The coordinates for a point of interest or business in Apple Maps. Full documentation: @@ -188,7 +217,9 @@ public struct AppClipAdvancedExperience: Codable { /// A number that represents the longitude of GPS coordinates of a place in Apple Maps. public var longitude: Double? - public init(latitude: Double? = nil, longitude: Double? = nil) { + public init(latitude: Double? = nil, + longitude: Double? = nil) + { self.latitude = latitude self.longitude = longitude } @@ -201,6 +232,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Attributes.Place.MainAddress The main address for a point of interest or business in Apple Maps. Full documentation: @@ -212,12 +244,15 @@ public struct AppClipAdvancedExperience: Codable { /// The structured address of a place in Apple Maps. public var structuredAddress: StructuredAddress? - public init(fullAddress: String? = nil, structuredAddress: StructuredAddress? = nil) { + public init(fullAddress: String? = nil, + structuredAddress: StructuredAddress? = nil) + { self.fullAddress = fullAddress self.structuredAddress = structuredAddress } /** + # AppClipAdvancedExperience.Attributes.Place.MainAddress.StructuredAddress The structured address information for a point of interest or business in Apple Maps. Full documentation: @@ -239,7 +274,14 @@ public struct AppClipAdvancedExperience: Codable { /// The officially recognized address used by a postal delivery address. It includes — when applicable — a street name, street suffix, building, house, or suite identifiers. public var streetAddress: [String]? - public init(countryCode: String? = nil, floor: String? = nil, locality: String? = nil, neighborhood: String? = nil, postalCode: String? = nil, stateProvince: String? = nil, streetAddress: [String]? = nil) { + public init(countryCode: String? = nil, + floor: String? = nil, + locality: String? = nil, + neighborhood: String? = nil, + postalCode: String? = nil, + stateProvince: String? = nil, + streetAddress: [String]? = nil) + { self.countryCode = countryCode self.floor = floor self.locality = locality @@ -268,6 +310,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Attributes.Place.PhoneNumber The phone number of a point of interest or business in Apple Maps. Full documentation: @@ -281,7 +324,10 @@ public struct AppClipAdvancedExperience: Codable { /// The resource type. public var type: PhoneNumberType? - public init(intent: String? = nil, number: String? = nil, type: PhoneNumberType? = nil) { + public init(intent: String? = nil, + number: String? = nil, + type: PhoneNumberType? = nil) + { self.intent = intent self.number = number self.type = type @@ -316,6 +362,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Relationships The relationships of the Advanced App Clip Experiences resource you included in the request and those on which you can operate. Full documentation: @@ -329,13 +376,17 @@ public struct AppClipAdvancedExperience: Codable { /// The related Advanced App Clip Experience Localizations resource. public var localizations: Localizations? - public init(appClip: AppClip? = nil, headerImage: HeaderImage? = nil, localizations: Localizations? = nil) { + public init(appClip: AppClip? = nil, + headerImage: HeaderImage? = nil, + localizations: Localizations? = nil) + { self.appClip = appClip self.headerImage = headerImage self.localizations = localizations } /** + # AppClipAdvancedExperience.Relationships.AppClip The data and links that describe the relationship between the Advanced App Clip Experiences and the App Clips resources. Full documentation: @@ -347,12 +398,15 @@ public struct AppClipAdvancedExperience: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipAdvancedExperience.Relationships.AppClip.Data The type and ID of a related App Clips resource. Full documentation: @@ -389,6 +443,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Relationships.AppClip.Links The links to the related App Clips resource and the relationship’s self-link. Full documentation: @@ -400,7 +455,9 @@ public struct AppClipAdvancedExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -418,13 +475,14 @@ public struct AppClipAdvancedExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipAdvancedExperience.Relationships.HeaderImage The data and links that describe the relationship between the Advanced App Clip Experiences and the App Clip Header Images resources. Full documentation: @@ -436,12 +494,15 @@ public struct AppClipAdvancedExperience: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipAdvancedExperience.Relationships.HeaderImage.Data The type and ID of a related Header Images resource. Full documentation: @@ -478,6 +539,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Relationships.HeaderImage.Links The links to the related App Clip Header Images resource and the relationship’s self-link. Full documentation: @@ -489,7 +551,9 @@ public struct AppClipAdvancedExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -507,13 +571,14 @@ public struct AppClipAdvancedExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipAdvancedExperience.Relationships.Localizations The data, links, and paging information that describe the relationship between the Advanced App Clip Experiences and the Localizations resources. Full documentation: @@ -527,13 +592,17 @@ public struct AppClipAdvancedExperience: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppClipAdvancedExperience.Relationships.Localizations.Data The type and ID of a related Localizations resource. Full documentation: @@ -570,6 +639,7 @@ public struct AppClipAdvancedExperience: Codable { } /** + # AppClipAdvancedExperience.Relationships.Localizations.Links The links to the related Advanced App Clip Experience Localizations resource and the relationship’s self-link. Full documentation: @@ -581,7 +651,9 @@ public struct AppClipAdvancedExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -599,8 +671,8 @@ public struct AppClipAdvancedExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceCreateRequest.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceCreateRequest.swift index abf04ecc7..41f5001d8 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceCreateRequest The request body you use to create an advanced App Clip experience. Full documentation: @@ -12,12 +13,15 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The relationship data to include in the response. public var included: [AppClipAdvancedExperienceLocalizationInlineCreate]? - public init(data: Data, included: [AppClipAdvancedExperienceLocalizationInlineCreate]? = nil) { + public init(data: Data, + included: [AppClipAdvancedExperienceLocalizationInlineCreate]? = nil) + { self.data = data self.included = included } /** + # AppClipAdvancedExperienceCreateRequest.Data The data element of the request body. Full documentation: @@ -31,7 +35,9 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -53,12 +59,13 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes The attributes you set that describe the new Advanced App Clip Experiences resource. Full documentation: @@ -78,7 +85,13 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The physical location you associate with the advanced App Clip experience. If you associate an advanced App Clip experience with a place, users can launch your App Clip from from location-based suggestions from Siri Suggestions and the Maps app. public var place: Place? - public init(action: AppClipAction? = nil, businessCategory: AppClipAdvancedExperience.Attributes.BusinessCategory? = nil, defaultLanguage: AppClipAdvancedExperienceLanguage, isPoweredBy: Bool, link: String, place: Place? = nil) { + public init(action: AppClipAction? = nil, + businessCategory: AppClipAdvancedExperience.Attributes.BusinessCategory? = nil, + defaultLanguage: AppClipAdvancedExperienceLanguage, + isPoweredBy: Bool, + link: String, + place: Place? = nil) + { self.action = action self.businessCategory = businessCategory self.defaultLanguage = defaultLanguage @@ -88,6 +101,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place The place information of an advanced App Clip experience you create with this request. Full documentation: @@ -113,7 +127,16 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// A navigational link to related data and included resource types and IDs. public var relationship: Relationship? - public init(categories: [String]? = nil, displayPoint: DisplayPoint? = nil, homePage: String? = nil, mainAddress: MainAddress? = nil, mapAction: MapAction? = nil, names: [String]? = nil, phoneNumber: PhoneNumber? = nil, placeId: String? = nil, relationship: Relationship? = nil) { + public init(categories: [String]? = nil, + displayPoint: DisplayPoint? = nil, + homePage: String? = nil, + mainAddress: MainAddress? = nil, + mapAction: MapAction? = nil, + names: [String]? = nil, + phoneNumber: PhoneNumber? = nil, + placeId: String? = nil, + relationship: Relationship? = nil) + { self.categories = categories self.displayPoint = displayPoint self.homePage = homePage @@ -126,6 +149,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place.DisplayPoint A point-based representation of a place in Apple Maps. Full documentation: @@ -137,12 +161,15 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// A string that describes the means by which you captured the data for a display point. public var source: Source? - public init(coordinates: Coordinates? = nil, source: Source? = nil) { + public init(coordinates: Coordinates? = nil, + source: Source? = nil) + { self.coordinates = coordinates self.source = source } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place.DisplayPoint.Coordinates The coordinates for a point of interest or business in Apple Maps. Full documentation: @@ -154,7 +181,9 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// A number that represents the longitude of GPS coordinates of a place in Apple Maps. public var longitude: Double? - public init(latitude: Double? = nil, longitude: Double? = nil) { + public init(latitude: Double? = nil, + longitude: Double? = nil) + { self.latitude = latitude self.longitude = longitude } @@ -167,6 +196,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place.MainAddress The main address for a point of interest or business in Apple Maps. Full documentation: @@ -178,12 +208,15 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The structured address of a place in Apple Maps. public var structuredAddress: StructuredAddress? - public init(fullAddress: String? = nil, structuredAddress: StructuredAddress? = nil) { + public init(fullAddress: String? = nil, + structuredAddress: StructuredAddress? = nil) + { self.fullAddress = fullAddress self.structuredAddress = structuredAddress } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place.MainAddress.StructuredAddress The structured address information for a point of interest or business in Apple Maps. Full documentation: @@ -205,7 +238,14 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The officially recognized address used by a postal delivery address. It includes — when applicable — a street name, street suffix, building, house, or suite identifiers. public var streetAddress: [String]? - public init(countryCode: String? = nil, floor: String? = nil, locality: String? = nil, neighborhood: String? = nil, postalCode: String? = nil, stateProvince: String? = nil, streetAddress: [String]? = nil) { + public init(countryCode: String? = nil, + floor: String? = nil, + locality: String? = nil, + neighborhood: String? = nil, + postalCode: String? = nil, + stateProvince: String? = nil, + streetAddress: [String]? = nil) + { self.countryCode = countryCode self.floor = floor self.locality = locality @@ -234,6 +274,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Attributes.Place.PhoneNumber The phone number of a point of interest or business in Apple Maps. Full documentation: @@ -247,7 +288,10 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The resource type. public var type: PhoneNumberType? - public init(intent: String? = nil, number: String? = nil, type: PhoneNumberType? = nil) { + public init(intent: String? = nil, + number: String? = nil, + type: PhoneNumberType? = nil) + { self.intent = intent self.number = number self.type = type @@ -270,6 +314,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -283,13 +328,17 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { /// The related Advanced App Clip Experience Localizations resource. public let localizations: Localizations - public init(appClip: AppClip, headerImage: HeaderImage, localizations: Localizations) { + public init(appClip: AppClip, + headerImage: HeaderImage, + localizations: Localizations) + { self.appClip = appClip self.headerImage = headerImage self.localizations = localizations } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.AppClip The relationship to the App Clips resource you set with the request that creates an Advanced App Clip Experiences resource. Full documentation: @@ -304,6 +353,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.AppClip.Data The type and ID of the App Clips resource that you’re relating with the Advanced App Clip Experiences resource you’re creating. Full documentation: @@ -341,6 +391,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.HeaderImage The relationship to the App Clip Header Images resource you set with the request that creates an Advanced App Clip Experiences resource. Full documentation: @@ -355,6 +406,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.HeaderImage.Data The type and ID of the App Clip Header Images resource that you’re relating with the Advanced App Clip Experiences resource you’re creating. Full documentation: @@ -392,6 +444,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.Localizations The relationship to the Advanced App Clip Experience Localizations resource you set with the request that creates an Advanced App Clip Experiences resource. Full documentation: @@ -406,6 +459,7 @@ public struct AppClipAdvancedExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceCreateRequest.Data.Relationships.Localizations.Data The type and ID of the Advanced App Clips Experience Localizations resource that you’re relating with the Advanced App Clip Experiences resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImage.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImage.swift index 531250ffd..606662c20 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImage.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImage.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceImage The data structure that represents an image that appears on the App Clip card for an advanced App Clip experience. Full documentation: @@ -16,7 +17,10 @@ public struct AppClipAdvancedExperienceImage: Codable { /// The attributes that describe the Advanced App Clip Experience Images resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct AppClipAdvancedExperienceImage: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # AppClipAdvancedExperienceImage.Attributes The attributes that describe an Advanced App Clip Experience Images resource. Full documentation: @@ -67,7 +72,13 @@ public struct AppClipAdvancedExperienceImage: Codable { /// Upload operations for the image asset that appears on the App Clip card for an advanced App Clip experience. public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.fileName = fileName self.fileSize = fileSize diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageCreateRequest.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageCreateRequest.swift index 716b0c011..1ed870a94 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceImageCreateRequest The request body you use to reserve an image asset for an advanced App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipAdvancedExperienceImageCreateRequest: Codable, RequestBody } /** + # AppClipAdvancedExperienceImageCreateRequest.Data The data element of the request body. Full documentation: @@ -45,11 +47,12 @@ public struct AppClipAdvancedExperienceImageCreateRequest: Codable, RequestBody } private enum CodingKeys: String, CodingKey { - case type case attributes + case type } /** + # AppClipAdvancedExperienceImageCreateRequest.Data.Attributes The attributes you set that describe the new Advanced App Clip Experience Images resource. Full documentation: @@ -61,7 +64,9 @@ public struct AppClipAdvancedExperienceImageCreateRequest: Codable, RequestBody /// The size of the image asset that appears on the App Clip card for the advanced App Clip experience. public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageResponse.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageResponse.swift index fe9c9b2ef..3e830f911 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageResponse.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceImageResponse A response that contains a single Advanced App Clip Experience Images resource. Full documentation: @@ -12,7 +13,9 @@ public struct AppClipAdvancedExperienceImageResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipAdvancedExperienceImage, links: DocumentLinks) { + public init(data: AppClipAdvancedExperienceImage, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageUpdateRequest.swift index ab163f141..15b66c451 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceImageUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceImageUpdateRequest The request body you use to commit the image asset for an advanced App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipAdvancedExperienceImageUpdateRequest: Codable, RequestBody } /** + # AppClipAdvancedExperienceImageUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipAdvancedExperienceImageUpdateRequest: Codable, RequestBody /// The attributes that describe the request that updates an Advanced App Clip Experience Images resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct AppClipAdvancedExperienceImageUpdateRequest: Codable, RequestBody } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppClipAdvancedExperienceImageUpdateRequest.Data.Attributes The attributes you set that describe the updated Advanced App Clip Experience Images resource. Full documentation: @@ -67,7 +72,9 @@ public struct AppClipAdvancedExperienceImageUpdateRequest: Codable, RequestBody /// A Boolean value that indicates whether you uploaded the image asset for an advanced App Clip experience. public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLanguage.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLanguage.swift index dd5e498a2..1bd34e106 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLanguage.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLanguage.swift @@ -1,10 +1,11 @@ import Foundation /** - The data structure that represents the language you configure for an advanced App Clip experience. + # AppClipAdvancedExperienceLanguage + The data structure that represents the language you configure for an advanced App Clip experience. - Full documentation: - + Full documentation: + */ public enum AppClipAdvancedExperienceLanguage: String, Codable, CaseIterable { case ar = "AR" diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalization.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalization.swift index 8056b9960..4938afd55 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalization.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceLocalization The data structure that represents the Advanced App Clip Localizations resource. Full documentation: @@ -16,7 +17,10 @@ public struct AppClipAdvancedExperienceLocalization: Codable { /// The attributes that describe the Advanced App Clip Experience Localizations resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct AppClipAdvancedExperienceLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # AppClipAdvancedExperienceLocalization.Attributes The attributes that describe an Advanced App Clip Experience Localizations resource. Full documentation: @@ -61,7 +66,10 @@ public struct AppClipAdvancedExperienceLocalization: Codable { /// The title that appears on the App Clip card for the advanced App Clip experience. public var title: String? - public init(language: AppClipAdvancedExperienceLanguage? = nil, subtitle: String? = nil, title: String? = nil) { + public init(language: AppClipAdvancedExperienceLanguage? = nil, + subtitle: String? = nil, + title: String? = nil) + { self.language = language self.subtitle = subtitle self.title = title diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalizationInlineCreate.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalizationInlineCreate.swift index 218bfe093..941110f4c 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalizationInlineCreate.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceLocalizationInlineCreate.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceLocalizationInlineCreate The data structure that represents an Advanced App Clip Experience Localization Inline Creates resource. Full documentation: @@ -14,7 +15,9 @@ public struct AppClipAdvancedExperienceLocalizationInlineCreate: Codable { /// The attributes that describe the Advanced App Clip Experience Localization Inline Creates resource. public var attributes: Attributes? - public init(id: String? = nil, attributes: Attributes? = nil) { + public init(id: String? = nil, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -36,12 +39,13 @@ public struct AppClipAdvancedExperienceLocalizationInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppClipAdvancedExperienceLocalizationInlineCreate.Attributes The attributes that describe an Advanced App Clip Experience Localization Inline Creates resource. Full documentation: @@ -55,7 +59,10 @@ public struct AppClipAdvancedExperienceLocalizationInlineCreate: Codable { /// The title that appears on the App Clip card for the advanced App Clip experience. public var title: String? - public init(language: AppClipAdvancedExperienceLanguage? = nil, subtitle: String? = nil, title: String? = nil) { + public init(language: AppClipAdvancedExperienceLanguage? = nil, + subtitle: String? = nil, + title: String? = nil) + { self.language = language self.subtitle = subtitle self.title = title diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceResponse.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceResponse.swift index 6fad0fb6f..c7867d066 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceResponse.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceResponse A response that contains a single Advanced App Clip Experiences resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipAdvancedExperienceResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipAdvancedExperience, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppClipAdvancedExperience, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperienceUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperienceUpdateRequest.swift index 70dddb5a3..2b6f35986 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperienceUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperienceUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperienceUpdateRequest The request body you use to update an advanced App Clip experience. Full documentation: @@ -12,12 +13,15 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The relationship data to include in the response. public var included: [AppClipAdvancedExperienceLocalizationInlineCreate]? - public init(data: Data, included: [AppClipAdvancedExperienceLocalizationInlineCreate]? = nil) { + public init(data: Data, + included: [AppClipAdvancedExperienceLocalizationInlineCreate]? = nil) + { self.data = data self.included = included } /** + # AppClipAdvancedExperienceUpdateRequest.Data The data element of the request body. Full documentation: @@ -33,7 +37,10 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -58,13 +65,14 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes The attributes you set that describe the Advanced App Clip Experiences resource. Full documentation: @@ -84,7 +92,13 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// A Boolean value that indicates whether you want to delete an advanced App Clip experience. To delete the advanced App Clip experience, set it to `true`. public var removed: Bool? - public init(action: AppClipAction? = nil, businessCategory: AppClipAdvancedExperience.Attributes.BusinessCategory? = nil, defaultLanguage: AppClipAdvancedExperienceLanguage? = nil, isPoweredBy: Bool? = nil, place: Place? = nil, removed: Bool? = nil) { + public init(action: AppClipAction? = nil, + businessCategory: AppClipAdvancedExperience.Attributes.BusinessCategory? = nil, + defaultLanguage: AppClipAdvancedExperienceLanguage? = nil, + isPoweredBy: Bool? = nil, + place: Place? = nil, + removed: Bool? = nil) + { self.action = action self.businessCategory = businessCategory self.defaultLanguage = defaultLanguage @@ -94,6 +108,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place The place information of an advanced App Clip experience you create with this request. Full documentation: @@ -119,7 +134,16 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// A navigational link to related data and included resource types and IDs. public var relationship: Relationship? - public init(categories: [String]? = nil, displayPoint: DisplayPoint? = nil, homePage: String? = nil, mainAddress: MainAddress? = nil, mapAction: MapAction? = nil, names: [String]? = nil, phoneNumber: PhoneNumber? = nil, placeId: String? = nil, relationship: Relationship? = nil) { + public init(categories: [String]? = nil, + displayPoint: DisplayPoint? = nil, + homePage: String? = nil, + mainAddress: MainAddress? = nil, + mapAction: MapAction? = nil, + names: [String]? = nil, + phoneNumber: PhoneNumber? = nil, + placeId: String? = nil, + relationship: Relationship? = nil) + { self.categories = categories self.displayPoint = displayPoint self.homePage = homePage @@ -132,6 +156,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place.DisplayPoint A point-based representation of a place in Apple Maps. Full documentation: @@ -143,12 +168,15 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// A string that describes the means by which you captured the data for a display point. public var source: Source? - public init(coordinates: Coordinates? = nil, source: Source? = nil) { + public init(coordinates: Coordinates? = nil, + source: Source? = nil) + { self.coordinates = coordinates self.source = source } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place.DisplayPoint.Coordinates The coordinates for a point of interest or business in Apple Maps. Full documentation: @@ -160,7 +188,9 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// A number that represents the longitude of GPS coordinates of a place in Apple Maps. public var longitude: Double? - public init(latitude: Double? = nil, longitude: Double? = nil) { + public init(latitude: Double? = nil, + longitude: Double? = nil) + { self.latitude = latitude self.longitude = longitude } @@ -173,6 +203,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place.MainAddress The main address for a point of interest or business in Apple Maps. Full documentation: @@ -184,12 +215,15 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The structured address of a place in Apple Maps. public var structuredAddress: StructuredAddress? - public init(fullAddress: String? = nil, structuredAddress: StructuredAddress? = nil) { + public init(fullAddress: String? = nil, + structuredAddress: StructuredAddress? = nil) + { self.fullAddress = fullAddress self.structuredAddress = structuredAddress } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place.MainAddress.StructuredAddress The structured address information for a point of interest or business in Apple Maps. Full documentation: @@ -211,7 +245,14 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The officially recognized address used by a postal delivery address. It includes — when applicable — a street name, street suffix, building, house, or suite identifiers. public var streetAddress: [String]? - public init(countryCode: String? = nil, floor: String? = nil, locality: String? = nil, neighborhood: String? = nil, postalCode: String? = nil, stateProvince: String? = nil, streetAddress: [String]? = nil) { + public init(countryCode: String? = nil, + floor: String? = nil, + locality: String? = nil, + neighborhood: String? = nil, + postalCode: String? = nil, + stateProvince: String? = nil, + streetAddress: [String]? = nil) + { self.countryCode = countryCode self.floor = floor self.locality = locality @@ -240,6 +281,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Attributes.Place.PhoneNumber The phone number of a point of interest or business in Apple Maps. Full documentation: @@ -253,7 +295,10 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The resource type. public var type: PhoneNumberType? - public init(intent: String? = nil, number: String? = nil, type: PhoneNumberType? = nil) { + public init(intent: String? = nil, + number: String? = nil, + type: PhoneNumberType? = nil) + { self.intent = intent self.number = number self.type = type @@ -276,6 +321,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -289,13 +335,17 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { /// The related Advanced App Clip Experience Localizations resource. public var localizations: Localizations? - public init(appClip: AppClip? = nil, headerImage: HeaderImage? = nil, localizations: Localizations? = nil) { + public init(appClip: AppClip? = nil, + headerImage: HeaderImage? = nil, + localizations: Localizations? = nil) + { self.appClip = appClip self.headerImage = headerImage self.localizations = localizations } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.AppClip The relationship to the App Clips resource you set with the request that updates an Advanced App Clip Experiences resource. Full documentation: @@ -310,6 +360,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.AppClip.Data The type and ID of the App Clips resource that you’re relating with the Advanced App Clip Experiences resource you’re updating. Full documentation: @@ -347,6 +398,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.HeaderImage The relationship to the App Clip Header Images resource you set with the request that updates an Advanced App Clip Experiences resource. Full documentation: @@ -361,6 +413,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.HeaderImage.Data The type and ID of the App Clip Header Images resource that you’re relating with the Advanced App Clip Experiences resource you’re updating. Full documentation: @@ -398,6 +451,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.Localizations The relationship to the Advanced App Clip Experience Localizations resource you set with the request that updates an Advanced App Clip Experiences resource. Full documentation: @@ -412,6 +466,7 @@ public struct AppClipAdvancedExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipAdvancedExperienceUpdateRequest.Data.Relationships.Localizations.Data The type and ID of the Advanced App Clip Experience Localizations resource that you’re relating with the Advanced App Clip Experiences resource you’re updating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipAdvancedExperiencesResponse.swift b/Sources/Bagbutik/Models/AppClipAdvancedExperiencesResponse.swift index ad7a88086..8e19615f6 100644 --- a/Sources/Bagbutik/Models/AppClipAdvancedExperiencesResponse.swift +++ b/Sources/Bagbutik/Models/AppClipAdvancedExperiencesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAdvancedExperiencesResponse A response that contains a list of Advanced App Clip Experiences resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppClipAdvancedExperiencesResponse: Codable, PagedResponse { public typealias Data = AppClipAdvancedExperience + /// The resource data. public let data: [AppClipAdvancedExperience] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppClipAdvancedExperiencesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [AppClipAdvancedExperience], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppClipAdvancedExperience], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetail.swift b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetail.swift index 944240883..597b4075d 100644 --- a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetail.swift +++ b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetail.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAppStoreReviewDetail The data structure that represents an App Clip App Store Review Details resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppClipAppStoreReviewDetail: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClipAppStoreReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClipAppStoreReviewDetail.Attributes The attributes that describe the App Clip App Store Review Details resource. Full documentation: @@ -69,6 +75,7 @@ public struct AppClipAppStoreReviewDetail: Codable { } /** + # AppClipAppStoreReviewDetail.Relationships The relationships of the App Clip App Store Details resource you included in the request and those on which you can operate. Full documentation: @@ -83,6 +90,7 @@ public struct AppClipAppStoreReviewDetail: Codable { } /** + # AppClipAppStoreReviewDetail.Relationships.AppClipDefaultExperience The data and links that describe the relationship between the App Clip App Store Review Details and the Default App Clip Experiences resources. Full documentation: @@ -94,12 +102,15 @@ public struct AppClipAppStoreReviewDetail: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipAppStoreReviewDetail.Relationships.AppClipDefaultExperience.Data The links to the related Default App Clip Experiences resource and the relationship’s self-link. Full documentation: @@ -136,6 +147,7 @@ public struct AppClipAppStoreReviewDetail: Codable { } /** + # AppClipAppStoreReviewDetail.Relationships.AppClipDefaultExperience.Links The type and ID of a related Default App Clip Experiences resource. Full documentation: @@ -147,7 +159,9 @@ public struct AppClipAppStoreReviewDetail: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -165,8 +179,8 @@ public struct AppClipAppStoreReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailCreateRequest.swift b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailCreateRequest.swift index 68104ac6f..da7271d47 100644 --- a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAppStoreReviewDetailCreateRequest The request body you use to create an App Clip App Store Review Detail. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppClipAppStoreReviewDetailCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppClipAppStoreReviewDetailCreateRequest.Data.Attributes The attributes you set that describe the new App Clip App Store Review Details resource. Full documentation: @@ -71,6 +76,7 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppClipAppStoreReviewDetailCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -85,6 +91,7 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppClipAppStoreReviewDetailCreateRequest.Data.Relationships.AppClipDefaultExperience The relationship to the Default App Clip Experiences resource you set with the request that creates an App Clip App Store Review Details resource. Full documentation: @@ -99,6 +106,7 @@ public struct AppClipAppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppClipAppStoreReviewDetailCreateRequest.Data.Relationships.AppClipDefaultExperience.Data The type and ID of the Default App Clip Experiences resource that you’re relating with the App Clip App Store Review Details resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailResponse.swift b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailResponse.swift index 85b1cc7a0..fac08b0c5 100644 --- a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailResponse.swift +++ b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAppStoreReviewDetailResponse A response that contains a single App Clip App Store Review Details resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipAppStoreReviewDetailResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipAppStoreReviewDetail, included: [AppClipDefaultExperience]? = nil, links: DocumentLinks) { + public init(data: AppClipAppStoreReviewDetail, + included: [AppClipDefaultExperience]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailUpdateRequest.swift index 08b875a59..aead909fb 100644 --- a/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipAppStoreReviewDetailUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipAppStoreReviewDetailUpdateRequest The request body you use to update App Clip information that you provide to App Store Review. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipAppStoreReviewDetailUpdateRequest: Codable, RequestBody { } /** + # AppClipAppStoreReviewDetailUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipAppStoreReviewDetailUpdateRequest: Codable, RequestBody { /// The attributes that describe the request that updates an App Clip App Store Review Details resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct AppClipAppStoreReviewDetailUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppClipAppStoreReviewDetailUpdateRequest.Data.Attributes The attributes you set that describe the updated App Clip App Store Review Details resource. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperience.swift b/Sources/Bagbutik/Models/AppClipDefaultExperience.swift index fc134ab69..3a004ca31 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperience.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperience.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperience The data structure that represents a Default App Clip Experiences resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppClipDefaultExperience: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClipDefaultExperience: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClipDefaultExperience.Attributes The attributes that describe a Default App Clip Experiences resource. Full documentation: @@ -69,6 +75,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships The relationships of the Default App Clip Experiences resource you included in the request and those on which you can operate. Full documentation: @@ -84,7 +91,11 @@ public struct AppClipDefaultExperience: Codable { /// The related App Store Versions resource. public var releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? - public init(appClip: AppClip? = nil, appClipAppStoreReviewDetail: AppClipAppStoreReviewDetail? = nil, appClipDefaultExperienceLocalizations: AppClipDefaultExperienceLocalizations? = nil, releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? = nil) { + public init(appClip: AppClip? = nil, + appClipAppStoreReviewDetail: AppClipAppStoreReviewDetail? = nil, + appClipDefaultExperienceLocalizations: AppClipDefaultExperienceLocalizations? = nil, + releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? = nil) + { self.appClip = appClip self.appClipAppStoreReviewDetail = appClipAppStoreReviewDetail self.appClipDefaultExperienceLocalizations = appClipDefaultExperienceLocalizations @@ -92,6 +103,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships.AppClip The data and links that describe the relationship between the Default App Clip Experiences and the App Clips resources. Full documentation: @@ -103,12 +115,15 @@ public struct AppClipDefaultExperience: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipDefaultExperience.Relationships.AppClip.Data The type and ID of a related App Clips resource. Full documentation: @@ -145,6 +160,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships.AppClip.Links The links to the related App Clips resource and the relationship’s self-link. Full documentation: @@ -156,7 +172,9 @@ public struct AppClipDefaultExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -174,13 +192,14 @@ public struct AppClipDefaultExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipDefaultExperience.Relationships.AppClipAppStoreReviewDetail The data and links that describe the relationship between the Default App Clip Experiences and the App Clip App Store Review Details resources. Full documentation: @@ -192,12 +211,15 @@ public struct AppClipDefaultExperience: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipDefaultExperience.Relationships.AppClipAppStoreReviewDetail.Data The type and ID of a related App Clip App Store Details resource. Full documentation: @@ -234,6 +256,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships.AppClipAppStoreReviewDetail.Links The links to the related App Clip App Store Review Details resource and the relationship’s self-link. Full documentation: @@ -245,7 +268,9 @@ public struct AppClipDefaultExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -263,13 +288,14 @@ public struct AppClipDefaultExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipDefaultExperience.Relationships.AppClipDefaultExperienceLocalizations The data, links, and paging information that describe the relationship between the Default App Clip Experiences and the Default App Clip Experience Localizations resources. Full documentation: @@ -283,13 +309,17 @@ public struct AppClipDefaultExperience: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppClipDefaultExperience.Relationships.AppClipDefaultExperienceLocalizations.Data The type and ID of a related Default App Clip Experience Localizations resource. Full documentation: @@ -326,6 +356,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships.AppClipDefaultExperienceLocalizations.Links The links to the related Default App Clip Experience Localizations resource and the relationship’s self-link. Full documentation: @@ -337,7 +368,9 @@ public struct AppClipDefaultExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -355,13 +388,14 @@ public struct AppClipDefaultExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipDefaultExperience.Relationships.ReleaseWithAppStoreVersion The data and links that describe the relationship between the Default App Clip Experiences and the App Store Versions resources. Full documentation: @@ -373,12 +407,15 @@ public struct AppClipDefaultExperience: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipDefaultExperience.Relationships.ReleaseWithAppStoreVersion.Data The type and ID of a related App Store Versions resource. Full documentation: @@ -415,6 +452,7 @@ public struct AppClipDefaultExperience: Codable { } /** + # AppClipDefaultExperience.Relationships.ReleaseWithAppStoreVersion.Links The links to the related App Store Versions resource and the relationship’s self-link. Full documentation: @@ -426,7 +464,9 @@ public struct AppClipDefaultExperience: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -444,8 +484,8 @@ public struct AppClipDefaultExperience: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceCreateRequest.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceCreateRequest.swift index 65ae5c9ec..59b57c8b6 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceCreateRequest The request body you use to create a default App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppClipDefaultExperienceCreateRequest.Data.Attributes The attributes you set that describe the Default App Clip Experiences resource. Full documentation: @@ -71,6 +76,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -84,13 +90,17 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { /// The related App Store Versions resource. public var releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? - public init(appClip: AppClip, appClipDefaultExperienceTemplate: AppClipDefaultExperienceTemplate? = nil, releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? = nil) { + public init(appClip: AppClip, + appClipDefaultExperienceTemplate: AppClipDefaultExperienceTemplate? = nil, + releaseWithAppStoreVersion: ReleaseWithAppStoreVersion? = nil) + { self.appClip = appClip self.appClipDefaultExperienceTemplate = appClipDefaultExperienceTemplate self.releaseWithAppStoreVersion = releaseWithAppStoreVersion } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.AppClip The relationship to the App Clips resource you set with the request that creates a Default App Clip Experiences resource. Full documentation: @@ -105,6 +115,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.AppClip.Data The type and ID of the App Clips resource that you’re relating with the Default App Clip Experiences resource you’re creating. Full documentation: @@ -142,6 +153,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.AppClipDefaultExperienceTemplate The relationship to the Default App Clip Experience Templates resource you set with the request that creates a Default App Clip Experiences resource. Full documentation: @@ -156,6 +168,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.AppClipDefaultExperienceTemplate.Data The type and ID of the Default App Clip Experience Templates resource that you’re relating with the Default App Clip Experiences resource you’re creating. Full documentation: @@ -193,6 +206,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.ReleaseWithAppStoreVersion The relationship to the App Store Versions resource you set with the request that creates a Default App Clip Experiences resource. Full documentation: @@ -207,6 +221,7 @@ public struct AppClipDefaultExperienceCreateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceCreateRequest.Data.Relationships.ReleaseWithAppStoreVersion.Data The type and ID of the App Store Versions resource that you’re relating with the Default App Clip Experiences resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalization.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalization.swift index 38100046e..ece0290f5 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalization.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceLocalization The data structure that represents a Default App Clip Experience Localizations resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClipDefaultExperienceLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClipDefaultExperienceLocalization.Attributes The attributes that describe a Default App Clip Experience Localizations resource. Full documentation: @@ -65,13 +71,16 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// The subtitle that appears on the App Clip card for the default App Clip experience. public var subtitle: String? - public init(locale: String? = nil, subtitle: String? = nil) { + public init(locale: String? = nil, + subtitle: String? = nil) + { self.locale = locale self.subtitle = subtitle } } /** + # AppClipDefaultExperienceLocalization.Relationships The relationships of the Default App Clip Experience Localizations resource you included in the request and those on which you can operate. Full documentation: @@ -83,12 +92,15 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// The related App Clip Header Images resource. public var appClipHeaderImage: AppClipHeaderImage? - public init(appClipDefaultExperience: AppClipDefaultExperience? = nil, appClipHeaderImage: AppClipHeaderImage? = nil) { + public init(appClipDefaultExperience: AppClipDefaultExperience? = nil, + appClipHeaderImage: AppClipHeaderImage? = nil) + { self.appClipDefaultExperience = appClipDefaultExperience self.appClipHeaderImage = appClipHeaderImage } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipDefaultExperience The data and links that describe the relationship between the Default App Clip Experience Localizations and the Default App Clip Experiences resources. Full documentation: @@ -100,12 +112,15 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipDefaultExperience.Data The type and ID of a related Default App Clip Experience Localizations resource. Full documentation: @@ -142,6 +157,7 @@ public struct AppClipDefaultExperienceLocalization: Codable { } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipDefaultExperience.Links The links to the related Default App Clip Experiences resource and the relationship’s self-link. Full documentation: @@ -153,7 +169,9 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -171,13 +189,14 @@ public struct AppClipDefaultExperienceLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipHeaderImage The data and links that describe the relationship between the Default App Clip Experience Localizations and the App Clip Header Images resources. Full documentation: @@ -189,12 +208,15 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipHeaderImage.Data The type and ID of a related App Clip Header Images resource. Full documentation: @@ -231,6 +253,7 @@ public struct AppClipDefaultExperienceLocalization: Codable { } /** + # AppClipDefaultExperienceLocalization.Relationships.AppClipHeaderImage.Links The links to the related App Clip Header Images resource and the relationship’s self-link. Full documentation: @@ -242,7 +265,9 @@ public struct AppClipDefaultExperienceLocalization: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -260,8 +285,8 @@ public struct AppClipDefaultExperienceLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationCreateRequest.swift index 3c5a175a5..f69ac8973 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceLocalizationCreateRequest The request body you use to create a Default App Clip Experience Localization. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques } /** + # AppClipDefaultExperienceLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppClipDefaultExperienceLocalizationCreateRequest.Data.Attributes The attributes you set that describe the Default App Clip Experience Localizations resource. Full documentation: @@ -67,13 +72,16 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques /// The subtitle that appears on the App Clip card for the default App Clip experience. public var subtitle: String? - public init(locale: String, subtitle: String? = nil) { + public init(locale: String, + subtitle: String? = nil) + { self.locale = locale self.subtitle = subtitle } } /** + # AppClipDefaultExperienceLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -88,6 +96,7 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques } /** + # AppClipDefaultExperienceLocalizationCreateRequest.Data.Relationships.AppClipDefaultExperience The relationship to the Default App Clip Experiences resource you set with the request that creates a Default App Clip Experience Localizations resource. Full documentation: @@ -102,6 +111,7 @@ public struct AppClipDefaultExperienceLocalizationCreateRequest: Codable, Reques } /** + # AppClipDefaultExperienceLocalizationCreateRequest.Data.Relationships.AppClipDefaultExperience.Data The type and ID of the Default App Clip Experiences resource that you’re relating with the Default App Clip Experience Localizations resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationResponse.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationResponse.swift index 9aef90489..7e2feaec6 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceLocalizationResponse A response that contains a single Default App Clip Experience Localizations resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipDefaultExperienceLocalizationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipDefaultExperienceLocalization, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppClipDefaultExperienceLocalization, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationUpdateRequest.swift index 6abb00687..273f9bd45 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceLocalizationUpdateRequest The request body you use to update a Default App Clip Experiences resource. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipDefaultExperienceLocalizationUpdateRequest: Codable, Reques } /** + # AppClipDefaultExperienceLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipDefaultExperienceLocalizationUpdateRequest: Codable, Reques /// The attributes that describes the request that updates a Default App Clip Experience Localizations resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct AppClipDefaultExperienceLocalizationUpdateRequest: Codable, Reques } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppClipDefaultExperienceLocalizationUpdateRequest.Data.Attributes The attributes you set that describe the Default App Clip Experience Localizations resource. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationsResponse.swift index 39a1bc4d0..3b7148d82 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceLocalizationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceLocalizationsResponse A response that contains a list of Default App Clip Experience Localizations resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppClipDefaultExperienceLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppClipDefaultExperienceLocalization + /// The resource data. public let data: [AppClipDefaultExperienceLocalization] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppClipDefaultExperienceLocalizationsResponse: Codable, PagedRespo /// The paging information. public var meta: PagingInformation? - public init(data: [AppClipDefaultExperienceLocalization], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppClipDefaultExperienceLocalization], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift index 150a5e8b9..0741f9f25 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest The request body you use to relate a released App Store version with a default App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest: } /** + # AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift index 099a8c79d..09782610b 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse A response that contains the ID of a single related App Store Versions resource. Full documentation: @@ -12,12 +13,15 @@ public struct AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse: /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Data, links: DocumentLinks) { + public init(data: Data, + links: DocumentLinks) + { self.data = data self.links = links } /** + # AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceResponse.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceResponse.swift index 26756d7c7..c5a31bc1b 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceResponse A response that contains a single Default App Clip Experiences resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipDefaultExperienceResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipDefaultExperience, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppClipDefaultExperience, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperienceUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipDefaultExperienceUpdateRequest.swift index f7fa24d94..0a3ce1e2a 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperienceUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperienceUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperienceUpdateRequest The request body you use to update a default App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceUpdateRequest.Data The data element of the request body. Full documentation: @@ -30,7 +32,10 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -55,13 +60,14 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # AppClipDefaultExperienceUpdateRequest.Data.Attributes The attributes you set that describe the new Default App Clip Experiences resource. Full documentation: @@ -77,6 +83,7 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceUpdateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -91,6 +98,7 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceUpdateRequest.Data.Relationships.ReleaseWithAppStoreVersion The relationship to the App Store Versions resource you set with the request that updates a Default App Clip Experiences resource. Full documentation: @@ -105,6 +113,7 @@ public struct AppClipDefaultExperienceUpdateRequest: Codable, RequestBody { } /** + # AppClipDefaultExperienceUpdateRequest.Data.Relationships.ReleaseWithAppStoreVersion.Data The type and ID of the App Store Versions resource that you’re relating with the Default App Clip Experiences resource you’re updating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipDefaultExperiencesResponse.swift b/Sources/Bagbutik/Models/AppClipDefaultExperiencesResponse.swift index 5fdf0f16c..1fe1681ec 100644 --- a/Sources/Bagbutik/Models/AppClipDefaultExperiencesResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDefaultExperiencesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDefaultExperiencesResponse A response that contains a list of Default App Clip Experiences resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppClipDefaultExperiencesResponse: Codable, PagedResponse { public typealias Data = AppClipDefaultExperience + /// The resource data. public let data: [AppClipDefaultExperience] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppClipDefaultExperiencesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [AppClipDefaultExperience], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppClipDefaultExperience], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipDomainStatus.swift b/Sources/Bagbutik/Models/AppClipDomainStatus.swift index 083257619..6e16ce177 100644 --- a/Sources/Bagbutik/Models/AppClipDomainStatus.swift +++ b/Sources/Bagbutik/Models/AppClipDomainStatus.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDomainStatus The data structure that represents the App Clip Domain Statuses resource. Full documentation: @@ -16,7 +17,10 @@ public struct AppClipDomainStatus: Codable { /// The attributes that describe the App Clip Domain Statuses resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct AppClipDomainStatus: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # AppClipDomainStatus.Attributes The attributes that describe the App Clip Domain Status resource. Full documentation: @@ -59,12 +64,15 @@ public struct AppClipDomainStatus: Codable { /// The date when App Store Connect last verified the status of an associated domain. public var lastUpdatedDate: Date? - public init(domains: [Domains]? = nil, lastUpdatedDate: Date? = nil) { + public init(domains: [Domains]? = nil, + lastUpdatedDate: Date? = nil) + { self.domains = domains self.lastUpdatedDate = lastUpdatedDate } /** + # AppClipDomainStatus.Attributes.Domains Domains you associated with your App Clip. Full documentation: @@ -80,7 +88,11 @@ public struct AppClipDomainStatus: Codable { /// The date when App Store Connect last verified the status of an associated domain. public var lastUpdatedDate: Date? - public init(domain: String? = nil, errorCode: ErrorCode? = nil, isValid: Bool? = nil, lastUpdatedDate: Date? = nil) { + public init(domain: String? = nil, + errorCode: ErrorCode? = nil, + isValid: Bool? = nil, + lastUpdatedDate: Date? = nil) + { self.domain = domain self.errorCode = errorCode self.isValid = isValid diff --git a/Sources/Bagbutik/Models/AppClipDomainStatusResponse.swift b/Sources/Bagbutik/Models/AppClipDomainStatusResponse.swift index 1901a6ae9..5692ca8a3 100644 --- a/Sources/Bagbutik/Models/AppClipDomainStatusResponse.swift +++ b/Sources/Bagbutik/Models/AppClipDomainStatusResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipDomainStatusResponse A response that contains a single App Clip Domain Statuses resource. Full documentation: @@ -12,7 +13,9 @@ public struct AppClipDomainStatusResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipDomainStatus, links: DocumentLinks) { + public init(data: AppClipDomainStatus, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AppClipHeaderImage.swift b/Sources/Bagbutik/Models/AppClipHeaderImage.swift index 9b20468eb..28942ed31 100644 --- a/Sources/Bagbutik/Models/AppClipHeaderImage.swift +++ b/Sources/Bagbutik/Models/AppClipHeaderImage.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipHeaderImage The data structure that represents the image that appears on the App Clip card of a default App Clip experience. Full documentation: @@ -18,7 +19,11 @@ public struct AppClipHeaderImage: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppClipHeaderImage: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppClipHeaderImage.Attributes The attributes that describe the image that appears on the App Clip card of a default App Clip experience. Full documentation: @@ -73,7 +79,13 @@ public struct AppClipHeaderImage: Codable { /// Upload operations for the image asset that appears on the App Clip card for a default App Clip experience. public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.fileName = fileName self.fileSize = fileSize @@ -84,6 +96,7 @@ public struct AppClipHeaderImage: Codable { } /** + # AppClipHeaderImage.Relationships The relationships of the App Clip Header Images resource you included in the request and those on which you can operate. Full documentation: @@ -98,6 +111,7 @@ public struct AppClipHeaderImage: Codable { } /** + # AppClipHeaderImage.Relationships.AppClipDefaultExperienceLocalization The data and links that describe the relationship between the App Clip Header Images and the Default App Clip Experiences resources. Full documentation: @@ -109,12 +123,15 @@ public struct AppClipHeaderImage: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppClipHeaderImage.Relationships.AppClipDefaultExperienceLocalization.Data The type and ID of a related Default App Clip Experience Localizations resource. Full documentation: @@ -151,6 +168,7 @@ public struct AppClipHeaderImage: Codable { } /** + # AppClipHeaderImage.Relationships.AppClipDefaultExperienceLocalization.Links The links to the related Default App Clip Experience Localizations resource and the relationship’s self-link. Full documentation: @@ -162,7 +180,9 @@ public struct AppClipHeaderImage: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -180,8 +200,8 @@ public struct AppClipHeaderImage: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppClipHeaderImageCreateRequest.swift b/Sources/Bagbutik/Models/AppClipHeaderImageCreateRequest.swift index cdc168e1d..bbc38ef81 100644 --- a/Sources/Bagbutik/Models/AppClipHeaderImageCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipHeaderImageCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipHeaderImageCreateRequest The request body you use to reserve an image asset that appears on the App Clip card of a default App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { } /** + # AppClipHeaderImageCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppClipHeaderImageCreateRequest.Data.Attributes The attributes you set that describe the new App Clip Header Images resource. Full documentation: @@ -67,13 +72,16 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { /// The size of the image asset that appears on the App Clip card for the default App Clip experience. public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } } /** + # AppClipHeaderImageCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -88,6 +96,7 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { } /** + # AppClipHeaderImageCreateRequest.Data.Relationships.AppClipDefaultExperienceLocalization The relationship to the Default App Clip Experience Localizations resource you set with the request that creates an App Clip Header Images resource. Full documentation: @@ -102,6 +111,7 @@ public struct AppClipHeaderImageCreateRequest: Codable, RequestBody { } /** + # AppClipHeaderImageCreateRequest.Data.Relationships.AppClipDefaultExperienceLocalization.Data The type and ID of the Default App Clip Localizations resource that you’re relating with the App Clip Header Images resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppClipHeaderImageResponse.swift b/Sources/Bagbutik/Models/AppClipHeaderImageResponse.swift index 11ffe3675..a81b0da72 100644 --- a/Sources/Bagbutik/Models/AppClipHeaderImageResponse.swift +++ b/Sources/Bagbutik/Models/AppClipHeaderImageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipHeaderImageResponse A response that contains a single App Clip Header Images resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipHeaderImageResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClipHeaderImage, included: [AppClipDefaultExperienceLocalization]? = nil, links: DocumentLinks) { + public init(data: AppClipHeaderImage, + included: [AppClipDefaultExperienceLocalization]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipHeaderImageUpdateRequest.swift b/Sources/Bagbutik/Models/AppClipHeaderImageUpdateRequest.swift index 47f56f30f..8e12adf39 100644 --- a/Sources/Bagbutik/Models/AppClipHeaderImageUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppClipHeaderImageUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipHeaderImageUpdateRequest The request body you use to commit the image asset for a default App Clip experience. Full documentation: @@ -15,6 +16,7 @@ public struct AppClipHeaderImageUpdateRequest: Codable, RequestBody { } /** + # AppClipHeaderImageUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppClipHeaderImageUpdateRequest: Codable, RequestBody { /// The attributes that describe the request that updates an App Clip Header Images resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct AppClipHeaderImageUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppClipHeaderImageUpdateRequest.Data.Attributes The attributes you set that describe the updated App Clip Header Images resource. Full documentation: @@ -67,7 +72,9 @@ public struct AppClipHeaderImageUpdateRequest: Codable, RequestBody { /// A Boolean value that indicates whether you uploaded the image asset for an advanced App Clip experience. public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/AppClipResponse.swift b/Sources/Bagbutik/Models/AppClipResponse.swift index 8145d91c4..1bb358824 100644 --- a/Sources/Bagbutik/Models/AppClipResponse.swift +++ b/Sources/Bagbutik/Models/AppClipResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipResponse A response that contains a single App Clips resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppClipResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppClip, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppClip, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppClipsResponse.swift b/Sources/Bagbutik/Models/AppClipsResponse.swift index 4ff33d6b2..fd29423c9 100644 --- a/Sources/Bagbutik/Models/AppClipsResponse.swift +++ b/Sources/Bagbutik/Models/AppClipsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppClipsResponse A response that contains a list of App Clips resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppClipsResponse: Codable, PagedResponse { public typealias Data = AppClip + /// The resource data. public let data: [AppClip] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppClipsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [AppClip], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppClip], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPage.swift b/Sources/Bagbutik/Models/AppCustomProductPage.swift index 52808d4b3..6c1552319 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPage.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPage.swift @@ -7,7 +7,11 @@ public struct AppCustomProductPage: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppCustomProductPage: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +51,10 @@ public struct AppCustomProductPage: Codable { public var url: String? public var visible: Bool? - public init(name: String? = nil, url: String? = nil, visible: Bool? = nil) { + public init(name: String? = nil, + url: String? = nil, + visible: Bool? = nil) + { self.name = name self.url = url self.visible = visible @@ -58,7 +65,9 @@ public struct AppCustomProductPage: Codable { public var app: App? public var appCustomProductPageVersions: AppCustomProductPageVersions? - public init(app: App? = nil, appCustomProductPageVersions: AppCustomProductPageVersions? = nil) { + public init(app: App? = nil, + appCustomProductPageVersions: AppCustomProductPageVersions? = nil) + { self.app = app self.appCustomProductPageVersions = appCustomProductPageVersions } @@ -67,7 +76,9 @@ public struct AppCustomProductPage: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -104,7 +115,9 @@ public struct AppCustomProductPage: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -122,8 +135,8 @@ public struct AppCustomProductPage: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -133,7 +146,10 @@ public struct AppCustomProductPage: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -171,7 +187,9 @@ public struct AppCustomProductPage: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -189,8 +207,8 @@ public struct AppCustomProductPage: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageCreateRequest.swift b/Sources/Bagbutik/Models/AppCustomProductPageCreateRequest.swift index f31c55332..b7f0cac4b 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageCreateRequest.swift @@ -4,7 +4,9 @@ public struct AppCustomProductPageCreateRequest: Codable, RequestBody { public let data: Data public var included: [Included]? - public init(data: Data, included: [Included]? = nil) { + public init(data: Data, + included: [Included]? = nil) + { self.data = data self.included = included } @@ -14,7 +16,9 @@ public struct AppCustomProductPageCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -36,9 +40,9 @@ public struct AppCustomProductPageCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -55,7 +59,11 @@ public struct AppCustomProductPageCreateRequest: Codable, RequestBody { public var appStoreVersionTemplate: AppStoreVersionTemplate? public var customProductPageTemplate: CustomProductPageTemplate? - public init(app: App, appCustomProductPageVersions: AppCustomProductPageVersions? = nil, appStoreVersionTemplate: AppStoreVersionTemplate? = nil, customProductPageTemplate: CustomProductPageTemplate? = nil) { + public init(app: App, + appCustomProductPageVersions: AppCustomProductPageVersions? = nil, + appStoreVersionTemplate: AppStoreVersionTemplate? = nil, + customProductPageTemplate: CustomProductPageTemplate? = nil) + { self.app = app self.appCustomProductPageVersions = appCustomProductPageVersions self.appStoreVersionTemplate = appStoreVersionTemplate diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalization.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalization.swift index 9a0f39ce3..0e3120aa4 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalization.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalization.swift @@ -7,7 +7,11 @@ public struct AppCustomProductPageLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,18 +39,20 @@ public struct AppCustomProductPageLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { public var locale: String? public var promotionalText: String? - public init(locale: String? = nil, promotionalText: String? = nil) { + public init(locale: String? = nil, + promotionalText: String? = nil) + { self.locale = locale self.promotionalText = promotionalText } @@ -57,7 +63,10 @@ public struct AppCustomProductPageLocalization: Codable { public var appPreviewSets: AppPreviewSets? public var appScreenshotSets: AppScreenshotSets? - public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appPreviewSets: AppPreviewSets? = nil, appScreenshotSets: AppScreenshotSets? = nil) { + public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, + appPreviewSets: AppPreviewSets? = nil, + appScreenshotSets: AppScreenshotSets? = nil) + { self.appCustomProductPageVersion = appCustomProductPageVersion self.appPreviewSets = appPreviewSets self.appScreenshotSets = appScreenshotSets @@ -67,7 +76,9 @@ public struct AppCustomProductPageLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -104,7 +115,9 @@ public struct AppCustomProductPageLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -122,8 +135,8 @@ public struct AppCustomProductPageLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -133,7 +146,10 @@ public struct AppCustomProductPageLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -171,7 +187,9 @@ public struct AppCustomProductPageLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -189,8 +207,8 @@ public struct AppCustomProductPageLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -200,7 +218,10 @@ public struct AppCustomProductPageLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -238,7 +259,9 @@ public struct AppCustomProductPageLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -256,8 +279,8 @@ public struct AppCustomProductPageLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationCreateRequest.swift index 553ca5a21..62d1fe74a 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppCustomProductPageLocalizationCreateRequest: Codable, RequestBod public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct AppCustomProductPageLocalizationCreateRequest: Codable, RequestBod } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let locale: String public var promotionalText: String? - public init(locale: String, promotionalText: String? = nil) { + public init(locale: String, + promotionalText: String? = nil) + { self.locale = locale self.promotionalText = promotionalText } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationInlineCreate.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationInlineCreate.swift index af55a555e..4a3895221 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationInlineCreate.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationInlineCreate.swift @@ -6,7 +6,10 @@ public struct AppCustomProductPageLocalizationInlineCreate: Codable { public let attributes: Attributes public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,17 +34,19 @@ public struct AppCustomProductPageLocalizationInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { public let locale: String public var promotionalText: String? - public init(locale: String, promotionalText: String? = nil) { + public init(locale: String, + promotionalText: String? = nil) + { self.locale = locale self.promotionalText = promotionalText } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationResponse.swift index 00b54cb83..fbc5e8a1b 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct AppCustomProductPageLocalizationResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppCustomProductPageLocalization, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppCustomProductPageLocalization, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationUpdateRequest.swift index bfb395c04..79951f616 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppCustomProductPageLocalizationUpdateRequest: Codable, RequestBod public var type: String { "appCustomProductPageLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct AppCustomProductPageLocalizationUpdateRequest: Codable, RequestBod } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationsResponse.swift index 1483613ff..01cc0718e 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppCustomProductPageLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppCustomProductPageLocalization + public let data: [AppCustomProductPageLocalization] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppCustomProductPageLocalization], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppCustomProductPageLocalization], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPageResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPageResponse.swift index 792a6458d..a00e8bf51 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageResponse.swift @@ -5,7 +5,10 @@ public struct AppCustomProductPageResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppCustomProductPage, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppCustomProductPage, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPageUpdateRequest.swift b/Sources/Bagbutik/Models/AppCustomProductPageUpdateRequest.swift index 00d1f68c2..864fca1ab 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppCustomProductPageUpdateRequest: Codable, RequestBody { public var type: String { "appCustomProductPages" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct AppCustomProductPageUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var name: String? public var visible: Bool? - public init(name: String? = nil, visible: Bool? = nil) { + public init(name: String? = nil, + visible: Bool? = nil) + { self.name = name self.visible = visible } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageVersion.swift b/Sources/Bagbutik/Models/AppCustomProductPageVersion.swift index d335c0adc..b295a5805 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageVersion.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageVersion.swift @@ -7,7 +7,11 @@ public struct AppCustomProductPageVersion: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,18 +39,20 @@ public struct AppCustomProductPageVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { public var state: State? public var version: String? - public init(state: State? = nil, version: String? = nil) { + public init(state: State? = nil, + version: String? = nil) + { self.state = state self.version = version } @@ -67,7 +73,9 @@ public struct AppCustomProductPageVersion: Codable { public var appCustomProductPage: AppCustomProductPage? public var appCustomProductPageLocalizations: AppCustomProductPageLocalizations? - public init(appCustomProductPage: AppCustomProductPage? = nil, appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) { + public init(appCustomProductPage: AppCustomProductPage? = nil, + appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) + { self.appCustomProductPage = appCustomProductPage self.appCustomProductPageLocalizations = appCustomProductPageLocalizations } @@ -76,7 +84,9 @@ public struct AppCustomProductPageVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -113,7 +123,9 @@ public struct AppCustomProductPageVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -131,8 +143,8 @@ public struct AppCustomProductPageVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -142,7 +154,10 @@ public struct AppCustomProductPageVersion: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -180,7 +195,9 @@ public struct AppCustomProductPageVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -198,8 +215,8 @@ public struct AppCustomProductPageVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageVersionCreateRequest.swift b/Sources/Bagbutik/Models/AppCustomProductPageVersionCreateRequest.swift index 11dd674ef..29c8a2353 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageVersionCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageVersionCreateRequest.swift @@ -30,15 +30,17 @@ public struct AppCustomProductPageVersionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { public let appCustomProductPage: AppCustomProductPage public var appCustomProductPageLocalizations: AppCustomProductPageLocalizations? - public init(appCustomProductPage: AppCustomProductPage, appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) { + public init(appCustomProductPage: AppCustomProductPage, + appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) + { self.appCustomProductPage = appCustomProductPage self.appCustomProductPageLocalizations = appCustomProductPageLocalizations } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageVersionInlineCreate.swift b/Sources/Bagbutik/Models/AppCustomProductPageVersionInlineCreate.swift index 40eb0c25a..c63613ade 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageVersionInlineCreate.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageVersionInlineCreate.swift @@ -5,7 +5,9 @@ public struct AppCustomProductPageVersionInlineCreate: Codable { public var type: String { "appCustomProductPageVersions" } public var relationships: Relationships? - public init(id: String? = nil, relationships: Relationships? = nil) { + public init(id: String? = nil, + relationships: Relationships? = nil) + { self.id = id self.relationships = relationships } @@ -28,15 +30,17 @@ public struct AppCustomProductPageVersionInlineCreate: Codable { private enum CodingKeys: String, CodingKey { case id - case type case relationships + case type } public struct Relationships: Codable { public var appCustomProductPage: AppCustomProductPage? public var appCustomProductPageLocalizations: AppCustomProductPageLocalizations? - public init(appCustomProductPage: AppCustomProductPage? = nil, appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) { + public init(appCustomProductPage: AppCustomProductPage? = nil, + appCustomProductPageLocalizations: AppCustomProductPageLocalizations? = nil) + { self.appCustomProductPage = appCustomProductPage self.appCustomProductPageLocalizations = appCustomProductPageLocalizations } diff --git a/Sources/Bagbutik/Models/AppCustomProductPageVersionResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPageVersionResponse.swift index dee2f25b5..817877250 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageVersionResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageVersionResponse.swift @@ -5,7 +5,10 @@ public struct AppCustomProductPageVersionResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppCustomProductPageVersion, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppCustomProductPageVersion, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPageVersionsResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPageVersionsResponse.swift index 451c0dab1..5500f0fa7 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPageVersionsResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPageVersionsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppCustomProductPageVersionsResponse: Codable, PagedResponse { public typealias Data = AppCustomProductPageVersion + public let data: [AppCustomProductPageVersion] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppCustomProductPageVersion], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppCustomProductPageVersion], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppCustomProductPagesResponse.swift b/Sources/Bagbutik/Models/AppCustomProductPagesResponse.swift index c5ecad874..b68928b59 100644 --- a/Sources/Bagbutik/Models/AppCustomProductPagesResponse.swift +++ b/Sources/Bagbutik/Models/AppCustomProductPagesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppCustomProductPagesResponse: Codable, PagedResponse { public typealias Data = AppCustomProductPage + public let data: [AppCustomProductPage] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppCustomProductPage], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppCustomProductPage], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEncryptionDeclaration.swift b/Sources/Bagbutik/Models/AppEncryptionDeclaration.swift index 16a9eb777..2244d8a90 100644 --- a/Sources/Bagbutik/Models/AppEncryptionDeclaration.swift +++ b/Sources/Bagbutik/Models/AppEncryptionDeclaration.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppEncryptionDeclaration The data structure that represents an App Encryption Declarations resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppEncryptionDeclaration: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppEncryptionDeclaration: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppEncryptionDeclaration.Attributes Attributes that describe an App Encryption Declarations resource. Full documentation: @@ -85,7 +91,19 @@ public struct AppEncryptionDeclaration: Codable { /// A Boolean value that indicates whether your app uses, contains, or incorporates cryptography. public var usesEncryption: Bool? - public init(appEncryptionDeclarationState: AppEncryptionDeclarationState? = nil, availableOnFrenchStore: Bool? = nil, codeValue: String? = nil, containsProprietaryCryptography: Bool? = nil, containsThirdPartyCryptography: Bool? = nil, documentName: String? = nil, documentType: String? = nil, documentUrl: String? = nil, exempt: Bool? = nil, platform: Platform? = nil, uploadedDate: Date? = nil, usesEncryption: Bool? = nil) { + public init(appEncryptionDeclarationState: AppEncryptionDeclarationState? = nil, + availableOnFrenchStore: Bool? = nil, + codeValue: String? = nil, + containsProprietaryCryptography: Bool? = nil, + containsThirdPartyCryptography: Bool? = nil, + documentName: String? = nil, + documentType: String? = nil, + documentUrl: String? = nil, + exempt: Bool? = nil, + platform: Platform? = nil, + uploadedDate: Date? = nil, + usesEncryption: Bool? = nil) + { self.appEncryptionDeclarationState = appEncryptionDeclarationState self.availableOnFrenchStore = availableOnFrenchStore self.codeValue = codeValue @@ -102,6 +120,7 @@ public struct AppEncryptionDeclaration: Codable { } /** + # AppEncryptionDeclaration.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -115,6 +134,7 @@ public struct AppEncryptionDeclaration: Codable { } /** + # AppEncryptionDeclaration.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -124,12 +144,15 @@ public struct AppEncryptionDeclaration: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppEncryptionDeclaration.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -166,6 +189,7 @@ public struct AppEncryptionDeclaration: Codable { } /** + # AppEncryptionDeclaration.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -175,7 +199,9 @@ public struct AppEncryptionDeclaration: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -193,8 +219,8 @@ public struct AppEncryptionDeclaration: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppEncryptionDeclarationBuildsLinkagesRequest.swift b/Sources/Bagbutik/Models/AppEncryptionDeclarationBuildsLinkagesRequest.swift index 1f5b7fbe6..ada48c349 100644 --- a/Sources/Bagbutik/Models/AppEncryptionDeclarationBuildsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/AppEncryptionDeclarationBuildsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppEncryptionDeclarationBuildsLinkagesRequest A request body you use to add builds to an app encryption declaration. Full documentation: @@ -15,6 +16,7 @@ public struct AppEncryptionDeclarationBuildsLinkagesRequest: Codable, RequestBod } /** + # AppEncryptionDeclarationBuildsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppEncryptionDeclarationResponse.swift b/Sources/Bagbutik/Models/AppEncryptionDeclarationResponse.swift index d19f86b2f..e1ed53afb 100644 --- a/Sources/Bagbutik/Models/AppEncryptionDeclarationResponse.swift +++ b/Sources/Bagbutik/Models/AppEncryptionDeclarationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppEncryptionDeclarationResponse A response that contains a single App Encryption Declarations resource. Full documentation: @@ -13,7 +14,10 @@ public struct AppEncryptionDeclarationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppEncryptionDeclaration, included: [App]? = nil, links: DocumentLinks) { + public init(data: AppEncryptionDeclaration, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEncryptionDeclarationState.swift b/Sources/Bagbutik/Models/AppEncryptionDeclarationState.swift index beb852d34..73d00cecc 100644 --- a/Sources/Bagbutik/Models/AppEncryptionDeclarationState.swift +++ b/Sources/Bagbutik/Models/AppEncryptionDeclarationState.swift @@ -1,10 +1,11 @@ import Foundation /** - Strings that represent the review or acceptance status of an app encryption declaration submitted to Apple. + # AppEncryptionDeclarationState + Strings that represent the review or acceptance status of an app encryption declaration submitted to Apple. - Full documentation: - + Full documentation: + */ public enum AppEncryptionDeclarationState: String, Codable, CaseIterable { case inReview = "IN_REVIEW" diff --git a/Sources/Bagbutik/Models/AppEncryptionDeclarationsResponse.swift b/Sources/Bagbutik/Models/AppEncryptionDeclarationsResponse.swift index 52c3e2f69..e9acc4214 100644 --- a/Sources/Bagbutik/Models/AppEncryptionDeclarationsResponse.swift +++ b/Sources/Bagbutik/Models/AppEncryptionDeclarationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppEncryptionDeclarationsResponse A response that contains a list of App Encryption Declaration resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppEncryptionDeclarationsResponse: Codable, PagedResponse { public typealias Data = AppEncryptionDeclaration + /// The resource data. public let data: [AppEncryptionDeclaration] public var included: [App]? @@ -16,7 +18,11 @@ public struct AppEncryptionDeclarationsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [AppEncryptionDeclaration], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppEncryptionDeclaration], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEvent.swift b/Sources/Bagbutik/Models/AppEvent.swift index 1c953497f..6b038615a 100644 --- a/Sources/Bagbutik/Models/AppEvent.swift +++ b/Sources/Bagbutik/Models/AppEvent.swift @@ -7,7 +7,11 @@ public struct AppEvent: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppEvent: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -54,7 +58,17 @@ public struct AppEvent: Codable { public var referenceName: String? public var territorySchedules: [TerritorySchedules]? - public init(archivedTerritorySchedules: [ArchivedTerritorySchedules]? = nil, badge: Badge? = nil, deepLink: String? = nil, eventState: EventState? = nil, primaryLocale: String? = nil, priority: Priority? = nil, purchaseRequirement: PurchaseRequirement? = nil, purpose: Purpose? = nil, referenceName: String? = nil, territorySchedules: [TerritorySchedules]? = nil) { + public init(archivedTerritorySchedules: [ArchivedTerritorySchedules]? = nil, + badge: Badge? = nil, + deepLink: String? = nil, + eventState: EventState? = nil, + primaryLocale: String? = nil, + priority: Priority? = nil, + purchaseRequirement: PurchaseRequirement? = nil, + purpose: Purpose? = nil, + referenceName: String? = nil, + territorySchedules: [TerritorySchedules]? = nil) + { self.archivedTerritorySchedules = archivedTerritorySchedules self.badge = badge self.deepLink = deepLink @@ -73,7 +87,11 @@ public struct AppEvent: Codable { public var publishStart: Date? public var territories: [String]? - public init(eventEnd: Date? = nil, eventStart: Date? = nil, publishStart: Date? = nil, territories: [String]? = nil) { + public init(eventEnd: Date? = nil, + eventStart: Date? = nil, + publishStart: Date? = nil, + territories: [String]? = nil) + { self.eventEnd = eventEnd self.eventStart = eventStart self.publishStart = publishStart @@ -130,7 +148,11 @@ public struct AppEvent: Codable { public var publishStart: Date? public var territories: [String]? - public init(eventEnd: Date? = nil, eventStart: Date? = nil, publishStart: Date? = nil, territories: [String]? = nil) { + public init(eventEnd: Date? = nil, + eventStart: Date? = nil, + publishStart: Date? = nil, + territories: [String]? = nil) + { self.eventEnd = eventEnd self.eventStart = eventStart self.publishStart = publishStart @@ -151,7 +173,10 @@ public struct AppEvent: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -189,7 +214,9 @@ public struct AppEvent: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -207,8 +234,8 @@ public struct AppEvent: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppEventCreateRequest.swift b/Sources/Bagbutik/Models/AppEventCreateRequest.swift index b7d6693d3..1bdc1c319 100644 --- a/Sources/Bagbutik/Models/AppEventCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct AppEventCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -49,7 +51,15 @@ public struct AppEventCreateRequest: Codable, RequestBody { public let referenceName: String public var territorySchedules: [TerritorySchedules]? - public init(badge: AppEvent.Attributes.Badge? = nil, deepLink: String? = nil, primaryLocale: String? = nil, priority: AppEvent.Attributes.Priority? = nil, purchaseRequirement: AppEvent.Attributes.PurchaseRequirement? = nil, purpose: AppEvent.Attributes.Purpose? = nil, referenceName: String, territorySchedules: [TerritorySchedules]? = nil) { + public init(badge: AppEvent.Attributes.Badge? = nil, + deepLink: String? = nil, + primaryLocale: String? = nil, + priority: AppEvent.Attributes.Priority? = nil, + purchaseRequirement: AppEvent.Attributes.PurchaseRequirement? = nil, + purpose: AppEvent.Attributes.Purpose? = nil, + referenceName: String, + territorySchedules: [TerritorySchedules]? = nil) + { self.badge = badge self.deepLink = deepLink self.primaryLocale = primaryLocale @@ -66,7 +76,11 @@ public struct AppEventCreateRequest: Codable, RequestBody { public var publishStart: Date? public var territories: [String]? - public init(eventEnd: Date? = nil, eventStart: Date? = nil, publishStart: Date? = nil, territories: [String]? = nil) { + public init(eventEnd: Date? = nil, + eventStart: Date? = nil, + publishStart: Date? = nil, + territories: [String]? = nil) + { self.eventEnd = eventEnd self.eventStart = eventStart self.publishStart = publishStart diff --git a/Sources/Bagbutik/Models/AppEventLocalization.swift b/Sources/Bagbutik/Models/AppEventLocalization.swift index 12751e96a..b5a39cd56 100644 --- a/Sources/Bagbutik/Models/AppEventLocalization.swift +++ b/Sources/Bagbutik/Models/AppEventLocalization.swift @@ -7,7 +7,11 @@ public struct AppEventLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppEventLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct AppEventLocalization: Codable { public var name: String? public var shortDescription: String? - public init(locale: String? = nil, longDescription: String? = nil, name: String? = nil, shortDescription: String? = nil) { + public init(locale: String? = nil, + longDescription: String? = nil, + name: String? = nil, + shortDescription: String? = nil) + { self.locale = locale self.longDescription = longDescription self.name = name @@ -61,7 +69,10 @@ public struct AppEventLocalization: Codable { public var appEventScreenshots: AppEventScreenshots? public var appEventVideoClips: AppEventVideoClips? - public init(appEvent: AppEvent? = nil, appEventScreenshots: AppEventScreenshots? = nil, appEventVideoClips: AppEventVideoClips? = nil) { + public init(appEvent: AppEvent? = nil, + appEventScreenshots: AppEventScreenshots? = nil, + appEventVideoClips: AppEventVideoClips? = nil) + { self.appEvent = appEvent self.appEventScreenshots = appEventScreenshots self.appEventVideoClips = appEventVideoClips @@ -71,7 +82,9 @@ public struct AppEventLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -108,7 +121,9 @@ public struct AppEventLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -126,8 +141,8 @@ public struct AppEventLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -137,7 +152,10 @@ public struct AppEventLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -175,7 +193,9 @@ public struct AppEventLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -193,8 +213,8 @@ public struct AppEventLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -204,7 +224,10 @@ public struct AppEventLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -242,7 +265,9 @@ public struct AppEventLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -260,8 +285,8 @@ public struct AppEventLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppEventLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppEventLocalizationCreateRequest.swift index 027905ba7..01f0eed96 100644 --- a/Sources/Bagbutik/Models/AppEventLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct AppEventLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -45,7 +47,11 @@ public struct AppEventLocalizationCreateRequest: Codable, RequestBody { public var name: String? public var shortDescription: String? - public init(locale: String, longDescription: String? = nil, name: String? = nil, shortDescription: String? = nil) { + public init(locale: String, + longDescription: String? = nil, + name: String? = nil, + shortDescription: String? = nil) + { self.locale = locale self.longDescription = longDescription self.name = name diff --git a/Sources/Bagbutik/Models/AppEventLocalizationResponse.swift b/Sources/Bagbutik/Models/AppEventLocalizationResponse.swift index b61db19a1..241ef9453 100644 --- a/Sources/Bagbutik/Models/AppEventLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppEventLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct AppEventLocalizationResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppEventLocalization, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppEventLocalization, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/AppEventLocalizationUpdateRequest.swift index f26c03db0..8f8c74218 100644 --- a/Sources/Bagbutik/Models/AppEventLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventLocalizationUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "appEventLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct AppEventLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct AppEventLocalizationUpdateRequest: Codable, RequestBody { public var name: String? public var shortDescription: String? - public init(longDescription: String? = nil, name: String? = nil, shortDescription: String? = nil) { + public init(longDescription: String? = nil, + name: String? = nil, + shortDescription: String? = nil) + { self.longDescription = longDescription self.name = name self.shortDescription = shortDescription diff --git a/Sources/Bagbutik/Models/AppEventLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppEventLocalizationsResponse.swift index 516f76128..f10210ad8 100644 --- a/Sources/Bagbutik/Models/AppEventLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppEventLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppEventLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppEventLocalization + public let data: [AppEventLocalization] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppEventLocalization], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppEventLocalization], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventResponse.swift b/Sources/Bagbutik/Models/AppEventResponse.swift index d5ee206c8..fe48399bd 100644 --- a/Sources/Bagbutik/Models/AppEventResponse.swift +++ b/Sources/Bagbutik/Models/AppEventResponse.swift @@ -5,7 +5,10 @@ public struct AppEventResponse: Codable { public var included: [AppEventLocalization]? public let links: DocumentLinks - public init(data: AppEvent, included: [AppEventLocalization]? = nil, links: DocumentLinks) { + public init(data: AppEvent, + included: [AppEventLocalization]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventScreenshot.swift b/Sources/Bagbutik/Models/AppEventScreenshot.swift index de0c44e8d..7f51bcb92 100644 --- a/Sources/Bagbutik/Models/AppEventScreenshot.swift +++ b/Sources/Bagbutik/Models/AppEventScreenshot.swift @@ -7,7 +7,11 @@ public struct AppEventScreenshot: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppEventScreenshot: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -51,7 +55,14 @@ public struct AppEventScreenshot: Codable { public var imageAsset: ImageAsset? public var uploadOperations: [UploadOperation]? - public init(appEventAssetType: AppEventAssetType? = nil, assetDeliveryState: AppMediaAssetState? = nil, assetToken: String? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(appEventAssetType: AppEventAssetType? = nil, + assetDeliveryState: AppMediaAssetState? = nil, + assetToken: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.appEventAssetType = appEventAssetType self.assetDeliveryState = assetDeliveryState self.assetToken = assetToken @@ -73,7 +84,9 @@ public struct AppEventScreenshot: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -110,7 +123,9 @@ public struct AppEventScreenshot: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -128,8 +143,8 @@ public struct AppEventScreenshot: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppEventScreenshotCreateRequest.swift b/Sources/Bagbutik/Models/AppEventScreenshotCreateRequest.swift index 80c04648c..ae290600d 100644 --- a/Sources/Bagbutik/Models/AppEventScreenshotCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventScreenshotCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventScreenshotCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct AppEventScreenshotCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct AppEventScreenshotCreateRequest: Codable, RequestBody { public let fileName: String public let fileSize: Int - public init(appEventAssetType: AppEventAssetType, fileName: String, fileSize: Int) { + public init(appEventAssetType: AppEventAssetType, + fileName: String, + fileSize: Int) + { self.appEventAssetType = appEventAssetType self.fileName = fileName self.fileSize = fileSize diff --git a/Sources/Bagbutik/Models/AppEventScreenshotResponse.swift b/Sources/Bagbutik/Models/AppEventScreenshotResponse.swift index 27c85837c..1b8f129b9 100644 --- a/Sources/Bagbutik/Models/AppEventScreenshotResponse.swift +++ b/Sources/Bagbutik/Models/AppEventScreenshotResponse.swift @@ -5,7 +5,10 @@ public struct AppEventScreenshotResponse: Codable { public var included: [AppEventLocalization]? public let links: DocumentLinks - public init(data: AppEventScreenshot, included: [AppEventLocalization]? = nil, links: DocumentLinks) { + public init(data: AppEventScreenshot, + included: [AppEventLocalization]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventScreenshotUpdateRequest.swift b/Sources/Bagbutik/Models/AppEventScreenshotUpdateRequest.swift index 59269b7f1..6770680c5 100644 --- a/Sources/Bagbutik/Models/AppEventScreenshotUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventScreenshotUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventScreenshotUpdateRequest: Codable, RequestBody { public var type: String { "appEventScreenshots" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct AppEventScreenshotUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/AppEventScreenshotsResponse.swift b/Sources/Bagbutik/Models/AppEventScreenshotsResponse.swift index 8fb93beed..fe2ac4e04 100644 --- a/Sources/Bagbutik/Models/AppEventScreenshotsResponse.swift +++ b/Sources/Bagbutik/Models/AppEventScreenshotsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppEventScreenshotsResponse: Codable, PagedResponse { public typealias Data = AppEventScreenshot + public let data: [AppEventScreenshot] public var included: [AppEventLocalization]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppEventScreenshot], included: [AppEventLocalization]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppEventScreenshot], + included: [AppEventLocalization]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventUpdateRequest.swift b/Sources/Bagbutik/Models/AppEventUpdateRequest.swift index 81afc1c9e..c52baa1d6 100644 --- a/Sources/Bagbutik/Models/AppEventUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventUpdateRequest: Codable, RequestBody { public var type: String { "appEvents" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct AppEventUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { @@ -49,7 +51,15 @@ public struct AppEventUpdateRequest: Codable, RequestBody { public var referenceName: String? public var territorySchedules: [TerritorySchedules]? - public init(badge: AppEvent.Attributes.Badge? = nil, deepLink: String? = nil, primaryLocale: String? = nil, priority: AppEvent.Attributes.Priority? = nil, purchaseRequirement: AppEvent.Attributes.PurchaseRequirement? = nil, purpose: AppEvent.Attributes.Purpose? = nil, referenceName: String? = nil, territorySchedules: [TerritorySchedules]? = nil) { + public init(badge: AppEvent.Attributes.Badge? = nil, + deepLink: String? = nil, + primaryLocale: String? = nil, + priority: AppEvent.Attributes.Priority? = nil, + purchaseRequirement: AppEvent.Attributes.PurchaseRequirement? = nil, + purpose: AppEvent.Attributes.Purpose? = nil, + referenceName: String? = nil, + territorySchedules: [TerritorySchedules]? = nil) + { self.badge = badge self.deepLink = deepLink self.primaryLocale = primaryLocale @@ -66,7 +76,11 @@ public struct AppEventUpdateRequest: Codable, RequestBody { public var publishStart: Date? public var territories: [String]? - public init(eventEnd: Date? = nil, eventStart: Date? = nil, publishStart: Date? = nil, territories: [String]? = nil) { + public init(eventEnd: Date? = nil, + eventStart: Date? = nil, + publishStart: Date? = nil, + territories: [String]? = nil) + { self.eventEnd = eventEnd self.eventStart = eventStart self.publishStart = publishStart diff --git a/Sources/Bagbutik/Models/AppEventVideoClip.swift b/Sources/Bagbutik/Models/AppEventVideoClip.swift index b1eac42d8..eac35df91 100644 --- a/Sources/Bagbutik/Models/AppEventVideoClip.swift +++ b/Sources/Bagbutik/Models/AppEventVideoClip.swift @@ -7,7 +7,11 @@ public struct AppEventVideoClip: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppEventVideoClip: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct AppEventVideoClip: Codable { public var uploadOperations: [UploadOperation]? public var videoUrl: String? - public init(appEventAssetType: AppEventAssetType? = nil, assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, previewFrameTimeCode: String? = nil, previewImage: ImageAsset? = nil, uploadOperations: [UploadOperation]? = nil, videoUrl: String? = nil) { + public init(appEventAssetType: AppEventAssetType? = nil, + assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + previewFrameTimeCode: String? = nil, + previewImage: ImageAsset? = nil, + uploadOperations: [UploadOperation]? = nil, + videoUrl: String? = nil) + { self.appEventAssetType = appEventAssetType self.assetDeliveryState = assetDeliveryState self.fileName = fileName @@ -75,7 +87,9 @@ public struct AppEventVideoClip: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -112,7 +126,9 @@ public struct AppEventVideoClip: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -130,8 +146,8 @@ public struct AppEventVideoClip: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppEventVideoClipCreateRequest.swift b/Sources/Bagbutik/Models/AppEventVideoClipCreateRequest.swift index 0093ce9a6..e27572ac6 100644 --- a/Sources/Bagbutik/Models/AppEventVideoClipCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventVideoClipCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventVideoClipCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct AppEventVideoClipCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -45,7 +47,11 @@ public struct AppEventVideoClipCreateRequest: Codable, RequestBody { public let fileSize: Int public var previewFrameTimeCode: String? - public init(appEventAssetType: AppEventAssetType, fileName: String, fileSize: Int, previewFrameTimeCode: String? = nil) { + public init(appEventAssetType: AppEventAssetType, + fileName: String, + fileSize: Int, + previewFrameTimeCode: String? = nil) + { self.appEventAssetType = appEventAssetType self.fileName = fileName self.fileSize = fileSize diff --git a/Sources/Bagbutik/Models/AppEventVideoClipResponse.swift b/Sources/Bagbutik/Models/AppEventVideoClipResponse.swift index 20af4dd3d..70f17c2a2 100644 --- a/Sources/Bagbutik/Models/AppEventVideoClipResponse.swift +++ b/Sources/Bagbutik/Models/AppEventVideoClipResponse.swift @@ -5,7 +5,10 @@ public struct AppEventVideoClipResponse: Codable { public var included: [AppEventLocalization]? public let links: DocumentLinks - public init(data: AppEventVideoClip, included: [AppEventLocalization]? = nil, links: DocumentLinks) { + public init(data: AppEventVideoClip, + included: [AppEventLocalization]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventVideoClipUpdateRequest.swift b/Sources/Bagbutik/Models/AppEventVideoClipUpdateRequest.swift index ec68be646..d2c4abfa7 100644 --- a/Sources/Bagbutik/Models/AppEventVideoClipUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppEventVideoClipUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppEventVideoClipUpdateRequest: Codable, RequestBody { public var type: String { "appEventVideoClips" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct AppEventVideoClipUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var previewFrameTimeCode: String? public var uploaded: Bool? - public init(previewFrameTimeCode: String? = nil, uploaded: Bool? = nil) { + public init(previewFrameTimeCode: String? = nil, + uploaded: Bool? = nil) + { self.previewFrameTimeCode = previewFrameTimeCode self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/AppEventVideoClipsResponse.swift b/Sources/Bagbutik/Models/AppEventVideoClipsResponse.swift index 533f5b036..3334fe41e 100644 --- a/Sources/Bagbutik/Models/AppEventVideoClipsResponse.swift +++ b/Sources/Bagbutik/Models/AppEventVideoClipsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppEventVideoClipsResponse: Codable, PagedResponse { public typealias Data = AppEventVideoClip + public let data: [AppEventVideoClip] public var included: [AppEventLocalization]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppEventVideoClip], included: [AppEventLocalization]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppEventVideoClip], + included: [AppEventLocalization]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppEventsResponse.swift b/Sources/Bagbutik/Models/AppEventsResponse.swift index e0e55c177..9ed6d19fb 100644 --- a/Sources/Bagbutik/Models/AppEventsResponse.swift +++ b/Sources/Bagbutik/Models/AppEventsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppEventsResponse: Codable, PagedResponse { public typealias Data = AppEvent + public let data: [AppEvent] public var included: [AppEventLocalization]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppEvent], included: [AppEventLocalization]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppEvent], + included: [AppEventLocalization]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppInfo.swift b/Sources/Bagbutik/Models/AppInfo.swift index 34ff7cb0b..d6f793f39 100644 --- a/Sources/Bagbutik/Models/AppInfo.swift +++ b/Sources/Bagbutik/Models/AppInfo.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfo The data structure that represent an App Infos resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppInfo: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppInfo.Attributes Attributes that describe an App Infos resource. Full documentation: @@ -69,7 +75,11 @@ public struct AppInfo: Codable { /// A Made for Kids app’s age band. public var kidsAgeBand: KidsAgeBand? - public init(appStoreAgeRating: AppStoreAgeRating? = nil, appStoreState: AppStoreVersionState? = nil, brazilAgeRating: BrazilAgeRating? = nil, kidsAgeBand: KidsAgeBand? = nil) { + public init(appStoreAgeRating: AppStoreAgeRating? = nil, + appStoreState: AppStoreVersionState? = nil, + brazilAgeRating: BrazilAgeRating? = nil, + kidsAgeBand: KidsAgeBand? = nil) + { self.appStoreAgeRating = appStoreAgeRating self.appStoreState = appStoreState self.brazilAgeRating = brazilAgeRating @@ -78,6 +88,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -94,7 +105,16 @@ public struct AppInfo: Codable { public var secondarySubcategoryOne: SecondarySubcategoryOne? public var secondarySubcategoryTwo: SecondarySubcategoryTwo? - public init(ageRatingDeclaration: AgeRatingDeclaration? = nil, app: App? = nil, appInfoLocalizations: AppInfoLocalizations? = nil, primaryCategory: PrimaryCategory? = nil, primarySubcategoryOne: PrimarySubcategoryOne? = nil, primarySubcategoryTwo: PrimarySubcategoryTwo? = nil, secondaryCategory: SecondaryCategory? = nil, secondarySubcategoryOne: SecondarySubcategoryOne? = nil, secondarySubcategoryTwo: SecondarySubcategoryTwo? = nil) { + public init(ageRatingDeclaration: AgeRatingDeclaration? = nil, + app: App? = nil, + appInfoLocalizations: AppInfoLocalizations? = nil, + primaryCategory: PrimaryCategory? = nil, + primarySubcategoryOne: PrimarySubcategoryOne? = nil, + primarySubcategoryTwo: PrimarySubcategoryTwo? = nil, + secondaryCategory: SecondaryCategory? = nil, + secondarySubcategoryOne: SecondarySubcategoryOne? = nil, + secondarySubcategoryTwo: SecondarySubcategoryTwo? = nil) + { self.ageRatingDeclaration = ageRatingDeclaration self.app = app self.appInfoLocalizations = appInfoLocalizations @@ -107,6 +127,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.AgeRatingDeclaration The data and links that describe the relationship between the resources. Full documentation: @@ -116,12 +137,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.AgeRatingDeclaration.Data The type and ID of a related resource. Full documentation: @@ -156,6 +180,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.AgeRatingDeclaration.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -165,7 +190,9 @@ public struct AppInfo: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -183,13 +210,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -199,12 +227,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -241,6 +272,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -252,7 +284,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -270,13 +304,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.AppInfoLocalizations The data and links that describe the relationship between the resources. Full documentation: @@ -287,13 +322,17 @@ public struct AppInfo: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppInfo.Relationships.AppInfoLocalizations.Data The type and ID of a related resource. Full documentation: @@ -330,6 +369,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.AppInfoLocalizations.Links The links to the related data and the relationship's self-link. Full documentation: @@ -341,7 +381,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -359,13 +401,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.PrimaryCategory The data and links that describe the relationship between the resources. Full documentation: @@ -375,12 +418,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.PrimaryCategory.Data The type and ID of a related resource. Full documentation: @@ -417,6 +463,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.PrimaryCategory.Links The links to the related data and the relationship's self-link. Full documentation: @@ -428,7 +475,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -446,13 +495,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.PrimarySubcategoryOne The data and links that describe the relationship between the resources. Full documentation: @@ -462,12 +512,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.PrimarySubcategoryOne.Data The type and ID of a related resource. Full documentation: @@ -504,6 +557,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.PrimarySubcategoryOne.Links The links to the related data and the relationship's self-link. Full documentation: @@ -515,7 +569,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -533,13 +589,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.PrimarySubcategoryTwo The data and links that describe the relationship between the resources. Full documentation: @@ -549,12 +606,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.PrimarySubcategoryTwo.Data The type and ID of a related resource. Full documentation: @@ -591,6 +651,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.PrimarySubcategoryTwo.Links The links to the related data and the relationship's self-link. Full documentation: @@ -602,7 +663,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -620,13 +683,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.SecondaryCategory The data and links that describe the relationship between the resources. Full documentation: @@ -636,12 +700,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.SecondaryCategory.Data The type and ID of a related resource. Full documentation: @@ -678,6 +745,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.SecondaryCategory.Links The links to the related data and the relationship's self-link. Full documentation: @@ -689,7 +757,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -707,13 +777,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.SecondarySubcategoryOne The data and links that describe the relationship between the resources. Full documentation: @@ -723,12 +794,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.SecondarySubcategoryOne.Data The type and ID of a related resource. Full documentation: @@ -765,6 +839,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.SecondarySubcategoryOne.Links The links to the related data and the relationship's self-link. Full documentation: @@ -776,7 +851,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -794,13 +871,14 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppInfo.Relationships.SecondarySubcategoryTwo The data and links that describe the relationship between the resources. Full documentation: @@ -810,12 +888,15 @@ public struct AppInfo: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfo.Relationships.SecondarySubcategoryTwo.Data The type and ID of a related resource. Full documentation: @@ -852,6 +933,7 @@ public struct AppInfo: Codable { } /** + # AppInfo.Relationships.SecondarySubcategoryTwo.Links The links to the related data and the relationship's self-link. Full documentation: @@ -863,7 +945,9 @@ public struct AppInfo: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -881,8 +965,8 @@ public struct AppInfo: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppInfoLocalization.swift b/Sources/Bagbutik/Models/AppInfoLocalization.swift index 97d53431a..fd7e23b0b 100644 --- a/Sources/Bagbutik/Models/AppInfoLocalization.swift +++ b/Sources/Bagbutik/Models/AppInfoLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoLocalization The data structure that represent an App Info Localizations resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppInfoLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppInfoLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppInfoLocalization.Attributes Attributes that describe an App Info Localizations resource. Full documentation: @@ -62,7 +68,13 @@ public struct AppInfoLocalization: Codable { public var privacyPolicyUrl: String? public var subtitle: String? - public init(locale: String? = nil, name: String? = nil, privacyChoicesUrl: String? = nil, privacyPolicyText: String? = nil, privacyPolicyUrl: String? = nil, subtitle: String? = nil) { + public init(locale: String? = nil, + name: String? = nil, + privacyChoicesUrl: String? = nil, + privacyPolicyText: String? = nil, + privacyPolicyUrl: String? = nil, + subtitle: String? = nil) + { self.locale = locale self.name = name self.privacyChoicesUrl = privacyChoicesUrl @@ -73,6 +85,7 @@ public struct AppInfoLocalization: Codable { } /** + # AppInfoLocalization.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -86,6 +99,7 @@ public struct AppInfoLocalization: Codable { } /** + # AppInfoLocalization.Relationships.AppInfo The data and links that describe the relationship between the resources. Full documentation: @@ -95,12 +109,15 @@ public struct AppInfoLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppInfoLocalization.Relationships.AppInfo.Data The type and ID of a related resource. Full documentation: @@ -135,6 +152,7 @@ public struct AppInfoLocalization: Codable { } /** + # AppInfoLocalization.Relationships.AppInfo.Links The links to the related data and the relationship's self-link. Full documentation: @@ -144,7 +162,9 @@ public struct AppInfoLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -162,8 +182,8 @@ public struct AppInfoLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppInfoLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppInfoLocalizationCreateRequest.swift index 5efa6b12f..ce279c361 100644 --- a/Sources/Bagbutik/Models/AppInfoLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppInfoLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoLocalizationCreateRequest The request body you use to create an App Info Localization. Full documentation: @@ -14,6 +15,7 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { } /** + # AppInfoLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppInfoLocalizationCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -65,7 +70,13 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { public var privacyPolicyUrl: String? public var subtitle: String? - public init(locale: String, name: String? = nil, privacyChoicesUrl: String? = nil, privacyPolicyText: String? = nil, privacyPolicyUrl: String? = nil, subtitle: String? = nil) { + public init(locale: String, + name: String? = nil, + privacyChoicesUrl: String? = nil, + privacyPolicyText: String? = nil, + privacyPolicyUrl: String? = nil, + subtitle: String? = nil) + { self.locale = locale self.name = name self.privacyChoicesUrl = privacyChoicesUrl @@ -76,6 +87,7 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { } /** + # AppInfoLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -89,6 +101,7 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { } /** + # AppInfoLocalizationCreateRequest.Data.Relationships.AppInfo The relationships to other resources that you can set with this request. Full documentation: @@ -102,6 +115,7 @@ public struct AppInfoLocalizationCreateRequest: Codable, RequestBody { } /** + # AppInfoLocalizationCreateRequest.Data.Relationships.AppInfo.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppInfoLocalizationResponse.swift b/Sources/Bagbutik/Models/AppInfoLocalizationResponse.swift index 3e8810e5c..2bed1c3e2 100644 --- a/Sources/Bagbutik/Models/AppInfoLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppInfoLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoLocalizationResponse A response that contains a single App Info Localizations resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppInfoLocalizationResponse: Codable { public var included: [AppInfo]? public let links: DocumentLinks - public init(data: AppInfoLocalization, included: [AppInfo]? = nil, links: DocumentLinks) { + public init(data: AppInfoLocalization, + included: [AppInfo]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppInfoLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/AppInfoLocalizationUpdateRequest.swift index 8da398610..2c67f8ed6 100644 --- a/Sources/Bagbutik/Models/AppInfoLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppInfoLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoLocalizationUpdateRequest The request body you use to update an App Info Localization. Full documentation: @@ -14,6 +15,7 @@ public struct AppInfoLocalizationUpdateRequest: Codable, RequestBody { } /** + # AppInfoLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppInfoLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "appInfoLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppInfoLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppInfoLocalizationUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -64,7 +69,12 @@ public struct AppInfoLocalizationUpdateRequest: Codable, RequestBody { public var privacyPolicyUrl: String? public var subtitle: String? - public init(name: String? = nil, privacyChoicesUrl: String? = nil, privacyPolicyText: String? = nil, privacyPolicyUrl: String? = nil, subtitle: String? = nil) { + public init(name: String? = nil, + privacyChoicesUrl: String? = nil, + privacyPolicyText: String? = nil, + privacyPolicyUrl: String? = nil, + subtitle: String? = nil) + { self.name = name self.privacyChoicesUrl = privacyChoicesUrl self.privacyPolicyText = privacyPolicyText diff --git a/Sources/Bagbutik/Models/AppInfoLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppInfoLocalizationsResponse.swift index b5b1bc70a..7236b10eb 100644 --- a/Sources/Bagbutik/Models/AppInfoLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppInfoLocalizationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoLocalizationsResponse A response that contains a list of AppInfoLocalizations resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppInfoLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppInfoLocalization + public let data: [AppInfoLocalization] public var included: [AppInfo]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppInfoLocalization], included: [AppInfo]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppInfoLocalization], + included: [AppInfo]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppInfoResponse.swift b/Sources/Bagbutik/Models/AppInfoResponse.swift index ed48d680f..e5bb473b6 100644 --- a/Sources/Bagbutik/Models/AppInfoResponse.swift +++ b/Sources/Bagbutik/Models/AppInfoResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoResponse A response that contains a single App Infos resource. Full documentation: @@ -13,7 +14,10 @@ public struct AppInfoResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppInfo, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppInfo, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppInfoUpdateRequest.swift b/Sources/Bagbutik/Models/AppInfoUpdateRequest.swift index 019685da5..f57e4c253 100644 --- a/Sources/Bagbutik/Models/AppInfoUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppInfoUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfoUpdateRequest The request body you use to update an App Info. Full documentation: @@ -15,6 +16,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, relationships: Relationships? = nil) { + public init(id: String, + relationships: Relationships? = nil) + { self.id = id self.relationships = relationships } @@ -51,11 +55,12 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { private enum CodingKeys: String, CodingKey { case id - case type case relationships + case type } /** + # AppInfoUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -69,7 +74,13 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { public var secondarySubcategoryOne: SecondarySubcategoryOne? public var secondarySubcategoryTwo: SecondarySubcategoryTwo? - public init(primaryCategory: PrimaryCategory? = nil, primarySubcategoryOne: PrimarySubcategoryOne? = nil, primarySubcategoryTwo: PrimarySubcategoryTwo? = nil, secondaryCategory: SecondaryCategory? = nil, secondarySubcategoryOne: SecondarySubcategoryOne? = nil, secondarySubcategoryTwo: SecondarySubcategoryTwo? = nil) { + public init(primaryCategory: PrimaryCategory? = nil, + primarySubcategoryOne: PrimarySubcategoryOne? = nil, + primarySubcategoryTwo: PrimarySubcategoryTwo? = nil, + secondaryCategory: SecondaryCategory? = nil, + secondarySubcategoryOne: SecondarySubcategoryOne? = nil, + secondarySubcategoryTwo: SecondarySubcategoryTwo? = nil) + { self.primaryCategory = primaryCategory self.primarySubcategoryOne = primarySubcategoryOne self.primarySubcategoryTwo = primarySubcategoryTwo @@ -79,6 +90,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimaryCategory The data and links that describe the relationship between the resources. Full documentation: @@ -92,6 +104,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimaryCategory.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -129,6 +142,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimarySubcategoryOne The data and links that describe the relationship between the resources. Full documentation: @@ -142,6 +156,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimarySubcategoryOne.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -179,6 +194,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimarySubcategoryTwo The data and links that describe the relationship between the resources. Full documentation: @@ -192,6 +208,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.PrimarySubcategoryTwo.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -229,6 +246,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondaryCategory The data and links that describe the relationship between the resources. Full documentation: @@ -242,6 +260,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondaryCategory.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -279,6 +298,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondarySubcategoryOne The data and links that describe the relationship between the resources. Full documentation: @@ -292,6 +312,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondarySubcategoryOne.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -329,6 +350,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondarySubcategoryTwo The data and links that describe the relationship between the resources. Full documentation: @@ -342,6 +364,7 @@ public struct AppInfoUpdateRequest: Codable, RequestBody { } /** + # AppInfoUpdateRequest.Data.Relationships.SecondarySubcategoryTwo.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppInfosResponse.swift b/Sources/Bagbutik/Models/AppInfosResponse.swift index 04b74f563..b2dfda99e 100644 --- a/Sources/Bagbutik/Models/AppInfosResponse.swift +++ b/Sources/Bagbutik/Models/AppInfosResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppInfosResponse A response that contains a list of App Info resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppInfosResponse: Codable, PagedResponse { public typealias Data = AppInfo + /// The resource data. public let data: [AppInfo] public var included: [Included]? @@ -16,7 +18,11 @@ public struct AppInfosResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [AppInfo], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppInfo], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppInlineCreate.swift b/Sources/Bagbutik/Models/AppInlineCreate.swift index fcfa41a88..c9cd63880 100644 --- a/Sources/Bagbutik/Models/AppInlineCreate.swift +++ b/Sources/Bagbutik/Models/AppInlineCreate.swift @@ -6,7 +6,10 @@ public struct AppInlineCreate: Codable { public let attributes: Attributes public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,10 +34,10 @@ public struct AppInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { @@ -42,7 +45,10 @@ public struct AppInlineCreate: Codable { public let primaryLocale: String public let sku: String - public init(bundleId: String, primaryLocale: String, sku: String) { + public init(bundleId: String, + primaryLocale: String, + sku: String) + { self.bundleId = bundleId self.primaryLocale = primaryLocale self.sku = sku @@ -53,7 +59,9 @@ public struct AppInlineCreate: Codable { public var appInfos: AppInfos? public var appStoreVersions: AppStoreVersions? - public init(appInfos: AppInfos? = nil, appStoreVersions: AppStoreVersions? = nil) { + public init(appInfos: AppInfos? = nil, + appStoreVersions: AppStoreVersions? = nil) + { self.appInfos = appInfos self.appStoreVersions = appStoreVersions } diff --git a/Sources/Bagbutik/Models/AppMediaAssetState.swift b/Sources/Bagbutik/Models/AppMediaAssetState.swift index 7ad2ed8f5..361cca367 100644 --- a/Sources/Bagbutik/Models/AppMediaAssetState.swift +++ b/Sources/Bagbutik/Models/AppMediaAssetState.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppMediaAssetState The state of an app or media upload, including any errors and warnings. Full documentation: @@ -11,7 +12,10 @@ public struct AppMediaAssetState: Codable { public var state: State? public var warnings: [AppMediaStateError]? - public init(errors: [AppMediaStateError]? = nil, state: State? = nil, warnings: [AppMediaStateError]? = nil) { + public init(errors: [AppMediaStateError]? = nil, + state: State? = nil, + warnings: [AppMediaStateError]? = nil) + { self.errors = errors self.state = state self.warnings = warnings diff --git a/Sources/Bagbutik/Models/AppMediaStateError.swift b/Sources/Bagbutik/Models/AppMediaStateError.swift index 235f2cf98..9b7013a23 100644 --- a/Sources/Bagbutik/Models/AppMediaStateError.swift +++ b/Sources/Bagbutik/Models/AppMediaStateError.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppMediaStateError An error code and description. Full documentation: @@ -10,7 +11,9 @@ public struct AppMediaStateError: Codable { public var code: String? public var description: String? - public init(code: String? = nil, description: String? = nil) { + public init(code: String? = nil, + description: String? = nil) + { self.code = code self.description = description } diff --git a/Sources/Bagbutik/Models/AppPreOrder.swift b/Sources/Bagbutik/Models/AppPreOrder.swift index b4116afa8..4ecbb025b 100644 --- a/Sources/Bagbutik/Models/AppPreOrder.swift +++ b/Sources/Bagbutik/Models/AppPreOrder.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreOrder The data structure that represent an App Pre Orders resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppPreOrder: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppPreOrder: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppPreOrder.Attributes Attributes that describe an App Pre Orders resource. Full documentation: @@ -58,13 +64,16 @@ public struct AppPreOrder: Codable { public var appReleaseDate: String? public var preOrderAvailableDate: String? - public init(appReleaseDate: String? = nil, preOrderAvailableDate: String? = nil) { + public init(appReleaseDate: String? = nil, + preOrderAvailableDate: String? = nil) + { self.appReleaseDate = appReleaseDate self.preOrderAvailableDate = preOrderAvailableDate } } /** + # AppPreOrder.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -78,6 +87,7 @@ public struct AppPreOrder: Codable { } /** + # AppPreOrder.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -87,12 +97,15 @@ public struct AppPreOrder: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPreOrder.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -127,6 +140,7 @@ public struct AppPreOrder: Codable { } /** + # AppPreOrder.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -136,7 +150,9 @@ public struct AppPreOrder: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -154,8 +170,8 @@ public struct AppPreOrder: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPreOrderCreateRequest.swift b/Sources/Bagbutik/Models/AppPreOrderCreateRequest.swift index fee89c647..72c545256 100644 --- a/Sources/Bagbutik/Models/AppPreOrderCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppPreOrderCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreOrderCreateRequest The request body you use to create an App Pre-Order. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { } /** + # AppPreOrderCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { public var attributes: Attributes? public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppPreOrderCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,6 +71,7 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { } /** + # AppPreOrderCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -79,6 +85,7 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { } /** + # AppPreOrderCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -92,6 +99,7 @@ public struct AppPreOrderCreateRequest: Codable, RequestBody { } /** + # AppPreOrderCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreOrderResponse.swift b/Sources/Bagbutik/Models/AppPreOrderResponse.swift index 63ee14ab0..efab380fc 100644 --- a/Sources/Bagbutik/Models/AppPreOrderResponse.swift +++ b/Sources/Bagbutik/Models/AppPreOrderResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreOrderResponse A response that contains a single App Pre-Orders resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppPreOrderResponse: Codable { public var included: [App]? public let links: DocumentLinks - public init(data: AppPreOrder, included: [App]? = nil, links: DocumentLinks) { + public init(data: AppPreOrder, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPreOrderUpdateRequest.swift b/Sources/Bagbutik/Models/AppPreOrderUpdateRequest.swift index d897eeee3..f2dae9c15 100644 --- a/Sources/Bagbutik/Models/AppPreOrderUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppPreOrderUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreOrderUpdateRequest The request body you use to update an App Pre-Order. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreOrderUpdateRequest: Codable, RequestBody { } /** + # AppPreOrderUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppPreOrderUpdateRequest: Codable, RequestBody { public var type: String { "appPreOrders" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppPreOrderUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppPreOrderUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreview.swift b/Sources/Bagbutik/Models/AppPreview.swift index 2a8853294..506ff96e4 100644 --- a/Sources/Bagbutik/Models/AppPreview.swift +++ b/Sources/Bagbutik/Models/AppPreview.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreview The data structure that represent an App Previews resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppPreview: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppPreview: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppPreview.Attributes Attributes that describe an App Previews resource. Full documentation: @@ -65,7 +71,16 @@ public struct AppPreview: Codable { public var uploadOperations: [UploadOperation]? public var videoUrl: String? - public init(assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, mimeType: String? = nil, previewFrameTimeCode: String? = nil, previewImage: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil, videoUrl: String? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + mimeType: String? = nil, + previewFrameTimeCode: String? = nil, + previewImage: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil, + videoUrl: String? = nil) + { self.assetDeliveryState = assetDeliveryState self.fileName = fileName self.fileSize = fileSize @@ -79,6 +94,7 @@ public struct AppPreview: Codable { } /** + # AppPreview.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -92,6 +108,7 @@ public struct AppPreview: Codable { } /** + # AppPreview.Relationships.AppPreviewSet The data and links that describe the relationship between the resources. Full documentation: @@ -101,12 +118,15 @@ public struct AppPreview: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPreview.Relationships.AppPreviewSet.Data The type and ID of a related resource. Full documentation: @@ -141,6 +161,7 @@ public struct AppPreview: Codable { } /** + # AppPreview.Relationships.AppPreviewSet.Links The links to the related data and the relationship's self-link. Full documentation: @@ -150,7 +171,9 @@ public struct AppPreview: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -168,8 +191,8 @@ public struct AppPreview: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPreviewCreateRequest.swift b/Sources/Bagbutik/Models/AppPreviewCreateRequest.swift index a39f8baf7..9d6785b7a 100644 --- a/Sources/Bagbutik/Models/AppPreviewCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppPreviewCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewCreateRequest The request body you use to create an App Preview. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { } /** + # AppPreviewCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppPreviewCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -63,7 +68,11 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { public var mimeType: String? public var previewFrameTimeCode: String? - public init(fileName: String, fileSize: Int, mimeType: String? = nil, previewFrameTimeCode: String? = nil) { + public init(fileName: String, + fileSize: Int, + mimeType: String? = nil, + previewFrameTimeCode: String? = nil) + { self.fileName = fileName self.fileSize = fileSize self.mimeType = mimeType @@ -72,6 +81,7 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { } /** + # AppPreviewCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -85,6 +95,7 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { } /** + # AppPreviewCreateRequest.Data.Relationships.AppPreviewSet The relationships to other resources that you can set with this request. Full documentation: @@ -98,6 +109,7 @@ public struct AppPreviewCreateRequest: Codable, RequestBody { } /** + # AppPreviewCreateRequest.Data.Relationships.AppPreviewSet.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreviewResponse.swift b/Sources/Bagbutik/Models/AppPreviewResponse.swift index 9b522713b..3f88f2212 100644 --- a/Sources/Bagbutik/Models/AppPreviewResponse.swift +++ b/Sources/Bagbutik/Models/AppPreviewResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewResponse A response that contains a single App Previews resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppPreviewResponse: Codable { public var included: [AppPreviewSet]? public let links: DocumentLinks - public init(data: AppPreview, included: [AppPreviewSet]? = nil, links: DocumentLinks) { + public init(data: AppPreview, + included: [AppPreviewSet]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPreviewSet.swift b/Sources/Bagbutik/Models/AppPreviewSet.swift index 44ff2ab61..e8dee0755 100644 --- a/Sources/Bagbutik/Models/AppPreviewSet.swift +++ b/Sources/Bagbutik/Models/AppPreviewSet.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSet The data structure that represent an App Preview Sets resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppPreviewSet: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppPreviewSet: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppPreviewSet.Attributes Attributes that describe an App Preview Sets resource. Full documentation: @@ -63,6 +69,7 @@ public struct AppPreviewSet: Codable { } /** + # AppPreviewSet.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -74,7 +81,11 @@ public struct AppPreviewSet: Codable { public var appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? public var appStoreVersionLocalization: AppStoreVersionLocalization? - public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, appPreviews: AppPreviews? = nil, appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, appStoreVersionLocalization: AppStoreVersionLocalization? = nil) { + public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, + appPreviews: AppPreviews? = nil, + appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, + appStoreVersionLocalization: AppStoreVersionLocalization? = nil) + { self.appCustomProductPageLocalization = appCustomProductPageLocalization self.appPreviews = appPreviews self.appStoreVersionExperimentTreatmentLocalization = appStoreVersionExperimentTreatmentLocalization @@ -85,7 +96,9 @@ public struct AppPreviewSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -122,7 +135,9 @@ public struct AppPreviewSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -140,13 +155,14 @@ public struct AppPreviewSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPreviewSet.Relationships.AppPreviews The data and links that describe the relationship between the resources. Full documentation: @@ -157,13 +173,17 @@ public struct AppPreviewSet: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppPreviewSet.Relationships.AppPreviews.Data The type and ID of a related resource. Full documentation: @@ -198,6 +218,7 @@ public struct AppPreviewSet: Codable { } /** + # AppPreviewSet.Relationships.AppPreviews.Links The links to the related data and the relationship's self-link. Full documentation: @@ -207,7 +228,9 @@ public struct AppPreviewSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -225,8 +248,8 @@ public struct AppPreviewSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -235,7 +258,9 @@ public struct AppPreviewSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -272,7 +297,9 @@ public struct AppPreviewSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -290,13 +317,14 @@ public struct AppPreviewSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPreviewSet.Relationships.AppStoreVersionLocalization The data and links that describe the relationship between the resources. Full documentation: @@ -306,12 +334,15 @@ public struct AppPreviewSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPreviewSet.Relationships.AppStoreVersionLocalization.Data The type and ID of a related resource. Full documentation: @@ -346,6 +377,7 @@ public struct AppPreviewSet: Codable { } /** + # AppPreviewSet.Relationships.AppStoreVersionLocalization.Links The links to the related data and the relationship's self-link. Full documentation: @@ -355,7 +387,9 @@ public struct AppPreviewSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -373,8 +407,8 @@ public struct AppPreviewSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesRequest.swift b/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesRequest.swift index 31328221e..8810b6609 100644 --- a/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSetAppPreviewsLinkagesRequest A request body you use to reorder the app previews in a preview set. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreviewSetAppPreviewsLinkagesRequest: Codable, RequestBody { } /** + # AppPreviewSetAppPreviewsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesResponse.swift b/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesResponse.swift index 3be023316..c82c8dd83 100644 --- a/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/AppPreviewSetAppPreviewsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSetAppPreviewsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -11,13 +12,17 @@ public struct AppPreviewSetAppPreviewsLinkagesResponse: Codable, PagedResponse { public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppPreviewSetAppPreviewsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreviewSetCreateRequest.swift b/Sources/Bagbutik/Models/AppPreviewSetCreateRequest.swift index a53baafa9..f8592a992 100644 --- a/Sources/Bagbutik/Models/AppPreviewSetCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppPreviewSetCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSetCreateRequest The request body you use to create an App Preview Set. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { } /** + # AppPreviewSetCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { public let attributes: Attributes public var relationships: Relationships? - public init(attributes: Attributes, relationships: Relationships? = nil) { + public init(attributes: Attributes, + relationships: Relationships? = nil) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppPreviewSetCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,6 +71,7 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { } /** + # AppPreviewSetCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -76,7 +82,10 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { public var appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? public var appStoreVersionLocalization: AppStoreVersionLocalization? - public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, appStoreVersionLocalization: AppStoreVersionLocalization? = nil) { + public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, + appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, + appStoreVersionLocalization: AppStoreVersionLocalization? = nil) + { self.appCustomProductPageLocalization = appCustomProductPageLocalization self.appStoreVersionExperimentTreatmentLocalization = appStoreVersionExperimentTreatmentLocalization self.appStoreVersionLocalization = appStoreVersionLocalization @@ -155,6 +164,7 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { } /** + # AppPreviewSetCreateRequest.Data.Relationships.AppStoreVersionLocalization The relationships to other resources that you can set with this request. Full documentation: @@ -168,6 +178,7 @@ public struct AppPreviewSetCreateRequest: Codable, RequestBody { } /** + # AppPreviewSetCreateRequest.Data.Relationships.AppStoreVersionLocalization.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppPreviewSetResponse.swift b/Sources/Bagbutik/Models/AppPreviewSetResponse.swift index b458814f9..f622a6767 100644 --- a/Sources/Bagbutik/Models/AppPreviewSetResponse.swift +++ b/Sources/Bagbutik/Models/AppPreviewSetResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSetResponse A response that contains a single App Preview Sets resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppPreviewSetResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppPreviewSet, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppPreviewSet, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPreviewSetsResponse.swift b/Sources/Bagbutik/Models/AppPreviewSetsResponse.swift index 310a0cbb2..feec499c2 100644 --- a/Sources/Bagbutik/Models/AppPreviewSetsResponse.swift +++ b/Sources/Bagbutik/Models/AppPreviewSetsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewSetsResponse A response that contains a list of App Preview Set resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppPreviewSetsResponse: Codable, PagedResponse { public typealias Data = AppPreviewSet + public let data: [AppPreviewSet] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppPreviewSet], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPreviewSet], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPreviewUpdateRequest.swift b/Sources/Bagbutik/Models/AppPreviewUpdateRequest.swift index b2839e6a0..8558ca2ce 100644 --- a/Sources/Bagbutik/Models/AppPreviewUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppPreviewUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewUpdateRequest The request body you use to update an App Preview. Full documentation: @@ -14,6 +15,7 @@ public struct AppPreviewUpdateRequest: Codable, RequestBody { } /** + # AppPreviewUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppPreviewUpdateRequest: Codable, RequestBody { public var type: String { "appPreviews" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppPreviewUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppPreviewUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -62,7 +67,10 @@ public struct AppPreviewUpdateRequest: Codable, RequestBody { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(previewFrameTimeCode: String? = nil, sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(previewFrameTimeCode: String? = nil, + sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.previewFrameTimeCode = previewFrameTimeCode self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded diff --git a/Sources/Bagbutik/Models/AppPreviewsResponse.swift b/Sources/Bagbutik/Models/AppPreviewsResponse.swift index 4daaf53fe..236a2b7b6 100644 --- a/Sources/Bagbutik/Models/AppPreviewsResponse.swift +++ b/Sources/Bagbutik/Models/AppPreviewsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPreviewsResponse A response that contains a list of App Preview resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppPreviewsResponse: Codable, PagedResponse { public typealias Data = AppPreview + public let data: [AppPreview] public var included: [AppPreviewSet]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppPreview], included: [AppPreviewSet]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPreview], + included: [AppPreviewSet]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPrice.swift b/Sources/Bagbutik/Models/AppPrice.swift index 00ff5f49a..02e0540da 100644 --- a/Sources/Bagbutik/Models/AppPrice.swift +++ b/Sources/Bagbutik/Models/AppPrice.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPrice The data structure that represents an App Price resource. Full documentation: @@ -16,7 +17,10 @@ public struct AppPrice: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -43,11 +47,12 @@ public struct AppPrice: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } /** + # AppPrice.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -57,12 +62,15 @@ public struct AppPrice: Codable { public var app: App? public var priceTier: PriceTier? - public init(app: App? = nil, priceTier: PriceTier? = nil) { + public init(app: App? = nil, + priceTier: PriceTier? = nil) + { self.app = app self.priceTier = priceTier } /** + # AppPrice.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -72,12 +80,15 @@ public struct AppPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPrice.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -112,6 +123,7 @@ public struct AppPrice: Codable { } /** + # AppPrice.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -121,7 +133,9 @@ public struct AppPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -139,13 +153,14 @@ public struct AppPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPrice.Relationships.PriceTier The data and links that describe the relationship between the resources. Full documentation: @@ -155,12 +170,15 @@ public struct AppPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPrice.Relationships.PriceTier.Data The type and ID of a related resource. Full documentation: @@ -195,6 +213,7 @@ public struct AppPrice: Codable { } /** + # AppPrice.Relationships.PriceTier.Links The links to the related data and the relationship's self-link. Full documentation: @@ -204,7 +223,9 @@ public struct AppPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -222,8 +243,8 @@ public struct AppPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPricePoint.swift b/Sources/Bagbutik/Models/AppPricePoint.swift index 213b2b625..48dff122a 100644 --- a/Sources/Bagbutik/Models/AppPricePoint.swift +++ b/Sources/Bagbutik/Models/AppPricePoint.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricePoint The data structure that represents an App Price Points resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppPricePoint: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppPricePoint: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppPricePoint.Attributes Attributes that describe an App Price Points resource. Full documentation: @@ -63,13 +69,16 @@ public struct AppPricePoint: Codable { public var customerPrice: String? public var proceeds: String? - public init(customerPrice: String? = nil, proceeds: String? = nil) { + public init(customerPrice: String? = nil, + proceeds: String? = nil) + { self.customerPrice = customerPrice self.proceeds = proceeds } } /** + # AppPricePoint.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -79,12 +88,15 @@ public struct AppPricePoint: Codable { public var priceTier: PriceTier? public var territory: Territory? - public init(priceTier: PriceTier? = nil, territory: Territory? = nil) { + public init(priceTier: PriceTier? = nil, + territory: Territory? = nil) + { self.priceTier = priceTier self.territory = territory } /** + # AppPricePoint.Relationships.PriceTier The data and links that describe the relationship between the resources. Full documentation: @@ -94,12 +106,15 @@ public struct AppPricePoint: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPricePoint.Relationships.PriceTier.Data The type and ID of a related resource. Full documentation: @@ -134,6 +149,7 @@ public struct AppPricePoint: Codable { } /** + # AppPricePoint.Relationships.PriceTier.Links The links to the related data and the relationship's self-link. Full documentation: @@ -143,7 +159,9 @@ public struct AppPricePoint: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -161,13 +179,14 @@ public struct AppPricePoint: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPricePoint.Relationships.Territory The data and links that describe the relationship between the resources. Full documentation: @@ -177,12 +196,15 @@ public struct AppPricePoint: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPricePoint.Relationships.Territory.Data The type and ID of a related resource. Full documentation: @@ -217,6 +239,7 @@ public struct AppPricePoint: Codable { } /** + # AppPricePoint.Relationships.Territory.Links The links to the related data and the relationship's self-link. Full documentation: @@ -226,7 +249,9 @@ public struct AppPricePoint: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -244,8 +269,8 @@ public struct AppPricePoint: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPricePointResponse.swift b/Sources/Bagbutik/Models/AppPricePointResponse.swift index 447380849..d60e45580 100644 --- a/Sources/Bagbutik/Models/AppPricePointResponse.swift +++ b/Sources/Bagbutik/Models/AppPricePointResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricePointResponse A response that contains a single App Price Points resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppPricePointResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppPricePoint, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppPricePoint, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPricePointV2.swift b/Sources/Bagbutik/Models/AppPricePointV2.swift index ccc7af1f6..18aeca994 100644 --- a/Sources/Bagbutik/Models/AppPricePointV2.swift +++ b/Sources/Bagbutik/Models/AppPricePointV2.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricePointV2 The data structure that represents an App Price Point V2 resource. Full documentation: @@ -18,7 +19,11 @@ public struct AppPricePointV2: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct AppPricePointV2: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppPricePointV2.Attributes Attributes that describe an App Price Point V2 resource. Full documentation: @@ -65,13 +71,16 @@ public struct AppPricePointV2: Codable { /// The proceeds that go to the developer. public var proceeds: String? - public init(customerPrice: String? = nil, proceeds: String? = nil) { + public init(customerPrice: String? = nil, + proceeds: String? = nil) + { self.customerPrice = customerPrice self.proceeds = proceeds } } /** + # AppPricePointV2.Relationships The relationships you included in a request and those on which you can operate. Full documentation: @@ -82,13 +91,17 @@ public struct AppPricePointV2: Codable { public var priceTier: PriceTier? public var territory: Territory? - public init(app: App? = nil, priceTier: PriceTier? = nil, territory: Territory? = nil) { + public init(app: App? = nil, + priceTier: PriceTier? = nil, + territory: Territory? = nil) + { self.app = app self.priceTier = priceTier self.territory = territory } /** + # AppPricePointV2.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -98,12 +111,15 @@ public struct AppPricePointV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPricePointV2.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -140,6 +156,7 @@ public struct AppPricePointV2: Codable { } /** + # AppPricePointV2.Relationships.App.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -149,7 +166,9 @@ public struct AppPricePointV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -167,13 +186,14 @@ public struct AppPricePointV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPricePointV2.Relationships.PriceTier The data and links that describe the relationship between the resources. Full documentation: @@ -183,12 +203,15 @@ public struct AppPricePointV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPricePointV2.Relationships.PriceTier.Data The type and ID of a related resource. Full documentation: @@ -223,6 +246,7 @@ public struct AppPricePointV2: Codable { } /** + # AppPricePointV2.Relationships.PriceTier.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -232,7 +256,9 @@ public struct AppPricePointV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -250,13 +276,14 @@ public struct AppPricePointV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppPricePointV2.Relationships.Territory The data and links that describe the relationship between the resources. Full documentation: @@ -266,12 +293,15 @@ public struct AppPricePointV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppPricePointV2.Relationships.Territory.Data The type and ID of a related resource. Full documentation: @@ -306,6 +336,7 @@ public struct AppPricePointV2: Codable { } /** + # AppPricePointV2.Relationships.Territory.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -315,7 +346,9 @@ public struct AppPricePointV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -333,8 +366,8 @@ public struct AppPricePointV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPricePointsResponse.swift b/Sources/Bagbutik/Models/AppPricePointsResponse.swift index a01b75182..a0f10e419 100644 --- a/Sources/Bagbutik/Models/AppPricePointsResponse.swift +++ b/Sources/Bagbutik/Models/AppPricePointsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricePointsResponse A response that contains a list of App Price Point resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppPricePointsResponse: Codable, PagedResponse { public typealias Data = AppPricePoint + public let data: [AppPricePoint] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppPricePoint], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPricePoint], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPricePointsV2Response.swift b/Sources/Bagbutik/Models/AppPricePointsV2Response.swift index 3ffa68352..fdb94703e 100644 --- a/Sources/Bagbutik/Models/AppPricePointsV2Response.swift +++ b/Sources/Bagbutik/Models/AppPricePointsV2Response.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricePointsV2Response A response that contains a list of App Price Points V2 resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppPricePointsV2Response: Codable, PagedResponse { public typealias Data = AppPricePointV2 + /// The resource data. public let data: [AppPricePointV2] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppPricePointsV2Response: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [AppPricePointV2], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPricePointV2], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPriceResponse.swift b/Sources/Bagbutik/Models/AppPriceResponse.swift index ea9b94e19..e48adaf58 100644 --- a/Sources/Bagbutik/Models/AppPriceResponse.swift +++ b/Sources/Bagbutik/Models/AppPriceResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPriceResponse A response that contains a single App Price resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppPriceResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppPrice, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppPrice, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPriceTier.swift b/Sources/Bagbutik/Models/AppPriceTier.swift index f13ead659..0525a1f01 100644 --- a/Sources/Bagbutik/Models/AppPriceTier.swift +++ b/Sources/Bagbutik/Models/AppPriceTier.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPriceTier The data structure that represent an App Price Tiers resource. Full documentation: @@ -16,7 +17,10 @@ public struct AppPriceTier: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -43,11 +47,12 @@ public struct AppPriceTier: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } /** + # AppPriceTier.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -65,6 +70,7 @@ public struct AppPriceTier: Codable { public init() {} /** + # AppPriceTier.Relationships.PricePoints The data and links that describe the relationship between the resources. Full documentation: @@ -75,13 +81,17 @@ public struct AppPriceTier: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppPriceTier.Relationships.PricePoints.Data The type and ID of a related resource. Full documentation: @@ -116,6 +126,7 @@ public struct AppPriceTier: Codable { } /** + # AppPriceTier.Relationships.PricePoints.Links The links to the related data and the relationship's self-link. Full documentation: @@ -125,7 +136,9 @@ public struct AppPriceTier: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -143,8 +156,8 @@ public struct AppPriceTier: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppPriceTierResponse.swift b/Sources/Bagbutik/Models/AppPriceTierResponse.swift index 4b2be6b35..6614f9ba3 100644 --- a/Sources/Bagbutik/Models/AppPriceTierResponse.swift +++ b/Sources/Bagbutik/Models/AppPriceTierResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPriceTierResponse A response that contains a single App Price Tier resource. Full documentation: @@ -14,7 +15,10 @@ public struct AppPriceTierResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppPriceTier, included: [AppPricePoint]? = nil, links: DocumentLinks) { + public init(data: AppPriceTier, + included: [AppPricePoint]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPriceTiersResponse.swift b/Sources/Bagbutik/Models/AppPriceTiersResponse.swift index 6ff325916..d113d543a 100644 --- a/Sources/Bagbutik/Models/AppPriceTiersResponse.swift +++ b/Sources/Bagbutik/Models/AppPriceTiersResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPriceTiersResponse A response that contains a list of App Price Tier resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppPriceTiersResponse: Codable, PagedResponse { public typealias Data = AppPriceTier + /// The resource data. public let data: [AppPriceTier] /// The requested relationship data. Note: `AppPricePoint` is deprecated. @@ -17,7 +19,11 @@ public struct AppPriceTiersResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [AppPriceTier], included: [AppPricePoint]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPriceTier], + included: [AppPricePoint]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPricesResponse.swift b/Sources/Bagbutik/Models/AppPricesResponse.swift index dff8da0ef..5aa9e0843 100644 --- a/Sources/Bagbutik/Models/AppPricesResponse.swift +++ b/Sources/Bagbutik/Models/AppPricesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppPricesResponse A response that contains a list of App Prices resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppPricesResponse: Codable, PagedResponse { public typealias Data = AppPrice + /// The resource data. public let data: [AppPrice] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct AppPricesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [AppPrice], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppPrice], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppPromotedPurchasesLinkagesResponse.swift b/Sources/Bagbutik/Models/AppPromotedPurchasesLinkagesResponse.swift index eb774e1c4..754bb6f63 100644 --- a/Sources/Bagbutik/Models/AppPromotedPurchasesLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/AppPromotedPurchasesLinkagesResponse.swift @@ -5,7 +5,10 @@ public struct AppPromotedPurchasesLinkagesResponse: Codable, PagedResponse { public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/AppResponse.swift b/Sources/Bagbutik/Models/AppResponse.swift index de3fde009..a13ce6396 100644 --- a/Sources/Bagbutik/Models/AppResponse.swift +++ b/Sources/Bagbutik/Models/AppResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppResponse A response that contains a single Apps resource. Full documentation: @@ -13,7 +14,10 @@ public struct AppResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: App, included: [Included]? = nil, links: DocumentLinks) { + public init(data: App, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppScreenshot.swift b/Sources/Bagbutik/Models/AppScreenshot.swift index d30a07863..8f7100a73 100644 --- a/Sources/Bagbutik/Models/AppScreenshot.swift +++ b/Sources/Bagbutik/Models/AppScreenshot.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshot The data structure that represent an App Screenshots resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppScreenshot: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppScreenshot: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppScreenshot.Attributes Attributes that describe an App Screenshots resource. Full documentation: @@ -64,7 +70,15 @@ public struct AppScreenshot: Codable { public var sourceFileChecksum: String? public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, assetToken: String? = nil, assetType: String? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + assetToken: String? = nil, + assetType: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.assetToken = assetToken self.assetType = assetType @@ -77,6 +91,7 @@ public struct AppScreenshot: Codable { } /** + # AppScreenshot.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -90,6 +105,7 @@ public struct AppScreenshot: Codable { } /** + # AppScreenshot.Relationships.AppScreenshotSet The data and links that describe the relationship between the resources. Full documentation: @@ -99,12 +115,15 @@ public struct AppScreenshot: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppScreenshot.Relationships.AppScreenshotSet.Data The type and ID of a related resource. Full documentation: @@ -139,6 +158,7 @@ public struct AppScreenshot: Codable { } /** + # AppScreenshot.Relationships.AppScreenshotSet.Links The links to the related data and the relationship's self-link. Full documentation: @@ -148,7 +168,9 @@ public struct AppScreenshot: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -166,8 +188,8 @@ public struct AppScreenshot: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppScreenshotCreateRequest.swift b/Sources/Bagbutik/Models/AppScreenshotCreateRequest.swift index a75058c5c..660e137b7 100644 --- a/Sources/Bagbutik/Models/AppScreenshotCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppScreenshotCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotCreateRequest The request body you use to create an App Screenshot. Full documentation: @@ -14,6 +15,7 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { } /** + # AppScreenshotCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppScreenshotCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -61,13 +66,16 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } } /** + # AppScreenshotCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -81,6 +89,7 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { } /** + # AppScreenshotCreateRequest.Data.Relationships.AppScreenshotSet The relationships to other resources that you can set with this request. Full documentation: @@ -94,6 +103,7 @@ public struct AppScreenshotCreateRequest: Codable, RequestBody { } /** + # AppScreenshotCreateRequest.Data.Relationships.AppScreenshotSet.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppScreenshotResponse.swift b/Sources/Bagbutik/Models/AppScreenshotResponse.swift index 0ca8e846d..c487de932 100644 --- a/Sources/Bagbutik/Models/AppScreenshotResponse.swift +++ b/Sources/Bagbutik/Models/AppScreenshotResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotResponse A response that contains a single App Screenshots resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppScreenshotResponse: Codable { public var included: [AppScreenshotSet]? public let links: DocumentLinks - public init(data: AppScreenshot, included: [AppScreenshotSet]? = nil, links: DocumentLinks) { + public init(data: AppScreenshot, + included: [AppScreenshotSet]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppScreenshotSet.swift b/Sources/Bagbutik/Models/AppScreenshotSet.swift index 55bd87088..148fd3655 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSet.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSet.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSet The data structure that represent an App Screenshot Sets resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppScreenshotSet: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppScreenshotSet: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppScreenshotSet.Attributes Attributes that describe an App Screenshot Sets resource. Full documentation: @@ -63,6 +69,7 @@ public struct AppScreenshotSet: Codable { } /** + # AppScreenshotSet.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -74,7 +81,11 @@ public struct AppScreenshotSet: Codable { public var appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? public var appStoreVersionLocalization: AppStoreVersionLocalization? - public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, appScreenshots: AppScreenshots? = nil, appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, appStoreVersionLocalization: AppStoreVersionLocalization? = nil) { + public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, + appScreenshots: AppScreenshots? = nil, + appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, + appStoreVersionLocalization: AppStoreVersionLocalization? = nil) + { self.appCustomProductPageLocalization = appCustomProductPageLocalization self.appScreenshots = appScreenshots self.appStoreVersionExperimentTreatmentLocalization = appStoreVersionExperimentTreatmentLocalization @@ -85,7 +96,9 @@ public struct AppScreenshotSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -122,7 +135,9 @@ public struct AppScreenshotSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -140,13 +155,14 @@ public struct AppScreenshotSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppScreenshotSet.Relationships.AppScreenshots The data and links that describe the relationship between the resources. Full documentation: @@ -157,13 +173,17 @@ public struct AppScreenshotSet: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppScreenshotSet.Relationships.AppScreenshots.Data The type and ID of a related resource. Full documentation: @@ -198,6 +218,7 @@ public struct AppScreenshotSet: Codable { } /** + # AppScreenshotSet.Relationships.AppScreenshots.Links The links to the related data and the relationship's self-link. Full documentation: @@ -207,7 +228,9 @@ public struct AppScreenshotSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -225,8 +248,8 @@ public struct AppScreenshotSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -235,7 +258,9 @@ public struct AppScreenshotSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -272,7 +297,9 @@ public struct AppScreenshotSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -290,13 +317,14 @@ public struct AppScreenshotSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppScreenshotSet.Relationships.AppStoreVersionLocalization The data and links that describe the relationship between the resources. Full documentation: @@ -306,12 +334,15 @@ public struct AppScreenshotSet: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppScreenshotSet.Relationships.AppStoreVersionLocalization.Data The type and ID of a related resource. Full documentation: @@ -346,6 +377,7 @@ public struct AppScreenshotSet: Codable { } /** + # AppScreenshotSet.Relationships.AppStoreVersionLocalization.Links The links to the related data and the relationship's self-link. Full documentation: @@ -355,7 +387,9 @@ public struct AppScreenshotSet: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -373,8 +407,8 @@ public struct AppScreenshotSet: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesRequest.swift b/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesRequest.swift index 776b150c3..1d529e387 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSetAppScreenshotsLinkagesRequest A request body you use to reorder the screenshots in a screenshot set. Full documentation: @@ -14,6 +15,7 @@ public struct AppScreenshotSetAppScreenshotsLinkagesRequest: Codable, RequestBod } /** + # AppScreenshotSetAppScreenshotsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesResponse.swift b/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesResponse.swift index c3bf71abc..1c66677bf 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSetAppScreenshotsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSetAppScreenshotsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -11,13 +12,17 @@ public struct AppScreenshotSetAppScreenshotsLinkagesResponse: Codable, PagedResp public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppScreenshotSetAppScreenshotsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppScreenshotSetCreateRequest.swift b/Sources/Bagbutik/Models/AppScreenshotSetCreateRequest.swift index 913e28389..33653dd00 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSetCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSetCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSetCreateRequest The request body you use to create an App Screenshot Set. Full documentation: @@ -14,6 +15,7 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { } /** + # AppScreenshotSetCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { public let attributes: Attributes public var relationships: Relationships? - public init(attributes: Attributes, relationships: Relationships? = nil) { + public init(attributes: Attributes, + relationships: Relationships? = nil) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppScreenshotSetCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,6 +71,7 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { } /** + # AppScreenshotSetCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -76,7 +82,10 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { public var appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? public var appStoreVersionLocalization: AppStoreVersionLocalization? - public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, appStoreVersionLocalization: AppStoreVersionLocalization? = nil) { + public init(appCustomProductPageLocalization: AppCustomProductPageLocalization? = nil, + appStoreVersionExperimentTreatmentLocalization: AppStoreVersionExperimentTreatmentLocalization? = nil, + appStoreVersionLocalization: AppStoreVersionLocalization? = nil) + { self.appCustomProductPageLocalization = appCustomProductPageLocalization self.appStoreVersionExperimentTreatmentLocalization = appStoreVersionExperimentTreatmentLocalization self.appStoreVersionLocalization = appStoreVersionLocalization @@ -155,6 +164,7 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { } /** + # AppScreenshotSetCreateRequest.Data.Relationships.AppStoreVersionLocalization The relationships to other resources that you can set with this request. Full documentation: @@ -168,6 +178,7 @@ public struct AppScreenshotSetCreateRequest: Codable, RequestBody { } /** + # AppScreenshotSetCreateRequest.Data.Relationships.AppStoreVersionLocalization.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppScreenshotSetResponse.swift b/Sources/Bagbutik/Models/AppScreenshotSetResponse.swift index d733b9eab..24f346824 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSetResponse.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSetResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSetResponse A response that contains a single App Screenshot Sets resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppScreenshotSetResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppScreenshotSet, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppScreenshotSet, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppScreenshotSetsResponse.swift b/Sources/Bagbutik/Models/AppScreenshotSetsResponse.swift index ada6821fe..683a3c652 100644 --- a/Sources/Bagbutik/Models/AppScreenshotSetsResponse.swift +++ b/Sources/Bagbutik/Models/AppScreenshotSetsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotSetsResponse A response that contains a list of App Screenshot Set resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppScreenshotSetsResponse: Codable, PagedResponse { public typealias Data = AppScreenshotSet + public let data: [AppScreenshotSet] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppScreenshotSet], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppScreenshotSet], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppScreenshotUpdateRequest.swift b/Sources/Bagbutik/Models/AppScreenshotUpdateRequest.swift index cacb87ff6..615bbde00 100644 --- a/Sources/Bagbutik/Models/AppScreenshotUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppScreenshotUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotUpdateRequest The request body you use to update an App Screenshot. Full documentation: @@ -14,6 +15,7 @@ public struct AppScreenshotUpdateRequest: Codable, RequestBody { } /** + # AppScreenshotUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppScreenshotUpdateRequest: Codable, RequestBody { public var type: String { "appScreenshots" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppScreenshotUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppScreenshotUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -61,7 +66,9 @@ public struct AppScreenshotUpdateRequest: Codable, RequestBody { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/AppScreenshotsResponse.swift b/Sources/Bagbutik/Models/AppScreenshotsResponse.swift index 2fb318336..c610869e5 100644 --- a/Sources/Bagbutik/Models/AppScreenshotsResponse.swift +++ b/Sources/Bagbutik/Models/AppScreenshotsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppScreenshotsResponse A response that contains a list of App Screenshots resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppScreenshotsResponse: Codable, PagedResponse { public typealias Data = AppScreenshot + public let data: [AppScreenshot] public var included: [AppScreenshotSet]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppScreenshot], included: [AppScreenshotSet]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppScreenshot], + included: [AppScreenshotSet]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreAgeRating.swift b/Sources/Bagbutik/Models/AppStoreAgeRating.swift index 02490ffaf..2cb9bd3aa 100644 --- a/Sources/Bagbutik/Models/AppStoreAgeRating.swift +++ b/Sources/Bagbutik/Models/AppStoreAgeRating.swift @@ -1,12 +1,13 @@ import Foundation /** - String that represents the app’s age rating as it appears on the App Store for all platforms. + # AppStoreAgeRating + String that represents the app’s age rating as it appears on the App Store for all platforms. - Full documentation: - + For more information about app ratings, see [App ratings](https://help.apple.com/app-store-connect/#/dev269f11291). - For more information about app ratings, see [App ratings](https://help.apple.com/app-store-connect/#/dev269f11291). + Full documentation: + */ public enum AppStoreAgeRating: String, Codable, CaseIterable { /// A literal that represents the app rating 4+. diff --git a/Sources/Bagbutik/Models/AppStoreReviewAttachment.swift b/Sources/Bagbutik/Models/AppStoreReviewAttachment.swift index e2e14d9fe..5b8c8f42e 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewAttachment.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewAttachment.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewAttachment The data structure that represent an App Store Review Attachments resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppStoreReviewAttachment: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppStoreReviewAttachment: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppStoreReviewAttachment.Attributes Attributes that describe an App Store Review Attachments resource. Full documentation: @@ -61,7 +67,12 @@ public struct AppStoreReviewAttachment: Codable { public var sourceFileChecksum: String? public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.fileName = fileName self.fileSize = fileSize @@ -71,6 +82,7 @@ public struct AppStoreReviewAttachment: Codable { } /** + # AppStoreReviewAttachment.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -84,6 +96,7 @@ public struct AppStoreReviewAttachment: Codable { } /** + # AppStoreReviewAttachment.Relationships.AppStoreReviewDetail The data and links that describe the relationship between the resources. Full documentation: @@ -93,12 +106,15 @@ public struct AppStoreReviewAttachment: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreReviewAttachment.Relationships.AppStoreReviewDetail.Data The type and ID of a related resource. Full documentation: @@ -133,6 +149,7 @@ public struct AppStoreReviewAttachment: Codable { } /** + # AppStoreReviewAttachment.Relationships.AppStoreReviewDetail.Links The links to the related data and the relationship's self-link. Full documentation: @@ -142,7 +159,9 @@ public struct AppStoreReviewAttachment: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -160,8 +179,8 @@ public struct AppStoreReviewAttachment: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreReviewAttachmentCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreReviewAttachmentCreateRequest.swift index 72dcafaeb..72526c9db 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewAttachmentCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewAttachmentCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewAttachmentCreateRequest The request body you use to create an App Store Review Attachment. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewAttachmentCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppStoreReviewAttachmentCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -61,13 +66,16 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } } /** + # AppStoreReviewAttachmentCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -81,6 +89,7 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewAttachmentCreateRequest.Data.Relationships.AppStoreReviewDetail The relationships to other resources that you can set with this request. Full documentation: @@ -94,6 +103,7 @@ public struct AppStoreReviewAttachmentCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewAttachmentCreateRequest.Data.Relationships.AppStoreReviewDetail.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreReviewAttachmentResponse.swift b/Sources/Bagbutik/Models/AppStoreReviewAttachmentResponse.swift index 33c7e7b73..53e432031 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewAttachmentResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewAttachmentResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewAttachmentResponse A response that contains a single App Store Review Attachments resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppStoreReviewAttachmentResponse: Codable { public var included: [AppStoreReviewDetail]? public let links: DocumentLinks - public init(data: AppStoreReviewAttachment, included: [AppStoreReviewDetail]? = nil, links: DocumentLinks) { + public init(data: AppStoreReviewAttachment, + included: [AppStoreReviewDetail]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreReviewAttachmentUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreReviewAttachmentUpdateRequest.swift index b670dc0c3..774566e72 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewAttachmentUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewAttachmentUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewAttachmentUpdateRequest The request body you use to update an App Store Review Attachment. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreReviewAttachmentUpdateRequest: Codable, RequestBody { } /** + # AppStoreReviewAttachmentUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreReviewAttachmentUpdateRequest: Codable, RequestBody { public var type: String { "appStoreReviewAttachments" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppStoreReviewAttachmentUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppStoreReviewAttachmentUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -61,7 +66,9 @@ public struct AppStoreReviewAttachmentUpdateRequest: Codable, RequestBody { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/AppStoreReviewAttachmentsResponse.swift b/Sources/Bagbutik/Models/AppStoreReviewAttachmentsResponse.swift index 17e3bf49f..f10859987 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewAttachmentsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewAttachmentsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewAttachmentsResponse A response that contains a list of App Store Review Attachment resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppStoreReviewAttachmentsResponse: Codable, PagedResponse { public typealias Data = AppStoreReviewAttachment + public let data: [AppStoreReviewAttachment] public var included: [AppStoreReviewDetail]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreReviewAttachment], included: [AppStoreReviewDetail]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreReviewAttachment], + included: [AppStoreReviewDetail]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreReviewDetail.swift b/Sources/Bagbutik/Models/AppStoreReviewDetail.swift index 0c048db91..fdffb1e22 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewDetail.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewDetail.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewDetail The data structure that represent an App Store Review Details resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppStoreReviewDetail: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppStoreReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppStoreReviewDetail.Attributes Attributes that describe an App Store Review Details resource. Full documentation: @@ -64,7 +70,15 @@ public struct AppStoreReviewDetail: Codable { public var demoAccountRequired: Bool? public var notes: String? - public init(contactEmail: String? = nil, contactFirstName: String? = nil, contactLastName: String? = nil, contactPhone: String? = nil, demoAccountName: String? = nil, demoAccountPassword: String? = nil, demoAccountRequired: Bool? = nil, notes: String? = nil) { + public init(contactEmail: String? = nil, + contactFirstName: String? = nil, + contactLastName: String? = nil, + contactPhone: String? = nil, + demoAccountName: String? = nil, + demoAccountPassword: String? = nil, + demoAccountRequired: Bool? = nil, + notes: String? = nil) + { self.contactEmail = contactEmail self.contactFirstName = contactFirstName self.contactLastName = contactLastName @@ -77,6 +91,7 @@ public struct AppStoreReviewDetail: Codable { } /** + # AppStoreReviewDetail.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -86,12 +101,15 @@ public struct AppStoreReviewDetail: Codable { public var appStoreReviewAttachments: AppStoreReviewAttachments? public var appStoreVersion: AppStoreVersion? - public init(appStoreReviewAttachments: AppStoreReviewAttachments? = nil, appStoreVersion: AppStoreVersion? = nil) { + public init(appStoreReviewAttachments: AppStoreReviewAttachments? = nil, + appStoreVersion: AppStoreVersion? = nil) + { self.appStoreReviewAttachments = appStoreReviewAttachments self.appStoreVersion = appStoreVersion } /** + # AppStoreReviewDetail.Relationships.AppStoreReviewAttachments The data and links that describe the relationship between the resources. Full documentation: @@ -102,13 +120,17 @@ public struct AppStoreReviewDetail: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppStoreReviewDetail.Relationships.AppStoreReviewAttachments.Data The type and ID of a related resource. Full documentation: @@ -143,6 +165,7 @@ public struct AppStoreReviewDetail: Codable { } /** + # AppStoreReviewDetail.Relationships.AppStoreReviewAttachments.Links The links to the related data and the relationship's self-link. Full documentation: @@ -152,7 +175,9 @@ public struct AppStoreReviewDetail: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -170,13 +195,14 @@ public struct AppStoreReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreReviewDetail.Relationships.AppStoreVersion The data and links that describe the relationship between the resources. Full documentation: @@ -186,12 +212,15 @@ public struct AppStoreReviewDetail: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreReviewDetail.Relationships.AppStoreVersion.Data The type and ID of a related resource. Full documentation: @@ -226,6 +255,7 @@ public struct AppStoreReviewDetail: Codable { } /** + # AppStoreReviewDetail.Relationships.AppStoreVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -235,7 +265,9 @@ public struct AppStoreReviewDetail: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -253,8 +285,8 @@ public struct AppStoreReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreReviewDetailCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreReviewDetailCreateRequest.swift index 4505072fd..9fcb9dc1a 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewDetailCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewDetailCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewDetailCreateRequest The request body you use to create an App Store Review Detail. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewDetailCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { public var attributes: Attributes? public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppStoreReviewDetailCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -67,7 +72,15 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { public var demoAccountRequired: Bool? public var notes: String? - public init(contactEmail: String? = nil, contactFirstName: String? = nil, contactLastName: String? = nil, contactPhone: String? = nil, demoAccountName: String? = nil, demoAccountPassword: String? = nil, demoAccountRequired: Bool? = nil, notes: String? = nil) { + public init(contactEmail: String? = nil, + contactFirstName: String? = nil, + contactLastName: String? = nil, + contactPhone: String? = nil, + demoAccountName: String? = nil, + demoAccountPassword: String? = nil, + demoAccountRequired: Bool? = nil, + notes: String? = nil) + { self.contactEmail = contactEmail self.contactFirstName = contactFirstName self.contactLastName = contactLastName @@ -80,6 +93,7 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewDetailCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -93,6 +107,7 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewDetailCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -106,6 +121,7 @@ public struct AppStoreReviewDetailCreateRequest: Codable, RequestBody { } /** + # AppStoreReviewDetailCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreReviewDetailResponse.swift b/Sources/Bagbutik/Models/AppStoreReviewDetailResponse.swift index b09695c57..54ef697bd 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewDetailResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewDetailResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewDetailResponse A response that contains a single App Store Review Details resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppStoreReviewDetailResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreReviewDetail, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreReviewDetail, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreReviewDetailUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreReviewDetailUpdateRequest.swift index 41e8ff089..487d22661 100644 --- a/Sources/Bagbutik/Models/AppStoreReviewDetailUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreReviewDetailUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreReviewDetailUpdateRequest The request body you use to update an App Store Review Detail. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreReviewDetailUpdateRequest: Codable, RequestBody { } /** + # AppStoreReviewDetailUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreReviewDetailUpdateRequest: Codable, RequestBody { public var type: String { "appStoreReviewDetails" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppStoreReviewDetailUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppStoreReviewDetailUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -67,7 +72,15 @@ public struct AppStoreReviewDetailUpdateRequest: Codable, RequestBody { public var demoAccountRequired: Bool? public var notes: String? - public init(contactEmail: String? = nil, contactFirstName: String? = nil, contactLastName: String? = nil, contactPhone: String? = nil, demoAccountName: String? = nil, demoAccountPassword: String? = nil, demoAccountRequired: Bool? = nil, notes: String? = nil) { + public init(contactEmail: String? = nil, + contactFirstName: String? = nil, + contactLastName: String? = nil, + contactPhone: String? = nil, + demoAccountName: String? = nil, + demoAccountPassword: String? = nil, + demoAccountRequired: Bool? = nil, + notes: String? = nil) + { self.contactEmail = contactEmail self.contactFirstName = contactFirstName self.contactLastName = contactLastName diff --git a/Sources/Bagbutik/Models/AppStoreVersion.swift b/Sources/Bagbutik/Models/AppStoreVersion.swift index a18b2a0a1..91a15f156 100644 --- a/Sources/Bagbutik/Models/AppStoreVersion.swift +++ b/Sources/Bagbutik/Models/AppStoreVersion.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersion The data structure that represent an App Store Versions resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppStoreVersion: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppStoreVersion.Attributes Attributes that describe an App Store Versions resource. Full documentation: @@ -64,7 +70,15 @@ public struct AppStoreVersion: Codable { public var releaseType: ReleaseType? public var versionString: String? - public init(appStoreState: AppStoreVersionState? = nil, copyright: String? = nil, createdDate: Date? = nil, downloadable: Bool? = nil, earliestReleaseDate: Date? = nil, platform: Platform? = nil, releaseType: ReleaseType? = nil, versionString: String? = nil) { + public init(appStoreState: AppStoreVersionState? = nil, + copyright: String? = nil, + createdDate: Date? = nil, + downloadable: Bool? = nil, + earliestReleaseDate: Date? = nil, + platform: Platform? = nil, + releaseType: ReleaseType? = nil, + versionString: String? = nil) + { self.appStoreState = appStoreState self.copyright = copyright self.createdDate = createdDate @@ -83,6 +97,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -103,7 +118,17 @@ public struct AppStoreVersion: Codable { public var routingAppCoverage: RoutingAppCoverage? @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init(ageRatingDeclaration: AgeRatingDeclaration? = nil, app: App? = nil, appClipDefaultExperience: AppClipDefaultExperience? = nil, appStoreReviewDetail: AppStoreReviewDetail? = nil, appStoreVersionExperiments: AppStoreVersionExperiments? = nil, appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, appStoreVersionSubmission: AppStoreVersionSubmission? = nil, build: Build? = nil, routingAppCoverage: RoutingAppCoverage? = nil) { + public init(ageRatingDeclaration: AgeRatingDeclaration? = nil, + app: App? = nil, + appClipDefaultExperience: AppClipDefaultExperience? = nil, + appStoreReviewDetail: AppStoreReviewDetail? = nil, + appStoreVersionExperiments: AppStoreVersionExperiments? = nil, + appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, + appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, + appStoreVersionSubmission: AppStoreVersionSubmission? = nil, + build: Build? = nil, + routingAppCoverage: RoutingAppCoverage? = nil) + { self.ageRatingDeclaration = ageRatingDeclaration self.app = app self.appClipDefaultExperience = appClipDefaultExperience @@ -116,7 +141,16 @@ public struct AppStoreVersion: Codable { self.routingAppCoverage = routingAppCoverage } - public init(app: App? = nil, appClipDefaultExperience: AppClipDefaultExperience? = nil, appStoreReviewDetail: AppStoreReviewDetail? = nil, appStoreVersionExperiments: AppStoreVersionExperiments? = nil, appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, appStoreVersionSubmission: AppStoreVersionSubmission? = nil, build: Build? = nil, routingAppCoverage: RoutingAppCoverage? = nil) { + public init(app: App? = nil, + appClipDefaultExperience: AppClipDefaultExperience? = nil, + appStoreReviewDetail: AppStoreReviewDetail? = nil, + appStoreVersionExperiments: AppStoreVersionExperiments? = nil, + appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, + appStoreVersionPhasedRelease: AppStoreVersionPhasedRelease? = nil, + appStoreVersionSubmission: AppStoreVersionSubmission? = nil, + build: Build? = nil, + routingAppCoverage: RoutingAppCoverage? = nil) + { self.app = app self.appClipDefaultExperience = appClipDefaultExperience self.appStoreReviewDetail = appStoreReviewDetail @@ -129,6 +163,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AgeRatingDeclaration The data and links that describe the relationship between the resources. Full documentation: @@ -138,12 +173,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.AgeRatingDeclaration.Data The type and ID of a related resource. Full documentation: @@ -178,6 +216,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AgeRatingDeclaration.Links The links to the related data and the relationship's self-link. Full documentation: @@ -187,7 +226,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -205,13 +246,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -221,12 +263,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -261,6 +306,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -270,7 +316,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -288,13 +336,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.AppClipDefaultExperience The data and links that describe the relationship between the App Store Versions and the Default App Clip Experiences resources. Full documentation: @@ -306,12 +355,15 @@ public struct AppStoreVersion: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.AppClipDefaultExperience.Data The type and ID of a related Default App Clip Experiences resource. Full documentation: @@ -348,6 +400,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AppClipDefaultExperience.Links The links to the related Default App Clip Experiences resource and the relationship’s self-link. Full documentation: @@ -359,7 +412,9 @@ public struct AppStoreVersion: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -377,13 +432,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.AppStoreReviewDetail The data and links that describe the relationship between the resources. Full documentation: @@ -393,12 +449,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.AppStoreReviewDetail.Data The type and ID of a related resource. Full documentation: @@ -433,6 +492,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AppStoreReviewDetail.Links The links to the related data and the relationship's self-link. Full documentation: @@ -442,7 +502,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -460,8 +522,8 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -471,7 +533,10 @@ public struct AppStoreVersion: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -509,7 +574,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -527,13 +594,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.AppStoreVersionLocalizations The data and links that describe the relationship between the resources. Full documentation: @@ -544,13 +612,17 @@ public struct AppStoreVersion: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppStoreVersion.Relationships.AppStoreVersionLocalizations.Data The type and ID of a related resource. Full documentation: @@ -585,6 +657,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AppStoreVersionLocalizations.Links The links to the related data and the relationship's self-link. Full documentation: @@ -594,7 +667,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -612,13 +687,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.AppStoreVersionPhasedRelease The data and links that describe the relationship between the resources. Full documentation: @@ -628,12 +704,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.AppStoreVersionPhasedRelease.Data The type and ID of a related resource. Full documentation: @@ -668,6 +747,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AppStoreVersionPhasedRelease.Links The links to the related data and the relationship's self-link. Full documentation: @@ -677,7 +757,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -695,13 +777,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.AppStoreVersionSubmission The data and links that describe the relationship between the resources. Full documentation: @@ -711,12 +794,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.AppStoreVersionSubmission.Data The type and ID of a related resource. Full documentation: @@ -751,6 +837,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.AppStoreVersionSubmission.Links The links to the related data and the relationship's self-link. Full documentation: @@ -760,7 +847,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -778,13 +867,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.Build The data and links that describe the relationship between the resources. Full documentation: @@ -794,12 +884,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.Build.Data The type and ID of a related resource. Full documentation: @@ -834,6 +927,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.Build.Links The links to the related data and the relationship's self-link. Full documentation: @@ -843,7 +937,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -861,13 +957,14 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersion.Relationships.RoutingAppCoverage The data and links that describe the relationship between the resources. Full documentation: @@ -877,12 +974,15 @@ public struct AppStoreVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersion.Relationships.RoutingAppCoverage.Data The type and ID of a related resource. Full documentation: @@ -917,6 +1017,7 @@ public struct AppStoreVersion: Codable { } /** + # AppStoreVersion.Relationships.RoutingAppCoverage.Links The links to the related data and the relationship's self-link. Full documentation: @@ -926,7 +1027,9 @@ public struct AppStoreVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -944,8 +1047,8 @@ public struct AppStoreVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift index 824722e48..b70d12fee 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionAppClipDefaultExperienceLinkageRequest The request body you use to attach a default App Clip experience to an App Store version. Full documentation: @@ -15,6 +16,7 @@ public struct AppStoreVersionAppClipDefaultExperienceLinkageRequest: Codable, Re } /** + # AppStoreVersionAppClipDefaultExperienceLinkageRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift index 0daae5a61..3f02e0f61 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionAppClipDefaultExperienceLinkageResponse A response that contains the ID of a single related Default App Clip Experiences resource. Full documentation: @@ -12,12 +13,15 @@ public struct AppStoreVersionAppClipDefaultExperienceLinkageResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Data, links: DocumentLinks) { + public init(data: Data, + links: DocumentLinks) + { self.data = data self.links = links } /** + # AppStoreVersionAppClipDefaultExperienceLinkageResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageRequest.swift index 16e93349b..a29fd29f4 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionBuildLinkageRequest The request body you use to attach a build to an App Store version. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionBuildLinkageRequest: Codable, RequestBody { } /** + # AppStoreVersionBuildLinkageRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageResponse.swift index 0b6f51d4c..79b2f6706 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionBuildLinkageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionBuildLinkageResponse A response body that contains the ID of a single related resource. Full documentation: @@ -10,12 +11,15 @@ public struct AppStoreVersionBuildLinkageResponse: Codable { public let data: Data public let links: DocumentLinks - public init(data: Data, links: DocumentLinks) { + public init(data: Data, + links: DocumentLinks) + { self.data = data self.links = links } /** + # AppStoreVersionBuildLinkageResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionCreateRequest.swift index d50a58ed1..f8c1bc345 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionCreateRequest The request body you use to create an App Store Version. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppStoreVersionCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -64,7 +69,12 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { public var releaseType: AppStoreVersion.Attributes.ReleaseType? public let versionString: String - public init(copyright: String? = nil, earliestReleaseDate: Date? = nil, platform: Platform, releaseType: AppStoreVersion.Attributes.ReleaseType? = nil, versionString: String) { + public init(copyright: String? = nil, + earliestReleaseDate: Date? = nil, + platform: Platform, + releaseType: AppStoreVersion.Attributes.ReleaseType? = nil, + versionString: String) + { self.copyright = copyright self.earliestReleaseDate = earliestReleaseDate self.platform = platform @@ -74,6 +84,7 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -84,13 +95,17 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { public var appStoreVersionLocalizations: AppStoreVersionLocalizations? public var build: Build? - public init(app: App, appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, build: Build? = nil) { + public init(app: App, + appStoreVersionLocalizations: AppStoreVersionLocalizations? = nil, + build: Build? = nil) + { self.app = app self.appStoreVersionLocalizations = appStoreVersionLocalizations self.build = build } /** + # AppStoreVersionCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -104,6 +119,7 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -175,6 +191,7 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionCreateRequest.Data.Relationships.Build The relationships to other resources that you can set with this request. Full documentation: @@ -188,6 +205,7 @@ public struct AppStoreVersionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionCreateRequest.Data.Relationships.Build.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperiment.swift b/Sources/Bagbutik/Models/AppStoreVersionExperiment.swift index c45efc92b..2b93b3a6c 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperiment.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperiment.swift @@ -7,7 +7,11 @@ public struct AppStoreVersionExperiment: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppStoreVersionExperiment: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -50,7 +54,13 @@ public struct AppStoreVersionExperiment: Codable { public var state: State? public var trafficProportion: Int? - public init(endDate: Date? = nil, name: String? = nil, reviewRequired: Bool? = nil, startDate: Date? = nil, state: State? = nil, trafficProportion: Int? = nil) { + public init(endDate: Date? = nil, + name: String? = nil, + reviewRequired: Bool? = nil, + startDate: Date? = nil, + state: State? = nil, + trafficProportion: Int? = nil) + { self.endDate = endDate self.name = name self.reviewRequired = reviewRequired @@ -76,7 +86,9 @@ public struct AppStoreVersionExperiment: Codable { public var appStoreVersion: AppStoreVersion? public var appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments? - public init(appStoreVersion: AppStoreVersion? = nil, appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments? = nil) { + public init(appStoreVersion: AppStoreVersion? = nil, + appStoreVersionExperimentTreatments: AppStoreVersionExperimentTreatments? = nil) + { self.appStoreVersion = appStoreVersion self.appStoreVersionExperimentTreatments = appStoreVersionExperimentTreatments } @@ -85,7 +97,9 @@ public struct AppStoreVersionExperiment: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -122,7 +136,9 @@ public struct AppStoreVersionExperiment: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -140,8 +156,8 @@ public struct AppStoreVersionExperiment: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -151,7 +167,10 @@ public struct AppStoreVersionExperiment: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -189,7 +208,9 @@ public struct AppStoreVersionExperiment: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -207,8 +228,8 @@ public struct AppStoreVersionExperiment: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentCreateRequest.swift index 42396dd6c..4a04d00a1 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppStoreVersionExperimentCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct AppStoreVersionExperimentCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let name: String public let trafficProportion: Int - public init(name: String, trafficProportion: Int) { + public init(name: String, + trafficProportion: Int) + { self.name = name self.trafficProportion = trafficProportion } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentResponse.swift index 6d96e6056..ebded8149 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentResponse.swift @@ -5,7 +5,10 @@ public struct AppStoreVersionExperimentResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreVersionExperiment, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersionExperiment, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatment.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatment.swift index 8d057f3ab..dc8a504a9 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatment.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatment.swift @@ -7,7 +7,11 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppStoreVersionExperimentTreatment: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var name: String? public var promotedDate: Date? - public init(appIcon: ImageAsset? = nil, appIconName: String? = nil, name: String? = nil, promotedDate: Date? = nil) { + public init(appIcon: ImageAsset? = nil, + appIconName: String? = nil, + name: String? = nil, + promotedDate: Date? = nil) + { self.appIcon = appIcon self.appIconName = appIconName self.name = name @@ -60,7 +68,9 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var appStoreVersionExperiment: AppStoreVersionExperiment? public var appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? - public init(appStoreVersionExperiment: AppStoreVersionExperiment? = nil, appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? = nil) { + public init(appStoreVersionExperiment: AppStoreVersionExperiment? = nil, + appStoreVersionExperimentTreatmentLocalizations: AppStoreVersionExperimentTreatmentLocalizations? = nil) + { self.appStoreVersionExperiment = appStoreVersionExperiment self.appStoreVersionExperimentTreatmentLocalizations = appStoreVersionExperimentTreatmentLocalizations } @@ -69,7 +79,9 @@ public struct AppStoreVersionExperimentTreatment: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -106,7 +118,9 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -124,8 +138,8 @@ public struct AppStoreVersionExperimentTreatment: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -135,7 +149,10 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -173,7 +190,9 @@ public struct AppStoreVersionExperimentTreatment: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -191,8 +210,8 @@ public struct AppStoreVersionExperimentTreatment: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentCreateRequest.swift index 9e6b18cb6..58e411fc8 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppStoreVersionExperimentTreatmentCreateRequest: Codable, RequestB public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct AppStoreVersionExperimentTreatmentCreateRequest: Codable, RequestB } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public var appIconName: String? public let name: String - public init(appIconName: String? = nil, name: String) { + public init(appIconName: String? = nil, + name: String) + { self.appIconName = appIconName self.name = name } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalization.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalization.swift index 64e055e2c..315eb4205 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalization.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalization.swift @@ -7,7 +7,11 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -55,7 +59,10 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var appScreenshotSets: AppScreenshotSets? public var appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment? - public init(appPreviewSets: AppPreviewSets? = nil, appScreenshotSets: AppScreenshotSets? = nil, appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment? = nil) { + public init(appPreviewSets: AppPreviewSets? = nil, + appScreenshotSets: AppScreenshotSets? = nil, + appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment? = nil) + { self.appPreviewSets = appPreviewSets self.appScreenshotSets = appScreenshotSets self.appStoreVersionExperimentTreatment = appStoreVersionExperimentTreatment @@ -66,7 +73,10 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -104,7 +114,9 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -122,8 +134,8 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -133,7 +145,10 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -171,7 +186,9 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -189,8 +206,8 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -199,7 +216,9 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -236,7 +255,9 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -254,8 +275,8 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift index 241a141af..1c8236758 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct AppStoreVersionExperimentTreatmentLocalizationCreateRequest: Codab public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct AppStoreVersionExperimentTreatmentLocalizationCreateRequest: Codab } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationResponse.swift index 66e1c2b42..79c87cab8 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct AppStoreVersionExperimentTreatmentLocalizationResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreVersionExperimentTreatmentLocalization, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersionExperimentTreatmentLocalization, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift index db181bd8e..1bbe40a2c 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppStoreVersionExperimentTreatmentLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppStoreVersionExperimentTreatmentLocalization + public let data: [AppStoreVersionExperimentTreatmentLocalization] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersionExperimentTreatmentLocalization], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreVersionExperimentTreatmentLocalization], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentResponse.swift index 2126f9157..32d3b1cd0 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentResponse.swift @@ -5,7 +5,10 @@ public struct AppStoreVersionExperimentTreatmentResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreVersionExperimentTreatment, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersionExperimentTreatment, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentUpdateRequest.swift index c7fe21fa9..54e53a077 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppStoreVersionExperimentTreatmentUpdateRequest: Codable, RequestB public var type: String { "appStoreVersionExperimentTreatments" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct AppStoreVersionExperimentTreatmentUpdateRequest: Codable, RequestB } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var appIconName: String? public var name: String? - public init(appIconName: String? = nil, name: String? = nil) { + public init(appIconName: String? = nil, + name: String? = nil) + { self.appIconName = appIconName self.name = name } diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentsResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentsResponse.swift index 07d78c3c6..d661b729b 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentTreatmentsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppStoreVersionExperimentTreatmentsResponse: Codable, PagedResponse { public typealias Data = AppStoreVersionExperimentTreatment + public let data: [AppStoreVersionExperimentTreatment] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersionExperimentTreatment], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreVersionExperimentTreatment], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentUpdateRequest.swift index 2054202cb..142a532ca 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentUpdateRequest.swift @@ -12,7 +12,9 @@ public struct AppStoreVersionExperimentUpdateRequest: Codable, RequestBody { public var type: String { "appStoreVersionExperiments" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct AppStoreVersionExperimentUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct AppStoreVersionExperimentUpdateRequest: Codable, RequestBody { public var started: Bool? public var trafficProportion: Int? - public init(name: String? = nil, started: Bool? = nil, trafficProportion: Int? = nil) { + public init(name: String? = nil, + started: Bool? = nil, + trafficProportion: Int? = nil) + { self.name = name self.started = started self.trafficProportion = trafficProportion diff --git a/Sources/Bagbutik/Models/AppStoreVersionExperimentsResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionExperimentsResponse.swift index eb6d2930e..1ca0acd32 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionExperimentsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionExperimentsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct AppStoreVersionExperimentsResponse: Codable, PagedResponse { public typealias Data = AppStoreVersionExperiment + public let data: [AppStoreVersionExperiment] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersionExperiment], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreVersionExperiment], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionLocalization.swift b/Sources/Bagbutik/Models/AppStoreVersionLocalization.swift index d70858567..2920421c7 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionLocalization.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionLocalization The data structure that represent an App Store Version Localizations resource. Full documentation: @@ -13,7 +14,11 @@ public struct AppStoreVersionLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct AppStoreVersionLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # AppStoreVersionLocalization.Attributes Attributes that describe an App Store Version Localizations resource. Full documentation: @@ -63,7 +69,14 @@ public struct AppStoreVersionLocalization: Codable { public var supportUrl: String? public var whatsNew: String? - public init(description: String? = nil, keywords: String? = nil, locale: String? = nil, marketingUrl: String? = nil, promotionalText: String? = nil, supportUrl: String? = nil, whatsNew: String? = nil) { + public init(description: String? = nil, + keywords: String? = nil, + locale: String? = nil, + marketingUrl: String? = nil, + promotionalText: String? = nil, + supportUrl: String? = nil, + whatsNew: String? = nil) + { self.description = description self.keywords = keywords self.locale = locale @@ -75,6 +88,7 @@ public struct AppStoreVersionLocalization: Codable { } /** + # AppStoreVersionLocalization.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -85,13 +99,17 @@ public struct AppStoreVersionLocalization: Codable { public var appScreenshotSets: AppScreenshotSets? public var appStoreVersion: AppStoreVersion? - public init(appPreviewSets: AppPreviewSets? = nil, appScreenshotSets: AppScreenshotSets? = nil, appStoreVersion: AppStoreVersion? = nil) { + public init(appPreviewSets: AppPreviewSets? = nil, + appScreenshotSets: AppScreenshotSets? = nil, + appStoreVersion: AppStoreVersion? = nil) + { self.appPreviewSets = appPreviewSets self.appScreenshotSets = appScreenshotSets self.appStoreVersion = appStoreVersion } /** + # AppStoreVersionLocalization.Relationships.AppPreviewSets The data and links that describe the relationship between the resources. Full documentation: @@ -102,13 +120,17 @@ public struct AppStoreVersionLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppStoreVersionLocalization.Relationships.AppPreviewSets.Data The type and ID of a related resource. Full documentation: @@ -143,6 +165,7 @@ public struct AppStoreVersionLocalization: Codable { } /** + # AppStoreVersionLocalization.Relationships.AppPreviewSets.Links The links to the related data and the relationship's self-link. Full documentation: @@ -152,7 +175,9 @@ public struct AppStoreVersionLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -170,13 +195,14 @@ public struct AppStoreVersionLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersionLocalization.Relationships.AppScreenshotSets The data and links that describe the relationship between the resources. Full documentation: @@ -187,13 +213,17 @@ public struct AppStoreVersionLocalization: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # AppStoreVersionLocalization.Relationships.AppScreenshotSets.Data The type and ID of a related resource. Full documentation: @@ -228,6 +258,7 @@ public struct AppStoreVersionLocalization: Codable { } /** + # AppStoreVersionLocalization.Relationships.AppScreenshotSets.Links The links to the related data and the relationship's self-link. Full documentation: @@ -237,7 +268,9 @@ public struct AppStoreVersionLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -255,13 +288,14 @@ public struct AppStoreVersionLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # AppStoreVersionLocalization.Relationships.AppStoreVersion The data and links that describe the relationship between the resources. Full documentation: @@ -271,12 +305,15 @@ public struct AppStoreVersionLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersionLocalization.Relationships.AppStoreVersion.Data The type and ID of a related resource. Full documentation: @@ -311,6 +348,7 @@ public struct AppStoreVersionLocalization: Codable { } /** + # AppStoreVersionLocalization.Relationships.AppStoreVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -320,7 +358,9 @@ public struct AppStoreVersionLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -338,8 +378,8 @@ public struct AppStoreVersionLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionLocalizationCreateRequest.swift index b90763656..6a562ad34 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionLocalizationCreateRequest The request body you use to create an App Store Version Localization. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppStoreVersionLocalizationCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,7 +71,14 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { public var supportUrl: String? public var whatsNew: String? - public init(description: String? = nil, keywords: String? = nil, locale: String, marketingUrl: String? = nil, promotionalText: String? = nil, supportUrl: String? = nil, whatsNew: String? = nil) { + public init(description: String? = nil, + keywords: String? = nil, + locale: String, + marketingUrl: String? = nil, + promotionalText: String? = nil, + supportUrl: String? = nil, + whatsNew: String? = nil) + { self.description = description self.keywords = keywords self.locale = locale @@ -78,6 +90,7 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -91,6 +104,7 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionLocalizationCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -104,6 +118,7 @@ public struct AppStoreVersionLocalizationCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionLocalizationCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionLocalizationResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionLocalizationResponse.swift index ec0f5e052..b7a1a2cd3 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionLocalizationResponse A response that contains a single App Store Version Localizations resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppStoreVersionLocalizationResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreVersionLocalization, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersionLocalization, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionLocalizationUpdateRequest.swift index e32e29b5e..e706df766 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionLocalizationUpdateRequest The request body you use to update an App Store Version Localization Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionLocalizationUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreVersionLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "appStoreVersionLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppStoreVersionLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppStoreVersionLocalizationUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -65,7 +70,13 @@ public struct AppStoreVersionLocalizationUpdateRequest: Codable, RequestBody { public var supportUrl: String? public var whatsNew: String? - public init(description: String? = nil, keywords: String? = nil, marketingUrl: String? = nil, promotionalText: String? = nil, supportUrl: String? = nil, whatsNew: String? = nil) { + public init(description: String? = nil, + keywords: String? = nil, + marketingUrl: String? = nil, + promotionalText: String? = nil, + supportUrl: String? = nil, + whatsNew: String? = nil) + { self.description = description self.keywords = keywords self.marketingUrl = marketingUrl diff --git a/Sources/Bagbutik/Models/AppStoreVersionLocalizationsResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionLocalizationsResponse.swift index 6e7a1bf44..a3413b1d7 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionLocalizationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionLocalizationsResponse A response that contains a list of App Store Version Localization resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppStoreVersionLocalizationsResponse: Codable, PagedResponse { public typealias Data = AppStoreVersionLocalization + public let data: [AppStoreVersionLocalization] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersionLocalization], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreVersionLocalization], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionPhasedRelease.swift b/Sources/Bagbutik/Models/AppStoreVersionPhasedRelease.swift index ef6469b36..b7736550a 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPhasedRelease.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPhasedRelease.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionPhasedRelease The data structure that represent an App Store Version Phased Releases resource. Full documentation: @@ -12,7 +13,10 @@ public struct AppStoreVersionPhasedRelease: Codable { public var type: String { "appStoreVersionPhasedReleases" } public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -37,13 +41,14 @@ public struct AppStoreVersionPhasedRelease: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # AppStoreVersionPhasedRelease.Attributes Attributes that describe an App Store Version Phased Releases resource. Full documentation: @@ -55,7 +60,11 @@ public struct AppStoreVersionPhasedRelease: Codable { public var startDate: Date? public var totalPauseDuration: Int? - public init(currentDayNumber: Int? = nil, phasedReleaseState: PhasedReleaseState? = nil, startDate: Date? = nil, totalPauseDuration: Int? = nil) { + public init(currentDayNumber: Int? = nil, + phasedReleaseState: PhasedReleaseState? = nil, + startDate: Date? = nil, + totalPauseDuration: Int? = nil) + { self.currentDayNumber = currentDayNumber self.phasedReleaseState = phasedReleaseState self.startDate = startDate diff --git a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseCreateRequest.swift index d3d4fcacb..0b9a88eb8 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionPhasedReleaseCreateRequest The request body you use to create an App Store Version Phased Release. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionPhasedReleaseCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { public var attributes: Attributes? public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # AppStoreVersionPhasedReleaseCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,6 +71,7 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionPhasedReleaseCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -79,6 +85,7 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionPhasedReleaseCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -92,6 +99,7 @@ public struct AppStoreVersionPhasedReleaseCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionPhasedReleaseCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseResponse.swift index 15b7ebc71..5f966b635 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionPhasedReleaseResponse A response that contains a single App Store Version Phased Releases resource. Full documentation: @@ -10,7 +11,9 @@ public struct AppStoreVersionPhasedReleaseResponse: Codable { public let data: AppStoreVersionPhasedRelease public let links: DocumentLinks - public init(data: AppStoreVersionPhasedRelease, links: DocumentLinks) { + public init(data: AppStoreVersionPhasedRelease, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseUpdateRequest.swift index acce171e8..c839848a8 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPhasedReleaseUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionPhasedReleaseUpdateRequest The request body you use to update an App Store Version Phased Release. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionPhasedReleaseUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionPhasedReleaseUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct AppStoreVersionPhasedReleaseUpdateRequest: Codable, RequestBody { public var type: String { "appStoreVersionPhasedReleases" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct AppStoreVersionPhasedReleaseUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # AppStoreVersionPhasedReleaseUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionPromotion.swift b/Sources/Bagbutik/Models/AppStoreVersionPromotion.swift index 80957112a..b20ea82f1 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPromotion.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPromotion.swift @@ -5,7 +5,9 @@ public struct AppStoreVersionPromotion: Codable { public let links: ResourceLinks public var type: String { "appStoreVersionPromotions" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/AppStoreVersionPromotionCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionPromotionCreateRequest.swift index 130635ed3..25c8dc9ef 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPromotionCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPromotionCreateRequest.swift @@ -30,15 +30,17 @@ public struct AppStoreVersionPromotionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { public let appStoreVersion: AppStoreVersion public let appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment - public init(appStoreVersion: AppStoreVersion, appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment) { + public init(appStoreVersion: AppStoreVersion, + appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment) + { self.appStoreVersion = appStoreVersion self.appStoreVersionExperimentTreatment = appStoreVersionExperimentTreatment } diff --git a/Sources/Bagbutik/Models/AppStoreVersionPromotionResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionPromotionResponse.swift index ad7a66c27..c5a2fdf17 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionPromotionResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionPromotionResponse.swift @@ -4,7 +4,9 @@ public struct AppStoreVersionPromotionResponse: Codable { public let data: AppStoreVersionPromotion public let links: DocumentLinks - public init(data: AppStoreVersionPromotion, links: DocumentLinks) { + public init(data: AppStoreVersionPromotion, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequest.swift index 660f389f1..4a60f467e 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionReleaseRequest The data structure that represents an App Store Version Release Request resource. Full documentation: @@ -14,7 +15,9 @@ public struct AppStoreVersionReleaseRequest: Codable, RequestBody { /// The resource type. public var type: String { "appStoreVersionReleaseRequests" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestCreateRequest.swift index c451860e9..de7094c83 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionReleaseRequestCreateRequest The request body you use to manually release an App Store approved version of your app. Full documentation: @@ -15,6 +16,7 @@ public struct AppStoreVersionReleaseRequestCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionReleaseRequestCreateRequest.Data The data element of the request body. Full documentation: @@ -43,11 +45,12 @@ public struct AppStoreVersionReleaseRequestCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } /** + # AppStoreVersionReleaseRequestCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -61,6 +64,7 @@ public struct AppStoreVersionReleaseRequestCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionReleaseRequestCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -74,6 +78,7 @@ public struct AppStoreVersionReleaseRequestCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionReleaseRequestCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestResponse.swift index 354d8970e..e6c9a811f 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionReleaseRequestResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionReleaseRequestResponse A response that contains a single App Store Version Release Request resource. Full documentation: @@ -12,7 +13,9 @@ public struct AppStoreVersionReleaseRequestResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: AppStoreVersionReleaseRequest, links: DocumentLinks) { + public init(data: AppStoreVersionReleaseRequest, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/AppStoreVersionResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionResponse.swift index 67423677b..a3f072b25 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionResponse A response that contains a single App Store Versions resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppStoreVersionResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: AppStoreVersion, included: [Included]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersion, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionState.swift b/Sources/Bagbutik/Models/AppStoreVersionState.swift index f54d68605..a978fe0c2 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionState.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionState.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents the state of an app version in the App Store. + # AppStoreVersionState + String that represents the state of an app version in the App Store. - Full documentation: - + Full documentation: + */ public enum AppStoreVersionState: String, Codable, CaseIterable { case accepted = "ACCEPTED" diff --git a/Sources/Bagbutik/Models/AppStoreVersionSubmission.swift b/Sources/Bagbutik/Models/AppStoreVersionSubmission.swift index 7fb833432..c8b52409e 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionSubmission.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionSubmission.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionSubmission The data structure that represents an App Store Version Submissions resource. Full documentation: @@ -12,7 +13,10 @@ public struct AppStoreVersionSubmission: Codable { public var type: String { "appStoreVersionSubmissions" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -39,11 +43,12 @@ public struct AppStoreVersionSubmission: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } /** + # AppStoreVersionSubmission.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -57,6 +62,7 @@ public struct AppStoreVersionSubmission: Codable { } /** + # AppStoreVersionSubmission.Relationships.AppStoreVersion The data and links that describe the relationship between the resources. Full documentation: @@ -66,12 +72,15 @@ public struct AppStoreVersionSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # AppStoreVersionSubmission.Relationships.AppStoreVersion.Data The type and ID of a related resource. Full documentation: @@ -106,6 +115,7 @@ public struct AppStoreVersionSubmission: Codable { } /** + # AppStoreVersionSubmission.Relationships.AppStoreVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -115,7 +125,9 @@ public struct AppStoreVersionSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -133,8 +145,8 @@ public struct AppStoreVersionSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/AppStoreVersionSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionSubmissionCreateRequest.swift index eb6a42f0c..d0f8f2544 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionSubmissionCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionSubmissionCreateRequest The request body you use to create an App Store Version Submission. Full documentation: @@ -15,6 +16,7 @@ public struct AppStoreVersionSubmissionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionSubmissionCreateRequest.Data The data element of the request body. Full documentation: @@ -45,11 +47,12 @@ public struct AppStoreVersionSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } /** + # AppStoreVersionSubmissionCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -63,6 +66,7 @@ public struct AppStoreVersionSubmissionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionSubmissionCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -76,6 +80,7 @@ public struct AppStoreVersionSubmissionCreateRequest: Codable, RequestBody { } /** + # AppStoreVersionSubmissionCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionSubmissionResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionSubmissionResponse.swift index 42852855f..dde22cb2b 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionSubmissionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionSubmissionResponse A response that contains a single App Store Version Submissions resource. Full documentation: @@ -11,7 +12,10 @@ public struct AppStoreVersionSubmissionResponse: Codable { public var included: [AppStoreVersion]? public let links: DocumentLinks - public init(data: AppStoreVersionSubmission, included: [AppStoreVersion]? = nil, links: DocumentLinks) { + public init(data: AppStoreVersionSubmission, + included: [AppStoreVersion]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppStoreVersionUpdateRequest.swift b/Sources/Bagbutik/Models/AppStoreVersionUpdateRequest.swift index ca79d57e3..6e859c95d 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionUpdateRequest The request body you use to update an App Store Version. Full documentation: @@ -14,6 +15,7 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionUpdateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,10 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -50,13 +55,14 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # AppStoreVersionUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -69,7 +75,12 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { public var releaseType: AppStoreVersion.Attributes.ReleaseType? public var versionString: String? - public init(copyright: String? = nil, downloadable: Bool? = nil, earliestReleaseDate: Date? = nil, releaseType: AppStoreVersion.Attributes.ReleaseType? = nil, versionString: String? = nil) { + public init(copyright: String? = nil, + downloadable: Bool? = nil, + earliestReleaseDate: Date? = nil, + releaseType: AppStoreVersion.Attributes.ReleaseType? = nil, + versionString: String? = nil) + { self.copyright = copyright self.downloadable = downloadable self.earliestReleaseDate = earliestReleaseDate @@ -79,6 +90,7 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -89,12 +101,15 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { public var appClipDefaultExperience: AppClipDefaultExperience? public var build: Build? - public init(appClipDefaultExperience: AppClipDefaultExperience? = nil, build: Build? = nil) { + public init(appClipDefaultExperience: AppClipDefaultExperience? = nil, + build: Build? = nil) + { self.appClipDefaultExperience = appClipDefaultExperience self.build = build } /** + # AppStoreVersionUpdateRequest.Data.Relationships.AppClipDefaultExperience The relationship to the Default App Clip Default Experiences resource you set with the request that updates the App Store Versions resource. Full documentation: @@ -109,6 +124,7 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionUpdateRequest.Data.Relationships.AppClipDefaultExperience.Data The type and ID of the Default App Clip Experiences resource that you’re relating with the App Store Versions resource you’re updating. Full documentation: @@ -146,6 +162,7 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionUpdateRequest.Data.Relationships.Build The data and links that describe the relationship between the resources. Full documentation: @@ -159,6 +176,7 @@ public struct AppStoreVersionUpdateRequest: Codable, RequestBody { } /** + # AppStoreVersionUpdateRequest.Data.Relationships.Build.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppStoreVersionsResponse.swift b/Sources/Bagbutik/Models/AppStoreVersionsResponse.swift index efbe61ea5..d4e502c0f 100644 --- a/Sources/Bagbutik/Models/AppStoreVersionsResponse.swift +++ b/Sources/Bagbutik/Models/AppStoreVersionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppStoreVersionsResponse A response that contains a list of App Store Version resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct AppStoreVersionsResponse: Codable, PagedResponse { public typealias Data = AppStoreVersion + public let data: [AppStoreVersion] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [AppStoreVersion], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [AppStoreVersion], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/AppUpdateRequest.swift b/Sources/Bagbutik/Models/AppUpdateRequest.swift index 3378ab068..02b4a2d27 100644 --- a/Sources/Bagbutik/Models/AppUpdateRequest.swift +++ b/Sources/Bagbutik/Models/AppUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppUpdateRequest The request body you use to update an App Update. Full documentation: @@ -10,12 +11,15 @@ public struct AppUpdateRequest: Codable, RequestBody { public let data: Data public var included: [AppPriceInlineCreate]? - public init(data: Data, included: [AppPriceInlineCreate]? = nil) { + public init(data: Data, + included: [AppPriceInlineCreate]? = nil) + { self.data = data self.included = included } /** + # AppUpdateRequest.Data The data element of the request body. Full documentation: @@ -27,7 +31,10 @@ public struct AppUpdateRequest: Codable, RequestBody { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -52,13 +59,14 @@ public struct AppUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # AppUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -74,7 +82,15 @@ public struct AppUpdateRequest: Codable, RequestBody { public var subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? public var subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? - public init(availableInNewTerritories: Bool? = nil, bundleId: String? = nil, contentRightsDeclaration: App.Attributes.ContentRightsDeclaration? = nil, primaryLocale: String? = nil, subscriptionStatusUrl: String? = nil, subscriptionStatusUrlForSandbox: String? = nil, subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? = nil, subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? = nil) { + public init(availableInNewTerritories: Bool? = nil, + bundleId: String? = nil, + contentRightsDeclaration: App.Attributes.ContentRightsDeclaration? = nil, + primaryLocale: String? = nil, + subscriptionStatusUrl: String? = nil, + subscriptionStatusUrlForSandbox: String? = nil, + subscriptionStatusUrlVersion: SubscriptionStatusUrlVersion? = nil, + subscriptionStatusUrlVersionForSandbox: SubscriptionStatusUrlVersion? = nil) + { self.availableInNewTerritories = availableInNewTerritories self.bundleId = bundleId self.contentRightsDeclaration = contentRightsDeclaration @@ -87,6 +103,7 @@ public struct AppUpdateRequest: Codable, RequestBody { } /** + # AppUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -96,12 +113,15 @@ public struct AppUpdateRequest: Codable, RequestBody { public var availableTerritories: AvailableTerritories? public var prices: Prices? - public init(availableTerritories: AvailableTerritories? = nil, prices: Prices? = nil) { + public init(availableTerritories: AvailableTerritories? = nil, + prices: Prices? = nil) + { self.availableTerritories = availableTerritories self.prices = prices } /** + # AppUpdateRequest.Data.Relationships.AvailableTerritories The data and links that describe the relationship between the resources. Full documentation: @@ -115,6 +135,7 @@ public struct AppUpdateRequest: Codable, RequestBody { } /** + # AppUpdateRequest.Data.Relationships.AvailableTerritories.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: @@ -150,6 +171,7 @@ public struct AppUpdateRequest: Codable, RequestBody { } /** + # AppUpdateRequest.Data.Relationships.Prices The data and links that describe the relationship between the resources. Full documentation: @@ -163,6 +185,7 @@ public struct AppUpdateRequest: Codable, RequestBody { } /** + # AppUpdateRequest.Data.Relationships.Prices.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/AppsResponse.swift b/Sources/Bagbutik/Models/AppsResponse.swift index f7a2d1d0b..a6f42c659 100644 --- a/Sources/Bagbutik/Models/AppsResponse.swift +++ b/Sources/Bagbutik/Models/AppsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # AppsResponse A response that contains a list of Apps resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct AppsResponse: Codable, PagedResponse { public typealias Data = App + /// The resource data. public let data: [App] public var included: [Included]? @@ -16,7 +18,11 @@ public struct AppsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [App], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [App], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocation.swift b/Sources/Bagbutik/Models/BetaAppClipInvocation.swift index d7413fc9e..d1e74e349 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocation.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocation.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocation The data structure that represents a Beta App Clip Invocations resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaAppClipInvocation: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaAppClipInvocation: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaAppClipInvocation.Attributes The attributes that describe a Beta App Clip Invocations resource. Full documentation: @@ -69,6 +75,7 @@ public struct BetaAppClipInvocation: Codable { } /** + # BetaAppClipInvocation.Relationships The relationships of the Beta App Clip Invocations resource you included in the request and those on which you can operate. Full documentation: @@ -83,6 +90,7 @@ public struct BetaAppClipInvocation: Codable { } /** + # BetaAppClipInvocation.Relationships.BetaAppClipInvocationLocalizations The data, links, and paging information that describe the relationship between the Beta App Clip Invocations and the Beta App Clip Invocation Localizations resources. Full documentation: @@ -96,13 +104,17 @@ public struct BetaAppClipInvocation: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaAppClipInvocation.Relationships.BetaAppClipInvocationLocalizations.Data The type and ID of a related Beta App Clip Invocation Localizations resource. Full documentation: @@ -139,6 +151,7 @@ public struct BetaAppClipInvocation: Codable { } /** + # BetaAppClipInvocation.Relationships.BetaAppClipInvocationLocalizations.Links The links to the related Beta App Clip Invocation Localizations resource and the relationship’s self-link. Full documentation: @@ -150,7 +163,9 @@ public struct BetaAppClipInvocation: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -168,8 +183,8 @@ public struct BetaAppClipInvocation: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationCreateRequest.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationCreateRequest.swift index 9ff80afb1..bb13a864c 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationCreateRequest The request body you use to create an App Clip invocation for testers. Full documentation: @@ -12,12 +13,15 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { /// The relationship data to include in the response. public var included: [BetaAppClipInvocationLocalizationInlineCreate]? - public init(data: Data, included: [BetaAppClipInvocationLocalizationInlineCreate]? = nil) { + public init(data: Data, + included: [BetaAppClipInvocationLocalizationInlineCreate]? = nil) + { self.data = data self.included = included } /** + # BetaAppClipInvocationCreateRequest.Data The data element of the request body. Full documentation: @@ -31,7 +35,9 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -53,12 +59,13 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaAppClipInvocationCreateRequest.Data.Attributes The attributes you set that describe the new Beta App Clip Invocations resource. Full documentation: @@ -74,6 +81,7 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { } /** + # BetaAppClipInvocationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -85,12 +93,15 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { /// The related Build Bundles resource. public let buildBundle: BuildBundle - public init(betaAppClipInvocationLocalizations: BetaAppClipInvocationLocalizations, buildBundle: BuildBundle) { + public init(betaAppClipInvocationLocalizations: BetaAppClipInvocationLocalizations, + buildBundle: BuildBundle) + { self.betaAppClipInvocationLocalizations = betaAppClipInvocationLocalizations self.buildBundle = buildBundle } /** + # BetaAppClipInvocationCreateRequest.Data.Relationships.BetaAppClipInvocationLocalizations The relationship to the Beta App Clip Invocation Localizations resource you set with the request that creates a Beta App Clip Invocations resource. Full documentation: @@ -105,6 +116,7 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { } /** + # BetaAppClipInvocationCreateRequest.Data.Relationships.BetaAppClipInvocationLocalizations.Data The type and ID of the Beta App Clip Invocation Localizations resource that you’re relating with the Beta App Clip Invocations resource you’re creating. Full documentation: @@ -142,6 +154,7 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { } /** + # BetaAppClipInvocationCreateRequest.Data.Relationships.BuildBundle The relationship to the Build Bundles resource you set with the request that creates a Beta App Clip Invocations resource. Full documentation: @@ -156,6 +169,7 @@ public struct BetaAppClipInvocationCreateRequest: Codable, RequestBody { } /** + # BetaAppClipInvocationCreateRequest.Data.Relationships.BuildBundle.Data The type and ID of the Build Bundles resource that you’re relating with the Beta App Clip Invocations resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalization.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalization.swift index efe484bcb..ca418b41d 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalization.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationLocalization The data structure that represents a Beta App Clip Invocation Localizations resource. Full documentation: @@ -16,7 +17,10 @@ public struct BetaAppClipInvocationLocalization: Codable { /// The attributes that describe the Beta App Clip Invocation Localizations resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct BetaAppClipInvocationLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # BetaAppClipInvocationLocalization.Attributes The attributes that describe a Beta App Clip Invocation Localizations resource. Full documentation: @@ -59,7 +64,9 @@ public struct BetaAppClipInvocationLocalization: Codable { /// The title that appears on the App Clip card for an App Clip experience you configure for testers who launch the App Clip using the TestFlight app. public var title: String? - public init(locale: String? = nil, title: String? = nil) { + public init(locale: String? = nil, + title: String? = nil) + { self.locale = locale self.title = title } diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationCreateRequest.swift index 2bf731ac0..7d401a961 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationLocalizationCreateRequest The request body you use to create a Beta App Clip Localization. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo } /** + # BetaAppClipInvocationLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo /// The navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaAppClipInvocationLocalizationCreateRequest.Data.Attributes The attributes you set that describe the new Beta App Clip Invocation Localizations resource. Full documentation: @@ -67,13 +72,16 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo /// The title that appears on the App Clip card for an App Clip experience you configure for testers who launch the App Clip using the TestFlight app. public let title: String - public init(locale: String, title: String) { + public init(locale: String, + title: String) + { self.locale = locale self.title = title } } /** + # BetaAppClipInvocationLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -88,6 +96,7 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo } /** + # BetaAppClipInvocationLocalizationCreateRequest.Data.Relationships.BetaAppClipInvocation The relationship to the Beta App Clip Invocations resource you set with the request that creates a Beta App Clip Invocation Localizations resource. Full documentation: @@ -102,6 +111,7 @@ public struct BetaAppClipInvocationLocalizationCreateRequest: Codable, RequestBo } /** + # BetaAppClipInvocationLocalizationCreateRequest.Data.Relationships.BetaAppClipInvocation.Data The type and ID of the Beta App Clip Invocations resource that you’re relating with the Beta App Clip Invocation Localizations resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationInlineCreate.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationInlineCreate.swift index d106e7a8d..220aea8ba 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationInlineCreate.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationInlineCreate.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationLocalizationInlineCreate The data structure that represents a Beta App Clip Invocation Localization Inline Creates resource. Full documentation: @@ -16,7 +17,10 @@ public struct BetaAppClipInvocationLocalizationInlineCreate: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -41,13 +45,14 @@ public struct BetaAppClipInvocationLocalizationInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # BetaAppClipInvocationLocalizationInlineCreate.Attributes The attributes that describe a Beta App Clip Invocation Localization Inline Creates resource. Full documentation: @@ -59,13 +64,16 @@ public struct BetaAppClipInvocationLocalizationInlineCreate: Codable { /// The title that appears on the App Clip card for an App Clip experience you configure for testers who launch the App Clip using the TestFlight app. public let title: String - public init(locale: String, title: String) { + public init(locale: String, + title: String) + { self.locale = locale self.title = title } } /** + # BetaAppClipInvocationLocalizationInlineCreate.Relationships The relationships to other resources that you can set when you create a new Beta App Clip Invocation Localization Inline Creates resource. Full documentation: @@ -80,6 +88,7 @@ public struct BetaAppClipInvocationLocalizationInlineCreate: Codable { } /** + # BetaAppClipInvocationLocalizationInlineCreate.Relationships.BetaAppClipInvocation The relationship to the Beta App Clip Invocations resource you can set when you create a Beta App Clip Invocation Localizations resource. Full documentation: @@ -94,6 +103,7 @@ public struct BetaAppClipInvocationLocalizationInlineCreate: Codable { } /** + # BetaAppClipInvocationLocalizationInlineCreate.Relationships.BetaAppClipInvocation.Data The type and ID of the Beta App Clip Invocations resource that you’re relating with the Beta App Clip Invocation Localizations resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationResponse.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationResponse.swift index 945e3a18f..5b8c6ca4b 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationLocalizationResponse A response that contains a single Beta App Clip Invocation Localizations resource. Full documentation: @@ -12,7 +13,9 @@ public struct BetaAppClipInvocationLocalizationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaAppClipInvocationLocalization, links: DocumentLinks) { + public init(data: BetaAppClipInvocationLocalization, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationUpdateRequest.swift index bd5fff54f..f1eca0706 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationLocalizationUpdateRequest The request body you use to update localized text that appears on the App Clip card for testers. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppClipInvocationLocalizationUpdateRequest: Codable, RequestBo } /** + # BetaAppClipInvocationLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppClipInvocationLocalizationUpdateRequest: Codable, RequestBo /// The attributes that describe the request that updates a Beta App Clip Localizations resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaAppClipInvocationLocalizationUpdateRequest: Codable, RequestBo } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaAppClipInvocationLocalizationUpdateRequest.Data.Attributes The attributes you set that describe the updated Beta App Clip Invocation Localizations resource. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationResponse.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationResponse.swift index 39c56bc8f..b8af7dde8 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationResponse A response that contains a single Beta App Clip Invocations resource. Full documentation: @@ -14,7 +15,10 @@ public struct BetaAppClipInvocationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaAppClipInvocation, included: [BetaAppClipInvocationLocalization]? = nil, links: DocumentLinks) { + public init(data: BetaAppClipInvocation, + included: [BetaAppClipInvocationLocalization]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationUpdateRequest.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationUpdateRequest.swift index 4773921f1..37057776b 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationUpdateRequest The request body you use to update a Beta App Clip Invocation. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppClipInvocationUpdateRequest: Codable, RequestBody { } /** + # BetaAppClipInvocationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppClipInvocationUpdateRequest: Codable, RequestBody { /// The attributes that describe the request that updates a Beta App Clip Invocations resource. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaAppClipInvocationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaAppClipInvocationUpdateRequest.Data.Attributes The attributes you set that describe the updated Beta App Clip Invocations resource. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppClipInvocationsResponse.swift b/Sources/Bagbutik/Models/BetaAppClipInvocationsResponse.swift index a414462bf..4f8066e35 100644 --- a/Sources/Bagbutik/Models/BetaAppClipInvocationsResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppClipInvocationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppClipInvocationsResponse A response that contains a list of Beta App Clip Invocations resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaAppClipInvocationsResponse: Codable, PagedResponse { public typealias Data = BetaAppClipInvocation + /// The resource data. public let data: [BetaAppClipInvocation] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct BetaAppClipInvocationsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [BetaAppClipInvocation], included: [BetaAppClipInvocationLocalization]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaAppClipInvocation], + included: [BetaAppClipInvocationLocalization]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppLocalization.swift b/Sources/Bagbutik/Models/BetaAppLocalization.swift index db8d6bc03..327db192c 100644 --- a/Sources/Bagbutik/Models/BetaAppLocalization.swift +++ b/Sources/Bagbutik/Models/BetaAppLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppLocalization The data structure that represents a Beta App Localizations resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaAppLocalization: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,20 +51,21 @@ public struct BetaAppLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaAppLocalization.Attributes Attributes that describe a Beta App Localizations resource. + Table 1 lists allowed locale values. + Full documentation: - - Table 1 lists allowed locale values. */ public struct Attributes: Codable { /// A description of your app that highlights features and functionality. @@ -75,7 +81,13 @@ public struct BetaAppLocalization: Codable { /// Your company’s privacy policy. Privacy policies are recommended for all apps that collect user or device-related data, or as otherwise required by law. public var tvOsPrivacyPolicy: String? - public init(description: String? = nil, feedbackEmail: String? = nil, locale: String? = nil, marketingUrl: String? = nil, privacyPolicyUrl: String? = nil, tvOsPrivacyPolicy: String? = nil) { + public init(description: String? = nil, + feedbackEmail: String? = nil, + locale: String? = nil, + marketingUrl: String? = nil, + privacyPolicyUrl: String? = nil, + tvOsPrivacyPolicy: String? = nil) + { self.description = description self.feedbackEmail = feedbackEmail self.locale = locale @@ -86,6 +98,7 @@ public struct BetaAppLocalization: Codable { } /** + # BetaAppLocalization.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -99,6 +112,7 @@ public struct BetaAppLocalization: Codable { } /** + # BetaAppLocalization.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -108,12 +122,15 @@ public struct BetaAppLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaAppLocalization.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -150,6 +167,7 @@ public struct BetaAppLocalization: Codable { } /** + # BetaAppLocalization.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -159,7 +177,9 @@ public struct BetaAppLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -177,8 +197,8 @@ public struct BetaAppLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaAppLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/BetaAppLocalizationCreateRequest.swift index 59fc40c59..92815e741 100644 --- a/Sources/Bagbutik/Models/BetaAppLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppLocalizationCreateRequest The request body you use to create a Beta App Localization. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaAppLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,18 +54,19 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaAppLocalizationCreateRequest.Data.Attributes Attributes that you set that describe the new resource. + Table 1 lists allowed locale values. + Full documentation: - - Table 1 lists allowed locale values. */ public struct Attributes: Codable { /// A description of your app that highlights features and functionality. @@ -77,7 +82,13 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { /// Your company’s privacy policy. Privacy policies are recommended for all apps that collect user or device-related data, or as otherwise required by law. public var tvOsPrivacyPolicy: String? - public init(description: String? = nil, feedbackEmail: String? = nil, locale: String, marketingUrl: String? = nil, privacyPolicyUrl: String? = nil, tvOsPrivacyPolicy: String? = nil) { + public init(description: String? = nil, + feedbackEmail: String? = nil, + locale: String, + marketingUrl: String? = nil, + privacyPolicyUrl: String? = nil, + tvOsPrivacyPolicy: String? = nil) + { self.description = description self.feedbackEmail = feedbackEmail self.locale = locale @@ -88,6 +99,7 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaAppLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -101,6 +113,7 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaAppLocalizationCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -114,6 +127,7 @@ public struct BetaAppLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaAppLocalizationCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppLocalizationResponse.swift b/Sources/Bagbutik/Models/BetaAppLocalizationResponse.swift index 161b2f808..9d7321fd6 100644 --- a/Sources/Bagbutik/Models/BetaAppLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppLocalizationResponse A response that contains a single Beta App Localizations resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaAppLocalizationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaAppLocalization, included: [App]? = nil, links: DocumentLinks) { + public init(data: BetaAppLocalization, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/BetaAppLocalizationUpdateRequest.swift index 512f5e7bc..1cff10fa1 100644 --- a/Sources/Bagbutik/Models/BetaAppLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppLocalizationUpdateRequest The request body you use to update a Beta App Localization. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppLocalizationUpdateRequest: Codable, RequestBody { } /** + # BetaAppLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppLocalizationUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaAppLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaAppLocalizationUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -73,7 +78,12 @@ public struct BetaAppLocalizationUpdateRequest: Codable, RequestBody { /// Your company’s privacy policy. Privacy policies are recommended for all apps that collect user or device-related data, or as otherwise required by law. public var tvOsPrivacyPolicy: String? - public init(description: String? = nil, feedbackEmail: String? = nil, marketingUrl: String? = nil, privacyPolicyUrl: String? = nil, tvOsPrivacyPolicy: String? = nil) { + public init(description: String? = nil, + feedbackEmail: String? = nil, + marketingUrl: String? = nil, + privacyPolicyUrl: String? = nil, + tvOsPrivacyPolicy: String? = nil) + { self.description = description self.feedbackEmail = feedbackEmail self.marketingUrl = marketingUrl diff --git a/Sources/Bagbutik/Models/BetaAppLocalizationsResponse.swift b/Sources/Bagbutik/Models/BetaAppLocalizationsResponse.swift index 1154a2b22..5924b8361 100644 --- a/Sources/Bagbutik/Models/BetaAppLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppLocalizationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppLocalizationsResponse A response that contains a list of Beta App Localization resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaAppLocalizationsResponse: Codable, PagedResponse { public typealias Data = BetaAppLocalization + /// The resource data. public let data: [BetaAppLocalization] public var included: [App]? @@ -16,7 +18,11 @@ public struct BetaAppLocalizationsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaAppLocalization], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaAppLocalization], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppReviewDetail.swift b/Sources/Bagbutik/Models/BetaAppReviewDetail.swift index c5ee6cff9..b505f6009 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewDetail.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewDetail.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewDetail The data structure that represents a Beta App Review Details resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaAppReviewDetail: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaAppReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaAppReviewDetail.Attributes Attributes that describe a Beta App Review Details resource. Full documentation: @@ -77,7 +83,15 @@ public struct BetaAppReviewDetail: Codable { /// Additional information about your app that can help during the review process. Do not include demo account details. Review notes have a maximum of 4,000 characters. public var notes: String? - public init(contactEmail: String? = nil, contactFirstName: String? = nil, contactLastName: String? = nil, contactPhone: String? = nil, demoAccountName: String? = nil, demoAccountPassword: String? = nil, demoAccountRequired: Bool? = nil, notes: String? = nil) { + public init(contactEmail: String? = nil, + contactFirstName: String? = nil, + contactLastName: String? = nil, + contactPhone: String? = nil, + demoAccountName: String? = nil, + demoAccountPassword: String? = nil, + demoAccountRequired: Bool? = nil, + notes: String? = nil) + { self.contactEmail = contactEmail self.contactFirstName = contactFirstName self.contactLastName = contactLastName @@ -90,6 +104,7 @@ public struct BetaAppReviewDetail: Codable { } /** + # BetaAppReviewDetail.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -103,6 +118,7 @@ public struct BetaAppReviewDetail: Codable { } /** + # BetaAppReviewDetail.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -112,12 +128,15 @@ public struct BetaAppReviewDetail: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaAppReviewDetail.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -154,6 +173,7 @@ public struct BetaAppReviewDetail: Codable { } /** + # BetaAppReviewDetail.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -163,7 +183,9 @@ public struct BetaAppReviewDetail: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -181,8 +203,8 @@ public struct BetaAppReviewDetail: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaAppReviewDetailResponse.swift b/Sources/Bagbutik/Models/BetaAppReviewDetailResponse.swift index 3b4420d24..4f475c2b4 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewDetailResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewDetailResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewDetailResponse A response that contains a single Beta App Review Details resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaAppReviewDetailResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaAppReviewDetail, included: [App]? = nil, links: DocumentLinks) { + public init(data: BetaAppReviewDetail, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppReviewDetailUpdateRequest.swift b/Sources/Bagbutik/Models/BetaAppReviewDetailUpdateRequest.swift index 82a082cfb..b7f1bf784 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewDetailUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewDetailUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewDetailUpdateRequest The request body you use to update a Beta App Review Detail. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppReviewDetailUpdateRequest: Codable, RequestBody { } /** + # BetaAppReviewDetailUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaAppReviewDetailUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaAppReviewDetailUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaAppReviewDetailUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -79,7 +84,15 @@ public struct BetaAppReviewDetailUpdateRequest: Codable, RequestBody { /// Additional information about your app that can help during the review process. Do not include demo account details. Review notes have a maximum of 4,000 characters. public var notes: String? - public init(contactEmail: String? = nil, contactFirstName: String? = nil, contactLastName: String? = nil, contactPhone: String? = nil, demoAccountName: String? = nil, demoAccountPassword: String? = nil, demoAccountRequired: Bool? = nil, notes: String? = nil) { + public init(contactEmail: String? = nil, + contactFirstName: String? = nil, + contactLastName: String? = nil, + contactPhone: String? = nil, + demoAccountName: String? = nil, + demoAccountPassword: String? = nil, + demoAccountRequired: Bool? = nil, + notes: String? = nil) + { self.contactEmail = contactEmail self.contactFirstName = contactFirstName self.contactLastName = contactLastName diff --git a/Sources/Bagbutik/Models/BetaAppReviewDetailsResponse.swift b/Sources/Bagbutik/Models/BetaAppReviewDetailsResponse.swift index ad878c7e1..83265e66d 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewDetailsResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewDetailsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewDetailsResponse A response that contains a list of Beta App Review Detail resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaAppReviewDetailsResponse: Codable, PagedResponse { public typealias Data = BetaAppReviewDetail + /// The resource data. public let data: [BetaAppReviewDetail] public var included: [App]? @@ -16,7 +18,11 @@ public struct BetaAppReviewDetailsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaAppReviewDetail], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaAppReviewDetail], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppReviewSubmission.swift b/Sources/Bagbutik/Models/BetaAppReviewSubmission.swift index 2403a9b24..1b0bff39e 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewSubmission.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewSubmission.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewSubmission The data structure that represents a Beta App Review Submissions resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaAppReviewSubmission: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaAppReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaAppReviewSubmission.Attributes Attributes that describe a Beta App Review Submissions resource. Full documentation: @@ -64,13 +70,16 @@ public struct BetaAppReviewSubmission: Codable { public var betaReviewState: BetaReviewState? public var submittedDate: Date? - public init(betaReviewState: BetaReviewState? = nil, submittedDate: Date? = nil) { + public init(betaReviewState: BetaReviewState? = nil, + submittedDate: Date? = nil) + { self.betaReviewState = betaReviewState self.submittedDate = submittedDate } } /** + # BetaAppReviewSubmission.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -84,6 +93,7 @@ public struct BetaAppReviewSubmission: Codable { } /** + # BetaAppReviewSubmission.Relationships.Build The data and links that describe the relationship between the resources. Full documentation: @@ -93,12 +103,15 @@ public struct BetaAppReviewSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaAppReviewSubmission.Relationships.Build.Data The type and ID of a related resource. Full documentation: @@ -135,6 +148,7 @@ public struct BetaAppReviewSubmission: Codable { } /** + # BetaAppReviewSubmission.Relationships.Build.Links The links to the related data and the relationship's self-link. Full documentation: @@ -144,7 +158,9 @@ public struct BetaAppReviewSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -162,8 +178,8 @@ public struct BetaAppReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaAppReviewSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/BetaAppReviewSubmissionCreateRequest.swift index 08341caa7..ae454fd18 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewSubmissionCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewSubmissionCreateRequest The request body you use to create a Beta App Review Submission. Full documentation: @@ -15,6 +16,7 @@ public struct BetaAppReviewSubmissionCreateRequest: Codable, RequestBody { } /** + # BetaAppReviewSubmissionCreateRequest.Data The data element of the request body. Full documentation: @@ -45,11 +47,12 @@ public struct BetaAppReviewSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } /** + # BetaAppReviewSubmissionCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -63,6 +66,7 @@ public struct BetaAppReviewSubmissionCreateRequest: Codable, RequestBody { } /** + # BetaAppReviewSubmissionCreateRequest.Data.Relationships.Build The relationships to other resources that you can set with this request. Full documentation: @@ -76,6 +80,7 @@ public struct BetaAppReviewSubmissionCreateRequest: Codable, RequestBody { } /** + # BetaAppReviewSubmissionCreateRequest.Data.Relationships.Build.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaAppReviewSubmissionResponse.swift b/Sources/Bagbutik/Models/BetaAppReviewSubmissionResponse.swift index 28b3639fb..f25de43f8 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewSubmissionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewSubmissionResponse A response that contains a single Beta App Review Submissions resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaAppReviewSubmissionResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaAppReviewSubmission, included: [Build]? = nil, links: DocumentLinks) { + public init(data: BetaAppReviewSubmission, + included: [Build]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaAppReviewSubmissionsResponse.swift b/Sources/Bagbutik/Models/BetaAppReviewSubmissionsResponse.swift index ff1c1f842..cb115c66e 100644 --- a/Sources/Bagbutik/Models/BetaAppReviewSubmissionsResponse.swift +++ b/Sources/Bagbutik/Models/BetaAppReviewSubmissionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaAppReviewSubmissionsResponse A response that contains a list of Beta App Review Submission resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaAppReviewSubmissionsResponse: Codable, PagedResponse { public typealias Data = BetaAppReviewSubmission + /// The resource data. public let data: [BetaAppReviewSubmission] public var included: [Build]? @@ -16,7 +18,11 @@ public struct BetaAppReviewSubmissionsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaAppReviewSubmission], included: [Build]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaAppReviewSubmission], + included: [Build]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaBuildLocalization.swift b/Sources/Bagbutik/Models/BetaBuildLocalization.swift index e8027cc37..49dd87617 100644 --- a/Sources/Bagbutik/Models/BetaBuildLocalization.swift +++ b/Sources/Bagbutik/Models/BetaBuildLocalization.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaBuildLocalization The data structure that represents a Beta Build Localizations resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaBuildLocalization: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,20 +51,21 @@ public struct BetaBuildLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaBuildLocalization.Attributes Attributes that describe a Beta Build Localizations resource. + Table 1 lists allowed locale values. + Full documentation: - - Table 1 lists allowed locale values. */ public struct Attributes: Codable { /// The specified locale. Refer to [Table 1](https://developer.apple.com/documentation/appstoreconnectapi/prerelease_versions_and_beta_testers/beta_build_localizations/betabuildlocalization/attributes#3042206) for possible values. @@ -67,13 +73,16 @@ public struct BetaBuildLocalization: Codable { /// A field that describes changes and additions to a build and indicates features you would like your users to test. public var whatsNew: String? - public init(locale: String? = nil, whatsNew: String? = nil) { + public init(locale: String? = nil, + whatsNew: String? = nil) + { self.locale = locale self.whatsNew = whatsNew } } /** + # BetaBuildLocalization.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -87,6 +96,7 @@ public struct BetaBuildLocalization: Codable { } /** + # BetaBuildLocalization.Relationships.Build The data and links that describe the relationship between the resources. Full documentation: @@ -96,12 +106,15 @@ public struct BetaBuildLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaBuildLocalization.Relationships.Build.Data The type and ID of a related resource. Full documentation: @@ -138,6 +151,7 @@ public struct BetaBuildLocalization: Codable { } /** + # BetaBuildLocalization.Relationships.Build.Links The links to the related data and the relationship's self-link. Full documentation: @@ -147,7 +161,9 @@ public struct BetaBuildLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -165,8 +181,8 @@ public struct BetaBuildLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaBuildLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/BetaBuildLocalizationCreateRequest.swift index 9efd44c83..13d2804bb 100644 --- a/Sources/Bagbutik/Models/BetaBuildLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaBuildLocalizationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaBuildLocalizationCreateRequest The request body you use to create a Beta Build Localization. Full documentation: @@ -15,6 +16,7 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaBuildLocalizationCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,18 +54,19 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaBuildLocalizationCreateRequest.Data.Attributes Attributes that you set that describe the new resource. + Table 1 lists allowed locale values. + Full documentation: - - Table 1 lists allowed locale values. */ public struct Attributes: Codable { /// The specified locale. Refer to [Table 1](https://developer.apple.com/documentation/appstoreconnectapi/prerelease_versions_and_beta_testers/beta_build_localizations/betabuildlocalizationcreaterequest/data/attributes#3073798) for possible values. @@ -69,13 +74,16 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { /// A field that describes changes and additions to a build and indicates features you would like your users to test. public var whatsNew: String? - public init(locale: String, whatsNew: String? = nil) { + public init(locale: String, + whatsNew: String? = nil) + { self.locale = locale self.whatsNew = whatsNew } } /** + # BetaBuildLocalizationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -89,6 +97,7 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaBuildLocalizationCreateRequest.Data.Relationships.Build The relationships to other resources that you can set with this request. Full documentation: @@ -102,6 +111,7 @@ public struct BetaBuildLocalizationCreateRequest: Codable, RequestBody { } /** + # BetaBuildLocalizationCreateRequest.Data.Relationships.Build.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaBuildLocalizationResponse.swift b/Sources/Bagbutik/Models/BetaBuildLocalizationResponse.swift index ec7ed87ea..4a3072162 100644 --- a/Sources/Bagbutik/Models/BetaBuildLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/BetaBuildLocalizationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaBuildLocalizationResponse A response that contains a single Beta Build Localizations resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaBuildLocalizationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaBuildLocalization, included: [Build]? = nil, links: DocumentLinks) { + public init(data: BetaBuildLocalization, + included: [Build]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaBuildLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/BetaBuildLocalizationUpdateRequest.swift index 26adcbc52..d445bb76d 100644 --- a/Sources/Bagbutik/Models/BetaBuildLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaBuildLocalizationUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaBuildLocalizationUpdateRequest The request body you use to update a Beta Build Localization. Full documentation: @@ -15,6 +16,7 @@ public struct BetaBuildLocalizationUpdateRequest: Codable, RequestBody { } /** + # BetaBuildLocalizationUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaBuildLocalizationUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaBuildLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaBuildLocalizationUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaBuildLocalizationsResponse.swift b/Sources/Bagbutik/Models/BetaBuildLocalizationsResponse.swift index 003012d9c..db019c008 100644 --- a/Sources/Bagbutik/Models/BetaBuildLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/BetaBuildLocalizationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaBuildLocalizationsResponse A response that contains a list of Beta Build Localization resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaBuildLocalizationsResponse: Codable, PagedResponse { public typealias Data = BetaBuildLocalization + /// The resource data. public let data: [BetaBuildLocalization] public var included: [Build]? @@ -16,7 +18,11 @@ public struct BetaBuildLocalizationsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaBuildLocalization], included: [Build]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaBuildLocalization], + included: [Build]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaGroup.swift b/Sources/Bagbutik/Models/BetaGroup.swift index c5de2617f..b2361e4f2 100644 --- a/Sources/Bagbutik/Models/BetaGroup.swift +++ b/Sources/Bagbutik/Models/BetaGroup.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroup The data structure that represents a Beta Groups resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaGroup: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaGroup: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaGroup.Attributes Attributes that describe a Beta Groups resource. Full documentation: @@ -80,7 +86,18 @@ public struct BetaGroup: Codable { /// A Boolean value that limits the number of testers who can join the beta group using the public link. public var publicLinkLimitEnabled: Bool? - public init(createdDate: Date? = nil, feedbackEnabled: Bool? = nil, hasAccessToAllBuilds: Bool? = nil, iosBuildsAvailableForAppleSiliconMac: Bool? = nil, isInternalGroup: Bool? = nil, name: String? = nil, publicLink: String? = nil, publicLinkEnabled: Bool? = nil, publicLinkId: String? = nil, publicLinkLimit: Int? = nil, publicLinkLimitEnabled: Bool? = nil) { + public init(createdDate: Date? = nil, + feedbackEnabled: Bool? = nil, + hasAccessToAllBuilds: Bool? = nil, + iosBuildsAvailableForAppleSiliconMac: Bool? = nil, + isInternalGroup: Bool? = nil, + name: String? = nil, + publicLink: String? = nil, + publicLinkEnabled: Bool? = nil, + publicLinkId: String? = nil, + publicLinkLimit: Int? = nil, + publicLinkLimitEnabled: Bool? = nil) + { self.createdDate = createdDate self.feedbackEnabled = feedbackEnabled self.hasAccessToAllBuilds = hasAccessToAllBuilds @@ -96,6 +113,7 @@ public struct BetaGroup: Codable { } /** + # BetaGroup.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -106,13 +124,17 @@ public struct BetaGroup: Codable { public var betaTesters: BetaTesters? public var builds: Builds? - public init(app: App? = nil, betaTesters: BetaTesters? = nil, builds: Builds? = nil) { + public init(app: App? = nil, + betaTesters: BetaTesters? = nil, + builds: Builds? = nil) + { self.app = app self.betaTesters = betaTesters self.builds = builds } /** + # BetaGroup.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -122,12 +144,15 @@ public struct BetaGroup: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaGroup.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -164,6 +189,7 @@ public struct BetaGroup: Codable { } /** + # BetaGroup.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -173,7 +199,9 @@ public struct BetaGroup: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -191,13 +219,14 @@ public struct BetaGroup: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BetaGroup.Relationships.BetaTesters The data and links that describe the relationship between the resources. Full documentation: @@ -208,13 +237,17 @@ public struct BetaGroup: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaGroup.Relationships.BetaTesters.Data The type and ID of a related resource. Full documentation: @@ -251,6 +284,7 @@ public struct BetaGroup: Codable { } /** + # BetaGroup.Relationships.BetaTesters.Links The links to the related data and the relationship's self-link. Full documentation: @@ -260,7 +294,9 @@ public struct BetaGroup: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -278,13 +314,14 @@ public struct BetaGroup: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BetaGroup.Relationships.Builds The data and links that describe the relationship between the resources. Full documentation: @@ -295,13 +332,17 @@ public struct BetaGroup: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaGroup.Relationships.Builds.Data The type and ID of a related resource. Full documentation: @@ -338,6 +379,7 @@ public struct BetaGroup: Codable { } /** + # BetaGroup.Relationships.Builds.Links The links to the related data and the relationship's self-link. Full documentation: @@ -347,7 +389,9 @@ public struct BetaGroup: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -365,8 +409,8 @@ public struct BetaGroup: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesRequest.swift b/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesRequest.swift index b1d73b2f1..d5cdb25ab 100644 --- a/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupBetaTestersLinkagesRequest A request body you use to add or remove beta testers from a beta group. Full documentation: @@ -15,6 +16,7 @@ public struct BetaGroupBetaTestersLinkagesRequest: Codable, RequestBody { } /** + # BetaGroupBetaTestersLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesResponse.swift b/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesResponse.swift index d96d9c876..4b9264552 100644 --- a/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BetaGroupBetaTestersLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupBetaTestersLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BetaGroupBetaTestersLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaGroupBetaTestersLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesRequest.swift b/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesRequest.swift index 9a689fc8f..6b56d00cb 100644 --- a/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupBuildsLinkagesRequest A request body you use to add or remove builds from a beta group. Full documentation: @@ -15,6 +16,7 @@ public struct BetaGroupBuildsLinkagesRequest: Codable, RequestBody { } /** + # BetaGroupBuildsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesResponse.swift b/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesResponse.swift index d3c9a1a18..45c727ab5 100644 --- a/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BetaGroupBuildsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupBuildsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BetaGroupBuildsLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaGroupBuildsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaGroupCreateRequest.swift b/Sources/Bagbutik/Models/BetaGroupCreateRequest.swift index 081806f8f..e214b7046 100644 --- a/Sources/Bagbutik/Models/BetaGroupCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaGroupCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupCreateRequest The request body you use to create a Beta Group. Full documentation: @@ -15,6 +16,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaGroupCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -74,7 +79,14 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { /// A Boolean value that limits the number of testers who can join the beta group using the public link. public var publicLinkLimitEnabled: Bool? - public init(feedbackEnabled: Bool? = nil, hasAccessToAllBuilds: Bool? = nil, isInternalGroup: Bool? = nil, name: String, publicLinkEnabled: Bool? = nil, publicLinkLimit: Int? = nil, publicLinkLimitEnabled: Bool? = nil) { + public init(feedbackEnabled: Bool? = nil, + hasAccessToAllBuilds: Bool? = nil, + isInternalGroup: Bool? = nil, + name: String, + publicLinkEnabled: Bool? = nil, + publicLinkLimit: Int? = nil, + publicLinkLimitEnabled: Bool? = nil) + { self.feedbackEnabled = feedbackEnabled self.hasAccessToAllBuilds = hasAccessToAllBuilds self.isInternalGroup = isInternalGroup @@ -86,6 +98,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -96,13 +109,17 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { public var betaTesters: BetaTesters? public var builds: Builds? - public init(app: App, betaTesters: BetaTesters? = nil, builds: Builds? = nil) { + public init(app: App, + betaTesters: BetaTesters? = nil, + builds: Builds? = nil) + { self.app = app self.betaTesters = betaTesters self.builds = builds } /** + # BetaGroupCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -116,6 +133,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -153,6 +171,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships.BetaTesters The relationships to other resources that you can set with this request. Full documentation: @@ -166,6 +185,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships.BetaTesters.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -203,6 +223,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships.Builds The relationships to other resources that you can set with this request. Full documentation: @@ -216,6 +237,7 @@ public struct BetaGroupCreateRequest: Codable, RequestBody { } /** + # BetaGroupCreateRequest.Data.Relationships.Builds.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaGroupResponse.swift b/Sources/Bagbutik/Models/BetaGroupResponse.swift index dc79fbbb5..a26d76e5b 100644 --- a/Sources/Bagbutik/Models/BetaGroupResponse.swift +++ b/Sources/Bagbutik/Models/BetaGroupResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupResponse A response that contains a single Beta Groups resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaGroupResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaGroup, included: [Included]? = nil, links: DocumentLinks) { + public init(data: BetaGroup, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaGroupUpdateRequest.swift b/Sources/Bagbutik/Models/BetaGroupUpdateRequest.swift index 49e395cae..f0a14379a 100644 --- a/Sources/Bagbutik/Models/BetaGroupUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaGroupUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupUpdateRequest The request body you use to update a Beta Group. Full documentation: @@ -15,6 +16,7 @@ public struct BetaGroupUpdateRequest: Codable, RequestBody { } /** + # BetaGroupUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaGroupUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaGroupUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaGroupUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -73,7 +78,13 @@ public struct BetaGroupUpdateRequest: Codable, RequestBody { /// A Boolean value that limits the number of testers who can join the beta group using the public link. public var publicLinkLimitEnabled: Bool? - public init(feedbackEnabled: Bool? = nil, iosBuildsAvailableForAppleSiliconMac: Bool? = nil, name: String? = nil, publicLinkEnabled: Bool? = nil, publicLinkLimit: Int? = nil, publicLinkLimitEnabled: Bool? = nil) { + public init(feedbackEnabled: Bool? = nil, + iosBuildsAvailableForAppleSiliconMac: Bool? = nil, + name: String? = nil, + publicLinkEnabled: Bool? = nil, + publicLinkLimit: Int? = nil, + publicLinkLimitEnabled: Bool? = nil) + { self.feedbackEnabled = feedbackEnabled self.iosBuildsAvailableForAppleSiliconMac = iosBuildsAvailableForAppleSiliconMac self.name = name diff --git a/Sources/Bagbutik/Models/BetaGroupsResponse.swift b/Sources/Bagbutik/Models/BetaGroupsResponse.swift index 70e610b5c..42e156d95 100644 --- a/Sources/Bagbutik/Models/BetaGroupsResponse.swift +++ b/Sources/Bagbutik/Models/BetaGroupsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaGroupsResponse A response that contains a list of Beta Group resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaGroupsResponse: Codable, PagedResponse { public typealias Data = BetaGroup + /// The resource data. public let data: [BetaGroup] public var included: [Included]? @@ -16,7 +18,11 @@ public struct BetaGroupsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaGroup], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaGroup], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaInviteType.swift b/Sources/Bagbutik/Models/BetaInviteType.swift index 76d3149af..7e24826b2 100644 --- a/Sources/Bagbutik/Models/BetaInviteType.swift +++ b/Sources/Bagbutik/Models/BetaInviteType.swift @@ -1,10 +1,11 @@ import Foundation /** - String that indicates how you offer a beta invitation. + # BetaInviteType + String that indicates how you offer a beta invitation. - Full documentation: - + Full documentation: + */ public enum BetaInviteType: String, Codable, CaseIterable { case email = "EMAIL" diff --git a/Sources/Bagbutik/Models/BetaLicenseAgreement.swift b/Sources/Bagbutik/Models/BetaLicenseAgreement.swift index 6f7aa0c6a..ce2205d80 100644 --- a/Sources/Bagbutik/Models/BetaLicenseAgreement.swift +++ b/Sources/Bagbutik/Models/BetaLicenseAgreement.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaLicenseAgreement The data structure that represents a Beta License Agreements resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaLicenseAgreement: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaLicenseAgreement: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaLicenseAgreement.Attributes Attributes that describe a Beta License Agreements resource. Full documentation: @@ -69,6 +75,7 @@ public struct BetaLicenseAgreement: Codable { } /** + # BetaLicenseAgreement.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -82,6 +89,7 @@ public struct BetaLicenseAgreement: Codable { } /** + # BetaLicenseAgreement.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -91,12 +99,15 @@ public struct BetaLicenseAgreement: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BetaLicenseAgreement.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -133,6 +144,7 @@ public struct BetaLicenseAgreement: Codable { } /** + # BetaLicenseAgreement.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -142,7 +154,9 @@ public struct BetaLicenseAgreement: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -160,8 +174,8 @@ public struct BetaLicenseAgreement: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaLicenseAgreementResponse.swift b/Sources/Bagbutik/Models/BetaLicenseAgreementResponse.swift index b3572ed75..3e485af27 100644 --- a/Sources/Bagbutik/Models/BetaLicenseAgreementResponse.swift +++ b/Sources/Bagbutik/Models/BetaLicenseAgreementResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaLicenseAgreementResponse A response that contains a single Beta License Agreements resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaLicenseAgreementResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaLicenseAgreement, included: [App]? = nil, links: DocumentLinks) { + public init(data: BetaLicenseAgreement, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaLicenseAgreementUpdateRequest.swift b/Sources/Bagbutik/Models/BetaLicenseAgreementUpdateRequest.swift index 7c064cd48..fce09f121 100644 --- a/Sources/Bagbutik/Models/BetaLicenseAgreementUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BetaLicenseAgreementUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaLicenseAgreementUpdateRequest The request body you use to update a Beta License Agreement. Full documentation: @@ -15,6 +16,7 @@ public struct BetaLicenseAgreementUpdateRequest: Codable, RequestBody { } /** + # BetaLicenseAgreementUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaLicenseAgreementUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BetaLicenseAgreementUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BetaLicenseAgreementUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaLicenseAgreementsResponse.swift b/Sources/Bagbutik/Models/BetaLicenseAgreementsResponse.swift index 40e791736..8e55915dd 100644 --- a/Sources/Bagbutik/Models/BetaLicenseAgreementsResponse.swift +++ b/Sources/Bagbutik/Models/BetaLicenseAgreementsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaLicenseAgreementsResponse A response that contains a list of Beta License Agreement resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaLicenseAgreementsResponse: Codable, PagedResponse { public typealias Data = BetaLicenseAgreement + /// The resource data. public let data: [BetaLicenseAgreement] public var included: [App]? @@ -16,7 +18,11 @@ public struct BetaLicenseAgreementsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaLicenseAgreement], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaLicenseAgreement], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaReviewState.swift b/Sources/Bagbutik/Models/BetaReviewState.swift index 6328f9023..9a2fc267a 100644 --- a/Sources/Bagbutik/Models/BetaReviewState.swift +++ b/Sources/Bagbutik/Models/BetaReviewState.swift @@ -1,10 +1,11 @@ import Foundation /** - String that indicates the review state of a beta app. + # BetaReviewState + String that indicates the review state of a beta app. - Full documentation: - + Full documentation: + */ public enum BetaReviewState: String, Codable, CaseIterable { case waitingForReview = "WAITING_FOR_REVIEW" diff --git a/Sources/Bagbutik/Models/BetaTester.swift b/Sources/Bagbutik/Models/BetaTester.swift index ce654de79..cc9143c57 100644 --- a/Sources/Bagbutik/Models/BetaTester.swift +++ b/Sources/Bagbutik/Models/BetaTester.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTester The data structure that represents a Beta Testers resource. Full documentation: @@ -18,7 +19,11 @@ public struct BetaTester: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BetaTester: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BetaTester.Attributes Attributes that describe a Beta Testers resource. Full documentation: @@ -69,7 +75,11 @@ public struct BetaTester: Codable { /// The beta tester's last name. public var lastName: String? - public init(email: String? = nil, firstName: String? = nil, inviteType: BetaInviteType? = nil, lastName: String? = nil) { + public init(email: String? = nil, + firstName: String? = nil, + inviteType: BetaInviteType? = nil, + lastName: String? = nil) + { self.email = email self.firstName = firstName self.inviteType = inviteType @@ -78,6 +88,7 @@ public struct BetaTester: Codable { } /** + # BetaTester.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -88,13 +99,17 @@ public struct BetaTester: Codable { public var betaGroups: BetaGroups? public var builds: Builds? - public init(apps: Apps? = nil, betaGroups: BetaGroups? = nil, builds: Builds? = nil) { + public init(apps: Apps? = nil, + betaGroups: BetaGroups? = nil, + builds: Builds? = nil) + { self.apps = apps self.betaGroups = betaGroups self.builds = builds } /** + # BetaTester.Relationships.Apps The data and links that describe the relationship between the resources. Full documentation: @@ -105,13 +120,17 @@ public struct BetaTester: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTester.Relationships.Apps.Data The type and ID of a related resource. Full documentation: @@ -146,6 +165,7 @@ public struct BetaTester: Codable { } /** + # BetaTester.Relationships.Apps.Links The links to the related data and the relationship's self-link. Full documentation: @@ -155,7 +175,9 @@ public struct BetaTester: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -173,13 +195,14 @@ public struct BetaTester: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BetaTester.Relationships.BetaGroups The data and links that describe the relationship between the resources. Full documentation: @@ -190,13 +213,17 @@ public struct BetaTester: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTester.Relationships.BetaGroups.Data The type and ID of a related resource. Full documentation: @@ -231,6 +258,7 @@ public struct BetaTester: Codable { } /** + # BetaTester.Relationships.BetaGroups.Links The links to the related data and the relationship's self-link. Full documentation: @@ -240,7 +268,9 @@ public struct BetaTester: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -258,13 +288,14 @@ public struct BetaTester: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BetaTester.Relationships.Builds The data and links that describe the relationship between the resources. Full documentation: @@ -275,13 +306,17 @@ public struct BetaTester: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTester.Relationships.Builds.Data The type and ID of a related resource. Full documentation: @@ -316,6 +351,7 @@ public struct BetaTester: Codable { } /** + # BetaTester.Relationships.Builds.Links The links to the related data and the relationship's self-link. Full documentation: @@ -325,7 +361,9 @@ public struct BetaTester: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -343,8 +381,8 @@ public struct BetaTester: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BetaTesterAppsLinkagesRequest.swift b/Sources/Bagbutik/Models/BetaTesterAppsLinkagesRequest.swift index 129a4d318..65fa382a9 100644 --- a/Sources/Bagbutik/Models/BetaTesterAppsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BetaTesterAppsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterAppsLinkagesRequest A request body you use to remove an app from a beta tester. Full documentation: @@ -15,6 +16,7 @@ public struct BetaTesterAppsLinkagesRequest: Codable, RequestBody { } /** + # BetaTesterAppsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterAppsLinkagesResponse.swift b/Sources/Bagbutik/Models/BetaTesterAppsLinkagesResponse.swift index 244a23e3b..6a07932c0 100644 --- a/Sources/Bagbutik/Models/BetaTesterAppsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BetaTesterAppsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterAppsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BetaTesterAppsLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTesterAppsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesRequest.swift b/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesRequest.swift index 7675ee7bd..d3703d2d1 100644 --- a/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterBetaGroupsLinkagesRequest A request body you use to add or remove beta groups from a beta tester. Full documentation: @@ -15,6 +16,7 @@ public struct BetaTesterBetaGroupsLinkagesRequest: Codable, RequestBody { } /** + # BetaTesterBetaGroupsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesResponse.swift b/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesResponse.swift index 70c207455..f5c8876fc 100644 --- a/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BetaTesterBetaGroupsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterBetaGroupsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BetaTesterBetaGroupsLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTesterBetaGroupsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesRequest.swift b/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesRequest.swift index 16925081e..0b82718ce 100644 --- a/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterBuildsLinkagesRequest A request body you use to add or remove builds from a beta tester. Full documentation: @@ -15,6 +16,7 @@ public struct BetaTesterBuildsLinkagesRequest: Codable, RequestBody { } /** + # BetaTesterBuildsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesResponse.swift b/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesResponse.swift index 7c156fd34..76fb0df1e 100644 --- a/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BetaTesterBuildsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterBuildsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BetaTesterBuildsLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BetaTesterBuildsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterCreateRequest.swift b/Sources/Bagbutik/Models/BetaTesterCreateRequest.swift index fd73c384a..2eac2ca5f 100644 --- a/Sources/Bagbutik/Models/BetaTesterCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaTesterCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterCreateRequest The request body you use to create a BetaTester. Full documentation: @@ -15,6 +16,7 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } /** + # BetaTesterCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public var relationships: Relationships? - public init(attributes: Attributes, relationships: Relationships? = nil) { + public init(attributes: Attributes, + relationships: Relationships? = nil) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BetaTesterCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -69,7 +74,10 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { /// The beta tester's last name. public var lastName: String? - public init(email: String, firstName: String? = nil, lastName: String? = nil) { + public init(email: String, + firstName: String? = nil, + lastName: String? = nil) + { self.email = email self.firstName = firstName self.lastName = lastName @@ -77,6 +85,7 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } /** + # BetaTesterCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -86,12 +95,15 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { public var betaGroups: BetaGroups? public var builds: Builds? - public init(betaGroups: BetaGroups? = nil, builds: Builds? = nil) { + public init(betaGroups: BetaGroups? = nil, + builds: Builds? = nil) + { self.betaGroups = betaGroups self.builds = builds } /** + # BetaTesterCreateRequest.Data.Relationships.BetaGroups The relationships to other resources that you can set with this request. Full documentation: @@ -105,6 +117,7 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } /** + # BetaTesterCreateRequest.Data.Relationships.BetaGroups.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -142,6 +155,7 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } /** + # BetaTesterCreateRequest.Data.Relationships.Builds The relationships to other resources that you can set with this request. Full documentation: @@ -155,6 +169,7 @@ public struct BetaTesterCreateRequest: Codable, RequestBody { } /** + # BetaTesterCreateRequest.Data.Relationships.Builds.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterInvitation.swift b/Sources/Bagbutik/Models/BetaTesterInvitation.swift index 4f91cf37b..33800500d 100644 --- a/Sources/Bagbutik/Models/BetaTesterInvitation.swift +++ b/Sources/Bagbutik/Models/BetaTesterInvitation.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterInvitation The data structure that represents a Beta Tester Invitations resource. Full documentation: @@ -14,7 +15,9 @@ public struct BetaTesterInvitation: Codable { /// The resource type. public var type: String { "betaTesterInvitations" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/BetaTesterInvitationCreateRequest.swift b/Sources/Bagbutik/Models/BetaTesterInvitationCreateRequest.swift index 94a4871f5..bf2857a57 100644 --- a/Sources/Bagbutik/Models/BetaTesterInvitationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BetaTesterInvitationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterInvitationCreateRequest The request body you use to create a Beta Tester Invitation. Full documentation: @@ -15,6 +16,7 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { } /** + # BetaTesterInvitationCreateRequest.Data The data element of the request body. Full documentation: @@ -45,11 +47,12 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } /** + # BetaTesterInvitationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -59,12 +62,15 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { public let app: App public let betaTester: BetaTester - public init(app: App, betaTester: BetaTester) { + public init(app: App, + betaTester: BetaTester) + { self.app = app self.betaTester = betaTester } /** + # BetaTesterInvitationCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -78,6 +84,7 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { } /** + # BetaTesterInvitationCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -115,6 +122,7 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { } /** + # BetaTesterInvitationCreateRequest.Data.Relationships.BetaTester The relationships to other resources that you can set with this request. Full documentation: @@ -128,6 +136,7 @@ public struct BetaTesterInvitationCreateRequest: Codable, RequestBody { } /** + # BetaTesterInvitationCreateRequest.Data.Relationships.BetaTester.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BetaTesterInvitationResponse.swift b/Sources/Bagbutik/Models/BetaTesterInvitationResponse.swift index f015db527..79e8622e8 100644 --- a/Sources/Bagbutik/Models/BetaTesterInvitationResponse.swift +++ b/Sources/Bagbutik/Models/BetaTesterInvitationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterInvitationResponse A response that contains a single Beta Tester Invitations resource. Full documentation: @@ -12,7 +13,9 @@ public struct BetaTesterInvitationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaTesterInvitation, links: DocumentLinks) { + public init(data: BetaTesterInvitation, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/BetaTesterResponse.swift b/Sources/Bagbutik/Models/BetaTesterResponse.swift index 059ba2d8f..59666f751 100644 --- a/Sources/Bagbutik/Models/BetaTesterResponse.swift +++ b/Sources/Bagbutik/Models/BetaTesterResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTesterResponse A response that contains a single Beta Testers resource. Full documentation: @@ -13,7 +14,10 @@ public struct BetaTesterResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BetaTester, included: [Included]? = nil, links: DocumentLinks) { + public init(data: BetaTester, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BetaTestersResponse.swift b/Sources/Bagbutik/Models/BetaTestersResponse.swift index 4293e7cec..908bec2e9 100644 --- a/Sources/Bagbutik/Models/BetaTestersResponse.swift +++ b/Sources/Bagbutik/Models/BetaTestersResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BetaTestersResponse A response that contains a list of Beta Tester resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BetaTestersResponse: Codable, PagedResponse { public typealias Data = BetaTester + /// The resource data. public let data: [BetaTester] public var included: [Included]? @@ -16,7 +18,11 @@ public struct BetaTestersResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BetaTester], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BetaTester], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BrazilAgeRating.swift b/Sources/Bagbutik/Models/BrazilAgeRating.swift index c1096a5af..9eca0283c 100644 --- a/Sources/Bagbutik/Models/BrazilAgeRating.swift +++ b/Sources/Bagbutik/Models/BrazilAgeRating.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents the app's age rating as it appears on the App Store in Brazil for all platforms. + # BrazilAgeRating + String that represents the app's age rating as it appears on the App Store in Brazil for all platforms. - Full documentation: - + Full documentation: + */ public enum BrazilAgeRating: String, Codable, CaseIterable { /// A literal that represents the rating L. diff --git a/Sources/Bagbutik/Models/Build.swift b/Sources/Bagbutik/Models/Build.swift index ef06cea53..043874dc8 100644 --- a/Sources/Bagbutik/Models/Build.swift +++ b/Sources/Bagbutik/Models/Build.swift @@ -1,6 +1,7 @@ import Foundation /** + # Build The data structure that represents a Builds resource. Full documentation: @@ -18,7 +19,11 @@ public struct Build: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # Build.Attributes Attributes that describe a Builds resource. Full documentation: @@ -80,7 +86,18 @@ public struct Build: Codable { /// The version number of the uploaded build. public var version: String? - public init(buildAudienceType: BuildAudienceType? = nil, computedMinMacOsVersion: String? = nil, expirationDate: Date? = nil, expired: Bool? = nil, iconAssetToken: ImageAsset? = nil, lsMinimumSystemVersion: String? = nil, minOsVersion: String? = nil, processingState: ProcessingState? = nil, uploadedDate: Date? = nil, usesNonExemptEncryption: Bool? = nil, version: String? = nil) { + public init(buildAudienceType: BuildAudienceType? = nil, + computedMinMacOsVersion: String? = nil, + expirationDate: Date? = nil, + expired: Bool? = nil, + iconAssetToken: ImageAsset? = nil, + lsMinimumSystemVersion: String? = nil, + minOsVersion: String? = nil, + processingState: ProcessingState? = nil, + uploadedDate: Date? = nil, + usesNonExemptEncryption: Bool? = nil, + version: String? = nil) + { self.buildAudienceType = buildAudienceType self.computedMinMacOsVersion = computedMinMacOsVersion self.expirationDate = expirationDate @@ -103,6 +120,7 @@ public struct Build: Codable { } /** + # Build.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -122,7 +140,18 @@ public struct Build: Codable { public var individualTesters: IndividualTesters? public var preReleaseVersion: PreReleaseVersion? - public init(app: App? = nil, appEncryptionDeclaration: AppEncryptionDeclaration? = nil, appStoreVersion: AppStoreVersion? = nil, betaAppReviewSubmission: BetaAppReviewSubmission? = nil, betaBuildLocalizations: BetaBuildLocalizations? = nil, betaGroups: BetaGroups? = nil, buildBetaDetail: BuildBetaDetail? = nil, buildBundles: BuildBundles? = nil, icons: Icons? = nil, individualTesters: IndividualTesters? = nil, preReleaseVersion: PreReleaseVersion? = nil) { + public init(app: App? = nil, + appEncryptionDeclaration: AppEncryptionDeclaration? = nil, + appStoreVersion: AppStoreVersion? = nil, + betaAppReviewSubmission: BetaAppReviewSubmission? = nil, + betaBuildLocalizations: BetaBuildLocalizations? = nil, + betaGroups: BetaGroups? = nil, + buildBetaDetail: BuildBetaDetail? = nil, + buildBundles: BuildBundles? = nil, + icons: Icons? = nil, + individualTesters: IndividualTesters? = nil, + preReleaseVersion: PreReleaseVersion? = nil) + { self.app = app self.appEncryptionDeclaration = appEncryptionDeclaration self.appStoreVersion = appStoreVersion @@ -137,6 +166,7 @@ public struct Build: Codable { } /** + # Build.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -146,12 +176,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -188,6 +221,7 @@ public struct Build: Codable { } /** + # Build.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -197,7 +231,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -215,13 +251,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.AppEncryptionDeclaration The data and links that describe the relationship between the resources. Full documentation: @@ -231,12 +268,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.AppEncryptionDeclaration.Data The type and ID of a related resource. Full documentation: @@ -273,6 +313,7 @@ public struct Build: Codable { } /** + # Build.Relationships.AppEncryptionDeclaration.Links The links to the related data and the relationship's self-link. Full documentation: @@ -282,7 +323,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -300,13 +343,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.AppStoreVersion The data and links that describe the relationship between the resources. Full documentation: @@ -316,12 +360,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.AppStoreVersion.Data The type and ID of a related resource. Full documentation: @@ -356,6 +403,7 @@ public struct Build: Codable { } /** + # Build.Relationships.AppStoreVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -365,7 +413,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -383,13 +433,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.BetaAppReviewSubmission The data and links that describe the relationship between the resources. Full documentation: @@ -399,12 +450,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.BetaAppReviewSubmission.Data The type and ID of a related resource. Full documentation: @@ -441,6 +495,7 @@ public struct Build: Codable { } /** + # Build.Relationships.BetaAppReviewSubmission.Links The links to the related data and the relationship's self-link. Full documentation: @@ -450,7 +505,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -468,13 +525,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.BetaBuildLocalizations The data and links that describe the relationship between the resources. Full documentation: @@ -485,13 +543,17 @@ public struct Build: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Build.Relationships.BetaBuildLocalizations.Data The type and ID of a related resource. Full documentation: @@ -528,6 +590,7 @@ public struct Build: Codable { } /** + # Build.Relationships.BetaBuildLocalizations.Links The links to the related data and the relationship's self-link. Full documentation: @@ -537,7 +600,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -555,13 +620,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.BetaGroups The data and links that describe the relationship between the resources. Full documentation: @@ -573,16 +639,17 @@ public struct Build: Codable { /// Paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } public struct Data: Codable { - /// The opaque resource ID that uniquely identifies the resource. public let id: String - /// The resource type. public var type: String { "betaGroups" } public init(id: String) { @@ -613,7 +680,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -631,13 +700,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.BuildBetaDetail The data and links that describe the relationship between the resources. Full documentation: @@ -647,12 +717,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.BuildBetaDetail.Data The type and ID of a related resource. Full documentation: @@ -689,6 +762,7 @@ public struct Build: Codable { } /** + # Build.Relationships.BuildBetaDetail.Links The links to the related data and the relationship's self-link. Full documentation: @@ -698,7 +772,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -716,13 +792,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.BuildBundles The data, links, and paging information that describe the relationship between the Builds and the Build Bundles resources. Full documentation: @@ -736,13 +813,17 @@ public struct Build: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Build.Relationships.BuildBundles.Data The type and ID of a related Build Bundles resource. Full documentation: @@ -779,6 +860,7 @@ public struct Build: Codable { } /** + # Build.Relationships.BuildBundles.Links The links to the related Build Bundles resource and the relationship’s self-link. Full documentation: @@ -790,7 +872,9 @@ public struct Build: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -808,13 +892,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.Icons The data and links that describe the relationship between the resources. Full documentation: @@ -825,13 +910,17 @@ public struct Build: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Build.Relationships.Icons.Data The type and ID of a related resource. Full documentation: @@ -866,6 +955,7 @@ public struct Build: Codable { } /** + # Build.Relationships.Icons.Links The links to the related data and the relationship's self-link. Full documentation: @@ -875,7 +965,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -893,13 +985,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.IndividualTesters The data and links that describe the relationship between the resources. Full documentation: @@ -910,13 +1003,17 @@ public struct Build: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Build.Relationships.IndividualTesters.Data The type and ID of a related resource. Full documentation: @@ -953,6 +1050,7 @@ public struct Build: Codable { } /** + # Build.Relationships.IndividualTesters.Links The links to the related data and the relationship's self-link. Full documentation: @@ -962,7 +1060,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -980,13 +1080,14 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Build.Relationships.PreReleaseVersion The data and links that describe the relationship between the resources. Full documentation: @@ -996,12 +1097,15 @@ public struct Build: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Build.Relationships.PreReleaseVersion.Data The type and ID of a related resource. Full documentation: @@ -1038,6 +1142,7 @@ public struct Build: Codable { } /** + # Build.Relationships.PreReleaseVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -1047,7 +1152,9 @@ public struct Build: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -1065,8 +1172,8 @@ public struct Build: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageRequest.swift b/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageRequest.swift index 60d172301..67c9eacb1 100644 --- a/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageRequest.swift +++ b/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildAppEncryptionDeclarationLinkageRequest The request body you use to attach an app encryption declaration to a build. Full documentation: @@ -15,6 +16,7 @@ public struct BuildAppEncryptionDeclarationLinkageRequest: Codable, RequestBody } /** + # BuildAppEncryptionDeclarationLinkageRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageResponse.swift b/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageResponse.swift index 7b5a44882..2be77120a 100644 --- a/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageResponse.swift +++ b/Sources/Bagbutik/Models/BuildAppEncryptionDeclarationLinkageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildAppEncryptionDeclarationLinkageResponse A response body that contains the ID of a single related resource. Full documentation: @@ -12,12 +13,15 @@ public struct BuildAppEncryptionDeclarationLinkageResponse: Codable { /// Navigational links including the self-link and links to the related data. public let links: DocumentLinks - public init(data: Data, links: DocumentLinks) { + public init(data: Data, + links: DocumentLinks) + { self.data = data self.links = links } /** + # BuildAppEncryptionDeclarationLinkageResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildAudienceType.swift b/Sources/Bagbutik/Models/BuildAudienceType.swift index 4b63252df..6a16a3d1d 100644 --- a/Sources/Bagbutik/Models/BuildAudienceType.swift +++ b/Sources/Bagbutik/Models/BuildAudienceType.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the App Store Connect audience for a build. + # BuildAudienceType + A string that represents the App Store Connect audience for a build. - Full documentation: - + Full documentation: + */ public enum BuildAudienceType: String, Codable, CaseIterable { /// The build of your app is only available to members of your development team. diff --git a/Sources/Bagbutik/Models/BuildBetaDetail.swift b/Sources/Bagbutik/Models/BuildBetaDetail.swift index 345da1324..fef491c63 100644 --- a/Sources/Bagbutik/Models/BuildBetaDetail.swift +++ b/Sources/Bagbutik/Models/BuildBetaDetail.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaDetail The data structure that represents a Build Beta Details resource. Full documentation: @@ -18,7 +19,11 @@ public struct BuildBetaDetail: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BuildBetaDetail: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BuildBetaDetail.Attributes Attributes that describe a Build Beta Details resource. Full documentation: @@ -67,7 +73,10 @@ public struct BuildBetaDetail: Codable { /// A state that indicates if the build is available for internal testing. public var internalBuildState: InternalBetaState? - public init(autoNotifyEnabled: Bool? = nil, externalBuildState: ExternalBetaState? = nil, internalBuildState: InternalBetaState? = nil) { + public init(autoNotifyEnabled: Bool? = nil, + externalBuildState: ExternalBetaState? = nil, + internalBuildState: InternalBetaState? = nil) + { self.autoNotifyEnabled = autoNotifyEnabled self.externalBuildState = externalBuildState self.internalBuildState = internalBuildState @@ -75,6 +84,7 @@ public struct BuildBetaDetail: Codable { } /** + # BuildBetaDetail.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -88,6 +98,7 @@ public struct BuildBetaDetail: Codable { } /** + # BuildBetaDetail.Relationships.Build The data and links that describe the relationship between the resources. Full documentation: @@ -97,12 +108,15 @@ public struct BuildBetaDetail: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BuildBetaDetail.Relationships.Build.Data The type and ID of a related resource. Full documentation: @@ -139,6 +153,7 @@ public struct BuildBetaDetail: Codable { } /** + # BuildBetaDetail.Relationships.Build.Links The links to the related data and the relationship's self-link. Full documentation: @@ -148,7 +163,9 @@ public struct BuildBetaDetail: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -166,8 +183,8 @@ public struct BuildBetaDetail: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BuildBetaDetailResponse.swift b/Sources/Bagbutik/Models/BuildBetaDetailResponse.swift index 89cdba110..157f5879d 100644 --- a/Sources/Bagbutik/Models/BuildBetaDetailResponse.swift +++ b/Sources/Bagbutik/Models/BuildBetaDetailResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaDetailResponse A response that contains a single Build Beta Details resource. Full documentation: @@ -13,7 +14,10 @@ public struct BuildBetaDetailResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BuildBetaDetail, included: [Build]? = nil, links: DocumentLinks) { + public init(data: BuildBetaDetail, + included: [Build]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BuildBetaDetailUpdateRequest.swift b/Sources/Bagbutik/Models/BuildBetaDetailUpdateRequest.swift index 040964d78..ec5be6bb8 100644 --- a/Sources/Bagbutik/Models/BuildBetaDetailUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BuildBetaDetailUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaDetailUpdateRequest The request body you use to update a Build Data Detail. Full documentation: @@ -15,6 +16,7 @@ public struct BuildBetaDetailUpdateRequest: Codable, RequestBody { } /** + # BuildBetaDetailUpdateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct BuildBetaDetailUpdateRequest: Codable, RequestBody { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -50,12 +54,13 @@ public struct BuildBetaDetailUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BuildBetaDetailUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildBetaDetailsResponse.swift b/Sources/Bagbutik/Models/BuildBetaDetailsResponse.swift index d60902196..d5e1d11cd 100644 --- a/Sources/Bagbutik/Models/BuildBetaDetailsResponse.swift +++ b/Sources/Bagbutik/Models/BuildBetaDetailsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaDetailsResponse A response that contains a list of Build Beta Detail resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BuildBetaDetailsResponse: Codable, PagedResponse { public typealias Data = BuildBetaDetail + /// The resource data. public let data: [BuildBetaDetail] public var included: [Build]? @@ -16,7 +18,11 @@ public struct BuildBetaDetailsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BuildBetaDetail], included: [Build]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BuildBetaDetail], + included: [Build]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BuildBetaGroupsLinkagesRequest.swift b/Sources/Bagbutik/Models/BuildBetaGroupsLinkagesRequest.swift index 79b662912..9005eaae3 100644 --- a/Sources/Bagbutik/Models/BuildBetaGroupsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BuildBetaGroupsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaGroupsLinkagesRequest A request body you use to add or remove beta groups from a build. Full documentation: @@ -15,6 +16,7 @@ public struct BuildBetaGroupsLinkagesRequest: Codable, RequestBody { } /** + # BuildBetaGroupsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildBetaNotification.swift b/Sources/Bagbutik/Models/BuildBetaNotification.swift index 477a68678..103c1a4fa 100644 --- a/Sources/Bagbutik/Models/BuildBetaNotification.swift +++ b/Sources/Bagbutik/Models/BuildBetaNotification.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaNotification The data structure that represents a Build Beta Notifications resource. Full documentation: @@ -14,7 +15,9 @@ public struct BuildBetaNotification: Codable { /// The resource type. public var type: String { "buildBetaNotifications" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/BuildBetaNotificationCreateRequest.swift b/Sources/Bagbutik/Models/BuildBetaNotificationCreateRequest.swift index c2c00b11e..f918b8e54 100644 --- a/Sources/Bagbutik/Models/BuildBetaNotificationCreateRequest.swift +++ b/Sources/Bagbutik/Models/BuildBetaNotificationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaNotificationCreateRequest The request body you use to create a Build Beta Notification. Full documentation: @@ -15,6 +16,7 @@ public struct BuildBetaNotificationCreateRequest: Codable, RequestBody { } /** + # BuildBetaNotificationCreateRequest.Data The data element of the request body. Full documentation: @@ -45,11 +47,12 @@ public struct BuildBetaNotificationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } /** + # BuildBetaNotificationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -63,6 +66,7 @@ public struct BuildBetaNotificationCreateRequest: Codable, RequestBody { } /** + # BuildBetaNotificationCreateRequest.Data.Relationships.Build The relationships to other resources that you can set with this request. Full documentation: @@ -76,6 +80,7 @@ public struct BuildBetaNotificationCreateRequest: Codable, RequestBody { } /** + # BuildBetaNotificationCreateRequest.Data.Relationships.Build.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildBetaNotificationResponse.swift b/Sources/Bagbutik/Models/BuildBetaNotificationResponse.swift index 1168c201e..d8fcc3e86 100644 --- a/Sources/Bagbutik/Models/BuildBetaNotificationResponse.swift +++ b/Sources/Bagbutik/Models/BuildBetaNotificationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBetaNotificationResponse A response that contains a single Build Beta Notifications resource. Full documentation: @@ -12,7 +13,9 @@ public struct BuildBetaNotificationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BuildBetaNotification, links: DocumentLinks) { + public init(data: BuildBetaNotification, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/BuildBundle.swift b/Sources/Bagbutik/Models/BuildBundle.swift index 6cbe1b0e9..b5c938290 100644 --- a/Sources/Bagbutik/Models/BuildBundle.swift +++ b/Sources/Bagbutik/Models/BuildBundle.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBundle The data structure that represents Build Bundles resource. Full documentation: @@ -18,7 +19,11 @@ public struct BuildBundle: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks? = nil, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks? = nil, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BuildBundle: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BuildBundle.Attributes The attributes that describe a Build Bundles resource. Full documentation: @@ -95,7 +101,24 @@ public struct BuildBundle: Codable { /// A Boolean value that indicates whether the app or App Clip included in the build bundle uses location services. public var usesLocationServices: Bool? - public init(bundleId: String? = nil, bundleType: BundleType? = nil, dSYMUrl: String? = nil, deviceProtocols: [String]? = nil, entitlements: [String: [String: String]]? = nil, fileName: String? = nil, hasOnDemandResources: Bool? = nil, hasPrerenderedIcon: Bool? = nil, hasSirikit: Bool? = nil, includesSymbols: Bool? = nil, isIosBuildMacAppStoreCompatible: Bool? = nil, locales: [String]? = nil, platformBuild: String? = nil, requiredCapabilities: [String]? = nil, sdkBuild: String? = nil, supportedArchitectures: [String]? = nil, usesLocationServices: Bool? = nil) { + public init(bundleId: String? = nil, + bundleType: BundleType? = nil, + dSYMUrl: String? = nil, + deviceProtocols: [String]? = nil, + entitlements: [String: [String: String]]? = nil, + fileName: String? = nil, + hasOnDemandResources: Bool? = nil, + hasPrerenderedIcon: Bool? = nil, + hasSirikit: Bool? = nil, + includesSymbols: Bool? = nil, + isIosBuildMacAppStoreCompatible: Bool? = nil, + locales: [String]? = nil, + platformBuild: String? = nil, + requiredCapabilities: [String]? = nil, + sdkBuild: String? = nil, + supportedArchitectures: [String]? = nil, + usesLocationServices: Bool? = nil) + { self.bundleId = bundleId self.bundleType = bundleType self.dSYMUrl = dSYMUrl @@ -122,6 +145,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships The relationships of the Build Bundles resource you included in the request and those on which you can operate. Full documentation: @@ -137,7 +161,11 @@ public struct BuildBundle: Codable { /// The related Build Bundle File Sizes resource. public var buildBundleFileSizes: BuildBundleFileSizes? - public init(appClipDomainCacheStatus: AppClipDomainCacheStatus? = nil, appClipDomainDebugStatus: AppClipDomainDebugStatus? = nil, betaAppClipInvocations: BetaAppClipInvocations? = nil, buildBundleFileSizes: BuildBundleFileSizes? = nil) { + public init(appClipDomainCacheStatus: AppClipDomainCacheStatus? = nil, + appClipDomainDebugStatus: AppClipDomainDebugStatus? = nil, + betaAppClipInvocations: BetaAppClipInvocations? = nil, + buildBundleFileSizes: BuildBundleFileSizes? = nil) + { self.appClipDomainCacheStatus = appClipDomainCacheStatus self.appClipDomainDebugStatus = appClipDomainDebugStatus self.betaAppClipInvocations = betaAppClipInvocations @@ -145,6 +173,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships.AppClipDomainCacheStatus The data and links that describe the relationship between the Build Bundles and the App Clip Domain Cache Statuses resources. Full documentation: @@ -156,12 +185,15 @@ public struct BuildBundle: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BuildBundle.Relationships.AppClipDomainCacheStatus.Data The type and ID of a related App Clip Domain Cache Status resource. Full documentation: @@ -198,6 +230,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships.AppClipDomainCacheStatus.Links The type and ID of a related App Clip Domain Cache Status resource. Full documentation: @@ -209,7 +242,9 @@ public struct BuildBundle: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -227,13 +262,14 @@ public struct BuildBundle: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BuildBundle.Relationships.AppClipDomainDebugStatus The data and links that describe the relationship between the Build Bundles and the App Clip Domain Debug Statuses resources. Full documentation: @@ -245,12 +281,15 @@ public struct BuildBundle: Codable { /// Navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BuildBundle.Relationships.AppClipDomainDebugStatus.Data The type and ID of a related App Clip Domain Debug Status resource. Full documentation: @@ -287,6 +326,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships.AppClipDomainDebugStatus.Links The type and ID of a related App Clip Domain Debug Status resource. Full documentation: @@ -298,7 +338,9 @@ public struct BuildBundle: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -316,13 +358,14 @@ public struct BuildBundle: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BuildBundle.Relationships.BetaAppClipInvocations The data, links, and paging information that describe the relationship between the Build Bundles and the Beta App Clip Invocations resources. Full documentation: @@ -336,13 +379,17 @@ public struct BuildBundle: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BuildBundle.Relationships.BetaAppClipInvocations.Data The type and ID of a related Beta App Clip Invocations resource. Full documentation: @@ -379,6 +426,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships.BetaAppClipInvocations.Links The type and ID of a related Beta App Clip Invocations resource. Full documentation: @@ -390,7 +438,9 @@ public struct BuildBundle: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -408,13 +458,14 @@ public struct BuildBundle: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BuildBundle.Relationships.BuildBundleFileSizes The data, links, and paging information that describe the relationship between the Build Bundles and the Build Bundle File Sizes resources. Full documentation: @@ -428,13 +479,17 @@ public struct BuildBundle: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BuildBundle.Relationships.BuildBundleFileSizes.Data The type and ID of a related Build Bundle File Sizes resource. Full documentation: @@ -471,6 +526,7 @@ public struct BuildBundle: Codable { } /** + # BuildBundle.Relationships.BuildBundleFileSizes.Links The type and ID of a related Build Bundle File Sizes resource. Full documentation: @@ -482,7 +538,9 @@ public struct BuildBundle: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -500,8 +558,8 @@ public struct BuildBundle: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BuildBundleFileSize.swift b/Sources/Bagbutik/Models/BuildBundleFileSize.swift index 1c6d6ba05..c067e503a 100644 --- a/Sources/Bagbutik/Models/BuildBundleFileSize.swift +++ b/Sources/Bagbutik/Models/BuildBundleFileSize.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBundleFileSize The data structure that represents a Build Bundle File Sizes resource. Full documentation: @@ -16,7 +17,10 @@ public struct BuildBundleFileSize: Codable { /// The attributes that describe the Build Bundle File Sizes resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct BuildBundleFileSize: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # BuildBundleFileSize.Attributes The attributes that describe a Build Bundle File Sizes resource. Full documentation: @@ -63,7 +68,11 @@ public struct BuildBundleFileSize: Codable { /// A string that identifies the OS version supported by the app or App Clip. public var osVersion: String? - public init(deviceModel: String? = nil, downloadBytes: Int? = nil, installBytes: Int? = nil, osVersion: String? = nil) { + public init(deviceModel: String? = nil, + downloadBytes: Int? = nil, + installBytes: Int? = nil, + osVersion: String? = nil) + { self.deviceModel = deviceModel self.downloadBytes = downloadBytes self.installBytes = installBytes diff --git a/Sources/Bagbutik/Models/BuildBundleFileSizesResponse.swift b/Sources/Bagbutik/Models/BuildBundleFileSizesResponse.swift index e017972a0..f7cb7f483 100644 --- a/Sources/Bagbutik/Models/BuildBundleFileSizesResponse.swift +++ b/Sources/Bagbutik/Models/BuildBundleFileSizesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildBundleFileSizesResponse A response that contains a list of Build Bundle File Sizes resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BuildBundleFileSizesResponse: Codable, PagedResponse { public typealias Data = BuildBundleFileSize + /// The resource data. public let data: [BuildBundleFileSize] /// Navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct BuildBundleFileSizesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [BuildBundleFileSize], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BuildBundleFileSize], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/BuildIcon.swift b/Sources/Bagbutik/Models/BuildIcon.swift index 45b1ea688..f77d7f73b 100644 --- a/Sources/Bagbutik/Models/BuildIcon.swift +++ b/Sources/Bagbutik/Models/BuildIcon.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildIcon The data structure that represents the Build Icons resource. Full documentation: @@ -12,7 +13,10 @@ public struct BuildIcon: Codable { public var type: String { "buildIcons" } public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -37,13 +41,14 @@ public struct BuildIcon: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # BuildIcon.Attributes Attributes that describe a Build Icons resource. Full documentation: @@ -54,7 +59,10 @@ public struct BuildIcon: Codable { public var iconType: IconAssetType? public var name: String? - public init(iconAsset: ImageAsset? = nil, iconType: IconAssetType? = nil, name: String? = nil) { + public init(iconAsset: ImageAsset? = nil, + iconType: IconAssetType? = nil, + name: String? = nil) + { self.iconAsset = iconAsset self.iconType = iconType self.name = name diff --git a/Sources/Bagbutik/Models/BuildIconsResponse.swift b/Sources/Bagbutik/Models/BuildIconsResponse.swift index 0cb8c346a..1d7b85cdd 100644 --- a/Sources/Bagbutik/Models/BuildIconsResponse.swift +++ b/Sources/Bagbutik/Models/BuildIconsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildIconsResponse A response that contains a list of Build Icon resources. Full documentation: @@ -8,11 +9,15 @@ import Foundation */ public struct BuildIconsResponse: Codable, PagedResponse { public typealias Data = BuildIcon + public let data: [BuildIcon] public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [BuildIcon], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BuildIcon], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesRequest.swift b/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesRequest.swift index 3831573e0..0195bfdb2 100644 --- a/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildIndividualTestersLinkagesRequest A request body you use to add or remove a build from multiple beta groups. Full documentation: @@ -15,6 +16,7 @@ public struct BuildIndividualTestersLinkagesRequest: Codable, RequestBody { } /** + # BuildIndividualTestersLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesResponse.swift b/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesResponse.swift index 3f9376706..f1f2932e0 100644 --- a/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/BuildIndividualTestersLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildIndividualTestersLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct BuildIndividualTestersLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BuildIndividualTestersLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildResponse.swift b/Sources/Bagbutik/Models/BuildResponse.swift index 27a019acd..a67bcf937 100644 --- a/Sources/Bagbutik/Models/BuildResponse.swift +++ b/Sources/Bagbutik/Models/BuildResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildResponse A response that contains a single Builds resource. Full documentation: @@ -13,7 +14,10 @@ public struct BuildResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Build, included: [Included]? = nil, links: DocumentLinks) { + public init(data: Build, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BuildUpdateRequest.swift b/Sources/Bagbutik/Models/BuildUpdateRequest.swift index ccaabbe50..f011b473a 100644 --- a/Sources/Bagbutik/Models/BuildUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BuildUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildUpdateRequest The request body you use to update a Build. Full documentation: @@ -15,6 +16,7 @@ public struct BuildUpdateRequest: Codable, RequestBody { } /** + # BuildUpdateRequest.Data The data element of the request body. Full documentation: @@ -30,7 +32,10 @@ public struct BuildUpdateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -55,13 +60,14 @@ public struct BuildUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # BuildUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -73,13 +79,16 @@ public struct BuildUpdateRequest: Codable, RequestBody { /// A Boolean value that indicates whether the build uses non-exempt encryption. public var usesNonExemptEncryption: Bool? - public init(expired: Bool? = nil, usesNonExemptEncryption: Bool? = nil) { + public init(expired: Bool? = nil, + usesNonExemptEncryption: Bool? = nil) + { self.expired = expired self.usesNonExemptEncryption = usesNonExemptEncryption } } /** + # BuildUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -93,6 +102,7 @@ public struct BuildUpdateRequest: Codable, RequestBody { } /** + # BuildUpdateRequest.Data.Relationships.AppEncryptionDeclaration The data and links that describe the relationship between the resources. Full documentation: @@ -106,6 +116,7 @@ public struct BuildUpdateRequest: Codable, RequestBody { } /** + # BuildUpdateRequest.Data.Relationships.AppEncryptionDeclaration.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/BuildsResponse.swift b/Sources/Bagbutik/Models/BuildsResponse.swift index 7c2bc8f6c..52c8c1b45 100644 --- a/Sources/Bagbutik/Models/BuildsResponse.swift +++ b/Sources/Bagbutik/Models/BuildsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BuildsResponse A response that contains a list of Builds resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BuildsResponse: Codable, PagedResponse { public typealias Data = Build + /// The resource data. public let data: [Build] public var included: [Included]? @@ -16,7 +18,11 @@ public struct BuildsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Build], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Build], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BundleId.swift b/Sources/Bagbutik/Models/BundleId.swift index 0e42bbb71..89b1cba36 100644 --- a/Sources/Bagbutik/Models/BundleId.swift +++ b/Sources/Bagbutik/Models/BundleId.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleId The data structure that represents a Bundle IDs resource. Full documentation: @@ -18,7 +19,11 @@ public struct BundleId: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct BundleId: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # BundleId.Attributes Attributes that describe a Bundle IDs resource. Full documentation: @@ -65,7 +71,11 @@ public struct BundleId: Codable { public var platform: BundleIdPlatform? public var seedId: String? - public init(identifier: String? = nil, name: String? = nil, platform: BundleIdPlatform? = nil, seedId: String? = nil) { + public init(identifier: String? = nil, + name: String? = nil, + platform: BundleIdPlatform? = nil, + seedId: String? = nil) + { self.identifier = identifier self.name = name self.platform = platform @@ -74,6 +84,7 @@ public struct BundleId: Codable { } /** + # BundleId.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -84,13 +95,17 @@ public struct BundleId: Codable { public var bundleIdCapabilities: BundleIdCapabilities? public var profiles: Profiles? - public init(app: App? = nil, bundleIdCapabilities: BundleIdCapabilities? = nil, profiles: Profiles? = nil) { + public init(app: App? = nil, + bundleIdCapabilities: BundleIdCapabilities? = nil, + profiles: Profiles? = nil) + { self.app = app self.bundleIdCapabilities = bundleIdCapabilities self.profiles = profiles } /** + # BundleId.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -100,12 +115,15 @@ public struct BundleId: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # BundleId.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -140,6 +158,7 @@ public struct BundleId: Codable { } /** + # BundleId.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -149,7 +168,9 @@ public struct BundleId: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -167,13 +188,14 @@ public struct BundleId: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BundleId.Relationships.BundleIdCapabilities The data and links that describe the relationship between the resources. Full documentation: @@ -184,13 +206,17 @@ public struct BundleId: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BundleId.Relationships.BundleIdCapabilities.Data The type and ID of a related resource. Full documentation: @@ -225,6 +251,7 @@ public struct BundleId: Codable { } /** + # BundleId.Relationships.BundleIdCapabilities.Links The links to the related data and the relationship's self-link. Full documentation: @@ -234,7 +261,9 @@ public struct BundleId: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -252,13 +281,14 @@ public struct BundleId: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # BundleId.Relationships.Profiles The data and links that describe the relationship between the resources. Full documentation: @@ -269,13 +299,17 @@ public struct BundleId: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # BundleId.Relationships.Profiles.Data The type and ID of a related resource. Full documentation: @@ -310,6 +344,7 @@ public struct BundleId: Codable { } /** + # BundleId.Relationships.Profiles.Links The links to the related data and the relationship's self-link. Full documentation: @@ -319,7 +354,9 @@ public struct BundleId: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -337,8 +374,8 @@ public struct BundleId: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/BundleIdCapabilitiesResponse.swift b/Sources/Bagbutik/Models/BundleIdCapabilitiesResponse.swift index 67b1ed52a..ca510cbbc 100644 --- a/Sources/Bagbutik/Models/BundleIdCapabilitiesResponse.swift +++ b/Sources/Bagbutik/Models/BundleIdCapabilitiesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCapabilitiesResponse A response that contains a list of Bundle ID Capability resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BundleIdCapabilitiesResponse: Codable, PagedResponse { public typealias Data = BundleIdCapability + /// The resource data. public let data: [BundleIdCapability] /// Navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct BundleIdCapabilitiesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BundleIdCapability], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BundleIdCapability], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/BundleIdCapability.swift b/Sources/Bagbutik/Models/BundleIdCapability.swift index 5d61d4f00..b0c819953 100644 --- a/Sources/Bagbutik/Models/BundleIdCapability.swift +++ b/Sources/Bagbutik/Models/BundleIdCapability.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCapability The data structure that represents a Bundle ID Capabilities resource. Full documentation: @@ -16,7 +17,10 @@ public struct BundleIdCapability: Codable { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct BundleIdCapability: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # BundleIdCapability.Attributes Attributes that describe a Bundle ID Capabilities resource. Full documentation: @@ -57,7 +62,9 @@ public struct BundleIdCapability: Codable { public var capabilityType: CapabilityType? public var settings: [CapabilitySetting]? - public init(capabilityType: CapabilityType? = nil, settings: [CapabilitySetting]? = nil) { + public init(capabilityType: CapabilityType? = nil, + settings: [CapabilitySetting]? = nil) + { self.capabilityType = capabilityType self.settings = settings } diff --git a/Sources/Bagbutik/Models/BundleIdCapabilityCreateRequest.swift b/Sources/Bagbutik/Models/BundleIdCapabilityCreateRequest.swift index 0de75bc32..3a3a6a862 100644 --- a/Sources/Bagbutik/Models/BundleIdCapabilityCreateRequest.swift +++ b/Sources/Bagbutik/Models/BundleIdCapabilityCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCapabilityCreateRequest The request body you use to create a Bundle ID Capability. Full documentation: @@ -15,6 +16,7 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { } /** + # BundleIdCapabilityCreateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,9 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -47,12 +51,13 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # BundleIdCapabilityCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -62,13 +67,16 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { public let capabilityType: CapabilityType public var settings: [CapabilitySetting]? - public init(capabilityType: CapabilityType, settings: [CapabilitySetting]? = nil) { + public init(capabilityType: CapabilityType, + settings: [CapabilitySetting]? = nil) + { self.capabilityType = capabilityType self.settings = settings } } /** + # BundleIdCapabilityCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -82,6 +90,7 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { } /** + # BundleIdCapabilityCreateRequest.Data.Relationships.BundleId The relationships to other resources that you can set with this request. Full documentation: @@ -95,6 +104,7 @@ public struct BundleIdCapabilityCreateRequest: Codable, RequestBody { } /** + # BundleIdCapabilityCreateRequest.Data.Relationships.BundleId.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/BundleIdCapabilityResponse.swift b/Sources/Bagbutik/Models/BundleIdCapabilityResponse.swift index c8d5309e1..9d8f0822c 100644 --- a/Sources/Bagbutik/Models/BundleIdCapabilityResponse.swift +++ b/Sources/Bagbutik/Models/BundleIdCapabilityResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCapabilityResponse A response that contains a single Bundle ID Capabilities resource. Full documentation: @@ -12,7 +13,9 @@ public struct BundleIdCapabilityResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BundleIdCapability, links: DocumentLinks) { + public init(data: BundleIdCapability, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/BundleIdCapabilityUpdateRequest.swift b/Sources/Bagbutik/Models/BundleIdCapabilityUpdateRequest.swift index 4ec2c7a0e..7ede5e56e 100644 --- a/Sources/Bagbutik/Models/BundleIdCapabilityUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BundleIdCapabilityUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCapabilityUpdateRequest The request body you use to update a Bundle ID Capability. Full documentation: @@ -15,6 +16,7 @@ public struct BundleIdCapabilityUpdateRequest: Codable, RequestBody { } /** + # BundleIdCapabilityUpdateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,9 @@ public struct BundleIdCapabilityUpdateRequest: Codable, RequestBody { public var type: String { "bundleIdCapabilities" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -47,12 +51,13 @@ public struct BundleIdCapabilityUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BundleIdCapabilityUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -62,7 +67,9 @@ public struct BundleIdCapabilityUpdateRequest: Codable, RequestBody { public var capabilityType: CapabilityType? public var settings: [CapabilitySetting]? - public init(capabilityType: CapabilityType? = nil, settings: [CapabilitySetting]? = nil) { + public init(capabilityType: CapabilityType? = nil, + settings: [CapabilitySetting]? = nil) + { self.capabilityType = capabilityType self.settings = settings } diff --git a/Sources/Bagbutik/Models/BundleIdCreateRequest.swift b/Sources/Bagbutik/Models/BundleIdCreateRequest.swift index 5119b0788..0b8d51972 100644 --- a/Sources/Bagbutik/Models/BundleIdCreateRequest.swift +++ b/Sources/Bagbutik/Models/BundleIdCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdCreateRequest The request body you use to create a Bundle ID. Full documentation: @@ -15,6 +16,7 @@ public struct BundleIdCreateRequest: Codable, RequestBody { } /** + # BundleIdCreateRequest.Data The data element of the request body. Full documentation: @@ -43,11 +45,12 @@ public struct BundleIdCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes + case type } /** + # BundleIdCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -59,7 +62,11 @@ public struct BundleIdCreateRequest: Codable, RequestBody { public let platform: BundleIdPlatform public var seedId: String? - public init(identifier: String, name: String, platform: BundleIdPlatform, seedId: String? = nil) { + public init(identifier: String, + name: String, + platform: BundleIdPlatform, + seedId: String? = nil) + { self.identifier = identifier self.name = name self.platform = platform diff --git a/Sources/Bagbutik/Models/BundleIdPlatform.swift b/Sources/Bagbutik/Models/BundleIdPlatform.swift index 9df4cf639..6f0fa481c 100644 --- a/Sources/Bagbutik/Models/BundleIdPlatform.swift +++ b/Sources/Bagbutik/Models/BundleIdPlatform.swift @@ -1,10 +1,11 @@ import Foundation /** - Strings that represent the operating system intended for the bundle. + # BundleIdPlatform + Strings that represent the operating system intended for the bundle. - Full documentation: - + Full documentation: + */ public enum BundleIdPlatform: String, Codable, CaseIterable { /// A string that represents iOS. diff --git a/Sources/Bagbutik/Models/BundleIdResponse.swift b/Sources/Bagbutik/Models/BundleIdResponse.swift index 1d3f6fdd0..fdd8084ea 100644 --- a/Sources/Bagbutik/Models/BundleIdResponse.swift +++ b/Sources/Bagbutik/Models/BundleIdResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdResponse A response that contains a single Bundle IDs resource. Full documentation: @@ -14,7 +15,10 @@ public struct BundleIdResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: BundleId, included: [Included]? = nil, links: DocumentLinks) { + public init(data: BundleId, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/BundleIdUpdateRequest.swift b/Sources/Bagbutik/Models/BundleIdUpdateRequest.swift index 1bb2a0475..3bc97f4cf 100644 --- a/Sources/Bagbutik/Models/BundleIdUpdateRequest.swift +++ b/Sources/Bagbutik/Models/BundleIdUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdUpdateRequest The request body you use to update a Bundle ID. Full documentation: @@ -15,6 +16,7 @@ public struct BundleIdUpdateRequest: Codable, RequestBody { } /** + # BundleIdUpdateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,9 @@ public struct BundleIdUpdateRequest: Codable, RequestBody { public var type: String { "bundleIds" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -47,12 +51,13 @@ public struct BundleIdUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # BundleIdUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: diff --git a/Sources/Bagbutik/Models/BundleIdsResponse.swift b/Sources/Bagbutik/Models/BundleIdsResponse.swift index e54b7304b..9368e56f6 100644 --- a/Sources/Bagbutik/Models/BundleIdsResponse.swift +++ b/Sources/Bagbutik/Models/BundleIdsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # BundleIdsResponse A response that contains a list of Bundle ID resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct BundleIdsResponse: Codable, PagedResponse { public typealias Data = BundleId + /// The resource data. public let data: [BundleId] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct BundleIdsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [BundleId], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [BundleId], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CapabilityOption.swift b/Sources/Bagbutik/Models/CapabilityOption.swift index 65c3824a2..a41c0cff0 100644 --- a/Sources/Bagbutik/Models/CapabilityOption.swift +++ b/Sources/Bagbutik/Models/CapabilityOption.swift @@ -1,6 +1,7 @@ import Foundation /** + # CapabilityOption An option within a capability setting. Full documentation: @@ -14,7 +15,13 @@ public struct CapabilityOption: Codable { public var name: String? public var supportsWildcard: Bool? - public init(description: String? = nil, enabled: Bool? = nil, enabledByDefault: Bool? = nil, key: Key? = nil, name: String? = nil, supportsWildcard: Bool? = nil) { + public init(description: String? = nil, + enabled: Bool? = nil, + enabledByDefault: Bool? = nil, + key: Key? = nil, + name: String? = nil, + supportsWildcard: Bool? = nil) + { self.description = description self.enabled = enabled self.enabledByDefault = enabledByDefault diff --git a/Sources/Bagbutik/Models/CapabilitySetting.swift b/Sources/Bagbutik/Models/CapabilitySetting.swift index d6a61d9b9..dd22d1540 100644 --- a/Sources/Bagbutik/Models/CapabilitySetting.swift +++ b/Sources/Bagbutik/Models/CapabilitySetting.swift @@ -1,6 +1,7 @@ import Foundation /** + # CapabilitySetting An object that represents a capability setting for an app. Full documentation: @@ -16,7 +17,15 @@ public struct CapabilitySetting: Codable { public var options: [CapabilityOption]? public var visible: Bool? - public init(allowedInstances: AllowedInstances? = nil, description: String? = nil, enabledByDefault: Bool? = nil, key: Key? = nil, minInstances: Int? = nil, name: String? = nil, options: [CapabilityOption]? = nil, visible: Bool? = nil) { + public init(allowedInstances: AllowedInstances? = nil, + description: String? = nil, + enabledByDefault: Bool? = nil, + key: Key? = nil, + minInstances: Int? = nil, + name: String? = nil, + options: [CapabilityOption]? = nil, + visible: Bool? = nil) + { self.allowedInstances = allowedInstances self.description = description self.enabledByDefault = enabledByDefault diff --git a/Sources/Bagbutik/Models/CapabilityType.swift b/Sources/Bagbutik/Models/CapabilityType.swift index 10e164b7a..af6d14466 100644 --- a/Sources/Bagbutik/Models/CapabilityType.swift +++ b/Sources/Bagbutik/Models/CapabilityType.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents an app's capability type. + # CapabilityType + String that represents an app's capability type. - Full documentation: - + Full documentation: + */ public enum CapabilityType: String, Codable, CaseIterable { case iCloud = "ICLOUD" diff --git a/Sources/Bagbutik/Models/Certificate.swift b/Sources/Bagbutik/Models/Certificate.swift index 45d28747c..e6874e1cd 100644 --- a/Sources/Bagbutik/Models/Certificate.swift +++ b/Sources/Bagbutik/Models/Certificate.swift @@ -1,6 +1,7 @@ import Foundation /** + # Certificate The data structure that represents a Certificates resource. Full documentation: @@ -16,7 +17,10 @@ public struct Certificate: Codable { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct Certificate: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # Certificate.Attributes Attributes that describe a Certificates resource. Full documentation: @@ -62,7 +67,14 @@ public struct Certificate: Codable { public var platform: BundleIdPlatform? public var serialNumber: String? - public init(certificateContent: String? = nil, certificateType: CertificateType? = nil, displayName: String? = nil, expirationDate: Date? = nil, name: String? = nil, platform: BundleIdPlatform? = nil, serialNumber: String? = nil) { + public init(certificateContent: String? = nil, + certificateType: CertificateType? = nil, + displayName: String? = nil, + expirationDate: Date? = nil, + name: String? = nil, + platform: BundleIdPlatform? = nil, + serialNumber: String? = nil) + { self.certificateContent = certificateContent self.certificateType = certificateType self.displayName = displayName diff --git a/Sources/Bagbutik/Models/CertificateCreateRequest.swift b/Sources/Bagbutik/Models/CertificateCreateRequest.swift index 5112c80ed..075d409d1 100644 --- a/Sources/Bagbutik/Models/CertificateCreateRequest.swift +++ b/Sources/Bagbutik/Models/CertificateCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # CertificateCreateRequest The request body you use to create a Certificate. Full documentation: @@ -15,6 +16,7 @@ public struct CertificateCreateRequest: Codable, RequestBody { } /** + # CertificateCreateRequest.Data The data element of the request body. Full documentation: @@ -43,11 +45,12 @@ public struct CertificateCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes + case type } /** + # CertificateCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -57,7 +60,9 @@ public struct CertificateCreateRequest: Codable, RequestBody { public let certificateType: CertificateType public let csrContent: String - public init(certificateType: CertificateType, csrContent: String) { + public init(certificateType: CertificateType, + csrContent: String) + { self.certificateType = certificateType self.csrContent = csrContent } diff --git a/Sources/Bagbutik/Models/CertificateResponse.swift b/Sources/Bagbutik/Models/CertificateResponse.swift index 8146958b0..07515a9c9 100644 --- a/Sources/Bagbutik/Models/CertificateResponse.swift +++ b/Sources/Bagbutik/Models/CertificateResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CertificateResponse A response that contains a single Certificates resource. Full documentation: @@ -12,7 +13,9 @@ public struct CertificateResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Certificate, links: DocumentLinks) { + public init(data: Certificate, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/CertificateType.swift b/Sources/Bagbutik/Models/CertificateType.swift index ab28e2e72..42036abd9 100644 --- a/Sources/Bagbutik/Models/CertificateType.swift +++ b/Sources/Bagbutik/Models/CertificateType.swift @@ -1,10 +1,11 @@ import Foundation /** - Literal values that represent types of signing certificates. + # CertificateType + Literal values that represent types of signing certificates. - Full documentation: - + Full documentation: + */ public enum CertificateType: String, Codable, CaseIterable { case iOSDevelopment = "IOS_DEVELOPMENT" diff --git a/Sources/Bagbutik/Models/CertificatesResponse.swift b/Sources/Bagbutik/Models/CertificatesResponse.swift index 7bd8f15c4..c92be417e 100644 --- a/Sources/Bagbutik/Models/CertificatesResponse.swift +++ b/Sources/Bagbutik/Models/CertificatesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CertificatesResponse A response that contains a list of Certificates resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CertificatesResponse: Codable, PagedResponse { public typealias Data = Certificate + /// The resource data. public let data: [Certificate] /// Navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct CertificatesResponse: Codable, PagedResponse { /// Paging information public var meta: PagingInformation? - public init(data: [Certificate], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Certificate], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/CiAction.swift b/Sources/Bagbutik/Models/CiAction.swift index bf349daca..57579a62e 100644 --- a/Sources/Bagbutik/Models/CiAction.swift +++ b/Sources/Bagbutik/Models/CiAction.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiAction The data structure that represents an Actions resource. Full documentation: @@ -24,7 +25,15 @@ public struct CiAction: Codable { /// An action’s test configuration. Only set this field for test actions. public var testConfiguration: TestConfiguration? - public init(actionType: CiActionType? = nil, buildDistributionAudience: BuildAudienceType? = nil, destination: Destination? = nil, isRequiredToPass: Bool? = nil, name: String? = nil, platform: Platform? = nil, scheme: String? = nil, testConfiguration: TestConfiguration? = nil) { + public init(actionType: CiActionType? = nil, + buildDistributionAudience: BuildAudienceType? = nil, + destination: Destination? = nil, + isRequiredToPass: Bool? = nil, + name: String? = nil, + platform: Platform? = nil, + scheme: String? = nil, + testConfiguration: TestConfiguration? = nil) + { self.actionType = actionType self.buildDistributionAudience = buildDistributionAudience self.destination = destination @@ -54,6 +63,7 @@ public struct CiAction: Codable { } /** + # CiAction.TestConfiguration The test configuration for a test action. Full documentation: @@ -67,7 +77,10 @@ public struct CiAction: Codable { /// The name of the test plan. This value is only available to test actions that set the `kind` field to `SPECIFIC_TEST_PLANS`. public var testPlanName: String? - public init(kind: Kind? = nil, testDestinations: [CiTestDestination]? = nil, testPlanName: String? = nil) { + public init(kind: Kind? = nil, + testDestinations: [CiTestDestination]? = nil, + testPlanName: String? = nil) + { self.kind = kind self.testDestinations = testDestinations self.testPlanName = testPlanName diff --git a/Sources/Bagbutik/Models/CiActionType.swift b/Sources/Bagbutik/Models/CiActionType.swift index 604bf9798..c9b63fc9f 100644 --- a/Sources/Bagbutik/Models/CiActionType.swift +++ b/Sources/Bagbutik/Models/CiActionType.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the type of an Xcode Cloud workflow’s action. + # CiActionType + A string that represents the type of an Xcode Cloud workflow’s action. - Full documentation: - + Full documentation: + */ public enum CiActionType: String, Codable, CaseIterable { /// The action is a build action. diff --git a/Sources/Bagbutik/Models/CiArtifact.swift b/Sources/Bagbutik/Models/CiArtifact.swift index b2de1bf1e..41ea83ede 100644 --- a/Sources/Bagbutik/Models/CiArtifact.swift +++ b/Sources/Bagbutik/Models/CiArtifact.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiArtifact The data structure that represents an Artifacts resource. Full documentation: @@ -16,7 +17,10 @@ public struct CiArtifact: Codable { /// The attributes that describe the Artifacts resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct CiArtifact: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # CiArtifact.Attributes The attributes that describe an Artifacts resource. Full documentation: @@ -63,7 +68,11 @@ public struct CiArtifact: Codable { /// A string that describes the type of the artifact. public var fileType: FileType? - public init(downloadUrl: String? = nil, fileName: String? = nil, fileSize: Int? = nil, fileType: FileType? = nil) { + public init(downloadUrl: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + fileType: FileType? = nil) + { self.downloadUrl = downloadUrl self.fileName = fileName self.fileSize = fileSize diff --git a/Sources/Bagbutik/Models/CiArtifactResponse.swift b/Sources/Bagbutik/Models/CiArtifactResponse.swift index 9fb14488e..3501905e2 100644 --- a/Sources/Bagbutik/Models/CiArtifactResponse.swift +++ b/Sources/Bagbutik/Models/CiArtifactResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiArtifactResponse A response that contains a single Artifacts resource. Full documentation: @@ -12,7 +13,9 @@ public struct CiArtifactResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiArtifact, links: DocumentLinks) { + public init(data: CiArtifact, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/CiArtifactsResponse.swift b/Sources/Bagbutik/Models/CiArtifactsResponse.swift index 3ef2003a2..c109fad7a 100644 --- a/Sources/Bagbutik/Models/CiArtifactsResponse.swift +++ b/Sources/Bagbutik/Models/CiArtifactsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiArtifactsResponse A response that contains a list of Artifacts resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiArtifactsResponse: Codable, PagedResponse { public typealias Data = CiArtifact + /// The resource data. public let data: [CiArtifact] /// The navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct CiArtifactsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiArtifact], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiArtifact], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/CiBranchPatterns.swift b/Sources/Bagbutik/Models/CiBranchPatterns.swift index cabf5c251..517bdc07a 100644 --- a/Sources/Bagbutik/Models/CiBranchPatterns.swift +++ b/Sources/Bagbutik/Models/CiBranchPatterns.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBranchPatterns Case-sensitive patterns Xcode Cloud uses to determine if a change meets branch names you configure for a workflow’s start condition. Full documentation: @@ -12,12 +13,15 @@ public struct CiBranchPatterns: Codable { /// The list of case-sensitive patterns Xcode Cloud uses to determine if a change meets branch names you configure for a workflow’s start condition. public var patterns: [Patterns]? - public init(isAllMatch: Bool? = nil, patterns: [Patterns]? = nil) { + public init(isAllMatch: Bool? = nil, + patterns: [Patterns]? = nil) + { self.isAllMatch = isAllMatch self.patterns = patterns } /** + # CiBranchPatterns.Patterns A case-sensitive pattern Xcode Cloud uses to determine if a change meets branch names you configure for a workflow’s start condition. Full documentation: @@ -29,7 +33,9 @@ public struct CiBranchPatterns: Codable { /// A case-sensitive string. If the string is a prefix pattern, Xcode Cloud starts a build when the changed branch name starts with this string. Otherwise, Xcode Cloud starts a build when the changed branch name exactly matches this string. public var pattern: String? - public init(isPrefix: Bool? = nil, pattern: String? = nil) { + public init(isPrefix: Bool? = nil, + pattern: String? = nil) + { self.isPrefix = isPrefix self.pattern = pattern } diff --git a/Sources/Bagbutik/Models/CiBranchStartCondition.swift b/Sources/Bagbutik/Models/CiBranchStartCondition.swift index db453106a..ba90c9b60 100644 --- a/Sources/Bagbutik/Models/CiBranchStartCondition.swift +++ b/Sources/Bagbutik/Models/CiBranchStartCondition.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBranchStartCondition Settings for a start condition that starts a build if a branch changes. Full documentation: @@ -14,7 +15,10 @@ public struct CiBranchStartCondition: Codable { /// The source branch name and custom patterns you configure for a workflow that starts a new build for changes to a branch. public var source: CiBranchPatterns? - public init(autoCancel: Bool? = nil, filesAndFoldersRule: CiFilesAndFoldersRule? = nil, source: CiBranchPatterns? = nil) { + public init(autoCancel: Bool? = nil, + filesAndFoldersRule: CiFilesAndFoldersRule? = nil, + source: CiBranchPatterns? = nil) + { self.autoCancel = autoCancel self.filesAndFoldersRule = filesAndFoldersRule self.source = source diff --git a/Sources/Bagbutik/Models/CiBuildAction.swift b/Sources/Bagbutik/Models/CiBuildAction.swift index dc385e950..929df41dd 100644 --- a/Sources/Bagbutik/Models/CiBuildAction.swift +++ b/Sources/Bagbutik/Models/CiBuildAction.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildAction The data structure that represents a Build Actions resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiBuildAction: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiBuildAction: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiBuildAction.Attributes The attributes that describe a Build Actions resource. Full documentation: @@ -77,7 +83,15 @@ public struct CiBuildAction: Codable { /// The date and time when Xcode Cloud started performing the action. public var startedDate: Date? - public init(actionType: CiActionType? = nil, completionStatus: CiCompletionStatus? = nil, executionProgress: CiExecutionProgress? = nil, finishedDate: Date? = nil, isRequiredToPass: Bool? = nil, issueCounts: CiIssueCounts? = nil, name: String? = nil, startedDate: Date? = nil) { + public init(actionType: CiActionType? = nil, + completionStatus: CiCompletionStatus? = nil, + executionProgress: CiExecutionProgress? = nil, + finishedDate: Date? = nil, + isRequiredToPass: Bool? = nil, + issueCounts: CiIssueCounts? = nil, + name: String? = nil, + startedDate: Date? = nil) + { self.actionType = actionType self.completionStatus = completionStatus self.executionProgress = executionProgress @@ -90,6 +104,7 @@ public struct CiBuildAction: Codable { } /** + # CiBuildAction.Relationships The relationships of the Build Actions resource you included in the request and those on which you can operate. Full documentation: @@ -104,6 +119,7 @@ public struct CiBuildAction: Codable { } /** + # CiBuildAction.Relationships.BuildRun The data and links that describe the relationship between the Build Actions and Build Runs resources. Full documentation: @@ -115,12 +131,15 @@ public struct CiBuildAction: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildAction.Relationships.BuildRun.Data The type and ID of a related Build Runs resource. Full documentation: @@ -157,6 +176,7 @@ public struct CiBuildAction: Codable { } /** + # CiBuildAction.Relationships.BuildRun.Links The links to the related Build Runs resource and the relationship’s self-link. Full documentation: @@ -168,7 +188,9 @@ public struct CiBuildAction: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -186,8 +208,8 @@ public struct CiBuildAction: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiBuildActionResponse.swift b/Sources/Bagbutik/Models/CiBuildActionResponse.swift index b2507af8b..e9bbb091d 100644 --- a/Sources/Bagbutik/Models/CiBuildActionResponse.swift +++ b/Sources/Bagbutik/Models/CiBuildActionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildActionResponse A response that contains a single Build Actions resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiBuildActionResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiBuildAction, included: [CiBuildRun]? = nil, links: DocumentLinks) { + public init(data: CiBuildAction, + included: [CiBuildRun]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiBuildActionsResponse.swift b/Sources/Bagbutik/Models/CiBuildActionsResponse.swift index 5e5d14ee4..df29748e5 100644 --- a/Sources/Bagbutik/Models/CiBuildActionsResponse.swift +++ b/Sources/Bagbutik/Models/CiBuildActionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildActionsResponse A response that contains a list of Build Actions resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiBuildActionsResponse: Codable, PagedResponse { public typealias Data = CiBuildAction + /// The resource data. public let data: [CiBuildAction] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiBuildActionsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiBuildAction], included: [CiBuildRun]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiBuildAction], + included: [CiBuildRun]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiBuildRun.swift b/Sources/Bagbutik/Models/CiBuildRun.swift index 4a24df0ed..9114ce7d6 100644 --- a/Sources/Bagbutik/Models/CiBuildRun.swift +++ b/Sources/Bagbutik/Models/CiBuildRun.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildRun The data structure that represents a Build Runs resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiBuildRun: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiBuildRun.Attributes The attributes that describe a Build Runs resource. Full documentation: @@ -85,7 +91,19 @@ public struct CiBuildRun: Codable { /// The date and time when Xcode Cloud started the build. public var startedDate: Date? - public init(cancelReason: CancelReason? = nil, completionStatus: CiCompletionStatus? = nil, createdDate: Date? = nil, destinationCommit: DestinationCommit? = nil, executionProgress: CiExecutionProgress? = nil, finishedDate: Date? = nil, isPullRequestBuild: Bool? = nil, issueCounts: CiIssueCounts? = nil, number: Int? = nil, sourceCommit: SourceCommit? = nil, startReason: StartReason? = nil, startedDate: Date? = nil) { + public init(cancelReason: CancelReason? = nil, + completionStatus: CiCompletionStatus? = nil, + createdDate: Date? = nil, + destinationCommit: DestinationCommit? = nil, + executionProgress: CiExecutionProgress? = nil, + finishedDate: Date? = nil, + isPullRequestBuild: Bool? = nil, + issueCounts: CiIssueCounts? = nil, + number: Int? = nil, + sourceCommit: SourceCommit? = nil, + startReason: StartReason? = nil, + startedDate: Date? = nil) + { self.cancelReason = cancelReason self.completionStatus = completionStatus self.createdDate = createdDate @@ -106,6 +124,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Attributes.DestinationCommit The latest commit of a pull request’s target branch or the source commit for builds that aren’t pull request builds. Full documentation: @@ -123,7 +142,12 @@ public struct CiBuildRun: Codable { /// The commit URL. public var webUrl: String? - public init(author: CiGitUser? = nil, commitSha: String? = nil, committer: CiGitUser? = nil, message: String? = nil, webUrl: String? = nil) { + public init(author: CiGitUser? = nil, + commitSha: String? = nil, + committer: CiGitUser? = nil, + message: String? = nil, + webUrl: String? = nil) + { self.author = author self.commitSha = commitSha self.committer = committer @@ -133,6 +157,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Attributes.SourceCommit The latest commit of a Git branch or tag, or of a pull request’s source branch. Full documentation: @@ -150,7 +175,12 @@ public struct CiBuildRun: Codable { /// The commit URL. public var webUrl: String? - public init(author: CiGitUser? = nil, commitSha: String? = nil, committer: CiGitUser? = nil, message: String? = nil, webUrl: String? = nil) { + public init(author: CiGitUser? = nil, + commitSha: String? = nil, + committer: CiGitUser? = nil, + message: String? = nil, + webUrl: String? = nil) + { self.author = author self.commitSha = commitSha self.committer = committer @@ -170,6 +200,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships The relationships of the Build Runs resource you included in the request and those on which you can operate. Full documentation: @@ -189,7 +220,13 @@ public struct CiBuildRun: Codable { /// The data and links that describe the relationship between the Build Runs and the Workflows resources. public var workflow: Workflow? - public init(builds: Builds? = nil, destinationBranch: DestinationBranch? = nil, product: Product? = nil, pullRequest: PullRequest? = nil, sourceBranchOrTag: SourceBranchOrTag? = nil, workflow: Workflow? = nil) { + public init(builds: Builds? = nil, + destinationBranch: DestinationBranch? = nil, + product: Product? = nil, + pullRequest: PullRequest? = nil, + sourceBranchOrTag: SourceBranchOrTag? = nil, + workflow: Workflow? = nil) + { self.builds = builds self.destinationBranch = destinationBranch self.product = product @@ -199,6 +236,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.Builds The data, links, and paging information that describe the relationship between the Build Runs and the Builds resources. Full documentation: @@ -212,13 +250,17 @@ public struct CiBuildRun: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # CiBuildRun.Relationships.Builds.Data The type and ID of a related Builds resource. Full documentation: @@ -255,6 +297,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.Builds.Links The links to the related Builds resource and the relationship’s self-link. Full documentation: @@ -266,7 +309,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -284,13 +329,14 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiBuildRun.Relationships.DestinationBranch The data and links that describe the relationship between the Build Runs resource and the Git References resource that represents the destination branch. Full documentation: @@ -302,12 +348,15 @@ public struct CiBuildRun: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildRun.Relationships.DestinationBranch.Data The type and ID of a related Git References resource that represents the build run’s destination branch. Full documentation: @@ -344,6 +393,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.DestinationBranch.Links The links to the related Git References resource that represents the destination branch and the relationship’s self-link. Full documentation: @@ -355,7 +405,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -373,13 +425,14 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiBuildRun.Relationships.Product The data and links that describe the relationship between the Build Runs and the Products resources. Full documentation: @@ -391,12 +444,15 @@ public struct CiBuildRun: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildRun.Relationships.Product.Data The type and ID of a related Products resource. Full documentation: @@ -433,6 +489,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.Product.Links The links to the related Products resource and the relationship’s self-link. Full documentation: @@ -444,7 +501,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -462,13 +521,14 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiBuildRun.Relationships.PullRequest The data and links that describe the relationship between the Build Runs and the Pull Requests resources. Full documentation: @@ -480,12 +540,15 @@ public struct CiBuildRun: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildRun.Relationships.PullRequest.Data The type and ID of a related Pull Requests resource. Full documentation: @@ -522,6 +585,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.PullRequest.Links The links to the related Pull Requests resource and the relationship’s self-link. Full documentation: @@ -533,7 +597,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -551,13 +617,14 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiBuildRun.Relationships.SourceBranchOrTag The data and links that describe the relationship between the Build Runs and the Git References resources. Full documentation: @@ -569,12 +636,15 @@ public struct CiBuildRun: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildRun.Relationships.SourceBranchOrTag.Data The type and ID of a related Git References resource that represents the source branch or tag. Full documentation: @@ -611,6 +681,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.SourceBranchOrTag.Links The links to the related Git References resource that represents the source branch or tag and the relationship’s self-link. Full documentation: @@ -622,7 +693,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -640,13 +713,14 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiBuildRun.Relationships.Workflow The data and links that describe the relationship between the Build Runs and the Workflows resources. Full documentation: @@ -658,12 +732,15 @@ public struct CiBuildRun: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiBuildRun.Relationships.Workflow.Data The type and ID of a related Workflows resource. Full documentation: @@ -700,6 +777,7 @@ public struct CiBuildRun: Codable { } /** + # CiBuildRun.Relationships.Workflow.Links The links to the related Workflows resource and the relationship’s self-link. Full documentation: @@ -711,7 +789,9 @@ public struct CiBuildRun: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -729,8 +809,8 @@ public struct CiBuildRun: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiBuildRunCreateRequest.swift b/Sources/Bagbutik/Models/CiBuildRunCreateRequest.swift index 26af1adf5..c6a342c21 100644 --- a/Sources/Bagbutik/Models/CiBuildRunCreateRequest.swift +++ b/Sources/Bagbutik/Models/CiBuildRunCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildRunCreateRequest The request body you use to start a new Xcode Cloud build. Full documentation: @@ -15,6 +16,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data The data element of the request you use to start a new Xcode Cloud build. Full documentation: @@ -28,7 +30,9 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public var relationships: Relationships? - public init(attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # CiBuildRunCreateRequest.Data.Attributes The attributes you set that describe the new Build Runs resource. Full documentation: @@ -71,6 +76,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -86,7 +92,11 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { /// The related Workflows resource. public var workflow: Workflow? - public init(buildRun: BuildRun? = nil, pullRequest: PullRequest? = nil, sourceBranchOrTag: SourceBranchOrTag? = nil, workflow: Workflow? = nil) { + public init(buildRun: BuildRun? = nil, + pullRequest: PullRequest? = nil, + sourceBranchOrTag: SourceBranchOrTag? = nil, + workflow: Workflow? = nil) + { self.buildRun = buildRun self.pullRequest = pullRequest self.sourceBranchOrTag = sourceBranchOrTag @@ -94,6 +104,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.BuildRun The relationship to the Build Runs resource you can set with the request that creates a Build Runs resource. Full documentation: @@ -108,6 +119,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.BuildRun.Data The type and ID of the Build Runs resource that you’re relating with the Build Runs resource you’re creating. Full documentation: @@ -145,6 +157,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.PullRequest The relationship to the Pull Requests resource you can set with the request that creates a Build Runs resource. Full documentation: @@ -159,6 +172,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.PullRequest.Data The type and ID of the Pull Requests resource that you’re relating with the Build Runs resource you’re creating. Full documentation: @@ -196,6 +210,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.SourceBranchOrTag The relationship to the Git References resource that represents the source branch or tag you can set with the request that creates a Build Runs resource. Full documentation: @@ -210,6 +225,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.SourceBranchOrTag.Data The type and ID of the Git References resource that represents the source branch or tag you relate with the Build Runs resource you’re creating. Full documentation: @@ -247,6 +263,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.Workflow The relationship to the Workflows resource you can set with the request that creates a Build Runs resource. Full documentation: @@ -261,6 +278,7 @@ public struct CiBuildRunCreateRequest: Codable, RequestBody { } /** + # CiBuildRunCreateRequest.Data.Relationships.Workflow.Data The type and ID of the Workflows resource that you’re relating with the Build Runs resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/CiBuildRunResponse.swift b/Sources/Bagbutik/Models/CiBuildRunResponse.swift index 9c67bcf24..f5982f1ad 100644 --- a/Sources/Bagbutik/Models/CiBuildRunResponse.swift +++ b/Sources/Bagbutik/Models/CiBuildRunResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildRunResponse A response that contains a single Build Runs resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiBuildRunResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiBuildRun, included: [Included]? = nil, links: DocumentLinks) { + public init(data: CiBuildRun, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiBuildRunsResponse.swift b/Sources/Bagbutik/Models/CiBuildRunsResponse.swift index 3b0f0ee51..a301e1765 100644 --- a/Sources/Bagbutik/Models/CiBuildRunsResponse.swift +++ b/Sources/Bagbutik/Models/CiBuildRunsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiBuildRunsResponse A response that contains a list of Build Runs resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiBuildRunsResponse: Codable, PagedResponse { public typealias Data = CiBuildRun + /// The resource data. public let data: [CiBuildRun] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiBuildRunsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiBuildRun], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiBuildRun], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiCompletionStatus.swift b/Sources/Bagbutik/Models/CiCompletionStatus.swift index 39d44773e..d552d4601 100644 --- a/Sources/Bagbutik/Models/CiCompletionStatus.swift +++ b/Sources/Bagbutik/Models/CiCompletionStatus.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the completion status of an Xcode Cloud build. + # CiCompletionStatus + A string that represents the completion status of an Xcode Cloud build. - Full documentation: - + Full documentation: + */ public enum CiCompletionStatus: String, Codable, CaseIterable { /// Xcode Cloud successfully completed a build. diff --git a/Sources/Bagbutik/Models/CiExecutionProgress.swift b/Sources/Bagbutik/Models/CiExecutionProgress.swift index 673b0302c..56d8c2c34 100644 --- a/Sources/Bagbutik/Models/CiExecutionProgress.swift +++ b/Sources/Bagbutik/Models/CiExecutionProgress.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the progress of an ongoing Xcode Cloud build. + # CiExecutionProgress + A string that represents the progress of an ongoing Xcode Cloud build. - Full documentation: - + Full documentation: + */ public enum CiExecutionProgress: String, Codable, CaseIterable { /// Xcode Cloud hasn’t started the build. diff --git a/Sources/Bagbutik/Models/CiFilesAndFoldersRule.swift b/Sources/Bagbutik/Models/CiFilesAndFoldersRule.swift index fdb20711d..7569a1c35 100644 --- a/Sources/Bagbutik/Models/CiFilesAndFoldersRule.swift +++ b/Sources/Bagbutik/Models/CiFilesAndFoldersRule.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiFilesAndFoldersRule Settings Xcode Cloud uses to determine whether a change should start a new build or not. Full documentation: @@ -12,7 +13,9 @@ public struct CiFilesAndFoldersRule: Codable { /// A string that indicates whether a workflow’s start condition’s Files and Folders setting should start a new build or not for a change. public var mode: Mode? - public init(matchers: [CiStartConditionFileMatcher]? = nil, mode: Mode? = nil) { + public init(matchers: [CiStartConditionFileMatcher]? = nil, + mode: Mode? = nil) + { self.matchers = matchers self.mode = mode } diff --git a/Sources/Bagbutik/Models/CiGitRefKind.swift b/Sources/Bagbutik/Models/CiGitRefKind.swift index c545793d3..0c35a69c9 100644 --- a/Sources/Bagbutik/Models/CiGitRefKind.swift +++ b/Sources/Bagbutik/Models/CiGitRefKind.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents the kind of a Git References resource. + # CiGitRefKind + A string that represents the kind of a Git References resource. - Full documentation: - + Full documentation: + */ public enum CiGitRefKind: String, Codable, CaseIterable { /// The Git reference represents a branch. diff --git a/Sources/Bagbutik/Models/CiGitUser.swift b/Sources/Bagbutik/Models/CiGitUser.swift index a7dab1bce..85e8f5f59 100644 --- a/Sources/Bagbutik/Models/CiGitUser.swift +++ b/Sources/Bagbutik/Models/CiGitUser.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiGitUser The data structure that represents a Git Users resource. Full documentation: @@ -12,7 +13,9 @@ public struct CiGitUser: Codable { /// The name of the Git user. public var displayName: String? - public init(avatarUrl: String? = nil, displayName: String? = nil) { + public init(avatarUrl: String? = nil, + displayName: String? = nil) + { self.avatarUrl = avatarUrl self.displayName = displayName } diff --git a/Sources/Bagbutik/Models/CiIssue.swift b/Sources/Bagbutik/Models/CiIssue.swift index 477c0156c..cbe45ccb5 100644 --- a/Sources/Bagbutik/Models/CiIssue.swift +++ b/Sources/Bagbutik/Models/CiIssue.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiIssue The data structure that represents an Issues resource. Full documentation: @@ -16,7 +17,10 @@ public struct CiIssue: Codable { /// The attributes that describe the Issues resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct CiIssue: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # CiIssue.Attributes The attributes that describe an Issues resource. Full documentation: @@ -63,7 +68,11 @@ public struct CiIssue: Codable { /// Information about the issue that occurred. public var message: String? - public init(category: String? = nil, fileSource: FileLocation? = nil, issueType: IssueType? = nil, message: String? = nil) { + public init(category: String? = nil, + fileSource: FileLocation? = nil, + issueType: IssueType? = nil, + message: String? = nil) + { self.category = category self.fileSource = fileSource self.issueType = issueType diff --git a/Sources/Bagbutik/Models/CiIssueCounts.swift b/Sources/Bagbutik/Models/CiIssueCounts.swift index fefbe164c..6053e3116 100644 --- a/Sources/Bagbutik/Models/CiIssueCounts.swift +++ b/Sources/Bagbutik/Models/CiIssueCounts.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiIssueCounts The data structure that represents an Issue Counts resource. Full documentation: @@ -16,7 +17,11 @@ public struct CiIssueCounts: Codable { /// The number of warnings. public var warnings: Int? - public init(analyzerWarnings: Int? = nil, errors: Int? = nil, testFailures: Int? = nil, warnings: Int? = nil) { + public init(analyzerWarnings: Int? = nil, + errors: Int? = nil, + testFailures: Int? = nil, + warnings: Int? = nil) + { self.analyzerWarnings = analyzerWarnings self.errors = errors self.testFailures = testFailures diff --git a/Sources/Bagbutik/Models/CiIssueResponse.swift b/Sources/Bagbutik/Models/CiIssueResponse.swift index 365105a7c..f84247c7d 100644 --- a/Sources/Bagbutik/Models/CiIssueResponse.swift +++ b/Sources/Bagbutik/Models/CiIssueResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiIssueResponse A response that contains a single Issues resource. Full documentation: @@ -12,7 +13,9 @@ public struct CiIssueResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiIssue, links: DocumentLinks) { + public init(data: CiIssue, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/CiIssuesResponse.swift b/Sources/Bagbutik/Models/CiIssuesResponse.swift index 9afb2ce72..7115d84b8 100644 --- a/Sources/Bagbutik/Models/CiIssuesResponse.swift +++ b/Sources/Bagbutik/Models/CiIssuesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiIssuesResponse A response that contains a list of Issues resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiIssuesResponse: Codable, PagedResponse { public typealias Data = CiIssue + /// The resource data. public let data: [CiIssue] /// The navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct CiIssuesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiIssue], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiIssue], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/CiMacOsVersion.swift b/Sources/Bagbutik/Models/CiMacOsVersion.swift index e61af48fe..d5cd87c74 100644 --- a/Sources/Bagbutik/Models/CiMacOsVersion.swift +++ b/Sources/Bagbutik/Models/CiMacOsVersion.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiMacOsVersion The data structure that represents a macOS Versions resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiMacOsVersion: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiMacOsVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiMacOsVersion.Attributes The attributes that describe a macOS Versions resource. Full documentation: @@ -65,13 +71,16 @@ public struct CiMacOsVersion: Codable { /// The macOS version of the simulated environment. public var version: String? - public init(name: String? = nil, version: String? = nil) { + public init(name: String? = nil, + version: String? = nil) + { self.name = name self.version = version } } /** + # CiMacOsVersion.Relationships The relationships of the macOS Versions resource you included in the request and those on which you can operate. Full documentation: @@ -86,6 +95,7 @@ public struct CiMacOsVersion: Codable { } /** + # CiMacOsVersion.Relationships.XcodeVersions The data, links, and paging information that describe the relationship between the macOS Versions and Xcode Versions resources. Full documentation: @@ -99,13 +109,17 @@ public struct CiMacOsVersion: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # CiMacOsVersion.Relationships.XcodeVersions.Data The type and ID of a related Xcode Versions resource. Full documentation: @@ -142,6 +156,7 @@ public struct CiMacOsVersion: Codable { } /** + # CiMacOsVersion.Relationships.XcodeVersions.Links The links to the related Xcode Versions resources and the relationship’s self-link. Full documentation: @@ -153,7 +168,9 @@ public struct CiMacOsVersion: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -171,8 +188,8 @@ public struct CiMacOsVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiMacOsVersionResponse.swift b/Sources/Bagbutik/Models/CiMacOsVersionResponse.swift index 767ce5d20..c836ba86a 100644 --- a/Sources/Bagbutik/Models/CiMacOsVersionResponse.swift +++ b/Sources/Bagbutik/Models/CiMacOsVersionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiMacOsVersionResponse A response that contains a single macOS Versions resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiMacOsVersionResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiMacOsVersion, included: [CiXcodeVersion]? = nil, links: DocumentLinks) { + public init(data: CiMacOsVersion, + included: [CiXcodeVersion]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiMacOsVersionsResponse.swift b/Sources/Bagbutik/Models/CiMacOsVersionsResponse.swift index 3a7a24a60..2a68740cf 100644 --- a/Sources/Bagbutik/Models/CiMacOsVersionsResponse.swift +++ b/Sources/Bagbutik/Models/CiMacOsVersionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiMacOsVersionsResponse A response that contains a list of macOS Versions resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiMacOsVersionsResponse: Codable, PagedResponse { public typealias Data = CiMacOsVersion + /// The resource data. public let data: [CiMacOsVersion] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiMacOsVersionsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiMacOsVersion], included: [CiXcodeVersion]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiMacOsVersion], + included: [CiXcodeVersion]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiProduct.swift b/Sources/Bagbutik/Models/CiProduct.swift index c1ca42d42..1c2ab1d27 100644 --- a/Sources/Bagbutik/Models/CiProduct.swift +++ b/Sources/Bagbutik/Models/CiProduct.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiProduct The data structure that represents a Products resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiProduct: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiProduct: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiProduct.Attributes The attributes that describe a Products resource. Full documentation: @@ -67,7 +73,10 @@ public struct CiProduct: Codable { /// A string that indicates whether the Xcode Cloud product is a framework or an app. public var productType: ProductType? - public init(createdDate: Date? = nil, name: String? = nil, productType: ProductType? = nil) { + public init(createdDate: Date? = nil, + name: String? = nil, + productType: ProductType? = nil) + { self.createdDate = createdDate self.name = name self.productType = productType @@ -80,6 +89,7 @@ public struct CiProduct: Codable { } /** + # CiProduct.Relationships The relationships of the Products resource you included in the request and those on which you can operate. Full documentation: @@ -93,13 +103,17 @@ public struct CiProduct: Codable { /// The related primary repository. public var primaryRepositories: PrimaryRepositories? - public init(app: App? = nil, bundleId: BundleId? = nil, primaryRepositories: PrimaryRepositories? = nil) { + public init(app: App? = nil, + bundleId: BundleId? = nil, + primaryRepositories: PrimaryRepositories? = nil) + { self.app = app self.bundleId = bundleId self.primaryRepositories = primaryRepositories } /** + # CiProduct.Relationships.App The data and links that describe the relationship between the Products and Apps resources. Full documentation: @@ -111,12 +125,15 @@ public struct CiProduct: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiProduct.Relationships.App.Data The type and ID of a related Apps resource. Full documentation: @@ -153,6 +170,7 @@ public struct CiProduct: Codable { } /** + # CiProduct.Relationships.App.Links The links to the related Apps resource and the relationship self-link. Full documentation: @@ -164,7 +182,9 @@ public struct CiProduct: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -182,13 +202,14 @@ public struct CiProduct: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiProduct.Relationships.BundleId The data and links that describe the relationship between the Products and the Bundle IDs resources. Full documentation: @@ -200,12 +221,15 @@ public struct CiProduct: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiProduct.Relationships.BundleId.Data The type and ID of a related Bundle IDs resource. Full documentation: @@ -242,6 +266,7 @@ public struct CiProduct: Codable { } /** + # CiProduct.Relationships.BundleId.Links The links to the related Bundle IDs resource and the relationship’s self-link. Full documentation: @@ -253,7 +278,9 @@ public struct CiProduct: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -271,13 +298,14 @@ public struct CiProduct: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiProduct.Relationships.PrimaryRepositories The data, links, and paging information that describe the relationship between the Products resource and the Repositories resource that represents the primary repository. Full documentation: @@ -291,13 +319,17 @@ public struct CiProduct: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # CiProduct.Relationships.PrimaryRepositories.Data The type and ID of a related Repositories resource that represents the product’s primary repositories. Full documentation: @@ -334,6 +366,7 @@ public struct CiProduct: Codable { } /** + # CiProduct.Relationships.PrimaryRepositories.Links The links to the related Repositories resources that represents primary repositories and the relationship’s self-link. Full documentation: @@ -345,7 +378,9 @@ public struct CiProduct: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -363,8 +398,8 @@ public struct CiProduct: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiProductResponse.swift b/Sources/Bagbutik/Models/CiProductResponse.swift index bb3f3140e..ca288a420 100644 --- a/Sources/Bagbutik/Models/CiProductResponse.swift +++ b/Sources/Bagbutik/Models/CiProductResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiProductResponse A response that contains a single Products resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiProductResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiProduct, included: [Included]? = nil, links: DocumentLinks) { + public init(data: CiProduct, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiProductsResponse.swift b/Sources/Bagbutik/Models/CiProductsResponse.swift index cbf08b927..a6ca829d6 100644 --- a/Sources/Bagbutik/Models/CiProductsResponse.swift +++ b/Sources/Bagbutik/Models/CiProductsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiProductsResponse A response that contains a list of Products resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiProductsResponse: Codable, PagedResponse { public typealias Data = CiProduct + /// The resource data. public let data: [CiProduct] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiProductsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiProduct], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiProduct], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiPullRequestStartCondition.swift b/Sources/Bagbutik/Models/CiPullRequestStartCondition.swift index 6887a9106..414a59832 100644 --- a/Sources/Bagbutik/Models/CiPullRequestStartCondition.swift +++ b/Sources/Bagbutik/Models/CiPullRequestStartCondition.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiPullRequestStartCondition Settings for a start condition that starts a build if a pull request changes. Full documentation: @@ -16,7 +17,11 @@ public struct CiPullRequestStartCondition: Codable { /// The source branch name and custom patterns you configure for a workflow that starts a new build for changes to a pull request. public var source: CiBranchPatterns? - public init(autoCancel: Bool? = nil, destination: CiBranchPatterns? = nil, filesAndFoldersRule: CiFilesAndFoldersRule? = nil, source: CiBranchPatterns? = nil) { + public init(autoCancel: Bool? = nil, + destination: CiBranchPatterns? = nil, + filesAndFoldersRule: CiFilesAndFoldersRule? = nil, + source: CiBranchPatterns? = nil) + { self.autoCancel = autoCancel self.destination = destination self.filesAndFoldersRule = filesAndFoldersRule diff --git a/Sources/Bagbutik/Models/CiScheduledStartCondition.swift b/Sources/Bagbutik/Models/CiScheduledStartCondition.swift index 68d0e600a..32ac9d5d9 100644 --- a/Sources/Bagbutik/Models/CiScheduledStartCondition.swift +++ b/Sources/Bagbutik/Models/CiScheduledStartCondition.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiScheduledStartCondition Settings for a start condition that starts a build based on a schedule. Full documentation: @@ -12,12 +13,15 @@ public struct CiScheduledStartCondition: Codable { /// The source branch name and custom patterns you configure for a workflow that starts a new build on a schedule. public var source: CiBranchPatterns? - public init(schedule: Schedule? = nil, source: CiBranchPatterns? = nil) { + public init(schedule: Schedule? = nil, + source: CiBranchPatterns? = nil) + { self.schedule = schedule self.source = source } /** + # CiScheduledStartCondition.Schedule The schedule of an Xcode Cloud workflow that starts a new build based on a schedule. Full documentation: @@ -35,7 +39,12 @@ public struct CiScheduledStartCondition: Codable { /// A string that represents the time zone you configure for the start condition that starts a new build on a schedule. public var timezone: String? - public init(days: Items? = nil, frequency: Frequency? = nil, hour: Int? = nil, minute: Int? = nil, timezone: String? = nil) { + public init(days: Items? = nil, + frequency: Frequency? = nil, + hour: Int? = nil, + minute: Int? = nil, + timezone: String? = nil) + { self.days = days self.frequency = frequency self.hour = hour diff --git a/Sources/Bagbutik/Models/CiStartConditionFileMatcher.swift b/Sources/Bagbutik/Models/CiStartConditionFileMatcher.swift index 913ea13a5..574cbae16 100644 --- a/Sources/Bagbutik/Models/CiStartConditionFileMatcher.swift +++ b/Sources/Bagbutik/Models/CiStartConditionFileMatcher.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiStartConditionFileMatcher The data structure that represents a Start Condition File Matchers resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiStartConditionFileMatcher: Codable { /// The filename you configure for a custom start condition’s Files and Folders setting. public var fileName: String? - public init(directory: String? = nil, fileExtension: String? = nil, fileName: String? = nil) { + public init(directory: String? = nil, + fileExtension: String? = nil, + fileName: String? = nil) + { self.directory = directory self.fileExtension = fileExtension self.fileName = fileName diff --git a/Sources/Bagbutik/Models/CiTagPatterns.swift b/Sources/Bagbutik/Models/CiTagPatterns.swift index ec5b41ab8..934b88f4c 100644 --- a/Sources/Bagbutik/Models/CiTagPatterns.swift +++ b/Sources/Bagbutik/Models/CiTagPatterns.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTagPatterns Case-sensitive patterns Xcode Cloud uses to determine if a change meets tag names you configure for a workflow’s start condition. Full documentation: @@ -12,12 +13,15 @@ public struct CiTagPatterns: Codable { /// The list of case-sensitive patterns Xcode Cloud uses to determine if a change meets tag names you configure for a workflow’s start condition. public var patterns: [Patterns]? - public init(isAllMatch: Bool? = nil, patterns: [Patterns]? = nil) { + public init(isAllMatch: Bool? = nil, + patterns: [Patterns]? = nil) + { self.isAllMatch = isAllMatch self.patterns = patterns } /** + # CiTagPatterns.Patterns A case-sensitive pattern Xcode Cloud uses to determine if a change meets tag names you configure for a workflow’s start condition. Full documentation: @@ -29,7 +33,9 @@ public struct CiTagPatterns: Codable { /// A case-sensitive string. If the string is a prefix pattern, Xcode Cloud starts a build when the changed tag name starts with this string. Otherwise, Xcode Cloud starts a build when the changed tag name exactly matches this string. public var pattern: String? - public init(isPrefix: Bool? = nil, pattern: String? = nil) { + public init(isPrefix: Bool? = nil, + pattern: String? = nil) + { self.isPrefix = isPrefix self.pattern = pattern } diff --git a/Sources/Bagbutik/Models/CiTagStartCondition.swift b/Sources/Bagbutik/Models/CiTagStartCondition.swift index ecb1a98f1..272e987bb 100644 --- a/Sources/Bagbutik/Models/CiTagStartCondition.swift +++ b/Sources/Bagbutik/Models/CiTagStartCondition.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTagStartCondition Settings for a start condition that starts a build if a Git tag changes. Full documentation: @@ -14,7 +15,10 @@ public struct CiTagStartCondition: Codable { /// The source branch name and custom patterns you configure for a workflow that starts a new build for changes to a Git tag. public var source: CiTagPatterns? - public init(autoCancel: Bool? = nil, filesAndFoldersRule: CiFilesAndFoldersRule? = nil, source: CiTagPatterns? = nil) { + public init(autoCancel: Bool? = nil, + filesAndFoldersRule: CiFilesAndFoldersRule? = nil, + source: CiTagPatterns? = nil) + { self.autoCancel = autoCancel self.filesAndFoldersRule = filesAndFoldersRule self.source = source diff --git a/Sources/Bagbutik/Models/CiTestDestination.swift b/Sources/Bagbutik/Models/CiTestDestination.swift index d814ccb1c..c6578c1ad 100644 --- a/Sources/Bagbutik/Models/CiTestDestination.swift +++ b/Sources/Bagbutik/Models/CiTestDestination.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTestDestination The test destination of a test action Xcode Cloud performs. Full documentation: @@ -18,7 +19,12 @@ public struct CiTestDestination: Codable { /// The name of the operating system of the simulated environment Xcode Cloud uses for a test action. public var runtimeName: String? - public init(deviceTypeIdentifier: String? = nil, deviceTypeName: String? = nil, kind: CiTestDestinationKind? = nil, runtimeIdentifier: String? = nil, runtimeName: String? = nil) { + public init(deviceTypeIdentifier: String? = nil, + deviceTypeName: String? = nil, + kind: CiTestDestinationKind? = nil, + runtimeIdentifier: String? = nil, + runtimeName: String? = nil) + { self.deviceTypeIdentifier = deviceTypeIdentifier self.deviceTypeName = deviceTypeName self.kind = kind diff --git a/Sources/Bagbutik/Models/CiTestDestinationKind.swift b/Sources/Bagbutik/Models/CiTestDestinationKind.swift index 2074c744a..f5eab5364 100644 --- a/Sources/Bagbutik/Models/CiTestDestinationKind.swift +++ b/Sources/Bagbutik/Models/CiTestDestinationKind.swift @@ -1,10 +1,11 @@ import Foundation /** - The string that represents the kind of a test destination. + # CiTestDestinationKind + The string that represents the kind of a test destination. - Full documentation: - + Full documentation: + */ public enum CiTestDestinationKind: String, Codable, CaseIterable { /// The test destination is a simulated device. diff --git a/Sources/Bagbutik/Models/CiTestResult.swift b/Sources/Bagbutik/Models/CiTestResult.swift index ab8b788d3..50ec3e79e 100644 --- a/Sources/Bagbutik/Models/CiTestResult.swift +++ b/Sources/Bagbutik/Models/CiTestResult.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTestResult The data structure that represents a Test Results resource. Full documentation: @@ -16,7 +17,10 @@ public struct CiTestResult: Codable { /// The attributes that describe the Test Results resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct CiTestResult: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # CiTestResult.Attributes The attributes that describe a Test Results resource. Full documentation: @@ -67,7 +72,13 @@ public struct CiTestResult: Codable { /// Test status information; for example, whether the test succeeded or failed. public var status: CiTestStatus? - public init(className: String? = nil, destinationTestResults: [DestinationTestResults]? = nil, fileSource: FileLocation? = nil, message: String? = nil, name: String? = nil, status: CiTestStatus? = nil) { + public init(className: String? = nil, + destinationTestResults: [DestinationTestResults]? = nil, + fileSource: FileLocation? = nil, + message: String? = nil, + name: String? = nil, + status: CiTestStatus? = nil) + { self.className = className self.destinationTestResults = destinationTestResults self.fileSource = fileSource @@ -77,6 +88,7 @@ public struct CiTestResult: Codable { } /** + # CiTestResult.Attributes.DestinationTestResults The results of a test action Xcode Cloud performed using a specific test destination. Full documentation: @@ -94,7 +106,12 @@ public struct CiTestResult: Codable { /// The unique identifier of a test result for a specific simulated device. public var uuid: String? - public init(deviceName: String? = nil, duration: Double? = nil, osVersion: String? = nil, status: CiTestStatus? = nil, uuid: String? = nil) { + public init(deviceName: String? = nil, + duration: Double? = nil, + osVersion: String? = nil, + status: CiTestStatus? = nil, + uuid: String? = nil) + { self.deviceName = deviceName self.duration = duration self.osVersion = osVersion diff --git a/Sources/Bagbutik/Models/CiTestResultResponse.swift b/Sources/Bagbutik/Models/CiTestResultResponse.swift index a3e77f511..81b6e9ac2 100644 --- a/Sources/Bagbutik/Models/CiTestResultResponse.swift +++ b/Sources/Bagbutik/Models/CiTestResultResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTestResultResponse A response that contains a single Test Results resource. Full documentation: @@ -12,7 +13,9 @@ public struct CiTestResultResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiTestResult, links: DocumentLinks) { + public init(data: CiTestResult, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/CiTestResultsResponse.swift b/Sources/Bagbutik/Models/CiTestResultsResponse.swift index 9682dcc82..576971d48 100644 --- a/Sources/Bagbutik/Models/CiTestResultsResponse.swift +++ b/Sources/Bagbutik/Models/CiTestResultsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiTestResultsResponse A response that contains a list of Test Results resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiTestResultsResponse: Codable, PagedResponse { public typealias Data = CiTestResult + /// The resource data. public let data: [CiTestResult] /// The navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct CiTestResultsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiTestResult], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiTestResult], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/CiTestStatus.swift b/Sources/Bagbutik/Models/CiTestStatus.swift index dddaf3696..4b3202dad 100644 --- a/Sources/Bagbutik/Models/CiTestStatus.swift +++ b/Sources/Bagbutik/Models/CiTestStatus.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that represents test status information. + # CiTestStatus + A string that represents test status information. - Full documentation: - + Full documentation: + */ public enum CiTestStatus: String, Codable, CaseIterable { /// The tests passed. diff --git a/Sources/Bagbutik/Models/CiWorkflow.swift b/Sources/Bagbutik/Models/CiWorkflow.swift index 564f27bcb..c3b91f465 100644 --- a/Sources/Bagbutik/Models/CiWorkflow.swift +++ b/Sources/Bagbutik/Models/CiWorkflow.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiWorkflow The data structure that represents a Workflows resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiWorkflow: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiWorkflow: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiWorkflow.Attributes The attributes that describe a Workflows resource. Full documentation: @@ -85,7 +91,19 @@ public struct CiWorkflow: Codable { /// The workflow’s start condition that starts new builds for changes to a tag. public var tagStartCondition: CiTagStartCondition? - public init(actions: [CiAction]? = nil, branchStartCondition: CiBranchStartCondition? = nil, clean: Bool? = nil, containerFilePath: String? = nil, description: String? = nil, isEnabled: Bool? = nil, isLockedForEditing: Bool? = nil, lastModifiedDate: Date? = nil, name: String? = nil, pullRequestStartCondition: CiPullRequestStartCondition? = nil, scheduledStartCondition: CiScheduledStartCondition? = nil, tagStartCondition: CiTagStartCondition? = nil) { + public init(actions: [CiAction]? = nil, + branchStartCondition: CiBranchStartCondition? = nil, + clean: Bool? = nil, + containerFilePath: String? = nil, + description: String? = nil, + isEnabled: Bool? = nil, + isLockedForEditing: Bool? = nil, + lastModifiedDate: Date? = nil, + name: String? = nil, + pullRequestStartCondition: CiPullRequestStartCondition? = nil, + scheduledStartCondition: CiScheduledStartCondition? = nil, + tagStartCondition: CiTagStartCondition? = nil) + { self.actions = actions self.branchStartCondition = branchStartCondition self.clean = clean @@ -102,6 +120,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships The relationships of the Workflows resource you included in the request and those on which you can operate. Full documentation: @@ -117,7 +136,11 @@ public struct CiWorkflow: Codable { /// The related Xcode Versions resource. public var xcodeVersion: XcodeVersion? - public init(macOsVersion: MacOsVersion? = nil, product: Product? = nil, repository: Repository? = nil, xcodeVersion: XcodeVersion? = nil) { + public init(macOsVersion: MacOsVersion? = nil, + product: Product? = nil, + repository: Repository? = nil, + xcodeVersion: XcodeVersion? = nil) + { self.macOsVersion = macOsVersion self.product = product self.repository = repository @@ -125,6 +148,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships.MacOsVersion The data and links that describe the relationship between the Workflows and the macOS Versions resources. Full documentation: @@ -136,12 +160,15 @@ public struct CiWorkflow: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiWorkflow.Relationships.MacOsVersion.Data The type and ID of a related macOS Versions resource. Full documentation: @@ -178,6 +205,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships.MacOsVersion.Links The links to the related macOS Versions resource and the relationship’s self-link. Full documentation: @@ -189,7 +217,9 @@ public struct CiWorkflow: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -207,13 +237,14 @@ public struct CiWorkflow: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiWorkflow.Relationships.Product The data and links that describe the relationship between the Workflows and the Products resources. Full documentation: @@ -225,12 +256,15 @@ public struct CiWorkflow: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiWorkflow.Relationships.Product.Data The type and ID of a related Products resource. Full documentation: @@ -267,6 +301,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships.Product.Links The links to the related Products resource and the relationship’s self-link. Full documentation: @@ -278,7 +313,9 @@ public struct CiWorkflow: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -296,13 +333,14 @@ public struct CiWorkflow: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiWorkflow.Relationships.Repository The data and links that describe the relationship between the Workflows and the Repositories resources. Full documentation: @@ -314,12 +352,15 @@ public struct CiWorkflow: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiWorkflow.Relationships.Repository.Data The type and ID of a related Repositories resource. Full documentation: @@ -356,6 +397,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships.Repository.Links The links to the related Repositories resource and the relationship’s self-link. Full documentation: @@ -367,7 +409,9 @@ public struct CiWorkflow: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -385,13 +429,14 @@ public struct CiWorkflow: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # CiWorkflow.Relationships.XcodeVersion The data and links that describe the relationship between the Workflows and the Xcode Versions resources. Full documentation: @@ -403,12 +448,15 @@ public struct CiWorkflow: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CiWorkflow.Relationships.XcodeVersion.Data The type and ID of a related Xcode Versions resource. Full documentation: @@ -445,6 +493,7 @@ public struct CiWorkflow: Codable { } /** + # CiWorkflow.Relationships.XcodeVersion.Links The links to the related Xcode Versions resource and the relationship’s self-link. Full documentation: @@ -456,7 +505,9 @@ public struct CiWorkflow: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -474,8 +525,8 @@ public struct CiWorkflow: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiWorkflowCreateRequest.swift b/Sources/Bagbutik/Models/CiWorkflowCreateRequest.swift index fecd00f3e..5a3102e24 100644 --- a/Sources/Bagbutik/Models/CiWorkflowCreateRequest.swift +++ b/Sources/Bagbutik/Models/CiWorkflowCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiWorkflowCreateRequest The request body you use to create a new Xcode Cloud workflow. Full documentation: @@ -15,6 +16,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data The data element of the request you use to create a new Xcode Cloud workflow. Full documentation: @@ -28,7 +30,9 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # CiWorkflowCreateRequest.Data.Attributes The attributes you set that describe the new Workflows resource. Full documentation: @@ -85,7 +90,18 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { /// A start condition that starts new builds for changes to a tag. public var tagStartCondition: CiTagStartCondition? - public init(actions: [CiAction], branchStartCondition: CiBranchStartCondition? = nil, clean: Bool, containerFilePath: String, description: String, isEnabled: Bool, isLockedForEditing: Bool? = nil, name: String, pullRequestStartCondition: CiPullRequestStartCondition? = nil, scheduledStartCondition: CiScheduledStartCondition? = nil, tagStartCondition: CiTagStartCondition? = nil) { + public init(actions: [CiAction], + branchStartCondition: CiBranchStartCondition? = nil, + clean: Bool, + containerFilePath: String, + description: String, + isEnabled: Bool, + isLockedForEditing: Bool? = nil, + name: String, + pullRequestStartCondition: CiPullRequestStartCondition? = nil, + scheduledStartCondition: CiScheduledStartCondition? = nil, + tagStartCondition: CiTagStartCondition? = nil) + { self.actions = actions self.branchStartCondition = branchStartCondition self.clean = clean @@ -101,6 +117,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -116,7 +133,11 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { /// The related Xcode Versions resource. public let xcodeVersion: XcodeVersion - public init(macOsVersion: MacOsVersion, product: Product, repository: Repository, xcodeVersion: XcodeVersion) { + public init(macOsVersion: MacOsVersion, + product: Product, + repository: Repository, + xcodeVersion: XcodeVersion) + { self.macOsVersion = macOsVersion self.product = product self.repository = repository @@ -124,6 +145,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.MacOsVersion The relationship to the macOS Versions resource you set with the request that creates a Workflows resource. Full documentation: @@ -138,6 +160,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.MacOsVersion.Data The type and ID of the macOS Versions resource that you’re relating with the Workflows resource you’re creating. Full documentation: @@ -175,6 +198,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.Product The relationship to the Products resource you set with the request that creates a Workflows resource. Full documentation: @@ -189,6 +213,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.Product.Data The type and ID of the Products resource that you’re relating with the Workflows resource you’re creating. Full documentation: @@ -226,6 +251,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.Repository The relationship to the Repositories Versions resource you set with the request that creates a Workflows resource. Full documentation: @@ -240,6 +266,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.Repository.Data The type and ID of the Repositories resource that you’re relating with the Workflows resource you’re creating. Full documentation: @@ -277,6 +304,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.XcodeVersion The relationship to the Xcode Versions resource you set with the request that creates a Workflows resource. Full documentation: @@ -291,6 +319,7 @@ public struct CiWorkflowCreateRequest: Codable, RequestBody { } /** + # CiWorkflowCreateRequest.Data.Relationships.XcodeVersion.Data The type and ID of the Xcode Versions resource that you’re relating with the Workflows resource you’re creating. Full documentation: diff --git a/Sources/Bagbutik/Models/CiWorkflowResponse.swift b/Sources/Bagbutik/Models/CiWorkflowResponse.swift index cb5d441cd..da4da5ba2 100644 --- a/Sources/Bagbutik/Models/CiWorkflowResponse.swift +++ b/Sources/Bagbutik/Models/CiWorkflowResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiWorkflowResponse A response that contains a single Workflows resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiWorkflowResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiWorkflow, included: [Included]? = nil, links: DocumentLinks) { + public init(data: CiWorkflow, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiWorkflowUpdateRequest.swift b/Sources/Bagbutik/Models/CiWorkflowUpdateRequest.swift index fa935dfb9..87c468e9d 100644 --- a/Sources/Bagbutik/Models/CiWorkflowUpdateRequest.swift +++ b/Sources/Bagbutik/Models/CiWorkflowUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiWorkflowUpdateRequest The request body you use to update an Xcode Cloud workflow. Full documentation: @@ -15,6 +16,7 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } /** + # CiWorkflowUpdateRequest.Data The data element of the request you use to update an Xcode Cloud workflow. Full documentation: @@ -30,7 +32,10 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -55,13 +60,14 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # CiWorkflowUpdateRequest.Data.Attributes The attributes of the Workflows resource you’re changing with the update request. Full documentation: @@ -91,7 +97,18 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { /// The workflow’s start condition that starts new builds for changes to a tag. public var tagStartCondition: CiTagStartCondition? - public init(actions: [CiAction]? = nil, branchStartCondition: CiBranchStartCondition? = nil, clean: Bool? = nil, containerFilePath: String? = nil, description: String? = nil, isEnabled: Bool? = nil, isLockedForEditing: Bool? = nil, name: String? = nil, pullRequestStartCondition: CiPullRequestStartCondition? = nil, scheduledStartCondition: CiScheduledStartCondition? = nil, tagStartCondition: CiTagStartCondition? = nil) { + public init(actions: [CiAction]? = nil, + branchStartCondition: CiBranchStartCondition? = nil, + clean: Bool? = nil, + containerFilePath: String? = nil, + description: String? = nil, + isEnabled: Bool? = nil, + isLockedForEditing: Bool? = nil, + name: String? = nil, + pullRequestStartCondition: CiPullRequestStartCondition? = nil, + scheduledStartCondition: CiScheduledStartCondition? = nil, + tagStartCondition: CiTagStartCondition? = nil) + { self.actions = actions self.branchStartCondition = branchStartCondition self.clean = clean @@ -107,6 +124,7 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } /** + # CiWorkflowUpdateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -118,12 +136,15 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { /// The related Xcode Versions resource. public var xcodeVersion: XcodeVersion? - public init(macOsVersion: MacOsVersion? = nil, xcodeVersion: XcodeVersion? = nil) { + public init(macOsVersion: MacOsVersion? = nil, + xcodeVersion: XcodeVersion? = nil) + { self.macOsVersion = macOsVersion self.xcodeVersion = xcodeVersion } /** + # CiWorkflowUpdateRequest.Data.Relationships.MacOsVersion The relationship to the macOS Versions resource you can set with the request that updates a Workflows resource. Full documentation: @@ -138,6 +159,7 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } /** + # CiWorkflowUpdateRequest.Data.Relationships.MacOsVersion.Data The type and ID of the macOS Versions resource that you’re relating with the Workflows resource you’re updating. Full documentation: @@ -175,6 +197,7 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } /** + # CiWorkflowUpdateRequest.Data.Relationships.XcodeVersion The relationship to the Xcode Versions resource you can set with the request that updates a Workflows resource. Full documentation: @@ -189,6 +212,7 @@ public struct CiWorkflowUpdateRequest: Codable, RequestBody { } /** + # CiWorkflowUpdateRequest.Data.Relationships.XcodeVersion.Data The type and ID of the Xcode Versions resource that you’re relating with the Workflows resource you’re updating. Full documentation: diff --git a/Sources/Bagbutik/Models/CiWorkflowsResponse.swift b/Sources/Bagbutik/Models/CiWorkflowsResponse.swift index ed8cbd7cc..5ee9afcc2 100644 --- a/Sources/Bagbutik/Models/CiWorkflowsResponse.swift +++ b/Sources/Bagbutik/Models/CiWorkflowsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiWorkflowsResponse A response that contains a list of Workflows resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiWorkflowsResponse: Codable, PagedResponse { public typealias Data = CiWorkflow + /// The resource data. public let data: [CiWorkflow] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiWorkflowsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiWorkflow], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiWorkflow], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiXcodeVersion.swift b/Sources/Bagbutik/Models/CiXcodeVersion.swift index 561a43a43..61281f8d2 100644 --- a/Sources/Bagbutik/Models/CiXcodeVersion.swift +++ b/Sources/Bagbutik/Models/CiXcodeVersion.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiXcodeVersion The data structure that represents an Xcode Versions resource. Full documentation: @@ -18,7 +19,11 @@ public struct CiXcodeVersion: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CiXcodeVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CiXcodeVersion.Attributes The attributes that describe an Xcode Versions resource. Full documentation: @@ -67,13 +73,17 @@ public struct CiXcodeVersion: Codable { /// The Xcode version. public var version: String? - public init(name: String? = nil, testDestinations: [TestDestinations]? = nil, version: String? = nil) { + public init(name: String? = nil, + testDestinations: [TestDestinations]? = nil, + version: String? = nil) + { self.name = name self.testDestinations = testDestinations self.version = version } /** + # CiXcodeVersion.Attributes.TestDestinations The test destinations available for an Xcode version. Full documentation: @@ -89,7 +99,11 @@ public struct CiXcodeVersion: Codable { /// A string that indicates whether a test destination is a simulated device or a Mac. public var kind: CiTestDestinationKind? - public init(availableRuntimes: [AvailableRuntimes]? = nil, deviceTypeIdentifier: String? = nil, deviceTypeName: String? = nil, kind: CiTestDestinationKind? = nil) { + public init(availableRuntimes: [AvailableRuntimes]? = nil, + deviceTypeIdentifier: String? = nil, + deviceTypeName: String? = nil, + kind: CiTestDestinationKind? = nil) + { self.availableRuntimes = availableRuntimes self.deviceTypeIdentifier = deviceTypeIdentifier self.deviceTypeName = deviceTypeName @@ -97,6 +111,7 @@ public struct CiXcodeVersion: Codable { } /** + # CiXcodeVersion.Attributes.TestDestinations.AvailableRuntimes The data structure that represents the available runtimes for test destinations of an Xcode Versions resource. Full documentation: @@ -108,7 +123,9 @@ public struct CiXcodeVersion: Codable { /// The name of the operating system of the simulated environment Xcode Cloud uses. public var runtimeName: String? - public init(runtimeIdentifier: String? = nil, runtimeName: String? = nil) { + public init(runtimeIdentifier: String? = nil, + runtimeName: String? = nil) + { self.runtimeIdentifier = runtimeIdentifier self.runtimeName = runtimeName } @@ -117,6 +134,7 @@ public struct CiXcodeVersion: Codable { } /** + # CiXcodeVersion.Relationships The relationships of the Xcode Versions resource you included in the request and those on which you can operate. Full documentation: @@ -131,6 +149,7 @@ public struct CiXcodeVersion: Codable { } /** + # CiXcodeVersion.Relationships.MacOsVersions The data, links, and paging information that describe the relationship between the Xcode Versions and the macOS Versions resources. Full documentation: @@ -144,13 +163,17 @@ public struct CiXcodeVersion: Codable { /// The paging information. public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # CiXcodeVersion.Relationships.MacOsVersions.Data The type and ID of a related macOS Versions resource. Full documentation: @@ -187,6 +210,7 @@ public struct CiXcodeVersion: Codable { } /** + # CiXcodeVersion.Relationships.MacOsVersions.Links The links to the related macOS Versions resources and the relationship’s self-link. Full documentation: @@ -198,7 +222,9 @@ public struct CiXcodeVersion: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -216,8 +242,8 @@ public struct CiXcodeVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CiXcodeVersionResponse.swift b/Sources/Bagbutik/Models/CiXcodeVersionResponse.swift index 7939a20b4..219cc3757 100644 --- a/Sources/Bagbutik/Models/CiXcodeVersionResponse.swift +++ b/Sources/Bagbutik/Models/CiXcodeVersionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiXcodeVersionResponse A response that contains a single Xcode Versions resource. Full documentation: @@ -14,7 +15,10 @@ public struct CiXcodeVersionResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: CiXcodeVersion, included: [CiMacOsVersion]? = nil, links: DocumentLinks) { + public init(data: CiXcodeVersion, + included: [CiMacOsVersion]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CiXcodeVersionsResponse.swift b/Sources/Bagbutik/Models/CiXcodeVersionsResponse.swift index a546289d3..363616faa 100644 --- a/Sources/Bagbutik/Models/CiXcodeVersionsResponse.swift +++ b/Sources/Bagbutik/Models/CiXcodeVersionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CiXcodeVersionsResponse A response that contains a list of Xcode Versions resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CiXcodeVersionsResponse: Codable, PagedResponse { public typealias Data = CiXcodeVersion + /// The resource data. public let data: [CiXcodeVersion] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CiXcodeVersionsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [CiXcodeVersion], included: [CiMacOsVersion]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CiXcodeVersion], + included: [CiMacOsVersion]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CustomerReview.swift b/Sources/Bagbutik/Models/CustomerReview.swift index 55a5aa0e0..7dd628d47 100644 --- a/Sources/Bagbutik/Models/CustomerReview.swift +++ b/Sources/Bagbutik/Models/CustomerReview.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReview The data structure that represents a Customer Reviews resource. Full documentation: @@ -18,7 +19,11 @@ public struct CustomerReview: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CustomerReview: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CustomerReview.Attributes The attributes of the customer’s review including its content. Full documentation: @@ -73,7 +79,13 @@ public struct CustomerReview: Codable { /// The title that the customer wrote for the review. public var title: String? - public init(body: String? = nil, createdDate: Date? = nil, rating: Int? = nil, reviewerNickname: String? = nil, territory: TerritoryCode? = nil, title: String? = nil) { + public init(body: String? = nil, + createdDate: Date? = nil, + rating: Int? = nil, + reviewerNickname: String? = nil, + territory: TerritoryCode? = nil, + title: String? = nil) + { self.body = body self.createdDate = createdDate self.rating = rating @@ -84,6 +96,7 @@ public struct CustomerReview: Codable { } /** + # CustomerReview.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -98,6 +111,7 @@ public struct CustomerReview: Codable { } /** + # CustomerReview.Relationships.Response The data and links that describe the relationship between the resources. Full documentation: @@ -109,12 +123,15 @@ public struct CustomerReview: Codable { /// The links to the related data and the relationship’s self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CustomerReview.Relationships.Response.Data The type and ID of a related resource. Full documentation: @@ -151,6 +168,7 @@ public struct CustomerReview: Codable { } /** + # CustomerReview.Relationships.Response.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -162,7 +180,9 @@ public struct CustomerReview: Codable { /// The relashionship’s self-link. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -180,8 +200,8 @@ public struct CustomerReview: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CustomerReviewResponse.swift b/Sources/Bagbutik/Models/CustomerReviewResponse.swift index 238ed35a6..c65390d33 100644 --- a/Sources/Bagbutik/Models/CustomerReviewResponse.swift +++ b/Sources/Bagbutik/Models/CustomerReviewResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReviewResponse A response that contains a single Customer Review resource. Full documentation: @@ -14,7 +15,10 @@ public struct CustomerReviewResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: CustomerReview, included: [CustomerReviewResponseV1]? = nil, links: DocumentLinks) { + public init(data: CustomerReview, + included: [CustomerReviewResponseV1]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CustomerReviewResponseV1.swift b/Sources/Bagbutik/Models/CustomerReviewResponseV1.swift index f6645aebb..0d1afc55b 100644 --- a/Sources/Bagbutik/Models/CustomerReviewResponseV1.swift +++ b/Sources/Bagbutik/Models/CustomerReviewResponseV1.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReviewResponseV1 The data structure that represents the Customer Review Responses resource. Full documentation: @@ -18,7 +19,11 @@ public struct CustomerReviewResponseV1: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct CustomerReviewResponseV1: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # CustomerReviewResponseV1.Attributes The attributes of the response to a customer’s review including its content. Full documentation: @@ -67,7 +73,10 @@ public struct CustomerReviewResponseV1: Codable { /// The state of your response. public var state: State? - public init(lastModifiedDate: Date? = nil, responseBody: String? = nil, state: State? = nil) { + public init(lastModifiedDate: Date? = nil, + responseBody: String? = nil, + state: State? = nil) + { self.lastModifiedDate = lastModifiedDate self.responseBody = responseBody self.state = state @@ -80,6 +89,7 @@ public struct CustomerReviewResponseV1: Codable { } /** + # CustomerReviewResponseV1.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -94,6 +104,7 @@ public struct CustomerReviewResponseV1: Codable { } /** + # CustomerReviewResponseV1.Relationships.Review The data and links that describe the relationship between the resources. Full documentation: @@ -105,12 +116,15 @@ public struct CustomerReviewResponseV1: Codable { /// The links to the related data and the relationship’s self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # CustomerReviewResponseV1.Relationships.Review.Data The type and ID of a resource that you’re relating with the resource you’re updating. Full documentation: @@ -147,6 +161,7 @@ public struct CustomerReviewResponseV1: Codable { } /** + # CustomerReviewResponseV1.Relationships.Review.Links The links to the related data and the relationship’s self-link. Full documentation: @@ -158,7 +173,9 @@ public struct CustomerReviewResponseV1: Codable { /// The relashionship’s self-link. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -176,8 +193,8 @@ public struct CustomerReviewResponseV1: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/CustomerReviewResponseV1CreateRequest.swift b/Sources/Bagbutik/Models/CustomerReviewResponseV1CreateRequest.swift index d546382db..4e0aa583f 100644 --- a/Sources/Bagbutik/Models/CustomerReviewResponseV1CreateRequest.swift +++ b/Sources/Bagbutik/Models/CustomerReviewResponseV1CreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReviewResponseV1CreateRequest The request body to use to create a response to a customer review. Full documentation: @@ -15,6 +16,7 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { } /** + # CustomerReviewResponseV1CreateRequest.Data The data element of the request body for creating a response to a customer review. Full documentation: @@ -28,7 +30,9 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { /// Navigational links to related data and included resource types and IDs. public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # CustomerReviewResponseV1CreateRequest.Data.Attributes The attributes of the customer review response, including its text content. Full documentation: @@ -71,6 +76,7 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { } /** + # CustomerReviewResponseV1CreateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -85,6 +91,7 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { } /** + # CustomerReviewResponseV1CreateRequest.Data.Relationships.Review The data and links that describe the relationship between the resources. Full documentation: @@ -99,6 +106,7 @@ public struct CustomerReviewResponseV1CreateRequest: Codable, RequestBody { } /** + # CustomerReviewResponseV1CreateRequest.Data.Relationships.Review.Data The type and ID of a resource that you’re relating with the resource you’re updating. Full documentation: diff --git a/Sources/Bagbutik/Models/CustomerReviewResponseV1Response.swift b/Sources/Bagbutik/Models/CustomerReviewResponseV1Response.swift index 53ccb7d38..c139224a2 100644 --- a/Sources/Bagbutik/Models/CustomerReviewResponseV1Response.swift +++ b/Sources/Bagbutik/Models/CustomerReviewResponseV1Response.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReviewResponseV1Response A response that contains a single Customer Review Responses resource. Full documentation: @@ -14,7 +15,10 @@ public struct CustomerReviewResponseV1Response: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: CustomerReviewResponseV1, included: [CustomerReview]? = nil, links: DocumentLinks) { + public init(data: CustomerReviewResponseV1, + included: [CustomerReview]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/CustomerReviewsResponse.swift b/Sources/Bagbutik/Models/CustomerReviewsResponse.swift index 1e61c50ca..44efa80fb 100644 --- a/Sources/Bagbutik/Models/CustomerReviewsResponse.swift +++ b/Sources/Bagbutik/Models/CustomerReviewsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # CustomerReviewsResponse A response that contains a list of Customer Reviews resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct CustomerReviewsResponse: Codable, PagedResponse { public typealias Data = CustomerReview + /// A list of customer review resource data. public let data: [CustomerReview] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct CustomerReviewsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [CustomerReview], included: [CustomerReviewResponseV1]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [CustomerReview], + included: [CustomerReviewResponseV1]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/Device.swift b/Sources/Bagbutik/Models/Device.swift index a98bec181..7407d5997 100644 --- a/Sources/Bagbutik/Models/Device.swift +++ b/Sources/Bagbutik/Models/Device.swift @@ -1,6 +1,7 @@ import Foundation /** + # Device The data structure that represents a Devices resource. Full documentation: @@ -16,7 +17,10 @@ public struct Device: Codable { /// The resource's attributes. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct Device: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # Device.Attributes Attributes that describe a Devices resource. Full documentation: @@ -62,7 +67,14 @@ public struct Device: Codable { public var status: Status? public var udid: String? - public init(addedDate: Date? = nil, deviceClass: DeviceClass? = nil, model: String? = nil, name: String? = nil, platform: BundleIdPlatform? = nil, status: Status? = nil, udid: String? = nil) { + public init(addedDate: Date? = nil, + deviceClass: DeviceClass? = nil, + model: String? = nil, + name: String? = nil, + platform: BundleIdPlatform? = nil, + status: Status? = nil, + udid: String? = nil) + { self.addedDate = addedDate self.deviceClass = deviceClass self.model = model diff --git a/Sources/Bagbutik/Models/DeviceCreateRequest.swift b/Sources/Bagbutik/Models/DeviceCreateRequest.swift index 74909d40c..bb8fae7d8 100644 --- a/Sources/Bagbutik/Models/DeviceCreateRequest.swift +++ b/Sources/Bagbutik/Models/DeviceCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # DeviceCreateRequest The request body you use to create a Device. Full documentation: @@ -15,6 +16,7 @@ public struct DeviceCreateRequest: Codable, RequestBody { } /** + # DeviceCreateRequest.Data The data element of the request body. Full documentation: @@ -43,11 +45,12 @@ public struct DeviceCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes + case type } /** + # DeviceCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -58,7 +61,10 @@ public struct DeviceCreateRequest: Codable, RequestBody { public let platform: BundleIdPlatform public let udid: String - public init(name: String, platform: BundleIdPlatform, udid: String) { + public init(name: String, + platform: BundleIdPlatform, + udid: String) + { self.name = name self.platform = platform self.udid = udid diff --git a/Sources/Bagbutik/Models/DeviceResponse.swift b/Sources/Bagbutik/Models/DeviceResponse.swift index 4b60d630f..ac334c514 100644 --- a/Sources/Bagbutik/Models/DeviceResponse.swift +++ b/Sources/Bagbutik/Models/DeviceResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # DeviceResponse A response that contains a single Devices resource. Full documentation: @@ -12,7 +13,9 @@ public struct DeviceResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Device, links: DocumentLinks) { + public init(data: Device, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/DeviceUpdateRequest.swift b/Sources/Bagbutik/Models/DeviceUpdateRequest.swift index f43fe4414..d6a62b752 100644 --- a/Sources/Bagbutik/Models/DeviceUpdateRequest.swift +++ b/Sources/Bagbutik/Models/DeviceUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # DeviceUpdateRequest The request body you use to update a Device. Full documentation: @@ -15,6 +16,7 @@ public struct DeviceUpdateRequest: Codable, RequestBody { } /** + # DeviceUpdateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,9 @@ public struct DeviceUpdateRequest: Codable, RequestBody { public var type: String { "devices" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -47,12 +51,13 @@ public struct DeviceUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # DeviceUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -62,7 +67,9 @@ public struct DeviceUpdateRequest: Codable, RequestBody { public var name: String? public var status: Device.Attributes.Status? - public init(name: String? = nil, status: Device.Attributes.Status? = nil) { + public init(name: String? = nil, + status: Device.Attributes.Status? = nil) + { self.name = name self.status = status } diff --git a/Sources/Bagbutik/Models/DevicesResponse.swift b/Sources/Bagbutik/Models/DevicesResponse.swift index fd806ad0e..1a53439d4 100644 --- a/Sources/Bagbutik/Models/DevicesResponse.swift +++ b/Sources/Bagbutik/Models/DevicesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # DevicesResponse A response that contains a list of Devices resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct DevicesResponse: Codable, PagedResponse { public typealias Data = Device + /// The resource data. public let data: [Device] /// Navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct DevicesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Device], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Device], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/DiagnosticLog.swift b/Sources/Bagbutik/Models/DiagnosticLog.swift index 3e954d418..f8c5e39ef 100644 --- a/Sources/Bagbutik/Models/DiagnosticLog.swift +++ b/Sources/Bagbutik/Models/DiagnosticLog.swift @@ -1,6 +1,7 @@ import Foundation /** + # DiagnosticLog The data structure that represents the Diagnostic Logs resource. Full documentation: @@ -11,7 +12,9 @@ public struct DiagnosticLog: Codable { public let links: ResourceLinks public var type: String { "diagnosticLogs" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/DiagnosticLogCallStackNode.swift b/Sources/Bagbutik/Models/DiagnosticLogCallStackNode.swift index e842a44f2..d8bd944bf 100644 --- a/Sources/Bagbutik/Models/DiagnosticLogCallStackNode.swift +++ b/Sources/Bagbutik/Models/DiagnosticLogCallStackNode.swift @@ -1,6 +1,7 @@ import Foundation /** + # DiagnosticLogCallStackNode Diagnostic information that describes a single line in a call stack. Full documentation: @@ -34,7 +35,20 @@ public struct DiagnosticLogCallStackNode: Codable { /// The name of the symbol in your code. public var symbolName: String? - public init(address: String? = nil, binaryName: String? = nil, binaryUUID: String? = nil, fileName: String? = nil, insightsCategory: String? = nil, isBlameFrame: Bool? = nil, lineNumber: String? = nil, offsetIntoBinaryTextSegment: String? = nil, offsetIntoSymbol: String? = nil, rawFrame: String? = nil, sampleCount: Int? = nil, subFrames: [DiagnosticLogCallStackNode]? = nil, symbolName: String? = nil) { + public init(address: String? = nil, + binaryName: String? = nil, + binaryUUID: String? = nil, + fileName: String? = nil, + insightsCategory: String? = nil, + isBlameFrame: Bool? = nil, + lineNumber: String? = nil, + offsetIntoBinaryTextSegment: String? = nil, + offsetIntoSymbol: String? = nil, + rawFrame: String? = nil, + sampleCount: Int? = nil, + subFrames: [DiagnosticLogCallStackNode]? = nil, + symbolName: String? = nil) + { self.address = address self.binaryName = binaryName self.binaryUUID = binaryUUID diff --git a/Sources/Bagbutik/Models/DiagnosticLogs.swift b/Sources/Bagbutik/Models/DiagnosticLogs.swift index c2c4efe5e..adc16c83b 100644 --- a/Sources/Bagbutik/Models/DiagnosticLogs.swift +++ b/Sources/Bagbutik/Models/DiagnosticLogs.swift @@ -1,6 +1,7 @@ import Foundation /** + # diagnosticLogs A response containing log data for a diagnostic signature. Full documentation: @@ -12,12 +13,15 @@ public struct DiagnosticLogs: Codable { /// The version of the App Store Connect API. public var version: String? - public init(productData: [ProductData]? = nil, version: String? = nil) { + public init(productData: [ProductData]? = nil, + version: String? = nil) + { self.productData = productData self.version = version } /** + # diagnosticLogs.ProductData The logs and insights for a diagnostic signature. Full documentation: @@ -31,13 +35,17 @@ public struct DiagnosticLogs: Codable { /// The opaque resource ID that uniquely identifies a diagnostic signature. public var signatureId: String? - public init(diagnosticInsights: [DiagnosticInsights]? = nil, diagnosticLogs: [DiagnosticLogs]? = nil, signatureId: String? = nil) { + public init(diagnosticInsights: [DiagnosticInsights]? = nil, + diagnosticLogs: [DiagnosticLogs]? = nil, + signatureId: String? = nil) + { self.diagnosticInsights = diagnosticInsights self.diagnosticLogs = diagnosticLogs self.signatureId = signatureId } /** + # diagnosticLogs.ProductData.DiagnosticInsights Information about an insight including a descriptive string, category, and URL. Full documentation: @@ -51,7 +59,10 @@ public struct DiagnosticLogs: Codable { /// A URL to documentation that provides guidance about the insight. public var insightsURL: String? - public init(insightsCategory: String? = nil, insightsString: String? = nil, insightsURL: String? = nil) { + public init(insightsCategory: String? = nil, + insightsString: String? = nil, + insightsURL: String? = nil) + { self.insightsCategory = insightsCategory self.insightsString = insightsString self.insightsURL = insightsURL @@ -59,6 +70,7 @@ public struct DiagnosticLogs: Codable { } /** + # diagnosticLogs.ProductData.DiagnosticLogs The call stack representation and metadata of the diagnostic log. Full documentation: @@ -70,12 +82,15 @@ public struct DiagnosticLogs: Codable { /// Information about the diagnostic log the system captured. public var diagnosticMetaData: DiagnosticMetaData? - public init(callStackTree: [CallStackTree]? = nil, diagnosticMetaData: DiagnosticMetaData? = nil) { + public init(callStackTree: [CallStackTree]? = nil, + diagnosticMetaData: DiagnosticMetaData? = nil) + { self.callStackTree = callStackTree self.diagnosticMetaData = diagnosticMetaData } /** + # diagnosticLogs.ProductData.DiagnosticLogs.CallStackTree The call stack representation of the diagnostic logs for single or multiple threads. Full documentation: @@ -87,12 +102,15 @@ public struct DiagnosticLogs: Codable { /// The call stack representation of the diagnostic log. public var callStacks: [CallStacks]? - public init(callStackPerThread: Bool? = nil, callStacks: [CallStacks]? = nil) { + public init(callStackPerThread: Bool? = nil, + callStacks: [CallStacks]? = nil) + { self.callStackPerThread = callStackPerThread self.callStacks = callStacks } /** + # diagnosticLogs.ProductData.DiagnosticLogs.CallStackTree.CallStacks The root call stack frames of the diagnostic log. Full documentation: @@ -109,6 +127,7 @@ public struct DiagnosticLogs: Codable { } /** + # diagnosticLogs.ProductData.DiagnosticLogs.DiagnosticMetaData Information about the diagnostic log including app version and build information, event details, OS, device type, and platform, and disk writes. Full documentation: @@ -134,7 +153,16 @@ public struct DiagnosticLogs: Codable { /// The raw quantity of disk writes. Used for the `DISK_WRITES` diagnostic type. public var writesCaused: String? - public init(appVersion: String? = nil, buildVersion: String? = nil, bundleId: String? = nil, deviceType: String? = nil, event: String? = nil, eventDetail: String? = nil, osVersion: String? = nil, platformArchitecture: String? = nil, writesCaused: String? = nil) { + public init(appVersion: String? = nil, + buildVersion: String? = nil, + bundleId: String? = nil, + deviceType: String? = nil, + event: String? = nil, + eventDetail: String? = nil, + osVersion: String? = nil, + platformArchitecture: String? = nil, + writesCaused: String? = nil) + { self.appVersion = appVersion self.buildVersion = buildVersion self.bundleId = bundleId diff --git a/Sources/Bagbutik/Models/DiagnosticSignature.swift b/Sources/Bagbutik/Models/DiagnosticSignature.swift index de9fa03bb..8ef367daf 100644 --- a/Sources/Bagbutik/Models/DiagnosticSignature.swift +++ b/Sources/Bagbutik/Models/DiagnosticSignature.swift @@ -1,6 +1,7 @@ import Foundation /** + # DiagnosticSignature The data structure that represents the Diagnostic Signatures resource. Full documentation: @@ -16,7 +17,10 @@ public struct DiagnosticSignature: Codable { /// Attributes that describe the diagnostic signature resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct DiagnosticSignature: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # DiagnosticSignature.Attributes Attributes that describe a Diagnostic Signatures resource. Full documentation: @@ -61,7 +66,10 @@ public struct DiagnosticSignature: Codable { /// The signature weight, which indicates how critical an issue reported by the diagnostic signature is. Weight values are between 0 and 1. public var weight: Double? - public init(diagnosticType: DiagnosticType? = nil, signature: String? = nil, weight: Double? = nil) { + public init(diagnosticType: DiagnosticType? = nil, + signature: String? = nil, + weight: Double? = nil) + { self.diagnosticType = diagnosticType self.signature = signature self.weight = weight diff --git a/Sources/Bagbutik/Models/DiagnosticSignaturesResponse.swift b/Sources/Bagbutik/Models/DiagnosticSignaturesResponse.swift index b8bb4c549..7e4fd10cd 100644 --- a/Sources/Bagbutik/Models/DiagnosticSignaturesResponse.swift +++ b/Sources/Bagbutik/Models/DiagnosticSignaturesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # DiagnosticSignaturesResponse A response that contains a list of Diagnostic Signature resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct DiagnosticSignaturesResponse: Codable, PagedResponse { public typealias Data = DiagnosticSignature + /// An array of diagnostic signatures. public let data: [DiagnosticSignature] /// Navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct DiagnosticSignaturesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [DiagnosticSignature], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [DiagnosticSignature], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/DocumentLinks.swift b/Sources/Bagbutik/Models/DocumentLinks.swift index 3c731ad5c..050e646a0 100644 --- a/Sources/Bagbutik/Models/DocumentLinks.swift +++ b/Sources/Bagbutik/Models/DocumentLinks.swift @@ -1,12 +1,13 @@ import Foundation /** + # DocumentLinks Self-links to documents that can contain information for one or more resources. + All the response data constitutes a *document*. + Full documentation: - - All the response data constitutes a *document*. */ public struct DocumentLinks: Codable { /// The link that produced the current document. diff --git a/Sources/Bagbutik/Models/EndUserLicenseAgreement.swift b/Sources/Bagbutik/Models/EndUserLicenseAgreement.swift index 6881cbf46..e31c2f6cd 100644 --- a/Sources/Bagbutik/Models/EndUserLicenseAgreement.swift +++ b/Sources/Bagbutik/Models/EndUserLicenseAgreement.swift @@ -1,6 +1,7 @@ import Foundation /** + # EndUserLicenseAgreement The data structure that represents the End User License Agreement resource. Full documentation: @@ -13,7 +14,11 @@ public struct EndUserLicenseAgreement: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct EndUserLicenseAgreement: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # EndUserLicenseAgreement.Attributes Attributes that describe an End User License Agreements resource. Full documentation: @@ -63,6 +69,7 @@ public struct EndUserLicenseAgreement: Codable { } /** + # EndUserLicenseAgreement.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -72,12 +79,15 @@ public struct EndUserLicenseAgreement: Codable { public var app: App? public var territories: Territories? - public init(app: App? = nil, territories: Territories? = nil) { + public init(app: App? = nil, + territories: Territories? = nil) + { self.app = app self.territories = territories } /** + # EndUserLicenseAgreement.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -87,12 +97,15 @@ public struct EndUserLicenseAgreement: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # EndUserLicenseAgreement.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -127,6 +140,7 @@ public struct EndUserLicenseAgreement: Codable { } /** + # EndUserLicenseAgreement.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -136,7 +150,9 @@ public struct EndUserLicenseAgreement: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -154,13 +170,14 @@ public struct EndUserLicenseAgreement: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # EndUserLicenseAgreement.Relationships.Territories The data and links that describe the relationship between the resources. Full documentation: @@ -171,13 +188,17 @@ public struct EndUserLicenseAgreement: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # EndUserLicenseAgreement.Relationships.Territories.Data The type and ID of a related resource. Full documentation: @@ -212,6 +233,7 @@ public struct EndUserLicenseAgreement: Codable { } /** + # EndUserLicenseAgreement.Relationships.Territories.Links The links to the related data and the relationship's self-link. Full documentation: @@ -221,7 +243,9 @@ public struct EndUserLicenseAgreement: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -239,8 +263,8 @@ public struct EndUserLicenseAgreement: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/EndUserLicenseAgreementCreateRequest.swift b/Sources/Bagbutik/Models/EndUserLicenseAgreementCreateRequest.swift index 2047066fe..d4144c319 100644 --- a/Sources/Bagbutik/Models/EndUserLicenseAgreementCreateRequest.swift +++ b/Sources/Bagbutik/Models/EndUserLicenseAgreementCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # EndUserLicenseAgreementCreateRequest The request body you use to create an End User License Agreement. Full documentation: @@ -14,6 +15,7 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # EndUserLicenseAgreementCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -66,6 +71,7 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -75,12 +81,15 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { public let app: App public let territories: Territories - public init(app: App, territories: Territories) { + public init(app: App, + territories: Territories) + { self.app = app self.territories = territories } /** + # EndUserLicenseAgreementCreateRequest.Data.Relationships.App The relationships to other resources that you can set with this request. Full documentation: @@ -94,6 +103,7 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementCreateRequest.Data.Relationships.App.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -129,6 +139,7 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementCreateRequest.Data.Relationships.Territories The relationships to other resources that you can set with this request. Full documentation: @@ -142,6 +153,7 @@ public struct EndUserLicenseAgreementCreateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementCreateRequest.Data.Relationships.Territories.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/EndUserLicenseAgreementResponse.swift b/Sources/Bagbutik/Models/EndUserLicenseAgreementResponse.swift index b9a0b8e17..ed43110b0 100644 --- a/Sources/Bagbutik/Models/EndUserLicenseAgreementResponse.swift +++ b/Sources/Bagbutik/Models/EndUserLicenseAgreementResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # EndUserLicenseAgreementResponse A response that contains a single End User License Agreements resource. Full documentation: @@ -11,7 +12,10 @@ public struct EndUserLicenseAgreementResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: EndUserLicenseAgreement, included: [Included]? = nil, links: DocumentLinks) { + public init(data: EndUserLicenseAgreement, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/EndUserLicenseAgreementUpdateRequest.swift b/Sources/Bagbutik/Models/EndUserLicenseAgreementUpdateRequest.swift index 74dd808e9..a4b8d5463 100644 --- a/Sources/Bagbutik/Models/EndUserLicenseAgreementUpdateRequest.swift +++ b/Sources/Bagbutik/Models/EndUserLicenseAgreementUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # EndUserLicenseAgreementUpdateRequest The request body you use to update an End User License Agreement. Full documentation: @@ -14,6 +15,7 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementUpdateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,10 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -50,13 +55,14 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # EndUserLicenseAgreementUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -71,6 +77,7 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -84,6 +91,7 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementUpdateRequest.Data.Relationships.Territories The data and links that describe the relationship between the resources. Full documentation: @@ -97,6 +105,7 @@ public struct EndUserLicenseAgreementUpdateRequest: Codable, RequestBody { } /** + # EndUserLicenseAgreementUpdateRequest.Data.Relationships.Territories.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/ErrorResponse.swift b/Sources/Bagbutik/Models/ErrorResponse.swift index 70f626cc0..44f5faff0 100644 --- a/Sources/Bagbutik/Models/ErrorResponse.swift +++ b/Sources/Bagbutik/Models/ErrorResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ErrorResponse Information with error details that an API returns in the response body whenever the API request is not successful. Full documentation: @@ -15,12 +16,13 @@ public struct ErrorResponse: Codable { } /** + # ErrorResponse.Errors The details about one error that is returned when an API request is not successful. + Use the `code` parameter for programmatic error handling. See [Parsing the Error Response Code](https://developer.apple.com/documentation/appstoreconnectapi/interpreting_and_handling_errors/parsing_the_error_response_code) for more information. For more information about using the `source` parameter, see [Pinpointing the Location of Errors](https://developer.apple.com/documentation/appstoreconnectapi/interpreting_and_handling_errors/pinpointing_the_location_of_errors). + Full documentation: - - Use the `code` parameter for programmatic error handling. See [Parsing the Error Response Code](https://developer.apple.com/documentation/appstoreconnectapi/interpreting_and_handling_errors/parsing_the_error_response_code) for more information. For more information about using the `source` parameter, see [Pinpointing the Location of Errors](https://developer.apple.com/documentation/appstoreconnectapi/interpreting_and_handling_errors/pinpointing_the_location_of_errors). */ public struct Errors: Codable { /// A machine-readable code indicating the type of error. The code is a hierarchical value with levels of specificity separated by the '`.`' character. This value is parseable for programmatic error handling in code. @@ -36,7 +38,13 @@ public struct ErrorResponse: Codable { /// A summary of the error. Do not use this field for programmatic error handling. public let title: String - public init(code: String, detail: String, id: String? = nil, source: Source? = nil, status: String, title: String) { + public init(code: String, + detail: String, + id: String? = nil, + source: Source? = nil, + status: String, + title: String) + { self.code = code self.detail = detail self.id = id diff --git a/Sources/Bagbutik/Models/ExternalBetaState.swift b/Sources/Bagbutik/Models/ExternalBetaState.swift index 68fbca3a0..869a7b283 100644 --- a/Sources/Bagbutik/Models/ExternalBetaState.swift +++ b/Sources/Bagbutik/Models/ExternalBetaState.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents a build's availability for external testing. + # ExternalBetaState + String that represents a build's availability for external testing. - Full documentation: - + Full documentation: + */ public enum ExternalBetaState: String, Codable, CaseIterable { case processing = "PROCESSING" diff --git a/Sources/Bagbutik/Models/FileLocation.swift b/Sources/Bagbutik/Models/FileLocation.swift index c5af29559..f1175198b 100644 --- a/Sources/Bagbutik/Models/FileLocation.swift +++ b/Sources/Bagbutik/Models/FileLocation.swift @@ -1,6 +1,7 @@ import Foundation /** + # FileLocation The data structure that represents a File Locations resource. Full documentation: @@ -12,7 +13,9 @@ public struct FileLocation: Codable { /// The path to the file that caused an issue. public var path: String? - public init(lineNumber: Int? = nil, path: String? = nil) { + public init(lineNumber: Int? = nil, + path: String? = nil) + { self.lineNumber = lineNumber self.path = path } diff --git a/Sources/Bagbutik/Models/GameCenterEnabledVersion.swift b/Sources/Bagbutik/Models/GameCenterEnabledVersion.swift index a4c4dba31..d54f8aa54 100644 --- a/Sources/Bagbutik/Models/GameCenterEnabledVersion.swift +++ b/Sources/Bagbutik/Models/GameCenterEnabledVersion.swift @@ -1,6 +1,7 @@ import Foundation /** + # GameCenterEnabledVersion The data structure that represents the Game Center Enabled Versions resource. Full documentation: @@ -13,7 +14,11 @@ public struct GameCenterEnabledVersion: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct GameCenterEnabledVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # GameCenterEnabledVersion.Attributes Attributes that describe a Game Center Enabled Versions resource. Full documentation: @@ -59,7 +65,10 @@ public struct GameCenterEnabledVersion: Codable { public var platform: Platform? public var versionString: String? - public init(iconAsset: ImageAsset? = nil, platform: Platform? = nil, versionString: String? = nil) { + public init(iconAsset: ImageAsset? = nil, + platform: Platform? = nil, + versionString: String? = nil) + { self.iconAsset = iconAsset self.platform = platform self.versionString = versionString @@ -67,6 +76,7 @@ public struct GameCenterEnabledVersion: Codable { } /** + # GameCenterEnabledVersion.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -76,12 +86,15 @@ public struct GameCenterEnabledVersion: Codable { public var app: App? public var compatibleVersions: CompatibleVersions? - public init(app: App? = nil, compatibleVersions: CompatibleVersions? = nil) { + public init(app: App? = nil, + compatibleVersions: CompatibleVersions? = nil) + { self.app = app self.compatibleVersions = compatibleVersions } /** + # GameCenterEnabledVersion.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -91,12 +104,15 @@ public struct GameCenterEnabledVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # GameCenterEnabledVersion.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -131,6 +147,7 @@ public struct GameCenterEnabledVersion: Codable { } /** + # GameCenterEnabledVersion.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -140,7 +157,9 @@ public struct GameCenterEnabledVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -158,13 +177,14 @@ public struct GameCenterEnabledVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # GameCenterEnabledVersion.Relationships.CompatibleVersions The data and links that describe the relationship between the resources. Full documentation: @@ -175,13 +195,17 @@ public struct GameCenterEnabledVersion: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # GameCenterEnabledVersion.Relationships.CompatibleVersions.Data The type and ID of a related resource. Full documentation: @@ -216,6 +240,7 @@ public struct GameCenterEnabledVersion: Codable { } /** + # GameCenterEnabledVersion.Relationships.CompatibleVersions.Links The links to the related data and the relationship's self-link. Full documentation: @@ -225,7 +250,9 @@ public struct GameCenterEnabledVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -243,8 +270,8 @@ public struct GameCenterEnabledVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift b/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift index 2dee07080..d5a283efb 100644 --- a/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # GameCenterEnabledVersionCompatibleVersionsLinkagesRequest A request body you use to add or remove compatible versions from a Game Center-enabled version. Full documentation: @@ -14,6 +15,7 @@ public struct GameCenterEnabledVersionCompatibleVersionsLinkagesRequest: Codable } /** + # GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift b/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift index 38a5d4207..52e7e3546 100644 --- a/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # GameCenterEnabledVersionCompatibleVersionsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -11,13 +12,17 @@ public struct GameCenterEnabledVersionCompatibleVersionsLinkagesResponse: Codabl public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/GameCenterEnabledVersionsResponse.swift b/Sources/Bagbutik/Models/GameCenterEnabledVersionsResponse.swift index a1c2ae692..0a80d1d54 100644 --- a/Sources/Bagbutik/Models/GameCenterEnabledVersionsResponse.swift +++ b/Sources/Bagbutik/Models/GameCenterEnabledVersionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # GameCenterEnabledVersionsResponse A response that contains a list of Game Center Enabled Version resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct GameCenterEnabledVersionsResponse: Codable, PagedResponse { public typealias Data = GameCenterEnabledVersion + public let data: [GameCenterEnabledVersion] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [GameCenterEnabledVersion], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [GameCenterEnabledVersion], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/HttpHeader.swift b/Sources/Bagbutik/Models/HttpHeader.swift index c05ee7eca..cf1904e35 100644 --- a/Sources/Bagbutik/Models/HttpHeader.swift +++ b/Sources/Bagbutik/Models/HttpHeader.swift @@ -4,7 +4,9 @@ public struct HttpHeader: Codable { public var name: String? public var value: String? - public init(name: String? = nil, value: String? = nil) { + public init(name: String? = nil, + value: String? = nil) + { self.name = name self.value = value } diff --git a/Sources/Bagbutik/Models/IconAssetType.swift b/Sources/Bagbutik/Models/IconAssetType.swift index 7cc169e98..76db6f85a 100644 --- a/Sources/Bagbutik/Models/IconAssetType.swift +++ b/Sources/Bagbutik/Models/IconAssetType.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents the type of icon contained in the build. + # IconAssetType + String that represents the type of icon contained in the build. - Full documentation: - + Full documentation: + */ public enum IconAssetType: String, Codable, CaseIterable { case appStore = "APP_STORE" diff --git a/Sources/Bagbutik/Models/ImageAsset.swift b/Sources/Bagbutik/Models/ImageAsset.swift index 357817fbe..b0faad530 100644 --- a/Sources/Bagbutik/Models/ImageAsset.swift +++ b/Sources/Bagbutik/Models/ImageAsset.swift @@ -1,6 +1,7 @@ import Foundation /** + # ImageAsset An image asset, including its height, width, and template URL. Full documentation: @@ -11,7 +12,10 @@ public struct ImageAsset: Codable { public var templateUrl: String? public var width: Int? - public init(height: Int? = nil, templateUrl: String? = nil, width: Int? = nil) { + public init(height: Int? = nil, + templateUrl: String? = nil, + width: Int? = nil) + { self.height = height self.templateUrl = templateUrl self.width = width diff --git a/Sources/Bagbutik/Models/InAppPurchase.swift b/Sources/Bagbutik/Models/InAppPurchase.swift index bc1880b06..c54261dbd 100644 --- a/Sources/Bagbutik/Models/InAppPurchase.swift +++ b/Sources/Bagbutik/Models/InAppPurchase.swift @@ -1,6 +1,7 @@ import Foundation /** + # InAppPurchase The data structure that represents the In-App Purchases resource. Full documentation: @@ -13,7 +14,11 @@ public struct InAppPurchase: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct InAppPurchase: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # InAppPurchase.Attributes Attributes that describe an In-App Purchases resource. Full documentation: @@ -60,7 +66,11 @@ public struct InAppPurchase: Codable { public var referenceName: String? public var state: State? - public init(inAppPurchaseType: InAppPurchaseType? = nil, productId: String? = nil, referenceName: String? = nil, state: State? = nil) { + public init(inAppPurchaseType: InAppPurchaseType? = nil, + productId: String? = nil, + referenceName: String? = nil, + state: State? = nil) + { self.inAppPurchaseType = inAppPurchaseType self.productId = productId self.referenceName = referenceName @@ -99,6 +109,7 @@ public struct InAppPurchase: Codable { } /** + # InAppPurchase.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -112,6 +123,7 @@ public struct InAppPurchase: Codable { } /** + # InAppPurchase.Relationships.Apps The data and links that describe the relationship between the resources. Full documentation: @@ -122,13 +134,17 @@ public struct InAppPurchase: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # InAppPurchase.Relationships.Apps.Data The type and ID of a related resource. Full documentation: @@ -163,6 +179,7 @@ public struct InAppPurchase: Codable { } /** + # InAppPurchase.Relationships.Apps.Links The links to the related data and the relationship's self-link. Full documentation: @@ -172,7 +189,9 @@ public struct InAppPurchase: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -190,8 +209,8 @@ public struct InAppPurchase: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshot.swift b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshot.swift index 2d5b4d634..7d45d8731 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshot.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshot.swift @@ -7,7 +7,11 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { public var sourceFileChecksum: String? public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, assetToken: String? = nil, assetType: String? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + assetToken: String? = nil, + assetType: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.assetToken = assetToken self.assetType = assetType @@ -75,7 +87,9 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -112,7 +126,9 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -130,8 +146,8 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift index 08911abc8..bb5844b83 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseAppStoreReviewScreenshotCreateRequest: Codable, Reque public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct InAppPurchaseAppStoreReviewScreenshotCreateRequest: Codable, Reque } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } diff --git a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotResponse.swift index ef621609e..d3eaafe67 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotResponse.swift @@ -5,7 +5,10 @@ public struct InAppPurchaseAppStoreReviewScreenshotResponse: Codable { public var included: [InAppPurchaseV2]? public let links: DocumentLinks - public init(data: InAppPurchaseAppStoreReviewScreenshot, included: [InAppPurchaseV2]? = nil, links: DocumentLinks) { + public init(data: InAppPurchaseAppStoreReviewScreenshot, + included: [InAppPurchaseV2]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift index 116374a18..f47b825ca 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseAppStoreReviewScreenshotUpdateRequest: Codable, Reque public var type: String { "inAppPurchaseAppStoreReviewScreenshots" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct InAppPurchaseAppStoreReviewScreenshotUpdateRequest: Codable, Reque } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/InAppPurchaseContent.swift b/Sources/Bagbutik/Models/InAppPurchaseContent.swift index c5f11119d..5ae0fafb2 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseContent.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseContent.swift @@ -7,7 +7,11 @@ public struct InAppPurchaseContent: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchaseContent: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct InAppPurchaseContent: Codable { public var lastModifiedDate: Date? public var url: String? - public init(fileName: String? = nil, fileSize: Int? = nil, lastModifiedDate: Date? = nil, url: String? = nil) { + public init(fileName: String? = nil, + fileSize: Int? = nil, + lastModifiedDate: Date? = nil, + url: String? = nil) + { self.fileName = fileName self.fileSize = fileSize self.lastModifiedDate = lastModifiedDate @@ -67,7 +75,9 @@ public struct InAppPurchaseContent: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -104,7 +114,9 @@ public struct InAppPurchaseContent: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -122,8 +134,8 @@ public struct InAppPurchaseContent: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseContentResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseContentResponse.swift index 7538b7193..16fa286c4 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseContentResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseContentResponse.swift @@ -5,7 +5,10 @@ public struct InAppPurchaseContentResponse: Codable { public var included: [InAppPurchaseV2]? public let links: DocumentLinks - public init(data: InAppPurchaseContent, included: [InAppPurchaseV2]? = nil, links: DocumentLinks) { + public init(data: InAppPurchaseContent, + included: [InAppPurchaseV2]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseLocalization.swift b/Sources/Bagbutik/Models/InAppPurchaseLocalization.swift index 69724967e..043e745f7 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseLocalization.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseLocalization.swift @@ -7,7 +7,11 @@ public struct InAppPurchaseLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchaseLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct InAppPurchaseLocalization: Codable { public var name: String? public var state: State? - public init(description: String? = nil, locale: String? = nil, name: String? = nil, state: State? = nil) { + public init(description: String? = nil, + locale: String? = nil, + name: String? = nil, + state: State? = nil) + { self.description = description self.locale = locale self.name = name @@ -74,7 +82,9 @@ public struct InAppPurchaseLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -111,7 +121,9 @@ public struct InAppPurchaseLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -129,8 +141,8 @@ public struct InAppPurchaseLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseLocalizationCreateRequest.swift index 77a27c808..20e662e50 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct InAppPurchaseLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct InAppPurchaseLocalizationCreateRequest: Codable, RequestBody { public let locale: String public let name: String - public init(description: String? = nil, locale: String, name: String) { + public init(description: String? = nil, + locale: String, + name: String) + { self.description = description self.locale = locale self.name = name diff --git a/Sources/Bagbutik/Models/InAppPurchaseLocalizationResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseLocalizationResponse.swift index 3ed71501c..707cc271b 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct InAppPurchaseLocalizationResponse: Codable { public var included: [InAppPurchaseV2]? public let links: DocumentLinks - public init(data: InAppPurchaseLocalization, included: [InAppPurchaseV2]? = nil, links: DocumentLinks) { + public init(data: InAppPurchaseLocalization, + included: [InAppPurchaseV2]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseLocalizationUpdateRequest.swift index 58301c96a..be1f030df 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseLocalizationUpdateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "inAppPurchaseLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct InAppPurchaseLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var description: String? public var name: String? - public init(description: String? = nil, name: String? = nil) { + public init(description: String? = nil, + name: String? = nil) + { self.description = description self.name = name } diff --git a/Sources/Bagbutik/Models/InAppPurchaseLocalizationsResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseLocalizationsResponse.swift index be02672cc..2e42f4732 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct InAppPurchaseLocalizationsResponse: Codable, PagedResponse { public typealias Data = InAppPurchaseLocalization + public let data: [InAppPurchaseLocalization] public var included: [InAppPurchaseV2]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [InAppPurchaseLocalization], included: [InAppPurchaseV2]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [InAppPurchaseLocalization], + included: [InAppPurchaseV2]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchasePrice.swift b/Sources/Bagbutik/Models/InAppPurchasePrice.swift index dbe5f0f49..4b151dbae 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePrice.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePrice.swift @@ -7,7 +7,11 @@ public struct InAppPurchasePrice: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchasePrice: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -54,7 +58,9 @@ public struct InAppPurchasePrice: Codable { public var inAppPurchasePricePoint: InAppPurchasePricePoint? public var territory: Territory? - public init(inAppPurchasePricePoint: InAppPurchasePricePoint? = nil, territory: Territory? = nil) { + public init(inAppPurchasePricePoint: InAppPurchasePricePoint? = nil, + territory: Territory? = nil) + { self.inAppPurchasePricePoint = inAppPurchasePricePoint self.territory = territory } @@ -63,7 +69,9 @@ public struct InAppPurchasePrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -100,7 +108,9 @@ public struct InAppPurchasePrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -118,8 +128,8 @@ public struct InAppPurchasePrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -128,7 +138,9 @@ public struct InAppPurchasePrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -165,7 +177,9 @@ public struct InAppPurchasePrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -183,8 +197,8 @@ public struct InAppPurchasePrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchasePriceInlineCreate.swift b/Sources/Bagbutik/Models/InAppPurchasePriceInlineCreate.swift index d1b0feb0f..b58ce7ad1 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePriceInlineCreate.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePriceInlineCreate.swift @@ -6,7 +6,10 @@ public struct InAppPurchasePriceInlineCreate: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,10 +34,10 @@ public struct InAppPurchasePriceInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { @@ -49,7 +52,9 @@ public struct InAppPurchasePriceInlineCreate: Codable { public var inAppPurchasePricePoint: InAppPurchasePricePoint? public var inAppPurchaseV2: InAppPurchaseV2? - public init(inAppPurchasePricePoint: InAppPurchasePricePoint? = nil, inAppPurchaseV2: InAppPurchaseV2? = nil) { + public init(inAppPurchasePricePoint: InAppPurchasePricePoint? = nil, + inAppPurchaseV2: InAppPurchaseV2? = nil) + { self.inAppPurchasePricePoint = inAppPurchasePricePoint self.inAppPurchaseV2 = inAppPurchaseV2 } diff --git a/Sources/Bagbutik/Models/InAppPurchasePricePoint.swift b/Sources/Bagbutik/Models/InAppPurchasePricePoint.swift index c20d1626f..eda729940 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePricePoint.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePricePoint.swift @@ -7,7 +7,11 @@ public struct InAppPurchasePricePoint: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchasePricePoint: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +51,10 @@ public struct InAppPurchasePricePoint: Codable { public var priceTier: String? public var proceeds: String? - public init(customerPrice: String? = nil, priceTier: String? = nil, proceeds: String? = nil) { + public init(customerPrice: String? = nil, + priceTier: String? = nil, + proceeds: String? = nil) + { self.customerPrice = customerPrice self.priceTier = priceTier self.proceeds = proceeds @@ -65,7 +72,9 @@ public struct InAppPurchasePricePoint: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -102,7 +111,9 @@ public struct InAppPurchasePricePoint: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -120,8 +131,8 @@ public struct InAppPurchasePricePoint: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchasePricePointsResponse.swift b/Sources/Bagbutik/Models/InAppPurchasePricePointsResponse.swift index f13e027d7..e563a625b 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePricePointsResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePricePointsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct InAppPurchasePricePointsResponse: Codable, PagedResponse { public typealias Data = InAppPurchasePricePoint + public let data: [InAppPurchasePricePoint] public var included: [Territory]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [InAppPurchasePricePoint], included: [Territory]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [InAppPurchasePricePoint], + included: [Territory]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchasePriceSchedule.swift b/Sources/Bagbutik/Models/InAppPurchasePriceSchedule.swift index b2ad59d67..6678ecf2b 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePriceSchedule.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePriceSchedule.swift @@ -6,7 +6,10 @@ public struct InAppPurchasePriceSchedule: Codable { public var type: String { "inAppPurchasePriceSchedules" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -33,15 +36,17 @@ public struct InAppPurchasePriceSchedule: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } public struct Relationships: Codable { public var inAppPurchase: InAppPurchase? public var manualPrices: ManualPrices? - public init(inAppPurchase: InAppPurchase? = nil, manualPrices: ManualPrices? = nil) { + public init(inAppPurchase: InAppPurchase? = nil, + manualPrices: ManualPrices? = nil) + { self.inAppPurchase = inAppPurchase self.manualPrices = manualPrices } @@ -50,7 +55,9 @@ public struct InAppPurchasePriceSchedule: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -87,7 +94,9 @@ public struct InAppPurchasePriceSchedule: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -105,8 +114,8 @@ public struct InAppPurchasePriceSchedule: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -116,7 +125,10 @@ public struct InAppPurchasePriceSchedule: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -154,7 +166,9 @@ public struct InAppPurchasePriceSchedule: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -172,8 +186,8 @@ public struct InAppPurchasePriceSchedule: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchasePriceScheduleCreateRequest.swift b/Sources/Bagbutik/Models/InAppPurchasePriceScheduleCreateRequest.swift index 62b560c4a..783afc99e 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePriceScheduleCreateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePriceScheduleCreateRequest.swift @@ -4,7 +4,9 @@ public struct InAppPurchasePriceScheduleCreateRequest: Codable, RequestBody { public let data: Data public var included: [InAppPurchasePriceInlineCreate]? - public init(data: Data, included: [InAppPurchasePriceInlineCreate]? = nil) { + public init(data: Data, + included: [InAppPurchasePriceInlineCreate]? = nil) + { self.data = data self.included = included } @@ -32,15 +34,17 @@ public struct InAppPurchasePriceScheduleCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { public let inAppPurchase: InAppPurchase public let manualPrices: ManualPrices - public init(inAppPurchase: InAppPurchase, manualPrices: ManualPrices) { + public init(inAppPurchase: InAppPurchase, + manualPrices: ManualPrices) + { self.inAppPurchase = inAppPurchase self.manualPrices = manualPrices } diff --git a/Sources/Bagbutik/Models/InAppPurchasePriceScheduleResponse.swift b/Sources/Bagbutik/Models/InAppPurchasePriceScheduleResponse.swift index 4be17f04b..30eb9e9ce 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePriceScheduleResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePriceScheduleResponse.swift @@ -5,7 +5,10 @@ public struct InAppPurchasePriceScheduleResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: InAppPurchasePriceSchedule, included: [Included]? = nil, links: DocumentLinks) { + public init(data: InAppPurchasePriceSchedule, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchasePricesResponse.swift b/Sources/Bagbutik/Models/InAppPurchasePricesResponse.swift index 72bc38abd..ffc4b2384 100644 --- a/Sources/Bagbutik/Models/InAppPurchasePricesResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchasePricesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct InAppPurchasePricesResponse: Codable, PagedResponse { public typealias Data = InAppPurchasePrice + public let data: [InAppPurchasePrice] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [InAppPurchasePrice], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [InAppPurchasePrice], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseResponse.swift index 5d75e8dc4..22acd7be1 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # InAppPurchaseResponse A response that contains a single In-App Purchases resource. Full documentation: @@ -11,7 +12,10 @@ public struct InAppPurchaseResponse: Codable { public var included: [App]? public let links: DocumentLinks - public init(data: InAppPurchase, included: [App]? = nil, links: DocumentLinks) { + public init(data: InAppPurchase, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseSubmission.swift b/Sources/Bagbutik/Models/InAppPurchaseSubmission.swift index e186f4ac4..f1ab1eb8d 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseSubmission.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseSubmission.swift @@ -6,7 +6,10 @@ public struct InAppPurchaseSubmission: Codable { public var type: String { "inAppPurchaseSubmissions" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -33,8 +36,8 @@ public struct InAppPurchaseSubmission: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } public struct Relationships: Codable { @@ -48,7 +51,9 @@ public struct InAppPurchaseSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -85,7 +90,9 @@ public struct InAppPurchaseSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -103,8 +110,8 @@ public struct InAppPurchaseSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseSubmissionCreateRequest.swift index c1a257e46..52d0ecb9e 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseSubmissionCreateRequest.swift @@ -30,8 +30,8 @@ public struct InAppPurchaseSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { diff --git a/Sources/Bagbutik/Models/InAppPurchaseSubmissionResponse.swift b/Sources/Bagbutik/Models/InAppPurchaseSubmissionResponse.swift index a749f7973..6668e0db0 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseSubmissionResponse.swift @@ -5,7 +5,10 @@ public struct InAppPurchaseSubmissionResponse: Codable { public var included: [InAppPurchaseV2]? public let links: DocumentLinks - public init(data: InAppPurchaseSubmission, included: [InAppPurchaseV2]? = nil, links: DocumentLinks) { + public init(data: InAppPurchaseSubmission, + included: [InAppPurchaseV2]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseV2.swift b/Sources/Bagbutik/Models/InAppPurchaseV2.swift index fd14a0cf3..3f06f776f 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseV2.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseV2.swift @@ -7,7 +7,11 @@ public struct InAppPurchaseV2: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct InAppPurchaseV2: Codable { public var reviewNote: String? public var state: InAppPurchaseState? - public init(availableInAllTerritories: Bool? = nil, contentHosting: Bool? = nil, familySharable: Bool? = nil, inAppPurchaseType: InAppPurchaseType? = nil, name: String? = nil, productId: String? = nil, reviewNote: String? = nil, state: InAppPurchaseState? = nil) { + public init(availableInAllTerritories: Bool? = nil, + contentHosting: Bool? = nil, + familySharable: Bool? = nil, + inAppPurchaseType: InAppPurchaseType? = nil, + name: String? = nil, + productId: String? = nil, + reviewNote: String? = nil, + state: InAppPurchaseState? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.contentHosting = contentHosting self.familySharable = familySharable @@ -72,7 +84,13 @@ public struct InAppPurchaseV2: Codable { public var pricePoints: PricePoints? public var promotedPurchase: PromotedPurchase? - public init(appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, content: Content? = nil, iapPriceSchedule: IapPriceSchedule? = nil, inAppPurchaseLocalizations: InAppPurchaseLocalizations? = nil, pricePoints: PricePoints? = nil, promotedPurchase: PromotedPurchase? = nil) { + public init(appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, + content: Content? = nil, + iapPriceSchedule: IapPriceSchedule? = nil, + inAppPurchaseLocalizations: InAppPurchaseLocalizations? = nil, + pricePoints: PricePoints? = nil, + promotedPurchase: PromotedPurchase? = nil) + { self.appStoreReviewScreenshot = appStoreReviewScreenshot self.content = content self.iapPriceSchedule = iapPriceSchedule @@ -85,7 +103,9 @@ public struct InAppPurchaseV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -122,7 +142,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -140,8 +162,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -150,7 +172,9 @@ public struct InAppPurchaseV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -187,7 +211,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -205,8 +231,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -215,7 +241,9 @@ public struct InAppPurchaseV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -252,7 +280,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -270,8 +300,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -281,7 +311,10 @@ public struct InAppPurchaseV2: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -319,7 +352,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -337,8 +372,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -348,7 +383,10 @@ public struct InAppPurchaseV2: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -386,7 +424,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -404,8 +444,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -414,7 +454,9 @@ public struct InAppPurchaseV2: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -451,7 +493,9 @@ public struct InAppPurchaseV2: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -469,8 +513,8 @@ public struct InAppPurchaseV2: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/InAppPurchaseV2CreateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseV2CreateRequest.swift index 4d869d33c..7e527406a 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseV2CreateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseV2CreateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseV2CreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct InAppPurchaseV2CreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +49,13 @@ public struct InAppPurchaseV2CreateRequest: Codable, RequestBody { public let productId: String public var reviewNote: String? - public init(availableInAllTerritories: Bool? = nil, familySharable: Bool? = nil, inAppPurchaseType: InAppPurchaseType, name: String, productId: String, reviewNote: String? = nil) { + public init(availableInAllTerritories: Bool? = nil, + familySharable: Bool? = nil, + inAppPurchaseType: InAppPurchaseType, + name: String, + productId: String, + reviewNote: String? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.familySharable = familySharable self.inAppPurchaseType = inAppPurchaseType diff --git a/Sources/Bagbutik/Models/InAppPurchaseV2Response.swift b/Sources/Bagbutik/Models/InAppPurchaseV2Response.swift index de1e7ef40..d8e7287da 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseV2Response.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseV2Response.swift @@ -5,7 +5,10 @@ public struct InAppPurchaseV2Response: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: InAppPurchaseV2, included: [Included]? = nil, links: DocumentLinks) { + public init(data: InAppPurchaseV2, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchaseV2UpdateRequest.swift b/Sources/Bagbutik/Models/InAppPurchaseV2UpdateRequest.swift index a434efe1e..5d757af9f 100644 --- a/Sources/Bagbutik/Models/InAppPurchaseV2UpdateRequest.swift +++ b/Sources/Bagbutik/Models/InAppPurchaseV2UpdateRequest.swift @@ -12,7 +12,9 @@ public struct InAppPurchaseV2UpdateRequest: Codable, RequestBody { public var type: String { "inAppPurchases" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct InAppPurchaseV2UpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { @@ -45,7 +47,11 @@ public struct InAppPurchaseV2UpdateRequest: Codable, RequestBody { public var name: String? public var reviewNote: String? - public init(availableInAllTerritories: Bool? = nil, familySharable: Bool? = nil, name: String? = nil, reviewNote: String? = nil) { + public init(availableInAllTerritories: Bool? = nil, + familySharable: Bool? = nil, + name: String? = nil, + reviewNote: String? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.familySharable = familySharable self.name = name diff --git a/Sources/Bagbutik/Models/InAppPurchasesResponse.swift b/Sources/Bagbutik/Models/InAppPurchasesResponse.swift index 56d2ddab5..050fc4573 100644 --- a/Sources/Bagbutik/Models/InAppPurchasesResponse.swift +++ b/Sources/Bagbutik/Models/InAppPurchasesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # InAppPurchasesResponse A response that contains a list of In-App Purchase resources. Full documentation: @@ -8,12 +9,17 @@ import Foundation */ public struct InAppPurchasesResponse: Codable, PagedResponse { public typealias Data = InAppPurchase + public let data: [InAppPurchase] public var included: [App]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [InAppPurchase], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [InAppPurchase], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InAppPurchasesV2Response.swift b/Sources/Bagbutik/Models/InAppPurchasesV2Response.swift index fb1959c7a..388d0a9e9 100644 --- a/Sources/Bagbutik/Models/InAppPurchasesV2Response.swift +++ b/Sources/Bagbutik/Models/InAppPurchasesV2Response.swift @@ -2,12 +2,17 @@ import Foundation public struct InAppPurchasesV2Response: Codable, PagedResponse { public typealias Data = InAppPurchaseV2 + public let data: [InAppPurchaseV2] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [InAppPurchaseV2], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [InAppPurchaseV2], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/InternalBetaState.swift b/Sources/Bagbutik/Models/InternalBetaState.swift index f74ca17b6..c35bfc47d 100644 --- a/Sources/Bagbutik/Models/InternalBetaState.swift +++ b/Sources/Bagbutik/Models/InternalBetaState.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents a build's availability for internal testing. + # InternalBetaState + String that represents a build's availability for internal testing. - Full documentation: - + Full documentation: + */ public enum InternalBetaState: String, Codable, CaseIterable { case processing = "PROCESSING" diff --git a/Sources/Bagbutik/Models/JsonPointer.swift b/Sources/Bagbutik/Models/JsonPointer.swift index 721662a32..41c83cfd1 100644 --- a/Sources/Bagbutik/Models/JsonPointer.swift +++ b/Sources/Bagbutik/Models/JsonPointer.swift @@ -1,12 +1,13 @@ import Foundation /** + # JsonPointer An object that contains the JSON pointer that indicates the location of the error. + In some cases, the JSON pointer may indicate an element that isn’t in the request entity, but should be. For more information about JSON pointers, see the [RFC 6901](https://tools.ietf.org/html/rfc6901) proposed standards document. + Full documentation: - - In some cases, the JSON pointer may indicate an element that isn’t in the request entity, but should be. For more information about JSON pointers, see the [RFC 6901](https://tools.ietf.org/html/rfc6901) proposed standards document. */ public struct JsonPointer: Codable { /// A JSON pointer that indicates the location in the request entity where the error originates. diff --git a/Sources/Bagbutik/Models/KidsAgeBand.swift b/Sources/Bagbutik/Models/KidsAgeBand.swift index 27f79e991..38f3ba693 100644 --- a/Sources/Bagbutik/Models/KidsAgeBand.swift +++ b/Sources/Bagbutik/Models/KidsAgeBand.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents a Made for Kids app's age band. + # KidsAgeBand + String that represents a Made for Kids app's age band. - Full documentation: - + Full documentation: + */ public enum KidsAgeBand: String, Codable, CaseIterable { /// A literal that represents the age band for ages 5 and under. diff --git a/Sources/Bagbutik/Models/MetricCategory.swift b/Sources/Bagbutik/Models/MetricCategory.swift index 96b30d5f6..c16d0be21 100644 --- a/Sources/Bagbutik/Models/MetricCategory.swift +++ b/Sources/Bagbutik/Models/MetricCategory.swift @@ -1,10 +1,11 @@ import Foundation /** - Categories of metric reports for apps that you distribute through the App Store. + # MetricCategory + Categories of metric reports for apps that you distribute through the App Store. - Full documentation: - + Full documentation: + */ public enum MetricCategory: String, Codable, CaseIterable { /// The number of seconds per hour that the main thread of the app is unresponsive for more than 250ms, which is the maximum amount of time an app can respond to a typical user event before the user perceives it as slow. diff --git a/Sources/Bagbutik/Models/MetricsInsight.swift b/Sources/Bagbutik/Models/MetricsInsight.swift index 7236a2399..5704f81bd 100644 --- a/Sources/Bagbutik/Models/MetricsInsight.swift +++ b/Sources/Bagbutik/Models/MetricsInsight.swift @@ -1,6 +1,7 @@ import Foundation /** + # MetricsInsight Results of an analysis of metric data for a single metric category for your app. Full documentation: @@ -26,7 +27,16 @@ public struct MetricsInsight: Codable { /// A human-readable description of the trend. public var summaryString: String? - public init(highImpact: Bool? = nil, latestVersion: String? = nil, maxLatestVersionValue: Double? = nil, metric: String? = nil, metricCategory: MetricCategory? = nil, populations: [Populations]? = nil, referenceVersions: String? = nil, subSystemLabel: String? = nil, summaryString: String? = nil) { + public init(highImpact: Bool? = nil, + latestVersion: String? = nil, + maxLatestVersionValue: Double? = nil, + metric: String? = nil, + metricCategory: MetricCategory? = nil, + populations: [Populations]? = nil, + referenceVersions: String? = nil, + subSystemLabel: String? = nil, + summaryString: String? = nil) + { self.highImpact = highImpact self.latestVersion = latestVersion self.maxLatestVersionValue = maxLatestVersionValue @@ -39,6 +49,7 @@ public struct MetricsInsight: Codable { } /** + # MetricsInsight.Populations The value of a metric for a device type on the latest app version, and its percent change as compared with previous app versions. Full documentation: @@ -58,7 +69,13 @@ public struct MetricsInsight: Codable { /// A human-readable description of the metric and population. public var summaryString: String? - public init(deltaPercentage: Double? = nil, device: String? = nil, latestVersionValue: Double? = nil, percentile: String? = nil, referenceAverageValue: Double? = nil, summaryString: String? = nil) { + public init(deltaPercentage: Double? = nil, + device: String? = nil, + latestVersionValue: Double? = nil, + percentile: String? = nil, + referenceAverageValue: Double? = nil, + summaryString: String? = nil) + { self.deltaPercentage = deltaPercentage self.device = device self.latestVersionValue = latestVersionValue diff --git a/Sources/Bagbutik/Models/PagedDocumentLinks.swift b/Sources/Bagbutik/Models/PagedDocumentLinks.swift index 866887ddd..7188350d8 100644 --- a/Sources/Bagbutik/Models/PagedDocumentLinks.swift +++ b/Sources/Bagbutik/Models/PagedDocumentLinks.swift @@ -1,12 +1,13 @@ import Foundation /** + # PagedDocumentLinks Links related to the response document, including paging links. + All the response data constitutes multiple *documents.* + Full documentation: - - All the response data constitutes multiple *documents.* */ public struct PagedDocumentLinks: Codable { /// The link to the first page of documents. @@ -16,7 +17,10 @@ public struct PagedDocumentLinks: Codable { /// The link that produced the current document. public let itself: String - public init(first: String? = nil, next: String? = nil, self itself: String) { + public init(first: String? = nil, + next: String? = nil, + self itself: String) + { self.first = first self.next = next self.itself = itself @@ -38,7 +42,7 @@ public struct PagedDocumentLinks: Codable { private enum CodingKeys: String, CodingKey { case first - case next case itself = "self" + case next } } diff --git a/Sources/Bagbutik/Models/PagingInformation.swift b/Sources/Bagbutik/Models/PagingInformation.swift index 5df92b093..676e41389 100644 --- a/Sources/Bagbutik/Models/PagingInformation.swift +++ b/Sources/Bagbutik/Models/PagingInformation.swift @@ -1,6 +1,7 @@ import Foundation /** + # PagingInformation Paging information for data responses. Full documentation: @@ -15,15 +16,16 @@ public struct PagingInformation: Codable { } /** - Paging details such as the total number of resources and the per-page limit. + # PagingInformation.Paging + Paging details such as the total number of resources and the per-page limit. - Full documentation: - - - Adjust the number of resources returned per page by using the `limit` query parameter in your request. For example, the following request returns the first 10 testers: + Adjust the number of resources returned per page by using the `limit` query parameter in your request. For example, the following request returns the first 10 testers: ``` GET /v1/betaTesters?limit=10 ``` + + Full documentation: + */ public struct Paging: Codable { /// The maximum number of resources to return per page, from 0 to 200. @@ -31,7 +33,9 @@ public struct PagingInformation: Codable { /// The total number of resources matching your request. public var total: Int? - public init(limit: Int, total: Int? = nil) { + public init(limit: Int, + total: Int? = nil) + { self.limit = limit self.total = total } diff --git a/Sources/Bagbutik/Models/Parameter.swift b/Sources/Bagbutik/Models/Parameter.swift index e708ee1ca..39ba68bab 100644 --- a/Sources/Bagbutik/Models/Parameter.swift +++ b/Sources/Bagbutik/Models/Parameter.swift @@ -1,6 +1,7 @@ import Foundation /** + # Parameter An object that contains the query parameter that produced the error. Full documentation: diff --git a/Sources/Bagbutik/Models/PerfPowerMetric.swift b/Sources/Bagbutik/Models/PerfPowerMetric.swift index be12a28fd..5ae5e4334 100644 --- a/Sources/Bagbutik/Models/PerfPowerMetric.swift +++ b/Sources/Bagbutik/Models/PerfPowerMetric.swift @@ -1,6 +1,7 @@ import Foundation /** + # PerfPowerMetric Unused. Full documentation: @@ -12,7 +13,10 @@ public struct PerfPowerMetric: Codable { public var type: String { "perfPowerMetrics" } public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -37,13 +41,14 @@ public struct PerfPowerMetric: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # PerfPowerMetric.Attributes Attributes that describe a Power and Performance Metrics resource. Full documentation: @@ -56,7 +61,10 @@ public struct PerfPowerMetric: Codable { public var metricType: MetricType? public var platform: Platform? - public init(deviceType: String? = nil, metricType: MetricType? = nil, platform: Platform? = nil) { + public init(deviceType: String? = nil, + metricType: MetricType? = nil, + platform: Platform? = nil) + { self.deviceType = deviceType self.metricType = metricType self.platform = platform diff --git a/Sources/Bagbutik/Models/PhasedReleaseState.swift b/Sources/Bagbutik/Models/PhasedReleaseState.swift index 088bc8634..1a6ffb499 100644 --- a/Sources/Bagbutik/Models/PhasedReleaseState.swift +++ b/Sources/Bagbutik/Models/PhasedReleaseState.swift @@ -1,12 +1,13 @@ import Foundation /** - String that represents the progress of a phased release for an app version. + # PhasedReleaseState + String that represents the progress of a phased release for an app version. - Full documentation: - + For more information about phased releases including pausing an update, see [Release a version update in phases](https://help.apple.com/app-store-connect/#/dev3d65fcee1). - For more information about phased releases including pausing an update, see [Release a version update in phases](https://help.apple.com/app-store-connect/#/dev3d65fcee1). + Full documentation: + */ public enum PhasedReleaseState: String, Codable, CaseIterable { /// The phased release hasn’t started. diff --git a/Sources/Bagbutik/Models/Platform.swift b/Sources/Bagbutik/Models/Platform.swift index 2b415467b..f7e36b814 100644 --- a/Sources/Bagbutik/Models/Platform.swift +++ b/Sources/Bagbutik/Models/Platform.swift @@ -1,10 +1,11 @@ import Foundation /** - Strings that represent Apple operating systems. + # Platform + Strings that represent Apple operating systems. - Full documentation: - + Full documentation: + */ public enum Platform: String, Codable, CaseIterable { /// A string that represents iOS. diff --git a/Sources/Bagbutik/Models/PreReleaseVersionsResponse.swift b/Sources/Bagbutik/Models/PreReleaseVersionsResponse.swift index 63572143d..c849ebcfe 100644 --- a/Sources/Bagbutik/Models/PreReleaseVersionsResponse.swift +++ b/Sources/Bagbutik/Models/PreReleaseVersionsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # PreReleaseVersionsResponse A response that contains a list of Pre-Release Version resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct PreReleaseVersionsResponse: Codable, PagedResponse { public typealias Data = PrereleaseVersion + /// The resource data. public let data: [PrereleaseVersion] public var included: [Included]? @@ -16,7 +18,11 @@ public struct PreReleaseVersionsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [PrereleaseVersion], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [PrereleaseVersion], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PrereleaseVersion.swift b/Sources/Bagbutik/Models/PrereleaseVersion.swift index f6006c535..680bfde29 100644 --- a/Sources/Bagbutik/Models/PrereleaseVersion.swift +++ b/Sources/Bagbutik/Models/PrereleaseVersion.swift @@ -1,6 +1,7 @@ import Foundation /** + # PrereleaseVersion The data structure that represents a Prerelease Versions resource. Full documentation: @@ -18,7 +19,11 @@ public struct PrereleaseVersion: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct PrereleaseVersion: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # PrereleaseVersion.Attributes Attributes that describe a Prerelease Versions resource. Full documentation: @@ -65,13 +71,16 @@ public struct PrereleaseVersion: Codable { /// The version number of the prerelease version of your app. public var version: String? - public init(platform: Platform? = nil, version: String? = nil) { + public init(platform: Platform? = nil, + version: String? = nil) + { self.platform = platform self.version = version } } /** + # PrereleaseVersion.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -81,12 +90,15 @@ public struct PrereleaseVersion: Codable { public var app: App? public var builds: Builds? - public init(app: App? = nil, builds: Builds? = nil) { + public init(app: App? = nil, + builds: Builds? = nil) + { self.app = app self.builds = builds } /** + # PrereleaseVersion.Relationships.App The data and links that describe the relationship between the resources. Full documentation: @@ -96,12 +108,15 @@ public struct PrereleaseVersion: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # PrereleaseVersion.Relationships.App.Data The type and ID of a related resource. Full documentation: @@ -138,6 +153,7 @@ public struct PrereleaseVersion: Codable { } /** + # PrereleaseVersion.Relationships.App.Links The links to the related data and the relationship's self-link. Full documentation: @@ -147,7 +163,9 @@ public struct PrereleaseVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -165,13 +183,14 @@ public struct PrereleaseVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # PrereleaseVersion.Relationships.Builds The data and links that describe the relationship between the resources. Full documentation: @@ -182,13 +201,17 @@ public struct PrereleaseVersion: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # PrereleaseVersion.Relationships.Builds.Data The type and ID of a related resource. Full documentation: @@ -225,6 +248,7 @@ public struct PrereleaseVersion: Codable { } /** + # PrereleaseVersion.Relationships.Builds.Links The links to the related data and the relationship's self-link. Full documentation: @@ -234,7 +258,9 @@ public struct PrereleaseVersion: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -252,8 +278,8 @@ public struct PrereleaseVersion: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/PrereleaseVersionResponse.swift b/Sources/Bagbutik/Models/PrereleaseVersionResponse.swift index 0b0619973..7c8055f77 100644 --- a/Sources/Bagbutik/Models/PrereleaseVersionResponse.swift +++ b/Sources/Bagbutik/Models/PrereleaseVersionResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # PrereleaseVersionResponse A response that contains a single Prerelease Versions resource. Full documentation: @@ -13,7 +14,10 @@ public struct PrereleaseVersionResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: PrereleaseVersion, included: [Included]? = nil, links: DocumentLinks) { + public init(data: PrereleaseVersion, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PreviewType.swift b/Sources/Bagbutik/Models/PreviewType.swift index 27e7c5329..ce562e22a 100644 --- a/Sources/Bagbutik/Models/PreviewType.swift +++ b/Sources/Bagbutik/Models/PreviewType.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents the display type of an app preview. + # PreviewType + String that represents the display type of an app preview. - Full documentation: - + Full documentation: + */ public enum PreviewType: String, Codable, CaseIterable { case iPhone65 = "IPHONE_65" diff --git a/Sources/Bagbutik/Models/Profile.swift b/Sources/Bagbutik/Models/Profile.swift index 23d516521..151a3cbcc 100644 --- a/Sources/Bagbutik/Models/Profile.swift +++ b/Sources/Bagbutik/Models/Profile.swift @@ -1,6 +1,7 @@ import Foundation /** + # Profile The data structure that represents a Profiles resource. Full documentation: @@ -18,7 +19,11 @@ public struct Profile: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct Profile: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # Profile.Attributes Attributes that describe a Profiles resource. Full documentation: @@ -69,7 +75,15 @@ public struct Profile: Codable { public var profileType: ProfileType? public var uuid: String? - public init(createdDate: Date? = nil, expirationDate: Date? = nil, name: String? = nil, platform: BundleIdPlatform? = nil, profileContent: String? = nil, profileState: ProfileState? = nil, profileType: ProfileType? = nil, uuid: String? = nil) { + public init(createdDate: Date? = nil, + expirationDate: Date? = nil, + name: String? = nil, + platform: BundleIdPlatform? = nil, + profileContent: String? = nil, + profileState: ProfileState? = nil, + profileType: ProfileType? = nil, + uuid: String? = nil) + { self.createdDate = createdDate self.expirationDate = expirationDate self.name = name @@ -104,6 +118,7 @@ public struct Profile: Codable { } /** + # Profile.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -114,13 +129,17 @@ public struct Profile: Codable { public var certificates: Certificates? public var devices: Devices? - public init(bundleId: BundleId? = nil, certificates: Certificates? = nil, devices: Devices? = nil) { + public init(bundleId: BundleId? = nil, + certificates: Certificates? = nil, + devices: Devices? = nil) + { self.bundleId = bundleId self.certificates = certificates self.devices = devices } /** + # Profile.Relationships.BundleId The data and links that describe the relationship between the resources. Full documentation: @@ -130,12 +149,15 @@ public struct Profile: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # Profile.Relationships.BundleId.Data The type and ID of a related resource. Full documentation: @@ -170,6 +192,7 @@ public struct Profile: Codable { } /** + # Profile.Relationships.BundleId.Links The links to the related data and the relationship's self-link. Full documentation: @@ -179,7 +202,9 @@ public struct Profile: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -197,13 +222,14 @@ public struct Profile: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Profile.Relationships.Certificates The data and links that describe the relationship between the resources. Full documentation: @@ -214,13 +240,17 @@ public struct Profile: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Profile.Relationships.Certificates.Data The type and ID of a related resource. Full documentation: @@ -255,6 +285,7 @@ public struct Profile: Codable { } /** + # Profile.Relationships.Certificates.Links The links to the related data and the relationship's self-link. Full documentation: @@ -264,7 +295,9 @@ public struct Profile: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -282,13 +315,14 @@ public struct Profile: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # Profile.Relationships.Devices The data and links that describe the relationship between the resources. Full documentation: @@ -299,13 +333,17 @@ public struct Profile: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # Profile.Relationships.Devices.Data The type and ID of a related resource. Full documentation: @@ -340,6 +378,7 @@ public struct Profile: Codable { } /** + # Profile.Relationships.Devices.Links The links to the related data and the relationship's self-link. Full documentation: @@ -349,7 +388,9 @@ public struct Profile: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -367,8 +408,8 @@ public struct Profile: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ProfileCreateRequest.swift b/Sources/Bagbutik/Models/ProfileCreateRequest.swift index a9a728d05..7c5d1bf89 100644 --- a/Sources/Bagbutik/Models/ProfileCreateRequest.swift +++ b/Sources/Bagbutik/Models/ProfileCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # ProfileCreateRequest The request body you use to create a Profile. Full documentation: @@ -15,6 +16,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data The data element of the request body. Full documentation: @@ -25,7 +27,9 @@ public struct ProfileCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -47,12 +51,13 @@ public struct ProfileCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # ProfileCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -62,13 +67,16 @@ public struct ProfileCreateRequest: Codable, RequestBody { public let name: String public let profileType: Profile.Attributes.ProfileType - public init(name: String, profileType: Profile.Attributes.ProfileType) { + public init(name: String, + profileType: Profile.Attributes.ProfileType) + { self.name = name self.profileType = profileType } } /** + # ProfileCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -79,13 +87,17 @@ public struct ProfileCreateRequest: Codable, RequestBody { public let certificates: Certificates public var devices: Devices? - public init(bundleId: BundleId, certificates: Certificates, devices: Devices? = nil) { + public init(bundleId: BundleId, + certificates: Certificates, + devices: Devices? = nil) + { self.bundleId = bundleId self.certificates = certificates self.devices = devices } /** + # ProfileCreateRequest.Data.Relationships.BundleId The relationships to other resources that you can set with this request. Full documentation: @@ -99,6 +111,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data.Relationships.BundleId.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -134,6 +147,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data.Relationships.Certificates The relationships to other resources that you can set with this request. Full documentation: @@ -147,6 +161,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data.Relationships.Certificates.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: @@ -182,6 +197,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data.Relationships.Devices The relationships to other resources that you can set with this request. Full documentation: @@ -195,6 +211,7 @@ public struct ProfileCreateRequest: Codable, RequestBody { } /** + # ProfileCreateRequest.Data.Relationships.Devices.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/ProfileResponse.swift b/Sources/Bagbutik/Models/ProfileResponse.swift index d1bdc7c5a..a403074e7 100644 --- a/Sources/Bagbutik/Models/ProfileResponse.swift +++ b/Sources/Bagbutik/Models/ProfileResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ProfileResponse A response that contains a single Profiles resource. Full documentation: @@ -13,7 +14,10 @@ public struct ProfileResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: Profile, included: [Included]? = nil, links: DocumentLinks) { + public init(data: Profile, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ProfilesResponse.swift b/Sources/Bagbutik/Models/ProfilesResponse.swift index ece3d6004..2344eb9d1 100644 --- a/Sources/Bagbutik/Models/ProfilesResponse.swift +++ b/Sources/Bagbutik/Models/ProfilesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ProfilesResponse A response that contains a list of Profiles resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct ProfilesResponse: Codable, PagedResponse { public typealias Data = Profile + /// The resource data. public let data: [Profile] public var included: [Included]? @@ -16,7 +18,11 @@ public struct ProfilesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Profile], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Profile], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PromotedPurchase.swift b/Sources/Bagbutik/Models/PromotedPurchase.swift index 55c02d158..815716524 100644 --- a/Sources/Bagbutik/Models/PromotedPurchase.swift +++ b/Sources/Bagbutik/Models/PromotedPurchase.swift @@ -7,7 +7,11 @@ public struct PromotedPurchase: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct PromotedPurchase: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +51,10 @@ public struct PromotedPurchase: Codable { public var state: State? public var visibleForAllUsers: Bool? - public init(enabled: Bool? = nil, state: State? = nil, visibleForAllUsers: Bool? = nil) { + public init(enabled: Bool? = nil, + state: State? = nil, + visibleForAllUsers: Bool? = nil) + { self.enabled = enabled self.state = state self.visibleForAllUsers = visibleForAllUsers @@ -66,7 +73,10 @@ public struct PromotedPurchase: Codable { public var promotionImages: PromotionImages? public var subscription: Subscription? - public init(inAppPurchaseV2: InAppPurchaseV2? = nil, promotionImages: PromotionImages? = nil, subscription: Subscription? = nil) { + public init(inAppPurchaseV2: InAppPurchaseV2? = nil, + promotionImages: PromotionImages? = nil, + subscription: Subscription? = nil) + { self.inAppPurchaseV2 = inAppPurchaseV2 self.promotionImages = promotionImages self.subscription = subscription @@ -76,7 +86,9 @@ public struct PromotedPurchase: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -113,7 +125,9 @@ public struct PromotedPurchase: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -131,8 +145,8 @@ public struct PromotedPurchase: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -142,7 +156,10 @@ public struct PromotedPurchase: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -180,7 +197,9 @@ public struct PromotedPurchase: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -198,8 +217,8 @@ public struct PromotedPurchase: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -208,7 +227,9 @@ public struct PromotedPurchase: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -245,7 +266,9 @@ public struct PromotedPurchase: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -263,8 +286,8 @@ public struct PromotedPurchase: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/PromotedPurchaseCreateRequest.swift b/Sources/Bagbutik/Models/PromotedPurchaseCreateRequest.swift index c59420bb0..8b278d201 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseCreateRequest.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseCreateRequest.swift @@ -12,7 +12,9 @@ public struct PromotedPurchaseCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct PromotedPurchaseCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public var enabled: Bool? public let visibleForAllUsers: Bool - public init(enabled: Bool? = nil, visibleForAllUsers: Bool) { + public init(enabled: Bool? = nil, + visibleForAllUsers: Bool) + { self.enabled = enabled self.visibleForAllUsers = visibleForAllUsers } @@ -54,7 +58,10 @@ public struct PromotedPurchaseCreateRequest: Codable, RequestBody { public var inAppPurchaseV2: InAppPurchaseV2? public var subscription: Subscription? - public init(app: App, inAppPurchaseV2: InAppPurchaseV2? = nil, subscription: Subscription? = nil) { + public init(app: App, + inAppPurchaseV2: InAppPurchaseV2? = nil, + subscription: Subscription? = nil) + { self.app = app self.inAppPurchaseV2 = inAppPurchaseV2 self.subscription = subscription diff --git a/Sources/Bagbutik/Models/PromotedPurchaseImage.swift b/Sources/Bagbutik/Models/PromotedPurchaseImage.swift index fbaca1f59..af6a98cce 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseImage.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseImage.swift @@ -7,7 +7,11 @@ public struct PromotedPurchaseImage: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct PromotedPurchaseImage: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct PromotedPurchaseImage: Codable { public var state: State? public var uploadOperations: [UploadOperation]? - public init(assetToken: String? = nil, assetType: String? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, state: State? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetToken: String? = nil, + assetType: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + state: State? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetToken = assetToken self.assetType = assetType self.fileName = fileName @@ -85,7 +97,9 @@ public struct PromotedPurchaseImage: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -122,7 +136,9 @@ public struct PromotedPurchaseImage: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -140,8 +156,8 @@ public struct PromotedPurchaseImage: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/PromotedPurchaseImageCreateRequest.swift b/Sources/Bagbutik/Models/PromotedPurchaseImageCreateRequest.swift index 5af7debfc..b09052211 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseImageCreateRequest.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseImageCreateRequest.swift @@ -12,7 +12,9 @@ public struct PromotedPurchaseImageCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct PromotedPurchaseImageCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } diff --git a/Sources/Bagbutik/Models/PromotedPurchaseImageResponse.swift b/Sources/Bagbutik/Models/PromotedPurchaseImageResponse.swift index 9aaff2104..c2aa06ad7 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseImageResponse.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseImageResponse.swift @@ -5,7 +5,10 @@ public struct PromotedPurchaseImageResponse: Codable { public var included: [PromotedPurchase]? public let links: DocumentLinks - public init(data: PromotedPurchaseImage, included: [PromotedPurchase]? = nil, links: DocumentLinks) { + public init(data: PromotedPurchaseImage, + included: [PromotedPurchase]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PromotedPurchaseImageUpdateRequest.swift b/Sources/Bagbutik/Models/PromotedPurchaseImageUpdateRequest.swift index 17f0567e9..0f6cf34ef 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseImageUpdateRequest.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseImageUpdateRequest.swift @@ -12,7 +12,9 @@ public struct PromotedPurchaseImageUpdateRequest: Codable, RequestBody { public var type: String { "promotedPurchaseImages" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct PromotedPurchaseImageUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/PromotedPurchaseImagesResponse.swift b/Sources/Bagbutik/Models/PromotedPurchaseImagesResponse.swift index 6832855c1..63c15ae6e 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseImagesResponse.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseImagesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct PromotedPurchaseImagesResponse: Codable, PagedResponse { public typealias Data = PromotedPurchaseImage + public let data: [PromotedPurchaseImage] public var included: [PromotedPurchase]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [PromotedPurchaseImage], included: [PromotedPurchase]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [PromotedPurchaseImage], + included: [PromotedPurchase]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PromotedPurchaseResponse.swift b/Sources/Bagbutik/Models/PromotedPurchaseResponse.swift index b23a609a6..b9940f539 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseResponse.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseResponse.swift @@ -5,7 +5,10 @@ public struct PromotedPurchaseResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: PromotedPurchase, included: [Included]? = nil, links: DocumentLinks) { + public init(data: PromotedPurchase, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/PromotedPurchaseUpdateRequest.swift b/Sources/Bagbutik/Models/PromotedPurchaseUpdateRequest.swift index 868897f50..a68f97343 100644 --- a/Sources/Bagbutik/Models/PromotedPurchaseUpdateRequest.swift +++ b/Sources/Bagbutik/Models/PromotedPurchaseUpdateRequest.swift @@ -12,7 +12,9 @@ public struct PromotedPurchaseUpdateRequest: Codable, RequestBody { public var type: String { "promotedPurchases" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct PromotedPurchaseUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var enabled: Bool? public var visibleForAllUsers: Bool? - public init(enabled: Bool? = nil, visibleForAllUsers: Bool? = nil) { + public init(enabled: Bool? = nil, + visibleForAllUsers: Bool? = nil) + { self.enabled = enabled self.visibleForAllUsers = visibleForAllUsers } diff --git a/Sources/Bagbutik/Models/PromotedPurchasesResponse.swift b/Sources/Bagbutik/Models/PromotedPurchasesResponse.swift index a7f101385..f29827350 100644 --- a/Sources/Bagbutik/Models/PromotedPurchasesResponse.swift +++ b/Sources/Bagbutik/Models/PromotedPurchasesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct PromotedPurchasesResponse: Codable, PagedResponse { public typealias Data = PromotedPurchase + public let data: [PromotedPurchase] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [PromotedPurchase], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [PromotedPurchase], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ResourceLinks.swift b/Sources/Bagbutik/Models/ResourceLinks.swift index 04f4a0b42..bc3d3f9a8 100644 --- a/Sources/Bagbutik/Models/ResourceLinks.swift +++ b/Sources/Bagbutik/Models/ResourceLinks.swift @@ -1,6 +1,7 @@ import Foundation /** + # ResourceLinks Self-links to requested resources. Full documentation: diff --git a/Sources/Bagbutik/Models/ReviewSubmission.swift b/Sources/Bagbutik/Models/ReviewSubmission.swift index 35801ebfe..d99f6e2dc 100644 --- a/Sources/Bagbutik/Models/ReviewSubmission.swift +++ b/Sources/Bagbutik/Models/ReviewSubmission.swift @@ -7,7 +7,11 @@ public struct ReviewSubmission: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct ReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +51,10 @@ public struct ReviewSubmission: Codable { public var state: State? public var submittedDate: Date? - public init(platform: Platform? = nil, state: State? = nil, submittedDate: Date? = nil) { + public init(platform: Platform? = nil, + state: State? = nil, + submittedDate: Date? = nil) + { self.platform = platform self.state = state self.submittedDate = submittedDate @@ -69,7 +76,10 @@ public struct ReviewSubmission: Codable { public var appStoreVersionForReview: AppStoreVersionForReview? public var items: Relationships? - public init(app: App? = nil, appStoreVersionForReview: AppStoreVersionForReview? = nil, items: Relationships? = nil) { + public init(app: App? = nil, + appStoreVersionForReview: AppStoreVersionForReview? = nil, + items: Relationships? = nil) + { self.app = app self.appStoreVersionForReview = appStoreVersionForReview self.items = items @@ -79,7 +89,9 @@ public struct ReviewSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -116,7 +128,9 @@ public struct ReviewSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -134,8 +148,8 @@ public struct ReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -144,7 +158,9 @@ public struct ReviewSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -181,7 +197,9 @@ public struct ReviewSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -199,8 +217,8 @@ public struct ReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -210,7 +228,10 @@ public struct ReviewSubmission: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -248,7 +269,9 @@ public struct ReviewSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -266,8 +289,8 @@ public struct ReviewSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ReviewSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/ReviewSubmissionCreateRequest.swift index 6c2f3784a..c3da01dd1 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionCreateRequest.swift @@ -12,7 +12,9 @@ public struct ReviewSubmissionCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct ReviewSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/ReviewSubmissionItem.swift b/Sources/Bagbutik/Models/ReviewSubmissionItem.swift index 81b364784..18b4c6522 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionItem.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionItem.swift @@ -7,7 +7,11 @@ public struct ReviewSubmissionItem: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct ReviewSubmissionItem: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -64,7 +68,11 @@ public struct ReviewSubmissionItem: Codable { public var appStoreVersion: AppStoreVersion? public var appStoreVersionExperiment: AppStoreVersionExperiment? - public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appEvent: AppEvent? = nil, appStoreVersion: AppStoreVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil) { + public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, + appEvent: AppEvent? = nil, + appStoreVersion: AppStoreVersion? = nil, + appStoreVersionExperiment: AppStoreVersionExperiment? = nil) + { self.appCustomProductPageVersion = appCustomProductPageVersion self.appEvent = appEvent self.appStoreVersion = appStoreVersion @@ -75,7 +83,9 @@ public struct ReviewSubmissionItem: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -112,7 +122,9 @@ public struct ReviewSubmissionItem: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -130,8 +142,8 @@ public struct ReviewSubmissionItem: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -140,7 +152,9 @@ public struct ReviewSubmissionItem: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -177,7 +191,9 @@ public struct ReviewSubmissionItem: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -195,8 +211,8 @@ public struct ReviewSubmissionItem: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -205,7 +221,9 @@ public struct ReviewSubmissionItem: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -242,7 +260,9 @@ public struct ReviewSubmissionItem: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -260,8 +280,8 @@ public struct ReviewSubmissionItem: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -270,7 +290,9 @@ public struct ReviewSubmissionItem: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -307,7 +329,9 @@ public struct ReviewSubmissionItem: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -325,8 +349,8 @@ public struct ReviewSubmissionItem: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ReviewSubmissionItemCreateRequest.swift b/Sources/Bagbutik/Models/ReviewSubmissionItemCreateRequest.swift index 556c76d2c..d268b9369 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionItemCreateRequest.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionItemCreateRequest.swift @@ -30,8 +30,8 @@ public struct ReviewSubmissionItemCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { @@ -41,7 +41,12 @@ public struct ReviewSubmissionItemCreateRequest: Codable, RequestBody { public var appStoreVersionExperiment: AppStoreVersionExperiment? public let reviewSubmission: ReviewSubmission - public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, appEvent: AppEvent? = nil, appStoreVersion: AppStoreVersion? = nil, appStoreVersionExperiment: AppStoreVersionExperiment? = nil, reviewSubmission: ReviewSubmission) { + public init(appCustomProductPageVersion: AppCustomProductPageVersion? = nil, + appEvent: AppEvent? = nil, + appStoreVersion: AppStoreVersion? = nil, + appStoreVersionExperiment: AppStoreVersionExperiment? = nil, + reviewSubmission: ReviewSubmission) + { self.appCustomProductPageVersion = appCustomProductPageVersion self.appEvent = appEvent self.appStoreVersion = appStoreVersion diff --git a/Sources/Bagbutik/Models/ReviewSubmissionItemResponse.swift b/Sources/Bagbutik/Models/ReviewSubmissionItemResponse.swift index 393066ee0..ff66d9e49 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionItemResponse.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionItemResponse.swift @@ -5,7 +5,10 @@ public struct ReviewSubmissionItemResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: ReviewSubmissionItem, included: [Included]? = nil, links: DocumentLinks) { + public init(data: ReviewSubmissionItem, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ReviewSubmissionItemUpdateRequest.swift b/Sources/Bagbutik/Models/ReviewSubmissionItemUpdateRequest.swift index 52bd96f0d..1ef2e2a61 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionItemUpdateRequest.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionItemUpdateRequest.swift @@ -12,7 +12,9 @@ public struct ReviewSubmissionItemUpdateRequest: Codable, RequestBody { public var type: String { "reviewSubmissionItems" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct ReviewSubmissionItemUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var removed: Bool? public var resolved: Bool? - public init(removed: Bool? = nil, resolved: Bool? = nil) { + public init(removed: Bool? = nil, + resolved: Bool? = nil) + { self.removed = removed self.resolved = resolved } diff --git a/Sources/Bagbutik/Models/ReviewSubmissionItemsResponse.swift b/Sources/Bagbutik/Models/ReviewSubmissionItemsResponse.swift index 7b00bb397..0f4229071 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionItemsResponse.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionItemsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct ReviewSubmissionItemsResponse: Codable, PagedResponse { public typealias Data = ReviewSubmissionItem + public let data: [ReviewSubmissionItem] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [ReviewSubmissionItem], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ReviewSubmissionItem], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ReviewSubmissionResponse.swift b/Sources/Bagbutik/Models/ReviewSubmissionResponse.swift index fbbb57e7a..b912c2f18 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionResponse.swift @@ -5,7 +5,10 @@ public struct ReviewSubmissionResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: ReviewSubmission, included: [Included]? = nil, links: DocumentLinks) { + public init(data: ReviewSubmission, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ReviewSubmissionUpdateRequest.swift b/Sources/Bagbutik/Models/ReviewSubmissionUpdateRequest.swift index 8fb8f136f..3fddb2e40 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionUpdateRequest.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionUpdateRequest.swift @@ -12,7 +12,9 @@ public struct ReviewSubmissionUpdateRequest: Codable, RequestBody { public var type: String { "reviewSubmissions" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct ReviewSubmissionUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var canceled: Bool? public var submitted: Bool? - public init(canceled: Bool? = nil, submitted: Bool? = nil) { + public init(canceled: Bool? = nil, + submitted: Bool? = nil) + { self.canceled = canceled self.submitted = submitted } diff --git a/Sources/Bagbutik/Models/ReviewSubmissionsResponse.swift b/Sources/Bagbutik/Models/ReviewSubmissionsResponse.swift index e97341623..63a53b515 100644 --- a/Sources/Bagbutik/Models/ReviewSubmissionsResponse.swift +++ b/Sources/Bagbutik/Models/ReviewSubmissionsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct ReviewSubmissionsResponse: Codable, PagedResponse { public typealias Data = ReviewSubmission + public let data: [ReviewSubmission] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [ReviewSubmission], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ReviewSubmission], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/RoutingAppCoverage.swift b/Sources/Bagbutik/Models/RoutingAppCoverage.swift index c2208c97c..1266fd393 100644 --- a/Sources/Bagbutik/Models/RoutingAppCoverage.swift +++ b/Sources/Bagbutik/Models/RoutingAppCoverage.swift @@ -1,6 +1,7 @@ import Foundation /** + # RoutingAppCoverage The data structure that represents the Routing App Coverages resource. Full documentation: @@ -13,7 +14,11 @@ public struct RoutingAppCoverage: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,14 +46,15 @@ public struct RoutingAppCoverage: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # RoutingAppCoverage.Attributes Attributes that describe a Routing App Coverages resource. Full documentation: @@ -61,7 +67,12 @@ public struct RoutingAppCoverage: Codable { public var sourceFileChecksum: String? public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, fileName: String? = nil, fileSize: Int? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.fileName = fileName self.fileSize = fileSize @@ -71,6 +82,7 @@ public struct RoutingAppCoverage: Codable { } /** + # RoutingAppCoverage.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -84,6 +96,7 @@ public struct RoutingAppCoverage: Codable { } /** + # RoutingAppCoverage.Relationships.AppStoreVersion The data and links that describe the relationship between the resources. Full documentation: @@ -93,12 +106,15 @@ public struct RoutingAppCoverage: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # RoutingAppCoverage.Relationships.AppStoreVersion.Data The type and ID of a related resource. Full documentation: @@ -133,6 +149,7 @@ public struct RoutingAppCoverage: Codable { } /** + # RoutingAppCoverage.Relationships.AppStoreVersion.Links The links to the related data and the relationship's self-link. Full documentation: @@ -142,7 +159,9 @@ public struct RoutingAppCoverage: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -160,8 +179,8 @@ public struct RoutingAppCoverage: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/RoutingAppCoverageCreateRequest.swift b/Sources/Bagbutik/Models/RoutingAppCoverageCreateRequest.swift index bfe9f5432..733e16a41 100644 --- a/Sources/Bagbutik/Models/RoutingAppCoverageCreateRequest.swift +++ b/Sources/Bagbutik/Models/RoutingAppCoverageCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # RoutingAppCoverageCreateRequest The request body you use to create a Routing App Coverage. Full documentation: @@ -14,6 +15,7 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { } /** + # RoutingAppCoverageCreateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -46,12 +50,13 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # RoutingAppCoverageCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -61,13 +66,16 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } } /** + # RoutingAppCoverageCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -81,6 +89,7 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { } /** + # RoutingAppCoverageCreateRequest.Data.Relationships.AppStoreVersion The relationships to other resources that you can set with this request. Full documentation: @@ -94,6 +103,7 @@ public struct RoutingAppCoverageCreateRequest: Codable, RequestBody { } /** + # RoutingAppCoverageCreateRequest.Data.Relationships.AppStoreVersion.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/RoutingAppCoverageResponse.swift b/Sources/Bagbutik/Models/RoutingAppCoverageResponse.swift index 9571db493..daf7be10b 100644 --- a/Sources/Bagbutik/Models/RoutingAppCoverageResponse.swift +++ b/Sources/Bagbutik/Models/RoutingAppCoverageResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # RoutingAppCoverageResponse A response that contains a single Routing App Coverages resource. Full documentation: @@ -11,7 +12,10 @@ public struct RoutingAppCoverageResponse: Codable { public var included: [AppStoreVersion]? public let links: DocumentLinks - public init(data: RoutingAppCoverage, included: [AppStoreVersion]? = nil, links: DocumentLinks) { + public init(data: RoutingAppCoverage, + included: [AppStoreVersion]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/RoutingAppCoverageUpdateRequest.swift b/Sources/Bagbutik/Models/RoutingAppCoverageUpdateRequest.swift index a33d4e3b2..914411b94 100644 --- a/Sources/Bagbutik/Models/RoutingAppCoverageUpdateRequest.swift +++ b/Sources/Bagbutik/Models/RoutingAppCoverageUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # RoutingAppCoverageUpdateRequest The request body you use to update a Routing App Coverage. Full documentation: @@ -14,6 +15,7 @@ public struct RoutingAppCoverageUpdateRequest: Codable, RequestBody { } /** + # RoutingAppCoverageUpdateRequest.Data The data element of the request body. Full documentation: @@ -24,7 +26,9 @@ public struct RoutingAppCoverageUpdateRequest: Codable, RequestBody { public var type: String { "routingAppCoverages" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -46,12 +50,13 @@ public struct RoutingAppCoverageUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } /** + # RoutingAppCoverageUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -61,7 +66,9 @@ public struct RoutingAppCoverageUpdateRequest: Codable, RequestBody { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/ScmGitReference.swift b/Sources/Bagbutik/Models/ScmGitReference.swift index 9b7768809..d4a39b65a 100644 --- a/Sources/Bagbutik/Models/ScmGitReference.swift +++ b/Sources/Bagbutik/Models/ScmGitReference.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmGitReference The data structure that represents a Git References resource. Full documentation: @@ -18,7 +19,11 @@ public struct ScmGitReference: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct ScmGitReference: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # ScmGitReference.Attributes The attributes that describe a Git Reference resource. Full documentation: @@ -69,7 +75,11 @@ public struct ScmGitReference: Codable { /// The name of the Git reference. public var name: String? - public init(canonicalName: String? = nil, isDeleted: Bool? = nil, kind: CiGitRefKind? = nil, name: String? = nil) { + public init(canonicalName: String? = nil, + isDeleted: Bool? = nil, + kind: CiGitRefKind? = nil, + name: String? = nil) + { self.canonicalName = canonicalName self.isDeleted = isDeleted self.kind = kind @@ -78,6 +88,7 @@ public struct ScmGitReference: Codable { } /** + # ScmGitReference.Relationships The relationships of the Git References resource you included in the request and those on which you can operate. Full documentation: @@ -92,6 +103,7 @@ public struct ScmGitReference: Codable { } /** + # ScmGitReference.Relationships.Repository The data and links that describe the relationship between the Git References and the Repositories resources. Full documentation: @@ -103,12 +115,15 @@ public struct ScmGitReference: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # ScmGitReference.Relationships.Repository.Data The type and ID of a related Repositories resource. Full documentation: @@ -145,6 +160,7 @@ public struct ScmGitReference: Codable { } /** + # ScmGitReference.Relationships.Repository.Links The links to the related Repositories resource and the relationship’s self-link. Full documentation: @@ -156,7 +172,9 @@ public struct ScmGitReference: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -174,8 +192,8 @@ public struct ScmGitReference: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ScmGitReferenceResponse.swift b/Sources/Bagbutik/Models/ScmGitReferenceResponse.swift index d6da41177..f06a4f89f 100644 --- a/Sources/Bagbutik/Models/ScmGitReferenceResponse.swift +++ b/Sources/Bagbutik/Models/ScmGitReferenceResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmGitReferenceResponse A response that contains a single Git References resource. Full documentation: @@ -14,7 +15,10 @@ public struct ScmGitReferenceResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: ScmGitReference, included: [ScmRepository]? = nil, links: DocumentLinks) { + public init(data: ScmGitReference, + included: [ScmRepository]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScmGitReferencesResponse.swift b/Sources/Bagbutik/Models/ScmGitReferencesResponse.swift index 25e63f9e3..f381b3059 100644 --- a/Sources/Bagbutik/Models/ScmGitReferencesResponse.swift +++ b/Sources/Bagbutik/Models/ScmGitReferencesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmGitReferencesResponse A response that contains a list of Git References resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct ScmGitReferencesResponse: Codable, PagedResponse { public typealias Data = ScmGitReference + /// The resource data. public let data: [ScmGitReference] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct ScmGitReferencesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [ScmGitReference], included: [ScmRepository]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ScmGitReference], + included: [ScmRepository]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScmProvider.swift b/Sources/Bagbutik/Models/ScmProvider.swift index ebbd1d269..a87b24001 100644 --- a/Sources/Bagbutik/Models/ScmProvider.swift +++ b/Sources/Bagbutik/Models/ScmProvider.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmProvider The data structure that represents a Providers resource. Full documentation: @@ -16,7 +17,10 @@ public struct ScmProvider: Codable { /// The attributes that describe the Providers resource. public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -41,13 +45,14 @@ public struct ScmProvider: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # ScmProvider.Attributes The attributes that describe a Providers resource. Full documentation: @@ -59,7 +64,9 @@ public struct ScmProvider: Codable { /// The URL of the source code management provider. public var url: String? - public init(scmProviderType: ScmProviderType? = nil, url: String? = nil) { + public init(scmProviderType: ScmProviderType? = nil, + url: String? = nil) + { self.scmProviderType = scmProviderType self.url = url } diff --git a/Sources/Bagbutik/Models/ScmProviderResponse.swift b/Sources/Bagbutik/Models/ScmProviderResponse.swift index 084de088e..fa1424144 100644 --- a/Sources/Bagbutik/Models/ScmProviderResponse.swift +++ b/Sources/Bagbutik/Models/ScmProviderResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmProviderResponse A response that contains a single Providers resource. Full documentation: @@ -12,7 +13,9 @@ public struct ScmProviderResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: ScmProvider, links: DocumentLinks) { + public init(data: ScmProvider, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/ScmProviderType.swift b/Sources/Bagbutik/Models/ScmProviderType.swift index ddbb39d78..99e738744 100644 --- a/Sources/Bagbutik/Models/ScmProviderType.swift +++ b/Sources/Bagbutik/Models/ScmProviderType.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmProviderType The source code management provider’s type. Full documentation: @@ -14,7 +15,10 @@ public struct ScmProviderType: Codable { /// A string that represents the kind of a Providers resource. public var kind: Kind? - public init(displayName: String? = nil, isOnPremise: Bool? = nil, kind: Kind? = nil) { + public init(displayName: String? = nil, + isOnPremise: Bool? = nil, + kind: Kind? = nil) + { self.displayName = displayName self.isOnPremise = isOnPremise self.kind = kind diff --git a/Sources/Bagbutik/Models/ScmProvidersResponse.swift b/Sources/Bagbutik/Models/ScmProvidersResponse.swift index 6a9abc03c..d8440267f 100644 --- a/Sources/Bagbutik/Models/ScmProvidersResponse.swift +++ b/Sources/Bagbutik/Models/ScmProvidersResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmProvidersResponse A response that contains a list of Providers resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct ScmProvidersResponse: Codable, PagedResponse { public typealias Data = ScmProvider + /// The resource data. public let data: [ScmProvider] /// The navigational links that include the self-link. @@ -15,7 +17,10 @@ public struct ScmProvidersResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [ScmProvider], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ScmProvider], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/ScmPullRequest.swift b/Sources/Bagbutik/Models/ScmPullRequest.swift index 685a87c82..604246c62 100644 --- a/Sources/Bagbutik/Models/ScmPullRequest.swift +++ b/Sources/Bagbutik/Models/ScmPullRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmPullRequest The data structure that represents a Pull Requests resource. Full documentation: @@ -18,7 +19,11 @@ public struct ScmPullRequest: Codable, RequestBody { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct ScmPullRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # ScmPullRequest.Attributes The attributes that describe a Pull Requests resource. Full documentation: @@ -83,7 +89,18 @@ public struct ScmPullRequest: Codable, RequestBody { /// The URL of the pull request. public var webUrl: String? - public init(destinationBranchName: String? = nil, destinationRepositoryName: String? = nil, destinationRepositoryOwner: String? = nil, isClosed: Bool? = nil, isCrossRepository: Bool? = nil, number: Int? = nil, sourceBranchName: String? = nil, sourceRepositoryName: String? = nil, sourceRepositoryOwner: String? = nil, title: String? = nil, webUrl: String? = nil) { + public init(destinationBranchName: String? = nil, + destinationRepositoryName: String? = nil, + destinationRepositoryOwner: String? = nil, + isClosed: Bool? = nil, + isCrossRepository: Bool? = nil, + number: Int? = nil, + sourceBranchName: String? = nil, + sourceRepositoryName: String? = nil, + sourceRepositoryOwner: String? = nil, + title: String? = nil, + webUrl: String? = nil) + { self.destinationBranchName = destinationBranchName self.destinationRepositoryName = destinationRepositoryName self.destinationRepositoryOwner = destinationRepositoryOwner @@ -99,6 +116,7 @@ public struct ScmPullRequest: Codable, RequestBody { } /** + # ScmPullRequest.Relationships The relationships of the Pull Requests resource you included in the request and those on which you can operate. Full documentation: @@ -113,6 +131,7 @@ public struct ScmPullRequest: Codable, RequestBody { } /** + # ScmPullRequest.Relationships.Repository The data and links that describe the relationship between the Pull Requests and the Repositories resources. Full documentation: @@ -124,12 +143,15 @@ public struct ScmPullRequest: Codable, RequestBody { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # ScmPullRequest.Relationships.Repository.Data The type and ID of a related Repositories resource. Full documentation: @@ -166,6 +188,7 @@ public struct ScmPullRequest: Codable, RequestBody { } /** + # ScmPullRequest.Relationships.Repository.Links The links to the related Repositories resource and the relationship’s self-link. Full documentation: @@ -177,7 +200,9 @@ public struct ScmPullRequest: Codable, RequestBody { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -195,8 +220,8 @@ public struct ScmPullRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ScmPullRequestResponse.swift b/Sources/Bagbutik/Models/ScmPullRequestResponse.swift index 74c55b2cd..685c02348 100644 --- a/Sources/Bagbutik/Models/ScmPullRequestResponse.swift +++ b/Sources/Bagbutik/Models/ScmPullRequestResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmPullRequestResponse A response that contains a single Pull Requests resource. Full documentation: @@ -14,7 +15,10 @@ public struct ScmPullRequestResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: ScmPullRequest, included: [ScmRepository]? = nil, links: DocumentLinks) { + public init(data: ScmPullRequest, + included: [ScmRepository]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScmPullRequestsResponse.swift b/Sources/Bagbutik/Models/ScmPullRequestsResponse.swift index 8139ca96e..a5a025b0a 100644 --- a/Sources/Bagbutik/Models/ScmPullRequestsResponse.swift +++ b/Sources/Bagbutik/Models/ScmPullRequestsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmPullRequestsResponse A response that contains a list of Pull Requests resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct ScmPullRequestsResponse: Codable, PagedResponse { public typealias Data = ScmPullRequest + /// The resource data. public let data: [ScmPullRequest] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct ScmPullRequestsResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [ScmPullRequest], included: [ScmRepository]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ScmPullRequest], + included: [ScmRepository]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScmRepositoriesResponse.swift b/Sources/Bagbutik/Models/ScmRepositoriesResponse.swift index b08580dc5..720922ba2 100644 --- a/Sources/Bagbutik/Models/ScmRepositoriesResponse.swift +++ b/Sources/Bagbutik/Models/ScmRepositoriesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmRepositoriesResponse A response that contains a list of Repositories resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct ScmRepositoriesResponse: Codable, PagedResponse { public typealias Data = ScmRepository + /// The resource data. public let data: [ScmRepository] /// The requested relationship data. @@ -17,7 +19,11 @@ public struct ScmRepositoriesResponse: Codable, PagedResponse { /// The paging information. public var meta: PagingInformation? - public init(data: [ScmRepository], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [ScmRepository], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScmRepository.swift b/Sources/Bagbutik/Models/ScmRepository.swift index 45c1fde1a..180f5be72 100644 --- a/Sources/Bagbutik/Models/ScmRepository.swift +++ b/Sources/Bagbutik/Models/ScmRepository.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmRepository The data structure that represents a Repositories resource. Full documentation: @@ -18,7 +19,11 @@ public struct ScmRepository: Codable { /// The navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct ScmRepository: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # ScmRepository.Attributes The attributes that describe a Repositories resource. Full documentation: @@ -71,7 +77,12 @@ public struct ScmRepository: Codable { /// The Git repository’s URL for cloning it using SSH. public var sshCloneUrl: String? - public init(httpCloneUrl: String? = nil, lastAccessedDate: Date? = nil, ownerName: String? = nil, repositoryName: String? = nil, sshCloneUrl: String? = nil) { + public init(httpCloneUrl: String? = nil, + lastAccessedDate: Date? = nil, + ownerName: String? = nil, + repositoryName: String? = nil, + sshCloneUrl: String? = nil) + { self.httpCloneUrl = httpCloneUrl self.lastAccessedDate = lastAccessedDate self.ownerName = ownerName @@ -81,6 +92,7 @@ public struct ScmRepository: Codable { } /** + # ScmRepository.Relationships The relationships of the Repositories resource you included in the request and those on which you can operate. Full documentation: @@ -92,12 +104,15 @@ public struct ScmRepository: Codable { /// The related Providers resource. public var scmProvider: ScmProvider? - public init(defaultBranch: DefaultBranch? = nil, scmProvider: ScmProvider? = nil) { + public init(defaultBranch: DefaultBranch? = nil, + scmProvider: ScmProvider? = nil) + { self.defaultBranch = defaultBranch self.scmProvider = scmProvider } /** + # ScmRepository.Relationships.DefaultBranch The data and links that describe the relationship between the Repositories resource and the Git References resource that represents the default branch. Full documentation: @@ -109,12 +124,15 @@ public struct ScmRepository: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # ScmRepository.Relationships.DefaultBranch.Data The type and ID of a related Git References resource that represents the repository’s default branch. Full documentation: @@ -151,6 +169,7 @@ public struct ScmRepository: Codable { } /** + # ScmRepository.Relationships.DefaultBranch.Links The links to the related Git References resource that represents the default branch and the relationship’s self-link. Full documentation: @@ -162,7 +181,9 @@ public struct ScmRepository: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -180,13 +201,14 @@ public struct ScmRepository: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } /** + # ScmRepository.Relationships.ScmProvider The data and links that describe the relationship between the Repositories and the Source Code Management Provider resources. Full documentation: @@ -198,12 +220,15 @@ public struct ScmRepository: Codable { /// The navigational links that include the self-link. public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } /** + # ScmRepository.Relationships.ScmProvider.Data The type and ID of a related Providers resource. Full documentation: @@ -240,6 +265,7 @@ public struct ScmRepository: Codable { } /** + # ScmRepository.Relationships.ScmProvider.Links The links to the related Providers resource and the relationship’s self-link. Full documentation: @@ -251,7 +277,9 @@ public struct ScmRepository: Codable { /// The link to the resource. public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -269,8 +297,8 @@ public struct ScmRepository: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/ScmRepositoryResponse.swift b/Sources/Bagbutik/Models/ScmRepositoryResponse.swift index 62c0075bd..2528ef5e6 100644 --- a/Sources/Bagbutik/Models/ScmRepositoryResponse.swift +++ b/Sources/Bagbutik/Models/ScmRepositoryResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # ScmRepositoryResponse A response that contains a single Repositories resource. Full documentation: @@ -14,7 +15,10 @@ public struct ScmRepositoryResponse: Codable { /// The navigational links that include the self-link. public let links: DocumentLinks - public init(data: ScmRepository, included: [Included]? = nil, links: DocumentLinks) { + public init(data: ScmRepository, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/ScreenshotDisplayType.swift b/Sources/Bagbutik/Models/ScreenshotDisplayType.swift index cd1f7c809..12fedaaf4 100644 --- a/Sources/Bagbutik/Models/ScreenshotDisplayType.swift +++ b/Sources/Bagbutik/Models/ScreenshotDisplayType.swift @@ -1,10 +1,11 @@ import Foundation /** - String that represents the display type of an app screenshot. + # ScreenshotDisplayType + String that represents the display type of an app screenshot. - Full documentation: - + Full documentation: + */ public enum ScreenshotDisplayType: String, Codable, CaseIterable { case appIphone65 = "APP_IPHONE_65" diff --git a/Sources/Bagbutik/Models/Subscription.swift b/Sources/Bagbutik/Models/Subscription.swift index bbb96f618..7bcc23da8 100644 --- a/Sources/Bagbutik/Models/Subscription.swift +++ b/Sources/Bagbutik/Models/Subscription.swift @@ -7,7 +7,11 @@ public struct Subscription: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct Subscription: Codable { public var state: State? public var subscriptionPeriod: SubscriptionPeriod? - public init(availableInAllTerritories: Bool? = nil, familySharable: Bool? = nil, groupLevel: Int? = nil, name: String? = nil, productId: String? = nil, reviewNote: String? = nil, state: State? = nil, subscriptionPeriod: SubscriptionPeriod? = nil) { + public init(availableInAllTerritories: Bool? = nil, + familySharable: Bool? = nil, + groupLevel: Int? = nil, + name: String? = nil, + productId: String? = nil, + reviewNote: String? = nil, + state: State? = nil, + subscriptionPeriod: SubscriptionPeriod? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.familySharable = familySharable self.groupLevel = groupLevel @@ -96,7 +108,15 @@ public struct Subscription: Codable { public var promotionalOffers: PromotionalOffers? public var subscriptionLocalizations: SubscriptionLocalizations? - public init(appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, group: Group? = nil, introductoryOffers: IntroductoryOffers? = nil, offerCodes: OfferCodes? = nil, prices: Prices? = nil, promotedPurchase: PromotedPurchase? = nil, promotionalOffers: PromotionalOffers? = nil, subscriptionLocalizations: SubscriptionLocalizations? = nil) { + public init(appStoreReviewScreenshot: AppStoreReviewScreenshot? = nil, + group: Group? = nil, + introductoryOffers: IntroductoryOffers? = nil, + offerCodes: OfferCodes? = nil, + prices: Prices? = nil, + promotedPurchase: PromotedPurchase? = nil, + promotionalOffers: PromotionalOffers? = nil, + subscriptionLocalizations: SubscriptionLocalizations? = nil) + { self.appStoreReviewScreenshot = appStoreReviewScreenshot self.group = group self.introductoryOffers = introductoryOffers @@ -111,7 +131,9 @@ public struct Subscription: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -148,7 +170,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -166,8 +190,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -176,7 +200,9 @@ public struct Subscription: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -213,7 +239,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -231,8 +259,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -242,7 +270,10 @@ public struct Subscription: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -280,7 +311,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -298,8 +331,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -309,7 +342,10 @@ public struct Subscription: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -347,7 +383,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -365,8 +403,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -376,7 +414,10 @@ public struct Subscription: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -414,7 +455,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -432,8 +475,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -442,7 +485,9 @@ public struct Subscription: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -479,7 +524,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -497,8 +544,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -508,7 +555,10 @@ public struct Subscription: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -546,7 +596,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -564,8 +616,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -575,7 +627,10 @@ public struct Subscription: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -613,7 +668,9 @@ public struct Subscription: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -631,8 +688,8 @@ public struct Subscription: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshot.swift b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshot.swift index 0fa3708c7..fed620444 100644 --- a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshot.swift +++ b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshot.swift @@ -7,7 +7,11 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { public var sourceFileChecksum: String? public var uploadOperations: [UploadOperation]? - public init(assetDeliveryState: AppMediaAssetState? = nil, assetToken: String? = nil, assetType: String? = nil, fileName: String? = nil, fileSize: Int? = nil, imageAsset: ImageAsset? = nil, sourceFileChecksum: String? = nil, uploadOperations: [UploadOperation]? = nil) { + public init(assetDeliveryState: AppMediaAssetState? = nil, + assetToken: String? = nil, + assetType: String? = nil, + fileName: String? = nil, + fileSize: Int? = nil, + imageAsset: ImageAsset? = nil, + sourceFileChecksum: String? = nil, + uploadOperations: [UploadOperation]? = nil) + { self.assetDeliveryState = assetDeliveryState self.assetToken = assetToken self.assetType = assetType @@ -75,7 +87,9 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -112,7 +126,9 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -130,8 +146,8 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotCreateRequest.swift index 90475f65b..f8bb06bb8 100644 --- a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionAppStoreReviewScreenshotCreateRequest: Codable, Reques public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct SubscriptionAppStoreReviewScreenshotCreateRequest: Codable, Reques } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let fileName: String public let fileSize: Int - public init(fileName: String, fileSize: Int) { + public init(fileName: String, + fileSize: Int) + { self.fileName = fileName self.fileSize = fileSize } diff --git a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotResponse.swift b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotResponse.swift index d78ec9229..e1246bc94 100644 --- a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionAppStoreReviewScreenshotResponse: Codable { public var included: [Subscription]? public let links: DocumentLinks - public init(data: SubscriptionAppStoreReviewScreenshot, included: [Subscription]? = nil, links: DocumentLinks) { + public init(data: SubscriptionAppStoreReviewScreenshot, + included: [Subscription]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift index 42278bbf1..8ef0c1159 100644 --- a/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionAppStoreReviewScreenshotUpdateRequest: Codable, Reques public var type: String { "subscriptionAppStoreReviewScreenshots" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct SubscriptionAppStoreReviewScreenshotUpdateRequest: Codable, Reques } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var sourceFileChecksum: String? public var uploaded: Bool? - public init(sourceFileChecksum: String? = nil, uploaded: Bool? = nil) { + public init(sourceFileChecksum: String? = nil, + uploaded: Bool? = nil) + { self.sourceFileChecksum = sourceFileChecksum self.uploaded = uploaded } diff --git a/Sources/Bagbutik/Models/SubscriptionCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionCreateRequest.swift index a4ab57a85..45bf7f905 100644 --- a/Sources/Bagbutik/Models/SubscriptionCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct SubscriptionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +50,14 @@ public struct SubscriptionCreateRequest: Codable, RequestBody { public var reviewNote: String? public var subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? - public init(availableInAllTerritories: Bool? = nil, familySharable: Bool? = nil, groupLevel: Int? = nil, name: String, productId: String, reviewNote: String? = nil, subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? = nil) { + public init(availableInAllTerritories: Bool? = nil, + familySharable: Bool? = nil, + groupLevel: Int? = nil, + name: String, + productId: String, + reviewNote: String? = nil, + subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.familySharable = familySharable self.groupLevel = groupLevel diff --git a/Sources/Bagbutik/Models/SubscriptionGracePeriod.swift b/Sources/Bagbutik/Models/SubscriptionGracePeriod.swift index e9c87da74..dd90c5caa 100644 --- a/Sources/Bagbutik/Models/SubscriptionGracePeriod.swift +++ b/Sources/Bagbutik/Models/SubscriptionGracePeriod.swift @@ -6,7 +6,10 @@ public struct SubscriptionGracePeriod: Codable { public var type: String { "subscriptionGracePeriods" } public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -31,10 +34,10 @@ public struct SubscriptionGracePeriod: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionGracePeriodResponse.swift b/Sources/Bagbutik/Models/SubscriptionGracePeriodResponse.swift index c84dbd5c0..ae672bb90 100644 --- a/Sources/Bagbutik/Models/SubscriptionGracePeriodResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGracePeriodResponse.swift @@ -4,7 +4,9 @@ public struct SubscriptionGracePeriodResponse: Codable { public let data: SubscriptionGracePeriod public let links: DocumentLinks - public init(data: SubscriptionGracePeriod, links: DocumentLinks) { + public init(data: SubscriptionGracePeriod, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/SubscriptionGracePeriodUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGracePeriodUpdateRequest.swift index 9ca1dd391..11b243a5b 100644 --- a/Sources/Bagbutik/Models/SubscriptionGracePeriodUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGracePeriodUpdateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionGracePeriodUpdateRequest: Codable, RequestBody { public let data: Data public var included: [AppInlineCreate]? - public init(data: Data, included: [AppInlineCreate]? = nil) { + public init(data: Data, + included: [AppInlineCreate]? = nil) + { self.data = data self.included = included } @@ -15,7 +17,10 @@ public struct SubscriptionGracePeriodUpdateRequest: Codable, RequestBody { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -40,10 +45,10 @@ public struct SubscriptionGracePeriodUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionGroup.swift b/Sources/Bagbutik/Models/SubscriptionGroup.swift index e146fb3e6..00d0c51c7 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroup.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroup.swift @@ -7,7 +7,11 @@ public struct SubscriptionGroup: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionGroup: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -54,7 +58,9 @@ public struct SubscriptionGroup: Codable { public var subscriptionGroupLocalizations: SubscriptionGroupLocalizations? public var subscriptions: Subscriptions? - public init(subscriptionGroupLocalizations: SubscriptionGroupLocalizations? = nil, subscriptions: Subscriptions? = nil) { + public init(subscriptionGroupLocalizations: SubscriptionGroupLocalizations? = nil, + subscriptions: Subscriptions? = nil) + { self.subscriptionGroupLocalizations = subscriptionGroupLocalizations self.subscriptions = subscriptions } @@ -64,7 +70,10 @@ public struct SubscriptionGroup: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -102,7 +111,9 @@ public struct SubscriptionGroup: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -120,8 +131,8 @@ public struct SubscriptionGroup: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -131,7 +142,10 @@ public struct SubscriptionGroup: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -169,7 +183,9 @@ public struct SubscriptionGroup: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -187,8 +203,8 @@ public struct SubscriptionGroup: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionGroupCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGroupCreateRequest.swift index bc9706b97..2a9f3caf0 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionGroupCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct SubscriptionGroupCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionGroupLocalization.swift b/Sources/Bagbutik/Models/SubscriptionGroupLocalization.swift index 69012fbc7..40d0edf0e 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupLocalization.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupLocalization.swift @@ -7,7 +7,11 @@ public struct SubscriptionGroupLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionGroupLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct SubscriptionGroupLocalization: Codable { public var name: String? public var state: State? - public init(customAppName: String? = nil, locale: String? = nil, name: String? = nil, state: State? = nil) { + public init(customAppName: String? = nil, + locale: String? = nil, + name: String? = nil, + state: State? = nil) + { self.customAppName = customAppName self.locale = locale self.name = name @@ -74,7 +82,9 @@ public struct SubscriptionGroupLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -111,7 +121,9 @@ public struct SubscriptionGroupLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -129,8 +141,8 @@ public struct SubscriptionGroupLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationCreateRequest.swift index 1c46bcca2..53e260726 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionGroupLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct SubscriptionGroupLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct SubscriptionGroupLocalizationCreateRequest: Codable, RequestBody { public let locale: String public let name: String - public init(customAppName: String? = nil, locale: String, name: String) { + public init(customAppName: String? = nil, + locale: String, + name: String) + { self.customAppName = customAppName self.locale = locale self.name = name diff --git a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationResponse.swift b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationResponse.swift index 566b743a8..53c4bcc92 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionGroupLocalizationResponse: Codable { public var included: [SubscriptionGroup]? public let links: DocumentLinks - public init(data: SubscriptionGroupLocalization, included: [SubscriptionGroup]? = nil, links: DocumentLinks) { + public init(data: SubscriptionGroupLocalization, + included: [SubscriptionGroup]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationUpdateRequest.swift index aedafd0da..20bc29129 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionGroupLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionGroupLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct SubscriptionGroupLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var customAppName: String? public var name: String? - public init(customAppName: String? = nil, name: String? = nil) { + public init(customAppName: String? = nil, + name: String? = nil) + { self.customAppName = customAppName self.name = name } diff --git a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationsResponse.swift b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationsResponse.swift index a3bf2eed2..517092c30 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionGroupLocalizationsResponse: Codable, PagedResponse { public typealias Data = SubscriptionGroupLocalization + public let data: [SubscriptionGroupLocalization] public var included: [SubscriptionGroup]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionGroupLocalization], included: [SubscriptionGroup]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionGroupLocalization], + included: [SubscriptionGroup]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionGroupResponse.swift b/Sources/Bagbutik/Models/SubscriptionGroupResponse.swift index 31c1be165..40243a925 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionGroupResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: SubscriptionGroup, included: [Included]? = nil, links: DocumentLinks) { + public init(data: SubscriptionGroup, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionGroupSubmission.swift b/Sources/Bagbutik/Models/SubscriptionGroupSubmission.swift index aa64e88f0..a4d9854b4 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupSubmission.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupSubmission.swift @@ -5,7 +5,9 @@ public struct SubscriptionGroupSubmission: Codable { public let links: ResourceLinks public var type: String { "subscriptionGroupSubmissions" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/SubscriptionGroupSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGroupSubmissionCreateRequest.swift index a6cb8dd52..2f7691d21 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupSubmissionCreateRequest.swift @@ -30,8 +30,8 @@ public struct SubscriptionGroupSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionGroupSubmissionResponse.swift b/Sources/Bagbutik/Models/SubscriptionGroupSubmissionResponse.swift index 1dc07de4e..ea6904db5 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupSubmissionResponse.swift @@ -4,7 +4,9 @@ public struct SubscriptionGroupSubmissionResponse: Codable { public let data: SubscriptionGroupSubmission public let links: DocumentLinks - public init(data: SubscriptionGroupSubmission, links: DocumentLinks) { + public init(data: SubscriptionGroupSubmission, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/SubscriptionGroupUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionGroupUpdateRequest.swift index f7c745e21..38fdec1d2 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionGroupUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionGroups" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct SubscriptionGroupUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionGroupsResponse.swift b/Sources/Bagbutik/Models/SubscriptionGroupsResponse.swift index 087c2e1c5..995a284b9 100644 --- a/Sources/Bagbutik/Models/SubscriptionGroupsResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionGroupsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionGroupsResponse: Codable, PagedResponse { public typealias Data = SubscriptionGroup + public let data: [SubscriptionGroup] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionGroup], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionGroup], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffer.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffer.swift index a7ed08d31..1992ba979 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffer.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffer.swift @@ -7,7 +7,11 @@ public struct SubscriptionIntroductoryOffer: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionIntroductoryOffer: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -49,7 +53,12 @@ public struct SubscriptionIntroductoryOffer: Codable { public var offerMode: SubscriptionOfferMode? public var startDate: String? - public init(duration: SubscriptionOfferDuration? = nil, endDate: String? = nil, numberOfPeriods: Int? = nil, offerMode: SubscriptionOfferMode? = nil, startDate: String? = nil) { + public init(duration: SubscriptionOfferDuration? = nil, + endDate: String? = nil, + numberOfPeriods: Int? = nil, + offerMode: SubscriptionOfferMode? = nil, + startDate: String? = nil) + { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods @@ -63,7 +72,10 @@ public struct SubscriptionIntroductoryOffer: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscription: Subscription? = nil, subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscription: Subscription? = nil, + subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscription = subscription self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory @@ -73,7 +85,9 @@ public struct SubscriptionIntroductoryOffer: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -110,7 +124,9 @@ public struct SubscriptionIntroductoryOffer: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -128,8 +144,8 @@ public struct SubscriptionIntroductoryOffer: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -138,7 +154,9 @@ public struct SubscriptionIntroductoryOffer: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -175,7 +193,9 @@ public struct SubscriptionIntroductoryOffer: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -193,8 +213,8 @@ public struct SubscriptionIntroductoryOffer: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -203,7 +223,9 @@ public struct SubscriptionIntroductoryOffer: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -240,7 +262,9 @@ public struct SubscriptionIntroductoryOffer: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -258,8 +282,8 @@ public struct SubscriptionIntroductoryOffer: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferCreateRequest.swift index 67c3952ea..7a9cabec0 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferCreateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Codable, RequestBody { public let data: Data public var included: [SubscriptionPricePointInlineCreate]? - public init(data: Data, included: [SubscriptionPricePointInlineCreate]? = nil) { + public init(data: Data, + included: [SubscriptionPricePointInlineCreate]? = nil) + { self.data = data self.included = included } @@ -14,7 +16,9 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -36,9 +40,9 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,12 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Codable, RequestBody { public let offerMode: SubscriptionOfferMode public var startDate: String? - public init(duration: SubscriptionOfferDuration, endDate: String? = nil, numberOfPeriods: Int, offerMode: SubscriptionOfferMode, startDate: String? = nil) { + public init(duration: SubscriptionOfferDuration, + endDate: String? = nil, + numberOfPeriods: Int, + offerMode: SubscriptionOfferMode, + startDate: String? = nil) + { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods @@ -62,7 +71,10 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Codable, RequestBody { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscription: Subscription, subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscription: Subscription, + subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscription = subscription self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferInlineCreate.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferInlineCreate.swift index 458378bdf..acdc6ab16 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferInlineCreate.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferInlineCreate.swift @@ -6,7 +6,10 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Codable { public let attributes: Attributes public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,10 +34,10 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { @@ -44,7 +47,12 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Codable { public let offerMode: SubscriptionOfferMode public var startDate: String? - public init(duration: SubscriptionOfferDuration, endDate: String? = nil, numberOfPeriods: Int, offerMode: SubscriptionOfferMode, startDate: String? = nil) { + public init(duration: SubscriptionOfferDuration, + endDate: String? = nil, + numberOfPeriods: Int, + offerMode: SubscriptionOfferMode, + startDate: String? = nil) + { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods @@ -58,7 +66,10 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscription: Subscription? = nil, subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscription: Subscription? = nil, + subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscription = subscription self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferResponse.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferResponse.swift index 672b52f92..b48c90390 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionIntroductoryOfferResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: SubscriptionIntroductoryOffer, included: [Included]? = nil, links: DocumentLinks) { + public init(data: SubscriptionIntroductoryOffer, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferUpdateRequest.swift index 53d60184f..1b7843cf7 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOfferUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionIntroductoryOfferUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionIntroductoryOffers" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct SubscriptionIntroductoryOfferUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersLinkagesResponse.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersLinkagesResponse.swift index d5fcc79d5..387784312 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersLinkagesResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionIntroductoryOffersLinkagesResponse: Codable, PagedResp public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersResponse.swift b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersResponse.swift index 0007e479d..9bfd7cb67 100644 --- a/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionIntroductoryOffersResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionIntroductoryOffersResponse: Codable, PagedResponse { public typealias Data = SubscriptionIntroductoryOffer + public let data: [SubscriptionIntroductoryOffer] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionIntroductoryOffer], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionIntroductoryOffer], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionLocalization.swift b/Sources/Bagbutik/Models/SubscriptionLocalization.swift index 9f3470e30..031c0230d 100644 --- a/Sources/Bagbutik/Models/SubscriptionLocalization.swift +++ b/Sources/Bagbutik/Models/SubscriptionLocalization.swift @@ -7,7 +7,11 @@ public struct SubscriptionLocalization: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionLocalization: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct SubscriptionLocalization: Codable { public var name: String? public var state: State? - public init(description: String? = nil, locale: String? = nil, name: String? = nil, state: State? = nil) { + public init(description: String? = nil, + locale: String? = nil, + name: String? = nil, + state: State? = nil) + { self.description = description self.locale = locale self.name = name @@ -74,7 +82,9 @@ public struct SubscriptionLocalization: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -111,7 +121,9 @@ public struct SubscriptionLocalization: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -129,8 +141,8 @@ public struct SubscriptionLocalization: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionLocalizationCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionLocalizationCreateRequest.swift index f6f3cbdfa..da8ae2baf 100644 --- a/Sources/Bagbutik/Models/SubscriptionLocalizationCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionLocalizationCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionLocalizationCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct SubscriptionLocalizationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct SubscriptionLocalizationCreateRequest: Codable, RequestBody { public let locale: String public let name: String - public init(description: String? = nil, locale: String, name: String) { + public init(description: String? = nil, + locale: String, + name: String) + { self.description = description self.locale = locale self.name = name diff --git a/Sources/Bagbutik/Models/SubscriptionLocalizationResponse.swift b/Sources/Bagbutik/Models/SubscriptionLocalizationResponse.swift index 5bc200284..35ab31cba 100644 --- a/Sources/Bagbutik/Models/SubscriptionLocalizationResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionLocalizationResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionLocalizationResponse: Codable { public var included: [Subscription]? public let links: DocumentLinks - public init(data: SubscriptionLocalization, included: [Subscription]? = nil, links: DocumentLinks) { + public init(data: SubscriptionLocalization, + included: [Subscription]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionLocalizationUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionLocalizationUpdateRequest.swift index 1bd178d4e..a18246afd 100644 --- a/Sources/Bagbutik/Models/SubscriptionLocalizationUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionLocalizationUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionLocalizationUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionLocalizations" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,16 +36,18 @@ public struct SubscriptionLocalizationUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { public var description: String? public var name: String? - public init(description: String? = nil, name: String? = nil) { + public init(description: String? = nil, + name: String? = nil) + { self.description = description self.name = name } diff --git a/Sources/Bagbutik/Models/SubscriptionLocalizationsResponse.swift b/Sources/Bagbutik/Models/SubscriptionLocalizationsResponse.swift index c564637e5..22da310c5 100644 --- a/Sources/Bagbutik/Models/SubscriptionLocalizationsResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionLocalizationsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionLocalizationsResponse: Codable, PagedResponse { public typealias Data = SubscriptionLocalization + public let data: [SubscriptionLocalization] public var included: [Subscription]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionLocalization], included: [Subscription]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionLocalization], + included: [Subscription]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCode.swift b/Sources/Bagbutik/Models/SubscriptionOfferCode.swift index c823d60c4..b05e21ad4 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCode.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCode.swift @@ -7,7 +7,11 @@ public struct SubscriptionOfferCode: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionOfferCode: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -52,7 +56,15 @@ public struct SubscriptionOfferCode: Codable { public var offerMode: SubscriptionOfferMode? public var totalNumberOfCodes: Int? - public init(active: Bool? = nil, customerEligibilities: [SubscriptionCustomerEligibility]? = nil, duration: SubscriptionOfferDuration? = nil, name: String? = nil, numberOfPeriods: Int? = nil, offerEligibility: SubscriptionOfferEligibility? = nil, offerMode: SubscriptionOfferMode? = nil, totalNumberOfCodes: Int? = nil) { + public init(active: Bool? = nil, + customerEligibilities: [SubscriptionCustomerEligibility]? = nil, + duration: SubscriptionOfferDuration? = nil, + name: String? = nil, + numberOfPeriods: Int? = nil, + offerEligibility: SubscriptionOfferEligibility? = nil, + offerMode: SubscriptionOfferMode? = nil, + totalNumberOfCodes: Int? = nil) + { self.active = active self.customerEligibilities = customerEligibilities self.duration = duration @@ -70,7 +82,11 @@ public struct SubscriptionOfferCode: Codable { public var prices: Prices? public var subscription: Subscription? - public init(customCodes: CustomCodes? = nil, oneTimeUseCodes: OneTimeUseCodes? = nil, prices: Prices? = nil, subscription: Subscription? = nil) { + public init(customCodes: CustomCodes? = nil, + oneTimeUseCodes: OneTimeUseCodes? = nil, + prices: Prices? = nil, + subscription: Subscription? = nil) + { self.customCodes = customCodes self.oneTimeUseCodes = oneTimeUseCodes self.prices = prices @@ -82,7 +98,10 @@ public struct SubscriptionOfferCode: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -120,7 +139,9 @@ public struct SubscriptionOfferCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -138,8 +159,8 @@ public struct SubscriptionOfferCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -149,7 +170,10 @@ public struct SubscriptionOfferCode: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -187,7 +211,9 @@ public struct SubscriptionOfferCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -205,8 +231,8 @@ public struct SubscriptionOfferCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -216,7 +242,10 @@ public struct SubscriptionOfferCode: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -254,7 +283,9 @@ public struct SubscriptionOfferCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -272,8 +303,8 @@ public struct SubscriptionOfferCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -282,7 +313,9 @@ public struct SubscriptionOfferCode: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -319,7 +352,9 @@ public struct SubscriptionOfferCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -337,8 +372,8 @@ public struct SubscriptionOfferCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCreateRequest.swift index 24127443f..069f48c33 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCreateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionOfferCodeCreateRequest: Codable, RequestBody { public let data: Data public var included: [SubscriptionOfferCodePriceInlineCreate]? - public init(data: Data, included: [SubscriptionOfferCodePriceInlineCreate]? = nil) { + public init(data: Data, + included: [SubscriptionOfferCodePriceInlineCreate]? = nil) + { self.data = data self.included = included } @@ -14,7 +16,9 @@ public struct SubscriptionOfferCodeCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -36,9 +40,9 @@ public struct SubscriptionOfferCodeCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -49,7 +53,13 @@ public struct SubscriptionOfferCodeCreateRequest: Codable, RequestBody { public let offerEligibility: SubscriptionOfferEligibility public let offerMode: SubscriptionOfferMode - public init(customerEligibilities: [SubscriptionCustomerEligibility], duration: SubscriptionOfferDuration, name: String, numberOfPeriods: Int, offerEligibility: SubscriptionOfferEligibility, offerMode: SubscriptionOfferMode) { + public init(customerEligibilities: [SubscriptionCustomerEligibility], + duration: SubscriptionOfferDuration, + name: String, + numberOfPeriods: Int, + offerEligibility: SubscriptionOfferEligibility, + offerMode: SubscriptionOfferMode) + { self.customerEligibilities = customerEligibilities self.duration = duration self.name = name @@ -63,7 +73,9 @@ public struct SubscriptionOfferCodeCreateRequest: Codable, RequestBody { public let prices: Prices public let subscription: Subscription - public init(prices: Prices, subscription: Subscription) { + public init(prices: Prices, + subscription: Subscription) + { self.prices = prices self.subscription = subscription } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCode.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCode.swift index f6e015781..4e1f63d22 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCode.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCode.swift @@ -7,7 +7,11 @@ public struct SubscriptionOfferCodeCustomCode: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionOfferCodeCustomCode: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -49,7 +53,12 @@ public struct SubscriptionOfferCodeCustomCode: Codable { public var expirationDate: String? public var numberOfCodes: Int? - public init(active: Bool? = nil, createdDate: Date? = nil, customCode: String? = nil, expirationDate: String? = nil, numberOfCodes: Int? = nil) { + public init(active: Bool? = nil, + createdDate: Date? = nil, + customCode: String? = nil, + expirationDate: String? = nil, + numberOfCodes: Int? = nil) + { self.active = active self.createdDate = createdDate self.customCode = customCode @@ -69,7 +78,9 @@ public struct SubscriptionOfferCodeCustomCode: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -106,7 +117,9 @@ public struct SubscriptionOfferCodeCustomCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -124,8 +137,8 @@ public struct SubscriptionOfferCodeCustomCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeCreateRequest.swift index 6e0971dbd..dd852aaab 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionOfferCodeCustomCodeCreateRequest: Codable, RequestBody public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,9 +36,9 @@ public struct SubscriptionOfferCodeCustomCodeCreateRequest: Codable, RequestBody } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -44,7 +46,10 @@ public struct SubscriptionOfferCodeCustomCodeCreateRequest: Codable, RequestBody public var expirationDate: String? public let numberOfCodes: Int - public init(customCode: String, expirationDate: String? = nil, numberOfCodes: Int) { + public init(customCode: String, + expirationDate: String? = nil, + numberOfCodes: Int) + { self.customCode = customCode self.expirationDate = expirationDate self.numberOfCodes = numberOfCodes diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeResponse.swift index c434f4a63..aa3ac0057 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionOfferCodeCustomCodeResponse: Codable { public var included: [SubscriptionOfferCode]? public let links: DocumentLinks - public init(data: SubscriptionOfferCodeCustomCode, included: [SubscriptionOfferCode]? = nil, links: DocumentLinks) { + public init(data: SubscriptionOfferCodeCustomCode, + included: [SubscriptionOfferCode]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeUpdateRequest.swift index 0d7ca27d2..7f68bc67d 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodeUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionOfferCodeCustomCodeUpdateRequest: Codable, RequestBody public var type: String { "subscriptionOfferCodeCustomCodes" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct SubscriptionOfferCodeCustomCodeUpdateRequest: Codable, RequestBody } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodesResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodesResponse.swift index fd52e30b9..82f3d9f63 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeCustomCodesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionOfferCodeCustomCodesResponse: Codable, PagedResponse { public typealias Data = SubscriptionOfferCodeCustomCode + public let data: [SubscriptionOfferCodeCustomCode] public var included: [SubscriptionOfferCode]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionOfferCodeCustomCode], included: [SubscriptionOfferCode]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionOfferCodeCustomCode], + included: [SubscriptionOfferCode]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCode.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCode.swift index 7596dd06f..8f405ba47 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCode.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCode.swift @@ -7,7 +7,11 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,11 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { public var expirationDate: String? public var numberOfCodes: Int? - public init(active: Bool? = nil, createdDate: Date? = nil, expirationDate: String? = nil, numberOfCodes: Int? = nil) { + public init(active: Bool? = nil, + createdDate: Date? = nil, + expirationDate: String? = nil, + numberOfCodes: Int? = nil) + { self.active = active self.createdDate = createdDate self.expirationDate = expirationDate @@ -67,7 +75,9 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -104,7 +114,9 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -122,8 +134,8 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift index df64ddefd..f981c8cc9 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionOfferCodeOneTimeUseCodeCreateRequest: Codable, Request public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct SubscriptionOfferCodeOneTimeUseCodeCreateRequest: Codable, Request } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public let expirationDate: String public let numberOfCodes: Int - public init(expirationDate: String, numberOfCodes: Int) { + public init(expirationDate: String, + numberOfCodes: Int) + { self.expirationDate = expirationDate self.numberOfCodes = numberOfCodes } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeResponse.swift index 680896b52..fdb625b12 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionOfferCodeOneTimeUseCodeResponse: Codable { public var included: [SubscriptionOfferCode]? public let links: DocumentLinks - public init(data: SubscriptionOfferCodeOneTimeUseCode, included: [SubscriptionOfferCode]? = nil, links: DocumentLinks) { + public init(data: SubscriptionOfferCodeOneTimeUseCode, + included: [SubscriptionOfferCode]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift index 707d04dd0..1743008cc 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionOfferCodeOneTimeUseCodeUpdateRequest: Codable, Request public var type: String { "subscriptionOfferCodeOneTimeUseCodes" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct SubscriptionOfferCodeOneTimeUseCodeUpdateRequest: Codable, Request } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeValue.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeValue.swift index 64dbdc98d..d697eb810 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeValue.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodeValue.swift @@ -5,7 +5,9 @@ public struct SubscriptionOfferCodeOneTimeUseCodeValue: Codable { public let links: ResourceLinks public var type: String { "subscriptionOfferCodeOneTimeUseCodeValues" } - public init(id: String, links: ResourceLinks) { + public init(id: String, + links: ResourceLinks) + { self.id = id self.links = links } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodesResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodesResponse.swift index 710ad3fa8..f9ac1cb97 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeOneTimeUseCodesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionOfferCodeOneTimeUseCodesResponse: Codable, PagedResponse { public typealias Data = SubscriptionOfferCodeOneTimeUseCode + public let data: [SubscriptionOfferCodeOneTimeUseCode] public var included: [SubscriptionOfferCode]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionOfferCodeOneTimeUseCode], included: [SubscriptionOfferCode]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionOfferCodeOneTimeUseCode], + included: [SubscriptionOfferCode]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodePrice.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodePrice.swift index dc4aa503d..fe0eddf0c 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodePrice.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodePrice.swift @@ -6,7 +6,10 @@ public struct SubscriptionOfferCodePrice: Codable { public var type: String { "subscriptionOfferCodePrices" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -33,15 +36,17 @@ public struct SubscriptionOfferCodePrice: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } public struct Relationships: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory } @@ -50,7 +55,9 @@ public struct SubscriptionOfferCodePrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -87,7 +94,9 @@ public struct SubscriptionOfferCodePrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -105,8 +114,8 @@ public struct SubscriptionOfferCodePrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -115,7 +124,9 @@ public struct SubscriptionOfferCodePrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -152,7 +163,9 @@ public struct SubscriptionOfferCodePrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -170,8 +183,8 @@ public struct SubscriptionOfferCodePrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodePriceInlineCreate.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodePriceInlineCreate.swift index 44479cdd1..6dc7e3a98 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodePriceInlineCreate.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodePriceInlineCreate.swift @@ -5,7 +5,9 @@ public struct SubscriptionOfferCodePriceInlineCreate: Codable { public var type: String { "subscriptionOfferCodePrices" } public var relationships: Relationships? - public init(id: String? = nil, relationships: Relationships? = nil) { + public init(id: String? = nil, + relationships: Relationships? = nil) + { self.id = id self.relationships = relationships } @@ -28,15 +30,17 @@ public struct SubscriptionOfferCodePriceInlineCreate: Codable { private enum CodingKeys: String, CodingKey { case id - case type case relationships + case type } public struct Relationships: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory } diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodePricesResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodePricesResponse.swift index e0ae0e2bf..42a035bd2 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodePricesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodePricesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionOfferCodePricesResponse: Codable, PagedResponse { public typealias Data = SubscriptionOfferCodePrice + public let data: [SubscriptionOfferCodePrice] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionOfferCodePrice], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionOfferCodePrice], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeResponse.swift index 79afe85f1..eda478f6f 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionOfferCodeResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: SubscriptionOfferCode, included: [Included]? = nil, links: DocumentLinks) { + public init(data: SubscriptionOfferCode, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodeUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodeUpdateRequest.swift index b604acc25..22db3cb76 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodeUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodeUpdateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionOfferCodeUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionOfferCodes" } public var attributes: Attributes? - public init(id: String, attributes: Attributes? = nil) { + public init(id: String, + attributes: Attributes? = nil) + { self.id = id self.attributes = attributes } @@ -34,9 +36,9 @@ public struct SubscriptionOfferCodeUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { + case attributes case id case type - case attributes } public struct Attributes: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionOfferCodesResponse.swift b/Sources/Bagbutik/Models/SubscriptionOfferCodesResponse.swift index 753adeb70..425a06afc 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferCodesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferCodesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionOfferCodesResponse: Codable, PagedResponse { public typealias Data = SubscriptionOfferCode + public let data: [SubscriptionOfferCode] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionOfferCode], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionOfferCode], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionOfferMode.swift b/Sources/Bagbutik/Models/SubscriptionOfferMode.swift index 4825bab0e..d3c910186 100644 --- a/Sources/Bagbutik/Models/SubscriptionOfferMode.swift +++ b/Sources/Bagbutik/Models/SubscriptionOfferMode.swift @@ -1,10 +1,11 @@ import Foundation /** - A string that indicates the payment mode of a subscription offer. + # SubscriptionOfferMode + A string that indicates the payment mode of a subscription offer. - Full documentation: - + Full documentation: + */ public enum SubscriptionOfferMode: String, Codable, CaseIterable { /// A constant that indicates a subscription offer is billed over multiple billing periods. diff --git a/Sources/Bagbutik/Models/SubscriptionPrice.swift b/Sources/Bagbutik/Models/SubscriptionPrice.swift index 16f2de88f..7a1143aaa 100644 --- a/Sources/Bagbutik/Models/SubscriptionPrice.swift +++ b/Sources/Bagbutik/Models/SubscriptionPrice.swift @@ -7,7 +7,11 @@ public struct SubscriptionPrice: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,18 +39,20 @@ public struct SubscriptionPrice: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { public var preserved: Bool? public var startDate: String? - public init(preserved: Bool? = nil, startDate: String? = nil) { + public init(preserved: Bool? = nil, + startDate: String? = nil) + { self.preserved = preserved self.startDate = startDate } @@ -56,7 +62,9 @@ public struct SubscriptionPrice: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory } @@ -65,7 +73,9 @@ public struct SubscriptionPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -102,7 +112,9 @@ public struct SubscriptionPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -120,8 +132,8 @@ public struct SubscriptionPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -130,7 +142,9 @@ public struct SubscriptionPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -167,7 +181,9 @@ public struct SubscriptionPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -185,8 +201,8 @@ public struct SubscriptionPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionPriceCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionPriceCreateRequest.swift index 4a640c339..99299667b 100644 --- a/Sources/Bagbutik/Models/SubscriptionPriceCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionPriceCreateRequest.swift @@ -12,7 +12,9 @@ public struct SubscriptionPriceCreateRequest: Codable, RequestBody { public var attributes: Attributes? public let relationships: Relationships - public init(attributes: Attributes? = nil, relationships: Relationships) { + public init(attributes: Attributes? = nil, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -34,16 +36,18 @@ public struct SubscriptionPriceCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { public var preserveCurrentPrice: Bool? public var startDate: String? - public init(preserveCurrentPrice: Bool? = nil, startDate: String? = nil) { + public init(preserveCurrentPrice: Bool? = nil, + startDate: String? = nil) + { self.preserveCurrentPrice = preserveCurrentPrice self.startDate = startDate } @@ -54,7 +58,10 @@ public struct SubscriptionPriceCreateRequest: Codable, RequestBody { public let subscriptionPricePoint: SubscriptionPricePoint public var territory: Territory? - public init(subscription: Subscription, subscriptionPricePoint: SubscriptionPricePoint, territory: Territory? = nil) { + public init(subscription: Subscription, + subscriptionPricePoint: SubscriptionPricePoint, + territory: Territory? = nil) + { self.subscription = subscription self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory diff --git a/Sources/Bagbutik/Models/SubscriptionPriceInlineCreate.swift b/Sources/Bagbutik/Models/SubscriptionPriceInlineCreate.swift index e406fc884..e6a67cb55 100644 --- a/Sources/Bagbutik/Models/SubscriptionPriceInlineCreate.swift +++ b/Sources/Bagbutik/Models/SubscriptionPriceInlineCreate.swift @@ -6,7 +6,10 @@ public struct SubscriptionPriceInlineCreate: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,17 +34,19 @@ public struct SubscriptionPriceInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { public var preserveCurrentPrice: Bool? public var startDate: String? - public init(preserveCurrentPrice: Bool? = nil, startDate: String? = nil) { + public init(preserveCurrentPrice: Bool? = nil, + startDate: String? = nil) + { self.preserveCurrentPrice = preserveCurrentPrice self.startDate = startDate } @@ -52,7 +57,10 @@ public struct SubscriptionPriceInlineCreate: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscription: Subscription? = nil, subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscription: Subscription? = nil, + subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscription = subscription self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory diff --git a/Sources/Bagbutik/Models/SubscriptionPricePoint.swift b/Sources/Bagbutik/Models/SubscriptionPricePoint.swift index a350b0de0..1d1aec48b 100644 --- a/Sources/Bagbutik/Models/SubscriptionPricePoint.swift +++ b/Sources/Bagbutik/Models/SubscriptionPricePoint.swift @@ -7,7 +7,11 @@ public struct SubscriptionPricePoint: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionPricePoint: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -47,7 +51,10 @@ public struct SubscriptionPricePoint: Codable { public var proceeds: String? public var proceedsYear2: String? - public init(customerPrice: String? = nil, proceeds: String? = nil, proceedsYear2: String? = nil) { + public init(customerPrice: String? = nil, + proceeds: String? = nil, + proceedsYear2: String? = nil) + { self.customerPrice = customerPrice self.proceeds = proceeds self.proceedsYear2 = proceedsYear2 @@ -65,7 +72,9 @@ public struct SubscriptionPricePoint: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -102,7 +111,9 @@ public struct SubscriptionPricePoint: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -120,8 +131,8 @@ public struct SubscriptionPricePoint: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionPricePointResponse.swift b/Sources/Bagbutik/Models/SubscriptionPricePointResponse.swift index a13d164c6..5926a9e79 100644 --- a/Sources/Bagbutik/Models/SubscriptionPricePointResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPricePointResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionPricePointResponse: Codable { public var included: [Territory]? public let links: DocumentLinks - public init(data: SubscriptionPricePoint, included: [Territory]? = nil, links: DocumentLinks) { + public init(data: SubscriptionPricePoint, + included: [Territory]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPricePointsResponse.swift b/Sources/Bagbutik/Models/SubscriptionPricePointsResponse.swift index f4db6f455..be35e47b2 100644 --- a/Sources/Bagbutik/Models/SubscriptionPricePointsResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPricePointsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionPricePointsResponse: Codable, PagedResponse { public typealias Data = SubscriptionPricePoint + public let data: [SubscriptionPricePoint] public var included: [Territory]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionPricePoint], included: [Territory]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionPricePoint], + included: [Territory]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPriceResponse.swift b/Sources/Bagbutik/Models/SubscriptionPriceResponse.swift index da1661f6a..9e9ed01bc 100644 --- a/Sources/Bagbutik/Models/SubscriptionPriceResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPriceResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionPriceResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: SubscriptionPrice, included: [Included]? = nil, links: DocumentLinks) { + public init(data: SubscriptionPrice, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPricesLinkagesResponse.swift b/Sources/Bagbutik/Models/SubscriptionPricesLinkagesResponse.swift index e60b36f21..3e66ef16e 100644 --- a/Sources/Bagbutik/Models/SubscriptionPricesLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPricesLinkagesResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionPricesLinkagesResponse: Codable, PagedResponse { public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/SubscriptionPricesResponse.swift b/Sources/Bagbutik/Models/SubscriptionPricesResponse.swift index ee0723151..c464a53be 100644 --- a/Sources/Bagbutik/Models/SubscriptionPricesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPricesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionPricesResponse: Codable, PagedResponse { public typealias Data = SubscriptionPrice + public let data: [SubscriptionPrice] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionPrice], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionPrice], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOffer.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOffer.swift index bc3196203..a4e38b806 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOffer.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOffer.swift @@ -7,7 +7,11 @@ public struct SubscriptionPromotionalOffer: Codable { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -35,11 +39,11 @@ public struct SubscriptionPromotionalOffer: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } public struct Attributes: Codable { @@ -49,7 +53,12 @@ public struct SubscriptionPromotionalOffer: Codable { public var offerCode: String? public var offerMode: SubscriptionOfferMode? - public init(duration: SubscriptionOfferDuration? = nil, name: String? = nil, numberOfPeriods: Int? = nil, offerCode: String? = nil, offerMode: SubscriptionOfferMode? = nil) { + public init(duration: SubscriptionOfferDuration? = nil, + name: String? = nil, + numberOfPeriods: Int? = nil, + offerCode: String? = nil, + offerMode: SubscriptionOfferMode? = nil) + { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods @@ -62,7 +71,9 @@ public struct SubscriptionPromotionalOffer: Codable { public var prices: Prices? public var subscription: Subscription? - public init(prices: Prices? = nil, subscription: Subscription? = nil) { + public init(prices: Prices? = nil, + subscription: Subscription? = nil) + { self.prices = prices self.subscription = subscription } @@ -72,7 +83,10 @@ public struct SubscriptionPromotionalOffer: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta @@ -110,7 +124,9 @@ public struct SubscriptionPromotionalOffer: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -128,8 +144,8 @@ public struct SubscriptionPromotionalOffer: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -138,7 +154,9 @@ public struct SubscriptionPromotionalOffer: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -175,7 +193,9 @@ public struct SubscriptionPromotionalOffer: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -193,8 +213,8 @@ public struct SubscriptionPromotionalOffer: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferCreateRequest.swift index ce0ecda3a..2cec083c8 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferCreateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionPromotionalOfferCreateRequest: Codable, RequestBody { public let data: Data public var included: [SubscriptionPromotionalOfferPriceInlineCreate]? - public init(data: Data, included: [SubscriptionPromotionalOfferPriceInlineCreate]? = nil) { + public init(data: Data, + included: [SubscriptionPromotionalOfferPriceInlineCreate]? = nil) + { self.data = data self.included = included } @@ -14,7 +16,9 @@ public struct SubscriptionPromotionalOfferCreateRequest: Codable, RequestBody { public let attributes: Attributes public let relationships: Relationships - public init(attributes: Attributes, relationships: Relationships) { + public init(attributes: Attributes, + relationships: Relationships) + { self.attributes = attributes self.relationships = relationships } @@ -36,9 +40,9 @@ public struct SubscriptionPromotionalOfferCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } public struct Attributes: Codable { @@ -48,7 +52,12 @@ public struct SubscriptionPromotionalOfferCreateRequest: Codable, RequestBody { public let offerCode: String public let offerMode: SubscriptionOfferMode - public init(duration: SubscriptionOfferDuration, name: String, numberOfPeriods: Int, offerCode: String, offerMode: SubscriptionOfferMode) { + public init(duration: SubscriptionOfferDuration, + name: String, + numberOfPeriods: Int, + offerCode: String, + offerMode: SubscriptionOfferMode) + { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods @@ -61,7 +70,9 @@ public struct SubscriptionPromotionalOfferCreateRequest: Codable, RequestBody { public let prices: Prices public let subscription: Subscription - public init(prices: Prices, subscription: Subscription) { + public init(prices: Prices, + subscription: Subscription) + { self.prices = prices self.subscription = subscription } diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferInlineCreate.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferInlineCreate.swift index 4f2a6e4e8..32b3336d9 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferInlineCreate.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferInlineCreate.swift @@ -6,7 +6,10 @@ public struct SubscriptionPromotionalOfferInlineCreate: Codable { public let attributes: Attributes public var relationships: Relationships? - public init(id: String? = nil, attributes: Attributes, relationships: Relationships? = nil) { + public init(id: String? = nil, + attributes: Attributes, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -31,10 +34,10 @@ public struct SubscriptionPromotionalOfferInlineCreate: Codable { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { @@ -44,7 +47,12 @@ public struct SubscriptionPromotionalOfferInlineCreate: Codable { public let offerCode: String public let offerMode: SubscriptionOfferMode - public init(duration: SubscriptionOfferDuration, name: String, numberOfPeriods: Int, offerCode: String, offerMode: SubscriptionOfferMode) { + public init(duration: SubscriptionOfferDuration, + name: String, + numberOfPeriods: Int, + offerCode: String, + offerMode: SubscriptionOfferMode) + { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods @@ -57,7 +65,9 @@ public struct SubscriptionPromotionalOfferInlineCreate: Codable { public var prices: Prices? public var subscription: Subscription? - public init(prices: Prices? = nil, subscription: Subscription? = nil) { + public init(prices: Prices? = nil, + subscription: Subscription? = nil) + { self.prices = prices self.subscription = subscription } diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPrice.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPrice.swift index c210cfdf3..9142e3809 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPrice.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPrice.swift @@ -6,7 +6,10 @@ public struct SubscriptionPromotionalOfferPrice: Codable { public var type: String { "subscriptionPromotionalOfferPrices" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -33,15 +36,17 @@ public struct SubscriptionPromotionalOfferPrice: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } public struct Relationships: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory } @@ -50,7 +55,9 @@ public struct SubscriptionPromotionalOfferPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -87,7 +94,9 @@ public struct SubscriptionPromotionalOfferPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -105,8 +114,8 @@ public struct SubscriptionPromotionalOfferPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } @@ -115,7 +124,9 @@ public struct SubscriptionPromotionalOfferPrice: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -152,7 +163,9 @@ public struct SubscriptionPromotionalOfferPrice: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -170,8 +183,8 @@ public struct SubscriptionPromotionalOfferPrice: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPriceInlineCreate.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPriceInlineCreate.swift index 06ac36d9a..282d103c2 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPriceInlineCreate.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPriceInlineCreate.swift @@ -5,7 +5,9 @@ public struct SubscriptionPromotionalOfferPriceInlineCreate: Codable { public var type: String { "subscriptionPromotionalOfferPrices" } public var relationships: Relationships? - public init(id: String? = nil, relationships: Relationships? = nil) { + public init(id: String? = nil, + relationships: Relationships? = nil) + { self.id = id self.relationships = relationships } @@ -28,15 +30,17 @@ public struct SubscriptionPromotionalOfferPriceInlineCreate: Codable { private enum CodingKeys: String, CodingKey { case id - case type case relationships + case type } public struct Relationships: Codable { public var subscriptionPricePoint: SubscriptionPricePoint? public var territory: Territory? - public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, territory: Territory? = nil) { + public init(subscriptionPricePoint: SubscriptionPricePoint? = nil, + territory: Territory? = nil) + { self.subscriptionPricePoint = subscriptionPricePoint self.territory = territory } diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPricesResponse.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPricesResponse.swift index 53c29a87a..2c898fd12 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPricesResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferPricesResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionPromotionalOfferPricesResponse: Codable, PagedResponse { public typealias Data = SubscriptionPromotionalOfferPrice + public let data: [SubscriptionPromotionalOfferPrice] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionPromotionalOfferPrice], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionPromotionalOfferPrice], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferResponse.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferResponse.swift index 2dd9f14a1..e6bae0c62 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionPromotionalOfferResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: SubscriptionPromotionalOffer, included: [Included]? = nil, links: DocumentLinks) { + public init(data: SubscriptionPromotionalOffer, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferUpdateRequest.swift index 256dc0308..953255c52 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOfferUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOfferUpdateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionPromotionalOfferUpdateRequest: Codable, RequestBody { public let data: Data public var included: [SubscriptionPromotionalOfferPriceInlineCreate]? - public init(data: Data, included: [SubscriptionPromotionalOfferPriceInlineCreate]? = nil) { + public init(data: Data, + included: [SubscriptionPromotionalOfferPriceInlineCreate]? = nil) + { self.data = data self.included = included } @@ -14,7 +16,9 @@ public struct SubscriptionPromotionalOfferUpdateRequest: Codable, RequestBody { public var type: String { "subscriptionPromotionalOffers" } public var relationships: Relationships? - public init(id: String, relationships: Relationships? = nil) { + public init(id: String, + relationships: Relationships? = nil) + { self.id = id self.relationships = relationships } @@ -37,8 +41,8 @@ public struct SubscriptionPromotionalOfferUpdateRequest: Codable, RequestBody { private enum CodingKeys: String, CodingKey { case id - case type case relationships + case type } public struct Relationships: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionPromotionalOffersResponse.swift b/Sources/Bagbutik/Models/SubscriptionPromotionalOffersResponse.swift index 6ddaccd60..46a32569e 100644 --- a/Sources/Bagbutik/Models/SubscriptionPromotionalOffersResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionPromotionalOffersResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionPromotionalOffersResponse: Codable, PagedResponse { public typealias Data = SubscriptionPromotionalOffer + public let data: [SubscriptionPromotionalOffer] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [SubscriptionPromotionalOffer], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [SubscriptionPromotionalOffer], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionResponse.swift b/Sources/Bagbutik/Models/SubscriptionResponse.swift index 870e2b0d0..91b48f81b 100644 --- a/Sources/Bagbutik/Models/SubscriptionResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionResponse: Codable { public var included: [Included]? public let links: DocumentLinks - public init(data: Subscription, included: [Included]? = nil, links: DocumentLinks) { + public init(data: Subscription, + included: [Included]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionSubmission.swift b/Sources/Bagbutik/Models/SubscriptionSubmission.swift index bf4e01d14..0933710a5 100644 --- a/Sources/Bagbutik/Models/SubscriptionSubmission.swift +++ b/Sources/Bagbutik/Models/SubscriptionSubmission.swift @@ -6,7 +6,10 @@ public struct SubscriptionSubmission: Codable { public var type: String { "subscriptionSubmissions" } public var relationships: Relationships? - public init(id: String, links: ResourceLinks, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + relationships: Relationships? = nil) + { self.id = id self.links = links self.relationships = relationships @@ -33,8 +36,8 @@ public struct SubscriptionSubmission: Codable { private enum CodingKeys: String, CodingKey { case id case links - case type case relationships + case type } public struct Relationships: Codable { @@ -48,7 +51,9 @@ public struct SubscriptionSubmission: Codable { @NullCodable public var data: Data? public var links: Links? - public init(data: Data? = nil, links: Links? = nil) { + public init(data: Data? = nil, + links: Links? = nil) + { self.data = data self.links = links } @@ -85,7 +90,9 @@ public struct SubscriptionSubmission: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -103,8 +110,8 @@ public struct SubscriptionSubmission: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/SubscriptionSubmissionCreateRequest.swift b/Sources/Bagbutik/Models/SubscriptionSubmissionCreateRequest.swift index 5d3c119f2..4bd212087 100644 --- a/Sources/Bagbutik/Models/SubscriptionSubmissionCreateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionSubmissionCreateRequest.swift @@ -30,8 +30,8 @@ public struct SubscriptionSubmissionCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case relationships + case type } public struct Relationships: Codable { diff --git a/Sources/Bagbutik/Models/SubscriptionSubmissionResponse.swift b/Sources/Bagbutik/Models/SubscriptionSubmissionResponse.swift index 94faa35d3..65eabee0c 100644 --- a/Sources/Bagbutik/Models/SubscriptionSubmissionResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionSubmissionResponse.swift @@ -5,7 +5,10 @@ public struct SubscriptionSubmissionResponse: Codable { public var included: [Subscription]? public let links: DocumentLinks - public init(data: SubscriptionSubmission, included: [Subscription]? = nil, links: DocumentLinks) { + public init(data: SubscriptionSubmission, + included: [Subscription]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/SubscriptionUpdateRequest.swift b/Sources/Bagbutik/Models/SubscriptionUpdateRequest.swift index 5e8b4cb2b..948e14024 100644 --- a/Sources/Bagbutik/Models/SubscriptionUpdateRequest.swift +++ b/Sources/Bagbutik/Models/SubscriptionUpdateRequest.swift @@ -4,7 +4,9 @@ public struct SubscriptionUpdateRequest: Codable, RequestBody { public let data: Data public var included: [Included]? - public init(data: Data, included: [Included]? = nil) { + public init(data: Data, + included: [Included]? = nil) + { self.data = data self.included = included } @@ -15,7 +17,10 @@ public struct SubscriptionUpdateRequest: Codable, RequestBody { public var attributes: Attributes? public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -40,10 +45,10 @@ public struct SubscriptionUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } public struct Attributes: Codable { @@ -54,7 +59,13 @@ public struct SubscriptionUpdateRequest: Codable, RequestBody { public var reviewNote: String? public var subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? - public init(availableInAllTerritories: Bool? = nil, familySharable: Bool? = nil, groupLevel: Int? = nil, name: String? = nil, reviewNote: String? = nil, subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? = nil) { + public init(availableInAllTerritories: Bool? = nil, + familySharable: Bool? = nil, + groupLevel: Int? = nil, + name: String? = nil, + reviewNote: String? = nil, + subscriptionPeriod: Subscription.Attributes.SubscriptionPeriod? = nil) + { self.availableInAllTerritories = availableInAllTerritories self.familySharable = familySharable self.groupLevel = groupLevel @@ -69,7 +80,10 @@ public struct SubscriptionUpdateRequest: Codable, RequestBody { public var prices: Prices? public var promotionalOffers: PromotionalOffers? - public init(introductoryOffers: IntroductoryOffers? = nil, prices: Prices? = nil, promotionalOffers: PromotionalOffers? = nil) { + public init(introductoryOffers: IntroductoryOffers? = nil, + prices: Prices? = nil, + promotionalOffers: PromotionalOffers? = nil) + { self.introductoryOffers = introductoryOffers self.prices = prices self.promotionalOffers = promotionalOffers diff --git a/Sources/Bagbutik/Models/SubscriptionsResponse.swift b/Sources/Bagbutik/Models/SubscriptionsResponse.swift index 6553a2645..07053a0bf 100644 --- a/Sources/Bagbutik/Models/SubscriptionsResponse.swift +++ b/Sources/Bagbutik/Models/SubscriptionsResponse.swift @@ -2,12 +2,17 @@ import Foundation public struct SubscriptionsResponse: Codable, PagedResponse { public typealias Data = Subscription + public let data: [Subscription] public var included: [Included]? public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Subscription], included: [Included]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Subscription], + included: [Included]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/TerritoriesResponse.swift b/Sources/Bagbutik/Models/TerritoriesResponse.swift index f2fe1737e..ee2472e91 100644 --- a/Sources/Bagbutik/Models/TerritoriesResponse.swift +++ b/Sources/Bagbutik/Models/TerritoriesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # TerritoriesResponse A response that contains a list of Territory resources. Full documentation: @@ -8,11 +9,15 @@ import Foundation */ public struct TerritoriesResponse: Codable, PagedResponse { public typealias Data = Territory + public let data: [Territory] public let links: PagedDocumentLinks public var meta: PagingInformation? - public init(data: [Territory], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Territory], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta diff --git a/Sources/Bagbutik/Models/Territory.swift b/Sources/Bagbutik/Models/Territory.swift index 1b9ce6a8d..a97a993df 100644 --- a/Sources/Bagbutik/Models/Territory.swift +++ b/Sources/Bagbutik/Models/Territory.swift @@ -1,6 +1,7 @@ import Foundation /** + # Territory The data structure that represents a Territories resource. Full documentation: @@ -12,7 +13,10 @@ public struct Territory: Codable { public var type: String { "territories" } public var attributes: Attributes? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -37,13 +41,14 @@ public struct Territory: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links case type - case attributes } /** + # Territory.Attributes Attributes that describe a Territories resource. Full documentation: diff --git a/Sources/Bagbutik/Models/TerritoryCode.swift b/Sources/Bagbutik/Models/TerritoryCode.swift index 5ea166efa..bd12d6856 100644 --- a/Sources/Bagbutik/Models/TerritoryCode.swift +++ b/Sources/Bagbutik/Models/TerritoryCode.swift @@ -1,10 +1,11 @@ import Foundation /** - The App Store territory codes. + # TerritoryCode + The App Store territory codes. - Full documentation: - + Full documentation: + */ public enum TerritoryCode: String, Codable, CaseIterable { case abw = "ABW" diff --git a/Sources/Bagbutik/Models/TerritoryResponse.swift b/Sources/Bagbutik/Models/TerritoryResponse.swift index b43267205..96c0b1e80 100644 --- a/Sources/Bagbutik/Models/TerritoryResponse.swift +++ b/Sources/Bagbutik/Models/TerritoryResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # TerritoryResponse A response that contains a single Territories resource. Full documentation: @@ -10,7 +11,9 @@ public struct TerritoryResponse: Codable { public let data: Territory public let links: DocumentLinks - public init(data: Territory, links: DocumentLinks) { + public init(data: Territory, + links: DocumentLinks) + { self.data = data self.links = links } diff --git a/Sources/Bagbutik/Models/UploadOperation.swift b/Sources/Bagbutik/Models/UploadOperation.swift index cada90f87..01ad00e6a 100644 --- a/Sources/Bagbutik/Models/UploadOperation.swift +++ b/Sources/Bagbutik/Models/UploadOperation.swift @@ -1,6 +1,7 @@ import Foundation /** + # UploadOperation Upload instructions for assets such as app previews and app screenshots. Full documentation: @@ -13,7 +14,12 @@ public struct UploadOperation: Codable { public var requestHeaders: [HttpHeader]? public var url: String? - public init(length: Int? = nil, method: String? = nil, offset: Int? = nil, requestHeaders: [HttpHeader]? = nil, url: String? = nil) { + public init(length: Int? = nil, + method: String? = nil, + offset: Int? = nil, + requestHeaders: [HttpHeader]? = nil, + url: String? = nil) + { self.length = length self.method = method self.offset = offset diff --git a/Sources/Bagbutik/Models/User.swift b/Sources/Bagbutik/Models/User.swift index f41d5a785..2324f4716 100644 --- a/Sources/Bagbutik/Models/User.swift +++ b/Sources/Bagbutik/Models/User.swift @@ -1,6 +1,7 @@ import Foundation /** + # User The data structure that represents a Users resource. Full documentation: @@ -18,7 +19,11 @@ public struct User: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct User: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # User.Attributes Attributes that describe a Users resource. Full documentation: @@ -73,7 +79,13 @@ public struct User: Codable { /// The user's Apple ID. public var username: String? - public init(allAppsVisible: Bool? = nil, firstName: String? = nil, lastName: String? = nil, provisioningAllowed: Bool? = nil, roles: [UserRole]? = nil, username: String? = nil) { + public init(allAppsVisible: Bool? = nil, + firstName: String? = nil, + lastName: String? = nil, + provisioningAllowed: Bool? = nil, + roles: [UserRole]? = nil, + username: String? = nil) + { self.allAppsVisible = allAppsVisible self.firstName = firstName self.lastName = lastName @@ -84,6 +96,7 @@ public struct User: Codable { } /** + # User.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -97,6 +110,7 @@ public struct User: Codable { } /** + # User.Relationships.VisibleApps The data and links that describe the relationship between the resources. Full documentation: @@ -107,13 +121,17 @@ public struct User: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # User.Relationships.VisibleApps.Data The type and ID of a related resource. Full documentation: @@ -150,6 +168,7 @@ public struct User: Codable { } /** + # User.Relationships.VisibleApps.Links The links to the related data and the relationship's self-link. Full documentation: @@ -159,7 +178,9 @@ public struct User: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -177,8 +198,8 @@ public struct User: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/UserInvitation.swift b/Sources/Bagbutik/Models/UserInvitation.swift index 16ca1a66e..1b552ff56 100644 --- a/Sources/Bagbutik/Models/UserInvitation.swift +++ b/Sources/Bagbutik/Models/UserInvitation.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserInvitation The data structure that represents a User Invitations resource. Full documentation: @@ -18,7 +19,11 @@ public struct UserInvitation: Codable { /// Navigational links to related data and included resource types and IDs. public var relationships: Relationships? - public init(id: String, links: ResourceLinks, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + links: ResourceLinks, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.links = links self.attributes = attributes @@ -46,14 +51,15 @@ public struct UserInvitation: Codable { } private enum CodingKeys: String, CodingKey { + case attributes case id case links - case type - case attributes case relationships + case type } /** + # UserInvitation.Attributes Attributes that describe a User Invitations resource. Full documentation: @@ -75,7 +81,14 @@ public struct UserInvitation: Codable { /// Assigned user roles that determine the user's access to sections of App Store Connect and tasks they can perform. public var roles: [UserRole]? - public init(allAppsVisible: Bool? = nil, email: String? = nil, expirationDate: Date? = nil, firstName: String? = nil, lastName: String? = nil, provisioningAllowed: Bool? = nil, roles: [UserRole]? = nil) { + public init(allAppsVisible: Bool? = nil, + email: String? = nil, + expirationDate: Date? = nil, + firstName: String? = nil, + lastName: String? = nil, + provisioningAllowed: Bool? = nil, + roles: [UserRole]? = nil) + { self.allAppsVisible = allAppsVisible self.email = email self.expirationDate = expirationDate @@ -87,6 +100,7 @@ public struct UserInvitation: Codable { } /** + # UserInvitation.Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -100,6 +114,7 @@ public struct UserInvitation: Codable { } /** + # UserInvitation.Relationships.VisibleApps The data and links that describe the relationship between the resources. Full documentation: @@ -110,13 +125,17 @@ public struct UserInvitation: Codable { public var links: Links? public var meta: PagingInformation? - public init(data: [Data]? = nil, links: Links? = nil, meta: PagingInformation? = nil) { + public init(data: [Data]? = nil, + links: Links? = nil, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # UserInvitation.Relationships.VisibleApps.Data The type and ID of a related resource. Full documentation: @@ -153,6 +172,7 @@ public struct UserInvitation: Codable { } /** + # UserInvitation.Relationships.VisibleApps.Links The links to the related data and the relationship's self-link. Full documentation: @@ -162,7 +182,9 @@ public struct UserInvitation: Codable { public var related: String? public var itself: String? - public init(related: String? = nil, self itself: String? = nil) { + public init(related: String? = nil, + self itself: String? = nil) + { self.related = related self.itself = itself } @@ -180,8 +202,8 @@ public struct UserInvitation: Codable { } private enum CodingKeys: String, CodingKey { - case related case itself = "self" + case related } } } diff --git a/Sources/Bagbutik/Models/UserInvitationCreateRequest.swift b/Sources/Bagbutik/Models/UserInvitationCreateRequest.swift index aec5f651a..926f54bff 100644 --- a/Sources/Bagbutik/Models/UserInvitationCreateRequest.swift +++ b/Sources/Bagbutik/Models/UserInvitationCreateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserInvitationCreateRequest The request body you use to create a User Invitation. Full documentation: @@ -15,6 +16,7 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { } /** + # UserInvitationCreateRequest.Data The data element of the request body. Full documentation: @@ -28,7 +30,9 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public var relationships: Relationships? - public init(attributes: Attributes, relationships: Relationships? = nil) { + public init(attributes: Attributes, + relationships: Relationships? = nil) + { self.attributes = attributes self.relationships = relationships } @@ -50,12 +54,13 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case type case attributes case relationships + case type } /** + # UserInvitationCreateRequest.Data.Attributes Attributes that you set that describe the new resource. Full documentation: @@ -75,7 +80,13 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { /// Assigned user roles that determine the user's access to sections of App Store Connect and tasks they can perform. public let roles: [UserRole] - public init(allAppsVisible: Bool? = nil, email: String, firstName: String, lastName: String, provisioningAllowed: Bool? = nil, roles: [UserRole]) { + public init(allAppsVisible: Bool? = nil, + email: String, + firstName: String, + lastName: String, + provisioningAllowed: Bool? = nil, + roles: [UserRole]) + { self.allAppsVisible = allAppsVisible self.email = email self.firstName = firstName @@ -86,6 +97,7 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { } /** + # UserInvitationCreateRequest.Data.Relationships The relationships to other resources that you can set with this request. Full documentation: @@ -99,6 +111,7 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { } /** + # UserInvitationCreateRequest.Data.Relationships.VisibleApps The relationships to other resources that you can set with this request. Full documentation: @@ -112,6 +125,7 @@ public struct UserInvitationCreateRequest: Codable, RequestBody { } /** + # UserInvitationCreateRequest.Data.Relationships.VisibleApps.Data The type and ID of the resource that you're relating with the resource you're creating. Full documentation: diff --git a/Sources/Bagbutik/Models/UserInvitationResponse.swift b/Sources/Bagbutik/Models/UserInvitationResponse.swift index 7bcbae5b6..9273751c7 100644 --- a/Sources/Bagbutik/Models/UserInvitationResponse.swift +++ b/Sources/Bagbutik/Models/UserInvitationResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserInvitationResponse A response that contains a single User Invitations resource. Full documentation: @@ -13,7 +14,10 @@ public struct UserInvitationResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: UserInvitation, included: [App]? = nil, links: DocumentLinks) { + public init(data: UserInvitation, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/UserInvitationsResponse.swift b/Sources/Bagbutik/Models/UserInvitationsResponse.swift index e4cddc7b4..fb8924933 100644 --- a/Sources/Bagbutik/Models/UserInvitationsResponse.swift +++ b/Sources/Bagbutik/Models/UserInvitationsResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserInvitationsResponse A response that contains a list of User Invitations resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct UserInvitationsResponse: Codable, PagedResponse { public typealias Data = UserInvitation + /// The resource data. public let data: [UserInvitation] public var included: [App]? @@ -16,7 +18,11 @@ public struct UserInvitationsResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [UserInvitation], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [UserInvitation], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/UserResponse.swift b/Sources/Bagbutik/Models/UserResponse.swift index 859f8fef1..004269c2b 100644 --- a/Sources/Bagbutik/Models/UserResponse.swift +++ b/Sources/Bagbutik/Models/UserResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserResponse A response that contains a single Users resource. Full documentation: @@ -13,7 +14,10 @@ public struct UserResponse: Codable { /// Navigational links that include the self-link. public let links: DocumentLinks - public init(data: User, included: [App]? = nil, links: DocumentLinks) { + public init(data: User, + included: [App]? = nil, + links: DocumentLinks) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/UserRole.swift b/Sources/Bagbutik/Models/UserRole.swift index 1d4811186..88d383ab5 100644 --- a/Sources/Bagbutik/Models/UserRole.swift +++ b/Sources/Bagbutik/Models/UserRole.swift @@ -1,12 +1,13 @@ import Foundation /** - Strings that represent user roles and permissions in App Store Connect. + # UserRole + Strings that represent user roles and permissions in App Store Connect. - Full documentation: - + For more information about roles and permissions, see [Program Roles](https://developer.apple.com/support/roles/). - For more information about roles and permissions, see [Program Roles](https://developer.apple.com/support/roles/). + Full documentation: + */ public enum UserRole: String, Codable, CaseIterable { /// Role that serves as a secondary contact for teams and has many of the same responsibilities as the Account Holder role. Admins have access to all apps. diff --git a/Sources/Bagbutik/Models/UserUpdateRequest.swift b/Sources/Bagbutik/Models/UserUpdateRequest.swift index b8a6609a0..b80006edb 100644 --- a/Sources/Bagbutik/Models/UserUpdateRequest.swift +++ b/Sources/Bagbutik/Models/UserUpdateRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserUpdateRequest The request body you use to update a User. Full documentation: @@ -15,6 +16,7 @@ public struct UserUpdateRequest: Codable, RequestBody { } /** + # UserUpdateRequest.Data The data element of the request body. Full documentation: @@ -30,7 +32,10 @@ public struct UserUpdateRequest: Codable, RequestBody { /// The types and IDs of the related data to update. public var relationships: Relationships? - public init(id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + public init(id: String, + attributes: Attributes? = nil, + relationships: Relationships? = nil) + { self.id = id self.attributes = attributes self.relationships = relationships @@ -55,13 +60,14 @@ public struct UserUpdateRequest: Codable, RequestBody { } private enum CodingKeys: String, CodingKey { - case id - case type case attributes + case id case relationships + case type } /** + # UserUpdateRequest.Data.Attributes Attributes whose values you're changing as part of the update request. Full documentation: @@ -75,7 +81,10 @@ public struct UserUpdateRequest: Codable, RequestBody { /// Assigned user roles that determine the user's access to sections of App Store Connect and tasks they can perform. public var roles: [UserRole]? - public init(allAppsVisible: Bool? = nil, provisioningAllowed: Bool? = nil, roles: [UserRole]? = nil) { + public init(allAppsVisible: Bool? = nil, + provisioningAllowed: Bool? = nil, + roles: [UserRole]? = nil) + { self.allAppsVisible = allAppsVisible self.provisioningAllowed = provisioningAllowed self.roles = roles @@ -83,6 +92,7 @@ public struct UserUpdateRequest: Codable, RequestBody { } /** + # UserUpdateRequest.Data.Relationships The data and links that describe the relationship between the resources. Full documentation: @@ -96,6 +106,7 @@ public struct UserUpdateRequest: Codable, RequestBody { } /** + # UserUpdateRequest.Data.Relationships.VisibleApps The data and links that describe the relationship between the resources. Full documentation: @@ -109,6 +120,7 @@ public struct UserUpdateRequest: Codable, RequestBody { } /** + # UserUpdateRequest.Data.Relationships.VisibleApps.Data The type and ID of a resource that you're relating with the resource you're updating. Full documentation: diff --git a/Sources/Bagbutik/Models/UserVisibleAppsLinkagesRequest.swift b/Sources/Bagbutik/Models/UserVisibleAppsLinkagesRequest.swift index 993da0cc9..782cc739e 100644 --- a/Sources/Bagbutik/Models/UserVisibleAppsLinkagesRequest.swift +++ b/Sources/Bagbutik/Models/UserVisibleAppsLinkagesRequest.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserVisibleAppsLinkagesRequest A request body you use to add or remove visible apps from a user. Full documentation: @@ -15,6 +16,7 @@ public struct UserVisibleAppsLinkagesRequest: Codable, RequestBody { } /** + # UserVisibleAppsLinkagesRequest.Data The data element of the request body. Full documentation: diff --git a/Sources/Bagbutik/Models/UserVisibleAppsLinkagesResponse.swift b/Sources/Bagbutik/Models/UserVisibleAppsLinkagesResponse.swift index d5a17e4a1..4e6ddcee7 100644 --- a/Sources/Bagbutik/Models/UserVisibleAppsLinkagesResponse.swift +++ b/Sources/Bagbutik/Models/UserVisibleAppsLinkagesResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # UserVisibleAppsLinkagesResponse A response body that contains a list of related resource IDs. Full documentation: @@ -14,13 +15,17 @@ public struct UserVisibleAppsLinkagesResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [Data], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.links = links self.meta = meta } /** + # UserVisibleAppsLinkagesResponse.Data The data element of the response body. Full documentation: diff --git a/Sources/Bagbutik/Models/UsersResponse.swift b/Sources/Bagbutik/Models/UsersResponse.swift index 92e8e921a..c479e6946 100644 --- a/Sources/Bagbutik/Models/UsersResponse.swift +++ b/Sources/Bagbutik/Models/UsersResponse.swift @@ -1,6 +1,7 @@ import Foundation /** + # UsersResponse A response that contains a list of Users resources. Full documentation: @@ -8,6 +9,7 @@ import Foundation */ public struct UsersResponse: Codable, PagedResponse { public typealias Data = User + /// The resource data. public let data: [User] public var included: [App]? @@ -16,7 +18,11 @@ public struct UsersResponse: Codable, PagedResponse { /// Paging information. public var meta: PagingInformation? - public init(data: [User], included: [App]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [User], + included: [App]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil) + { self.data = data self.included = included self.links = links diff --git a/Sources/Bagbutik/Models/XcodeMetrics.swift b/Sources/Bagbutik/Models/XcodeMetrics.swift index fafd33934..781286227 100644 --- a/Sources/Bagbutik/Models/XcodeMetrics.swift +++ b/Sources/Bagbutik/Models/XcodeMetrics.swift @@ -1,6 +1,7 @@ import Foundation /** + # xcodeMetrics A response that contains power and performance measurements for your app. Full documentation: @@ -14,13 +15,17 @@ public struct XcodeMetrics: Codable { /// The current App Store Connect API version. public var version: String? - public init(insights: Insights? = nil, productData: [ProductData]? = nil, version: String? = nil) { + public init(insights: Insights? = nil, + productData: [ProductData]? = nil, + version: String? = nil) + { self.insights = insights self.productData = productData self.version = version } /** + # xcodeMetrics.Insights Analysis of power and performance data collected for your app that includes regressions and trends. Full documentation: @@ -32,13 +37,16 @@ public struct XcodeMetrics: Codable { /// An array of metrics that have moderately increased between app versions. public var trendingUp: [MetricsInsight]? - public init(regressions: [MetricsInsight]? = nil, trendingUp: [MetricsInsight]? = nil) { + public init(regressions: [MetricsInsight]? = nil, + trendingUp: [MetricsInsight]? = nil) + { self.regressions = regressions self.trendingUp = trendingUp } } /** + # xcodeMetrics.ProductData The metrics information of an app on a specific platform. Full documentation: @@ -50,12 +58,15 @@ public struct XcodeMetrics: Codable { /// The Apple platform on which the system gathered the metrics about your app. public var platform: String? - public init(metricCategories: [MetricCategories]? = nil, platform: String? = nil) { + public init(metricCategories: [MetricCategories]? = nil, + platform: String? = nil) + { self.metricCategories = metricCategories self.platform = platform } /** + # xcodeMetrics.ProductData.MetricCategories A metric category and its associated array of data and measurements. Full documentation: @@ -67,12 +78,15 @@ public struct XcodeMetrics: Codable { /// An array of data and measurements for the metric category specified by the `identifier`. public var metrics: [Metrics]? - public init(identifier: MetricCategory? = nil, metrics: [Metrics]? = nil) { + public init(identifier: MetricCategory? = nil, + metrics: [Metrics]? = nil) + { self.identifier = identifier self.metrics = metrics } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics Data that relates to power and performance measurements for an app, including its datasets, goal keys, metrics identifier, and unit of measurement. Full documentation: @@ -88,7 +102,11 @@ public struct XcodeMetrics: Codable { /// The metric’s unit of measurement. public var unit: Unit? - public init(datasets: [Datasets]? = nil, goalKeys: [GoalKeys]? = nil, identifier: String? = nil, unit: Unit? = nil) { + public init(datasets: [Datasets]? = nil, + goalKeys: [GoalKeys]? = nil, + identifier: String? = nil, + unit: Unit? = nil) + { self.datasets = datasets self.goalKeys = goalKeys self.identifier = identifier @@ -96,6 +114,7 @@ public struct XcodeMetrics: Codable { } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.Datasets A set of data containing metric values for each app version, filtered by percentile and device type. Full documentation: @@ -107,12 +126,15 @@ public struct XcodeMetrics: Codable { /// An array containing metric values for each app version. public var points: [Points]? - public init(filterCriteria: FilterCriteria? = nil, points: [Points]? = nil) { + public init(filterCriteria: FilterCriteria? = nil, + points: [Points]? = nil) + { self.filterCriteria = filterCriteria self.points = points } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.Datasets.FilterCriteria The device and percentile criteria by which the system filters a metrics dataset. Full documentation: @@ -126,7 +148,10 @@ public struct XcodeMetrics: Codable { /// A percentile of users affected by the metric value. The 50th percentile represents a typical user experience. The 90th percentile represents the user experience when the metric value is the highest or lowest, depending on the metric. public var percentile: String? - public init(device: String? = nil, deviceMarketingName: String? = nil, percentile: String? = nil) { + public init(device: String? = nil, + deviceMarketingName: String? = nil, + percentile: String? = nil) + { self.device = device self.deviceMarketingName = deviceMarketingName self.percentile = percentile @@ -134,6 +159,7 @@ public struct XcodeMetrics: Codable { } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.Datasets.Points A metric value of a goal for a specific app version, with a breakdown by metric subtypes. Full documentation: @@ -151,7 +177,12 @@ public struct XcodeMetrics: Codable { /// The app version. public var version: String? - public init(errorMargin: Double? = nil, goal: String? = nil, percentageBreakdown: PercentageBreakdown? = nil, value: Double? = nil, version: String? = nil) { + public init(errorMargin: Double? = nil, + goal: String? = nil, + percentageBreakdown: PercentageBreakdown? = nil, + value: Double? = nil, + version: String? = nil) + { self.errorMargin = errorMargin self.goal = goal self.percentageBreakdown = percentageBreakdown @@ -160,6 +191,7 @@ public struct XcodeMetrics: Codable { } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.Datasets.Points.PercentageBreakdown A metric subtype and the percentage of the metric value it contributes. Full documentation: @@ -171,7 +203,9 @@ public struct XcodeMetrics: Codable { /// The percentage of the metric value the metric subtype contributes. Values are between `0` and `100`. public var value: Double? - public init(subSystemLabel: String? = nil, value: Double? = nil) { + public init(subSystemLabel: String? = nil, + value: Double? = nil) + { self.subSystemLabel = subSystemLabel self.value = value } @@ -180,6 +214,7 @@ public struct XcodeMetrics: Codable { } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.GoalKeys A classification of a metrics value and the lower- and upper-bound values that qualify a metrics value for the classification. Full documentation: @@ -193,7 +228,10 @@ public struct XcodeMetrics: Codable { /// The upper bound value to qualify for the goal key. public var upperBound: Int? - public init(goalKey: String? = nil, lowerBound: Int? = nil, upperBound: Int? = nil) { + public init(goalKey: String? = nil, + lowerBound: Int? = nil, + upperBound: Int? = nil) + { self.goalKey = goalKey self.lowerBound = lowerBound self.upperBound = upperBound @@ -201,6 +239,7 @@ public struct XcodeMetrics: Codable { } /** + # xcodeMetrics.ProductData.MetricCategories.Metrics.Unit A unit of measurement and its display name. Full documentation: @@ -212,7 +251,9 @@ public struct XcodeMetrics: Codable { /// The unit of measurement. public var identifier: String? - public init(displayName: String? = nil, identifier: String? = nil) { + public init(displayName: String? = nil, + identifier: String? = nil) + { self.displayName = displayName self.identifier = identifier } diff --git a/Sources/BagbutikGenerator/Renderers/BinarySchemaRenderer.swift b/Sources/BagbutikGenerator/Renderers/BinarySchemaRenderer.swift index 8df810154..62297337a 100644 --- a/Sources/BagbutikGenerator/Renderers/BinarySchemaRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/BinarySchemaRenderer.swift @@ -1,15 +1,8 @@ -import BagbutikDocsCollector import BagbutikSpecDecoder import SwiftFormat /// A renderer which renders binary schemas public class BinarySchemaRenderer: Renderer { - let docsLoader: DocsLoader - - public init(docsLoader: DocsLoader) { - self.docsLoader = docsLoader - } - /** Render an binary schema @@ -18,31 +11,21 @@ public class BinarySchemaRenderer: Renderer { - Returns: The rendered binary schema */ public func render(binarySchema: BinarySchema) throws -> String { - let context = try binarySchemaContext(for: binarySchema) - let rendered = try environment.renderTemplate(string: template, context: context) - return try SwiftFormat.format(rendered) - } + var rendered = """ + public struct \(binarySchema.name): BinaryResponse { + public let data: Data - private let template = """ - {% if documentation %}/// {{ documentation }} - {% endif %}public struct {{ name }}: BinaryResponse { - public let data: Data - - public static func from(data: Data) -> {{ name }} { - return Self.init(data: data) + public static func from(data: Data) -> \(binarySchema.name) { + return Self.init(data: data) + } } - } - """ - - private func binarySchemaContext(for binarySchema: BinarySchema) throws -> [String: Any] { - var documentation: ObjectDocumentation? - if let url = binarySchema.url, case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url) { - documentation = objectDocumentation + """ + if let url = binarySchema.url, + case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url), + let abstract = objectDocumentation.abstract { + rendered = "/// \(abstract)\n" + rendered } - return [ - "name": binarySchema.name, - "documentation": documentation?.abstract ?? "" - ] + return try SwiftFormat.format(rendered) } } diff --git a/Sources/BagbutikGenerator/Renderers/EnumSchemaRenderer.swift b/Sources/BagbutikGenerator/Renderers/EnumSchemaRenderer.swift index 766611bdb..4e10c6917 100644 --- a/Sources/BagbutikGenerator/Renderers/EnumSchemaRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/EnumSchemaRenderer.swift @@ -4,12 +4,6 @@ import SwiftFormat /// A renderer which renders enum schemas public class EnumSchemaRenderer: Renderer { - let docsLoader: DocsLoader - - public init(docsLoader: DocsLoader) { - self.docsLoader = docsLoader - } - /** Render an enum schema @@ -19,46 +13,34 @@ public class EnumSchemaRenderer: Renderer { - Returns: The rendered enum schema */ public func render(enumSchema: EnumSchema, additionalProtocol: String = "Codable") throws -> String { - let context = try enumContext(for: enumSchema, additionalProtocol: additionalProtocol) - let rendered = try environment.renderTemplate(string: template, context: context) - return try SwiftFormat.format(rendered) - } - - private let template = """ - {% if abstract %}/** - {{ abstract }} - - Full documentation: - <{{ url }}>{% if discussion %} - - {{ discussion }}{% endif %} - */ - {% endif %}public enum {{ name }}: {{ rawType }}, {{ additionalProtocol }}, CaseIterable { - {% for case in cases %} - {% if case.documentation %}/// {{ case.documentation }} - {% else %}{% - endif %}case {{ case.id }} = "{{ case.value }}"{% - endfor %} - } - """ - - private func enumContext(for enumSchema: EnumSchema, additionalProtocol: String) throws -> [String: Any] { + var rendered = "" var documentation: EnumDocumentation? - if let url = enumSchema.url, case .enum(let enumDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url) { + if let url = enumSchema.url, + case .enum(let enumDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url), + let abstract = enumDocumentation.abstract { documentation = enumDocumentation + rendered += renderDocumentationBlock(title: enumDocumentation.title) { + var documentationContent = abstract + if let discussion = enumDocumentation.discussion { + documentationContent += "\n\n\(discussion)" + } + documentationContent += "\n\nFull documentation:\n<\(url)>" + return documentationContent + } + "\n" } - return [ - "name": enumSchema.name, - "abstract": documentation?.abstract ?? "", - "url": enumSchema.url ?? "", - "discussion": documentation?.discussion ?? "", - "rawType": enumSchema.type.capitalized, - "additionalProtocol": additionalProtocol, - "cases": enumSchema.cases.map { enumCase -> EnumCase in - var enumCase = enumCase - enumCase.documentation = documentation?.cases[enumCase.value] - return enumCase + rendered += "public enum \(enumSchema.name): \(enumSchema.type.capitalized), \(additionalProtocol), CaseIterable {\n" + let cases = enumSchema.cases.map { enumCase -> EnumCase in + var enumCase = enumCase + enumCase.documentation = documentation?.cases[enumCase.value] + return enumCase + } + cases.forEach { + if let caseDocumentation = $0.documentation { + rendered += "///\(caseDocumentation)\n" } - ] + rendered += "case \($0.id) = \"\($0.value)\"\n" + } + rendered += "}" + return try SwiftFormat.format(rendered) } } diff --git a/Sources/BagbutikGenerator/Renderers/ObjectSchemaRenderer.swift b/Sources/BagbutikGenerator/Renderers/ObjectSchemaRenderer.swift index d5d655c5f..9e303275c 100644 --- a/Sources/BagbutikGenerator/Renderers/ObjectSchemaRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/ObjectSchemaRenderer.swift @@ -1,18 +1,10 @@ import BagbutikDocsCollector import BagbutikSpecDecoder import Foundation -import Stencil -import StencilSwiftKit import SwiftFormat /// A renderer which renders object schemas -public class ObjectSchemaRenderer { - let docsLoader: DocsLoader - - public init(docsLoader: DocsLoader) { - self.docsLoader = docsLoader - } - +public class ObjectSchemaRenderer: Renderer { /** Render a object schema @@ -22,238 +14,194 @@ public class ObjectSchemaRenderer { - Returns: The rendered object schema */ public func render(objectSchema: ObjectSchema, otherSchemas: [String: Schema]) throws -> String { - let context = try objectContext(for: objectSchema, otherSchemas: otherSchemas, in: environment) - let rendered = try environment.renderTemplate(name: "objectTemplate", context: context) - return try SwiftFormat.format(rendered) - } - - private static let constantTemplate = """ - public var {{ id|escapeReservedKeywords }}: String { "{{ value }}" } - """ - private static let includedGetterNonPagedArrayTemplate = #""" - public func {{ name }}() -> [{{ includedType }}] { - guard let {{ relationshipSingular }}Ids = data.relationships?.{{ relationship }}?.data?.map(\.id), - let {{ relationship }} = included?.compactMap({ relationship -> {{ includedType }}? in - guard case let .{{ includedCase }}({{ relationshipSingular }}) = relationship else { return nil } - return {{ relationshipSingular }}Ids.contains({{ relationshipSingular }}.id) ? {{ relationshipSingular }} : nil - }) else { - return [] - } - return {{ relationship }} - } - """# - private static let includedGetterNonPagedSingleTemplate = """ - public func {{ name }}() -> {{ includedType }}? { - included?.compactMap { relationship -> {{ includedType }}? in - guard case let .{{ includedCase }}({{ relationship }}) = relationship else { return nil } - return {{ relationship }} - }.first { $0.id == data.relationships?.{{ relationship }}?.data?.id } - } - """ - private static let includedGetterPagedArrayTemplate = #""" - public func {{ name }}(for {{ pagedType|lowerFirstLetter }}: {{ pagedType }}) -> [{{ includedType }}] { - guard let {{ relationshipSingular }}Ids = {{ pagedType|lowerFirstLetter }}.relationships?.{{ relationship }}?.data?.map(\.id), - let {{ relationship }} = included?.compactMap({ relationship -> {{ includedType }}? in - guard case let .{{ includedCase }}({{ relationshipSingular }}) = relationship else { return nil } - return {{ relationshipSingular }}Ids.contains({{ relationshipSingular }}.id) ? {{ relationshipSingular }} : nil - }) else { - return [] - } - return {{ relationship }} - } - """# - private static let includedGetterPagedSingleTemplate = """ - public func {{ name }}(for {{ pagedType|lowerFirstLetter }}: {{ pagedType }}) -> {{ includedType }}? { - included?.compactMap { relationship -> {{ includedType }}? in - guard case let .{{ includedCase }}({{ relationship }}) = relationship else { return nil } - return {{ relationship }} - }.first { $0.id == {{ pagedType|lowerFirstLetter }}.relationships?.{{ relationship }}?.data?.id } - } - """ - private static let objectTemplate = #""" - {% if abstract %}/** - {{ abstract }} - - Full documentation: - <{{ url }}>{% if discussion %} - - {{ discussion }}{% endif %} - */ - {% endif %}public struct {{ name|upperFirstLetter }}: Codable{% if isRequest %}, RequestBody{% endif %}{% if isPagedResponse %}, PagedResponse{% endif %} { - {% if pagedDataSchemaRef %}public typealias Data = {{ pagedDataSchemaRef }}{% - endif %}{% for property in properties %} - {% if property.documentation.description %}/// {{ property.documentation.description }} - {% else %}{% - endif %}{{ property.rendered }}{% - endfor %} - - {% if deprecatedPublicInitParameterList %} - @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init({{ deprecatedPublicInitParameterList }}) { - {% for propertyName in deprecatedPublicInitPropertyNames %} - self.{{ propertyName.safeName }} = {{ propertyName.safeName }}{% - endfor %} - } - {% endif %}public init({{ publicInitParameterList }}) { - {% for propertyName in publicInitPropertyNames %} - self.{{ propertyName.safeName }} = {{ propertyName.safeName }}{% - endfor %} + var rendered = "" + var documentation: ObjectDocumentation? + if case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: objectSchema.url), + let abstract = objectDocumentation.abstract { + documentation = objectDocumentation + rendered += renderDocumentationBlock(title: objectDocumentation.title) { + var documentationContent = [abstract] + if let discussion = objectDocumentation.discussion { + documentationContent.append(discussion) + } + documentationContent.append(""" + Full documentation: + <\(objectSchema.url)> + """) + return documentationContent.joined(separator: "\n\n") + } + "\n" } - {% if needsCustomCoding %} - public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self){% - for decodableProperty in decodableProperties %}{% - if decodableProperty.optional %} - {{ decodableProperty.name.safeName }} = try container.decodeIfPresent({{ decodableProperty.type }}.self, forKey: .{{ decodableProperty.name.safeName }}){% - else %} - {{ decodableProperty.name.safeName }} = try container.decode({{ decodableProperty.type }}.self, forKey: .{{ decodableProperty.name.safeName }}){% - endif %}{% endfor %} - {% if hasTypeConstant %} if try container.decode(String.self, forKey: .type) != type { - throw DecodingError.dataCorruptedError(forKey: .type, in: container, debugDescription: "Not matching \(type)") - }{% endif %} + var protocols = ["Codable"] + if objectSchema.name.hasSuffix("Request") { + protocols.append("RequestBody") } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self){% - for encodableProperty in encodableProperties %}{% - if encodableProperty.optional %} - try container.encodeIfPresent({{ encodableProperty.name.safeName }}, forKey: .{{ encodableProperty.name.safeName }}){% - else %} - try container.encode({{ encodableProperty.name.safeName }}, forKey: .{{ encodableProperty.name.safeName }}){% - endif %}{% endfor %} + if objectSchema.properties["links"]?.type == .schemaRef("PagedDocumentLinks") { + protocols.append("PagedResponse") } + rendered += renderStruct(named: objectSchema.name, protocols: protocols) { + let propertiesInfo = PropertiesInfo(for: objectSchema, documentation: documentation, docsLoader: docsLoader) + var structContent = [String]() + if case .arrayOfSchemaRef(let schemaRef) = objectSchema.properties["data"]?.type { + structContent.append("public typealias Data = \(schemaRef)") + } + structContent.append(propertiesInfo.properties.map { property in + guard let description = property.documentation?.description, description.lengthOfBytes(using: .utf8) > 0 else { return property.rendered } + return """ + /// \(description) + \(property.rendered) + """ + }.joined(separator: "\n")) + let createInitContent = { (propertyNames: [PropertyName]) -> String in + propertyNames.map { + "self.\($0.safeName) = \($0.safeName)" + }.joined(separator: "\n") + } + if let deprecatedPublicInitParameters = propertiesInfo.deprecatedPublicInitParameters { + structContent.append(renderInitializer(parameters: deprecatedPublicInitParameters, deprecated: true, content: { createInitContent(propertiesInfo.deprecatedPublicInitPropertyNames) })) + } + structContent.append(renderInitializer(parameters: propertiesInfo.publicInitParameters, content: { createInitContent(propertiesInfo.publicInitPropertyNames) })) + if propertiesInfo.needsCustomCoding { + structContent.append(renderInitializer(parameters: [.init(prefix: "from", name: "decoder", type: "Decoder")], throwing: true, content: { + var functionContent = "let container = try decoder.container(keyedBy: CodingKeys.self)\n" + functionContent += propertiesInfo.decodableProperties.map { decodableProperty in + if decodableProperty.optional { + return "\(decodableProperty.name.safeName) = try container.decodeIfPresent(\(decodableProperty.type).self, forKey: .\(decodableProperty.name.safeName))" + } else { + return "\(decodableProperty.name.safeName) = try container.decode(\(decodableProperty.type).self, forKey: .\(decodableProperty.name.safeName))" + } + }.joined(separator: "\n") + if propertiesInfo.hasTypeConstant { + functionContent += #""" - private enum CodingKeys: String, CodingKey { - {% for codingKey in codingKeys %} - case {{ codingKey.safeName }} = "{{ codingKey.idealName }}"{% - endfor %} + if try container.decode(String.self, forKey: .type) != type { + throw DecodingError.dataCorruptedError(forKey: .type, in: container, debugDescription: "Not matching \(type)") + } + """# + } + return functionContent + })) + structContent.append(renderFunction(named: "encode", parameters: [.init(prefix: "to", name: "encoder", type: "Encoder")], throwing: true, content: { + var functionContent = "var container = encoder.container(keyedBy: CodingKeys.self)\n" + functionContent += propertiesInfo.encodableProperties.map { encodableProperty in + if encodableProperty.optional { + return "try container.encodeIfPresent(\(encodableProperty.name.safeName), forKey: .\(encodableProperty.name.safeName))" + } else { + return "try container.encode(\(encodableProperty.name.safeName), forKey: .\(encodableProperty.name.safeName))" + } + }.joined(separator: "\n") + return functionContent + })) + structContent.append(renderEnum(named: "CodingKeys", access: "private", rawType: "String", protocols: ["CodingKey"], cases: propertiesInfo.codingKeys)) + } + structContent.append(contentsOf: createIncludedGetters(for: objectSchema, otherSchemas: otherSchemas)) + structContent.append(contentsOf: objectSchema.subSchemas.map { subSchema -> String in + switch subSchema { + case .objectSchema(let objectSchema): + return try! render(objectSchema: objectSchema, otherSchemas: otherSchemas) + case .enumSchema(let enumSchema): + return try! EnumSchemaRenderer(docsLoader: docsLoader).render(enumSchema: enumSchema) + case .oneOf(let name, let oneOfSchema): + return try! OneOfSchemaRenderer().render(name: name, oneOfSchema: oneOfSchema) + } + }) + return structContent.joined(separator: "\n\n") } - {% endif %} - {% for includedGetter in includedGetters %} - {{ includedGetter }} - {% endfor %}{% if subSchemas.count > 0 %} - {% for subSchema in subSchemas %} - - {{ subSchema|indent }} - {% endfor %} - {% endif %} + return try SwiftFormat.format(rendered) } - """# - private let environment = Environment(loader: DictionaryLoader(templates: [ - "constantTemplate": constantTemplate, - "includedGetterNonPagedArrayTemplate": includedGetterNonPagedArrayTemplate, - "includedGetterNonPagedSingleTemplate": includedGetterNonPagedSingleTemplate, - "includedGetterPagedArrayTemplate": includedGetterPagedArrayTemplate, - "includedGetterPagedSingleTemplate": includedGetterPagedSingleTemplate, - "objectTemplate": objectTemplate - ]), extensions: StencilSwiftKit.stencilSwiftEnvironment().extensions) - private func objectContext(for objectSchema: ObjectSchema, otherSchemas: [String: Schema], in environment: Environment) throws -> [String: Any] { - var documentation: ObjectDocumentation? - if case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: objectSchema.url) { - documentation = objectDocumentation - } - let subSchemas = objectSchema.subSchemas - let sortedProperties = objectSchema.properties.sorted { - // To avoid breaking the public initializer parameter order from version 2.0, - // the `attributes` and `relationships` properties has to be last - if $1.key == "relationships" { return true } - else if $0.key == "relationships" { return false } - else if $1.key == "attributes" { return true } - else if $0.key == "attributes" { return false } - return $0.key < $1.key - } - let initParameters = sortedProperties.filter { !$0.value.type.isConstant } - let codingKeys = sortedProperties.map { PropertyName(idealName: $0.key) } - let encodableProperties = sortedProperties.map { - CodableProperty(name: PropertyName(idealName: $0.key), - type: $0.value.type.description, - optional: !objectSchema.requiredProperties.contains($0.key) && $0.key != "type") - } + private struct PropertiesInfo { + let properties: [RenderProperty] + let deprecatedPublicInitParameters: [FunctionParameter]? + let deprecatedPublicInitPropertyNames: [PropertyName] + let publicInitParameters: [FunctionParameter] + let publicInitPropertyNames: [PropertyName] + let codingKeys: [EnumCase] + let encodableProperties: [CodableProperty] + let decodableProperties: [CodableProperty] + let hasTypeConstant: Bool + let needsCustomCoding: Bool - let decodableProperties = encodableProperties.filter { $0.name.idealName != "type" } - var deprecatedPublicInitParameterList = "" - if initParameters.contains(where: \.value.deprecated) { - deprecatedPublicInitParameterList = createParameterList(from: initParameters, requiredProperties: objectSchema.requiredProperties) - } - let publicInitParameterList = createParameterList(from: initParameters.filter { !$0.value.deprecated }, requiredProperties: objectSchema.requiredProperties) - let isPagedResponse = objectSchema.properties["links"]?.type == .schemaRef("PagedDocumentLinks") - var pagedDataSchemaRef = "" - if case .arrayOfSchemaRef(let schemaRef) = objectSchema.properties["data"]?.type { - pagedDataSchemaRef = schemaRef - } - let hasTypeConstant = sortedProperties.contains(where: { $0.key == "type" && $0.value.type.isConstant }) - let includedGetters = createIncludedGetters(for: objectSchema, otherSchemas: otherSchemas) - return [ - "name": objectSchema.name, - "abstract": documentation?.abstract ?? "", - "url": objectSchema.url, - "discussion": documentation?.discussion ?? "", - "isRequest": objectSchema.name.hasSuffix("Request"), - "isPagedResponse": isPagedResponse, - "pagedDataSchemaRef": pagedDataSchemaRef, - "properties": sortedProperties.map { property -> RenderProperty in + init(for objectSchema: ObjectSchema, documentation: ObjectDocumentation?, docsLoader: DocsLoader) { + let sortedProperties = objectSchema.properties.sorted { + // To avoid breaking the public initializer parameter order from version 2.0, + // the `attributes` and `relationships` properties has to be last + if $1.key == "relationships" { return true } + else if $0.key == "relationships" { return false } + else if $1.key == "attributes" { return true } + else if $0.key == "attributes" { return false } + return $0.key < $1.key + } + let initParameters = sortedProperties.filter { !$0.value.type.isConstant } + properties = sortedProperties.map { property -> RenderProperty in let rendered: String switch property.value.type { case .constant(let value): - rendered = try! environment.renderTemplate(name: "constantTemplate", context: ["id": property.key, "value": value]) + rendered = PropertyRenderer(docsLoader: docsLoader) + .renderConstant(id: property.key, type: "String", value: "\"\(value)\"") default: - rendered = try! PropertyRenderer().render(id: PropertyName(idealName: property.key).safeName, - type: property.value.type.description, - optional: !objectSchema.requiredProperties.contains(property.key), - isSimpleType: property.value.type.isSimple, - deprecated: property.value.deprecated) + rendered = PropertyRenderer(docsLoader: docsLoader) + .renderProperty(id: PropertyName(idealName: property.key).safeName, + type: property.value.type.description, + optional: !objectSchema.requiredProperties.contains(property.key), + isSimpleType: property.value.type.isSimple, + deprecated: property.value.deprecated) } let propertyDocumentation = documentation?.properties[property.key] return RenderProperty(rendered: rendered, documentation: propertyDocumentation, deprecated: property.value.deprecated) - }, - "deprecatedPublicInitParameterList": deprecatedPublicInitParameterList, - "deprecatedPublicInitPropertyNames": initParameters.map { PropertyName(idealName: $0.key) }, - "publicInitParameterList": publicInitParameterList, - "publicInitPropertyNames": initParameters.filter { !$0.value.deprecated }.map { PropertyName(idealName: $0.key) }, - "needsCustomCoding": hasTypeConstant || sortedProperties.contains(where: { PropertyName(idealName: $0.key).hasDifferentSafeName }), - "hasTypeConstant": hasTypeConstant, - "codingKeys": codingKeys, - "encodableProperties": encodableProperties, - "decodableProperties": decodableProperties, - "includedGetters": includedGetters, - "subSchemas": subSchemas.map { subSchema -> String in - switch subSchema { - case .objectSchema(let objectSchema): - return try! render(objectSchema: objectSchema, otherSchemas: otherSchemas) - case .enumSchema(let enumSchema): - return try! EnumSchemaRenderer(docsLoader: docsLoader).render(enumSchema: enumSchema) - case .oneOf(let name, let oneOfSchema): - return try! OneOfSchemaRenderer().render(name: name, oneOfSchema: oneOfSchema) - } } - ] - } + deprecatedPublicInitParameters = initParameters.contains(where: \.value.deprecated) + ? Self.createFunctionParameters(from: initParameters, requiredProperties: objectSchema.requiredProperties) : nil + deprecatedPublicInitPropertyNames = initParameters.map { PropertyName(idealName: $0.key) } + publicInitParameters = Self.createFunctionParameters(from: initParameters.filter { !$0.value.deprecated }, requiredProperties: objectSchema.requiredProperties) + publicInitPropertyNames = initParameters.filter { !$0.value.deprecated }.map { PropertyName(idealName: $0.key) } + codingKeys = sortedProperties.map { + let propertyName = PropertyName(idealName: $0.key) + return EnumCase(id: propertyName.safeName, value: propertyName.idealName) + } + encodableProperties = sortedProperties.map { + CodableProperty(name: PropertyName(idealName: $0.key), + type: $0.value.type.description, + optional: !objectSchema.requiredProperties.contains($0.key) && $0.key != "type") + } + decodableProperties = encodableProperties.filter { $0.name.idealName != "type" } + hasTypeConstant = sortedProperties.contains(where: { $0.key == "type" && $0.value.type.isConstant }) + needsCustomCoding = hasTypeConstant || sortedProperties.contains(where: { PropertyName(idealName: $0.key).hasDifferentSafeName }) + } - private func createParameterList(from parameters: [Dictionary.Element], requiredProperties: [String]) -> String { - parameters.map { - let propertyName = PropertyName(idealName: $0.key) - var parameter = "\(propertyName.idealName)" - if propertyName.hasDifferentSafeName { - parameter += " \(propertyName.safeName)" + private static func createFunctionParameters(from parameters: [Dictionary.Element], requiredProperties: [String]) -> [FunctionParameter] { + parameters.map { + let propertyName = PropertyName(idealName: $0.key) + let prefix: String? + let name: String + if propertyName.hasDifferentSafeName { + prefix = propertyName.idealName + name = propertyName.safeName + } else { + prefix = nil + name = propertyName.idealName + } + return FunctionParameter(prefix: prefix, + name: name, + type: $0.value.type.description.capitalizingFirstLetter(), + optional: !requiredProperties.contains($0.key)) } - parameter += ": \($0.value.type.description.capitalizingFirstLetter())" - guard !requiredProperties.contains($0.key) else { return parameter } - return "\(parameter)? = nil" - }.joined(separator: ", ") + } } private func createIncludedGetters(for objectSchema: ObjectSchema, otherSchemas: [String: Schema]) -> [String] { guard let includedProperty = objectSchema.properties["included"], let dataProperty = objectSchema.properties["data"] else { return [] } let dataSchemaName: String - let templateStart: String + let parameters: [FunctionParameter] + let isPagedGetter: Bool if case .arrayOfSchemaRef(let schemaName) = dataProperty.type { dataSchemaName = schemaName - templateStart = "includedGetterPaged" + parameters = [.init(prefix: "for", name: dataSchemaName.lowercasedFirstLetter(), type: schemaName)] + isPagedGetter = true } else if case .schemaRef(let schemaName) = dataProperty.type { dataSchemaName = schemaName - templateStart = "includedGetterNonPaged" + parameters = [] + isPagedGetter = false } else { return [] } @@ -263,13 +211,13 @@ public class ObjectSchemaRenderer { guard !relationship.value.deprecated, case .schema(let relationshipPropertySchema) = relationship.value.type else { return nil } let relationshipDataProperty = relationshipPropertySchema.properties["data"] let relationshipDataSchema: ObjectSchema - let template: String + let isArrayReturnType: Bool if case .schema(let schema) = relationshipDataProperty?.type { relationshipDataSchema = schema - template = templateStart + "SingleTemplate" + isArrayReturnType = false } else if case .arrayOfSubSchema(let schema) = relationshipDataProperty?.type { relationshipDataSchema = schema - template = templateStart + "ArrayTemplate" + isArrayReturnType = true } else { return nil } @@ -285,14 +233,48 @@ public class ObjectSchemaRenderer { } return nil }).first else { return nil } - return try! environment.renderTemplate(name: template, context: [ - "name": "get\(relationship.key.capitalizingFirstLetter())", - "pagedType": dataSchemaName, - "includedType": includedSchemaName, - "includedCase": includedSchemaName.lowercasedFirstLetter(), - "relationship": relationship.key, - "relationshipSingular": relationship.key.singularized() - ]) + let functionName = "get\(relationship.key.capitalizingFirstLetter())" + let returnType = isArrayReturnType ? "[\(includedSchemaName)]" : "\(includedSchemaName)?" + return renderFunction(named: functionName, + parameters: parameters, + returnType: returnType) { + let pagedType = dataSchemaName.lowercasedFirstLetter() + let includedCase = includedSchemaName.lowercasedFirstLetter() + let functionContent: String + if isArrayReturnType { + let relationshipSingular = relationship.key.singularized() + let guardIds: String + if isPagedGetter { + guardIds = "guard let \(relationshipSingular)Ids = \(pagedType).relationships?.\(relationship.key)?.data?.map(\\.id)," + } else { + guardIds = "guard let \(relationshipSingular)Ids = data.relationships?.\(relationship.key)?.data?.map(\\.id)," + } + functionContent = """ + \(guardIds) + let \(relationship.key) = included?.compactMap({ relationship -> \(includedSchemaName)? in + guard case let .\(includedCase)(\(relationshipSingular)) = relationship else { return nil } + return \(relationshipSingular)Ids.contains(\(relationshipSingular).id) ? \(relationshipSingular) : nil + }) else { + return [] + } + return \(relationship.key) + """ + } else { + let firstFilter: String + if isPagedGetter { + firstFilter = ".first { $0.id == \(pagedType).relationships?.\(relationship.key)?.data?.id }" + } else { + firstFilter = ".first { $0.id == data.relationships?.\(relationship.key)?.data?.id }" + } + functionContent = """ + included?.compactMap { relationship -> \(includedSchemaName)? in + guard case let .\(includedCase)(\(relationship.key)) = relationship else { return nil } + return \(relationship.key) + }\(firstFilter) + """ + } + return functionContent + } } } diff --git a/Sources/BagbutikGenerator/Renderers/OneOfSchemaRenderer.swift b/Sources/BagbutikGenerator/Renderers/OneOfSchemaRenderer.swift index 5b9b398b4..34ea344c9 100644 --- a/Sources/BagbutikGenerator/Renderers/OneOfSchemaRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/OneOfSchemaRenderer.swift @@ -1,7 +1,5 @@ import BagbutikSpecDecoder import Foundation -import Stencil -import StencilSwiftKit import SwiftFormat /// A renderer which renders one of schemas @@ -15,54 +13,56 @@ public class OneOfSchemaRenderer { - Returns: The rendered one of schema */ public func render(name: String, oneOfSchema: OneOfSchema) throws -> String { - let context = Self.oneOfContext(for: oneOfSchema, named: name) - let rendered = try environment.renderTemplate(name: "oneOfTemplate", context: context) - return try SwiftFormat.format(rendered) - } + var rendered = "public enum \(name): Codable {\n" + let options = oneOfSchema.options + .map { EnumCase(id: $0.schemaName.lowercasedFirstLetter(), value: $0.schemaName) } + .sorted { $0.id < $1.id } + options.forEach { + rendered += "case \($0.id)(\($0.value))\n" + } + rendered += "\npublic init(from decoder: Decoder) throws {\n" + options.enumerated().forEach { + let option = $0.element + var renderedOption = """ + if let \(option.id) = try? \(option.value)(from: decoder) { + self = .\(option.id)(\(option.id)) - private let environment = Environment(loader: DictionaryLoader(templates: ["oneOfTemplate": """ - public enum {{ name }}: Codable { - {% for option in options %} - case {{ option.id }}({{ option.value }}){% - endfor %} + if $0.offset != 0 { + renderedOption = "} else " + renderedOption + } + rendered += renderedOption + } + rendered += """ + } else { + throw DecodingError.typeMismatch(\(name).self, DecodingError.Context(codingPath: decoder.codingPath, + debugDescription: "Unknown \(name)")) + } + } - public init(from decoder: Decoder) throws { - {% for option in options %} - {% if forloop.first %} - if let {{ option.id }} = try? {{ option.value }}(from: decoder) { - self = .{{ option.id }}({{ option.id }}){% - else %} } else if let {{ option.id }} = try? {{ option.value }}(from: decoder) { - self = .{{ option.id }}({{ option.id }}){% - endif %}{% - endfor %} - } else { - throw DecodingError.typeMismatch({{ name }}.self, DecodingError.Context(codingPath: decoder.codingPath, - debugDescription: "Unknown {{ name }}")) - } - } + """ + rendered += """ - public func encode(to encoder: Encoder) throws { - switch self { - {% for option in options %} - case .{{ option.id }}(let value): - try value.encode(to: encoder){% - endfor %} - } - } + public func encode(to encoder: Encoder) throws { + switch self { + + """ + options.forEach { + rendered += """ + case .\($0.id)(let value): + try value.encode(to: encoder) - private enum CodingKeys: String, CodingKey { - case type + """ + } + rendered += """ } } - """]), extensions: StencilSwiftKit.stencilSwiftEnvironment().extensions) - internal static func oneOfContext(for oneOfSchema: OneOfSchema, named name: String) -> [String: Any] { - return [ - "name": name, - "options": oneOfSchema.options - .map { EnumCase(id: $0.schemaName.lowercasedFirstLetter(), value: $0.schemaName) } - .sorted { $0.id < $1.id }, - ] + private enum CodingKeys: String, CodingKey { + case type + } + } + """ + return try SwiftFormat.format(rendered) } } diff --git a/Sources/BagbutikGenerator/Renderers/OperationRenderer.swift b/Sources/BagbutikGenerator/Renderers/OperationRenderer.swift index c5727efdc..9701ad163 100644 --- a/Sources/BagbutikGenerator/Renderers/OperationRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/OperationRenderer.swift @@ -1,8 +1,6 @@ import BagbutikDocsCollector import BagbutikSpecDecoder import Foundation -import Stencil -import StencilSwiftKit import SwiftFormat /// Errors that can occur when rendering an operation @@ -17,14 +15,15 @@ public enum OperationRendererError: Error { extension OperationRendererError: Equatable {} +struct OperationParameter { + let name: String + let type: String + let optional: Bool + let documentation: String +} + /// A renderer which renders operations public class OperationRenderer: Renderer { - let docsLoader: DocsLoader - - public init(docsLoader: DocsLoader) { - self.docsLoader = docsLoader - } - /** Render an operation @@ -34,309 +33,279 @@ public class OperationRenderer: Renderer { - Returns: The rendered operation */ public func render(operation: BagbutikSpecDecoder.Operation, in path: Path) throws -> String { - let context = try operationContext(for: operation, in: path) - let rendered = try environment.renderTemplate(string: template, context: context) - return try SwiftFormat.format(rendered) - } - - private static let pathParameterRegex = try! NSRegularExpression(pattern: #"\{(.*)\}"#, options: []) - private let template = """ - public extension Request { - /** - # {{ title }} - {% if abstract %}{{ abstract }} - {% endif %} - - {% if discussion %} - {{ discussion }} - - {% endif %}Full documentation: - <{{ url }}> - - {% for parametersDocumentation in parametersDocumentations %} - {{ parametersDocumentation }}{% - endfor %} - {{ parametersDocumentation }} - {% if fields.count > 0 %} - - Parameter fields: Fields to return for included related types - {% endif %} - {% if filters.count > 0 %} - - Parameter filters: Attributes, relationships, and IDs by which to filter - {% endif %} - {% if exists.count > 0 %} - - Parameter exists: Attributes, relationships, and IDs to check for existence - {% endif %} - {% if includes.count > 0 %} - - Parameter includes: Relationship data to include in the response - {% endif %} - {% if sorts.count > 0 %} - - Parameter sorts: Attributes by which to sort - {% endif %} - {% if limits.count == 1 %} - - Parameter limit: {{ limits[0].documentation }} - maximum {{ limits[0].maximum }} - {% endif %} - {% if limits.count > 1 %} - - Parameter limits: Number of resources to return - {% endif %} - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` - */{% if deprecated %} - @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future."){% endif %} - public static func {{ name|lowerFirstLetter }}({{ parameters }}) -> Request<{{ successResponseType }}, {{ errorResponseType }}> { - return .init(path: "{{ path }}", method: .{{ method }}{% - if hasRequestBodyParameter %}, requestBody: requestBody{% endif %}{% - if hasParameters %}, parameters: .init({{ parametersInit }}){% endif %} - ) - } - } - - {% if addWrapperStruct %} - public struct {{ name }} { - {% if fields %} - /** - Fields to return for included related types. - */ - public enum Field: FieldParameter { - {% for field in fields %} - /// {{ field.documentation }}{% if field.deprecated %} - @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") {% endif %} - case {{ field.id }}([{{ field.value }}]){% - endfor %} - - - {{ fieldSubschemas|indent:12," ",false }} - } - {% endif %} - - {% if filters %} - /** - Attributes, relationships, and IDs by which to filter. - {% if filtersRequired.count > 0 %} - - - Required: {{ filtersRequired }}{% endif %} - */ - public enum Filter: FilterParameter { {% - for filter in filters %} - /// {{ filter.documentation }} - case {{ filter.id }}([{{ filter.value }}]){% - endfor %} - - - {{ filterSubschemas|indent:12," ",false }} - } - {% endif %} - - {% if exists %} - /** - Attributes, relationships, and IDs to check for existence. - */ - public enum Exist: ExistParameter { {% - for exist in exists %} - /// {{ exist.documentation }} - case {{ exist.id }}({{ exist.value }}){% - endfor %} - } - {% endif %} - - {% if includes %} - /** - Relationship data to include in the response. - */ - public enum Include: String, IncludeParameter { - case {{ includes }} - } - {% endif %} - - {% if sorts %} - /** - Attributes by which to sort. - */ - public enum Sort: String, SortParameter { {% - for sort in sorts %} - case {{ sort.id }} = "{{ sort.value }}"{% - endfor %} + let documentation = try docsLoader.resolveDocumentationForOperation(withId: operation.id) + let interpolatablePath = Self.pathParameterRegex.stringByReplacingMatches( + in: path.path, + options: [], + range: NSRange(location: 0, length: path.path.utf16.count), + withTemplate: #"\\($1)"#) + let parametersInfo = try OperationParametersInfo(for: operation, in: path, docsLoader: docsLoader) + let operationName = createOperationName(operation, path: path) + var rendered = renderExtension(on: "Request") { + let title = documentation?.title ?? "No overview available" + var parameters = parametersInfo.pathParameters + if let requestBody = parametersInfo.requestBody { + parameters.append(requestBody) + } + parameters.append(contentsOf: parametersInfo.parameters) + var extensionContent = renderDocumentationBlock(title: title) { + var documentationContent = [String]() + if let abstract = documentation?.abstract { + documentationContent.append(abstract) + } + if let discussion = documentation?.discussion { + documentationContent.append(discussion) + } + if documentationContent.isEmpty { + documentationContent.append("\n") + } + documentationContent.append(""" + Full documentation: + <\(self.docsLoader.createUrlForOperation(withId: operation.id))> + """) + var parametersPart = parameters.reduce(into: ["\n"]) { partialResult, parameter in + partialResult.append(renderDocumentationParameterLine(name: parameter.name, description: parameter.documentation)) + }.joined(separator: "\n") + parametersPart += "\n- Returns: A ``Request`` to send to an instance of ``BagbutikService``" + documentationContent.append(parametersPart) + return documentationContent.joined(separator: "\n\n") + } + extensionContent += "\n" + renderFunction( + named: operationName, + parameters: parameters.map { .init(name: $0.name, type: $0.type, optional: $0.optional) }, + returnType: "Request<\(operation.successResponseType), \(operation.errorResponseType)>", + static: true, + deprecated: operation.deprecated) { + var funcContent = ".init(path: \"\(interpolatablePath)\", method: .\(operation.method.rawValue)" + if operation.requestBody != nil { + funcContent += ", requestBody: requestBody" + } + if !parametersInfo.parameters.isEmpty { + funcContent += ", parameters: .init(" + funcContent += parametersInfo.parameters.reduce(into: [String]()) { partialResult, parameter in + partialResult.append("\(parameter.name): \(parameter.name)") + }.joined(separator: ",\n") + funcContent += ")" + } + funcContent += ")" + return funcContent + } + return extensionContent } - {% endif %} - - {% if limits.count > 1 %} - /** - Number of included related resources to return. - */ - public enum Limit: LimitParameter { {% - for limit in limits %} - /// {{ limit.documentation }} - maximum {{ limit.maximum }} - case {{ limit.name }}(Int){% - endfor %} + if parametersInfo.requiresWrapperStruct { + rendered += "\n\n" + rendered += renderStruct(named: operationName) { + var structContent = [String]() + if !parametersInfo.fields.isEmpty { + structContent.append(""" + \(renderDocumentationBlock { "Fields to return for included related types." }) + \(renderEnum( + named: "Field", + protocols: ["FieldParameter"], + cases: parametersInfo.fields.sorted(by: { $0.id < $1.id }), + caseValueIsAssociated: true, + content: parametersInfo.fieldSubSchemas.sorted(by: { $0.0 < $1.0 }).map(\.value).joined(separator: "\n\n")) + ) + """) + } + if !parametersInfo.filters.isEmpty { + structContent.append(""" + \(renderDocumentationBlock { + var documentationContent = "Attributes, relationships, and IDs by which to filter." + if !parametersInfo.filtersRequired.isEmpty { + documentationContent += "\n\nRequired: \(parametersInfo.filtersRequired.joined(separator: ", "))" + } + return documentationContent + }) + \(renderEnum( + named: "Filter", + protocols: ["FilterParameter"], + cases: parametersInfo.filters, + caseValueIsAssociated: true, + content: parametersInfo.filterSubSchemas + .sorted(by: { $0.0 < $1.0 }) + .map(\.value) + .joined(separator: "\n\n"))) + """) + } + if !parametersInfo.exists.isEmpty { + structContent.append(""" + \(renderDocumentationBlock { "Attributes, relationships, and IDs to check for existence." }) + \(renderEnum( + named: "Exist", + protocols: ["ExistParameter"], + cases: parametersInfo.exists, + caseValueIsAssociated: true)) + """) + } + if !parametersInfo.includes.isEmpty { + structContent.append(""" + \(renderDocumentationBlock { "Relationship data to include in the response." }) + \(renderEnum( + named: "Include", + rawType: "String", + protocols: ["IncludeParameter"], + cases: parametersInfo.includes)) + """) + } + if !parametersInfo.sorts.isEmpty { + structContent.append(""" + \(renderDocumentationBlock { "Attributes by which to sort." }) + \(renderEnum( + named: "Sort", + rawType: "String", + protocols: ["SortParameter"], + cases: parametersInfo.sorts)) + """) + } + if parametersInfo.limits.count > 1 { + structContent.append(""" + \(renderDocumentationBlock { "Number of included related resources to return." }) + \(renderEnum( + named: "Limit", + protocols: ["LimitParameter"], + cases: parametersInfo.limits, + caseValueIsAssociated: true)) + """) + } + return structContent.joined(separator: "\n\n") + } } - {% endif %} + return try SwiftFormat.format(rendered) } - {% endif %} - """ - internal func operationContext(for operation: BagbutikSpecDecoder.Operation, in path: Path) throws -> [String: Any] { - let documentation = try docsLoader.resolveDocumentationForOperation(withId: operation.id) - let url = docsLoader.createUrlForOperation(withId: operation.id) - let name = operation.name.capitalizingFirstLetter() + path.info.version - let pathRange = NSRange(location: 0, length: path.path.utf16.count) - let interpolatablePath = Self.pathParameterRegex.stringByReplacingMatches(in: path.path, options: [], range: pathRange, withTemplate: #"\\($1)"#) + private static let pathParameterRegex = try! NSRegularExpression(pattern: #"\{(.*)\}"#, options: []) + private struct OperationParametersInfo { var fields = [EnumCase]() var fieldSubSchemas = [String: String]() var filters = [EnumCase]() var filterSubSchemas = [String: String]() var filtersRequired = [String]() var exists = [EnumCase]() - var includes = [String]() + var includes = [EnumCase]() var sorts = [EnumCase]() - var limits = [LimitCase]() - try operation.parameters?.forEach { parameter in - switch parameter { - case .fields(let name, let type, let deprecated, let documentation): - // In version 1.5 of the spec, `appCategories-get_collection` and `appCategories-get_instance` has two identical `appCategories` fields - if fields.contains(where: { $0.id == name }) { return } - switch type { - case .simple(let type): - fields.append(EnumCase(id: name, value: type.description, deprecated: deprecated, documentation: documentation)) - case .enum(let type, let values): - if values.count > 0 { + var limits = [EnumCase]() + var pathParameters = [OperationParameter]() + var requestBody: OperationParameter? + var parameters = [OperationParameter]() + let requiresWrapperStruct: Bool + + init(for operation: BagbutikSpecDecoder.Operation, in path: Path, docsLoader: DocsLoader) throws { + for parameter in operation.parameters ?? [] { + switch parameter { + case .fields(let name, let type, let deprecated, let documentation): + // In version 1.5 of the spec, `appCategories-get_collection` and `appCategories-get_instance` has two identical `appCategories` fields + if fields.contains(where: { $0.id == name }) { break } + switch type { + case .simple(let type): + fields.append(EnumCase(id: name, value: "[\(type.description)]", deprecated: deprecated, documentation: documentation)) + case .enum(let type, let values): + if values.count > 0 { + let enumName = name.split(separator: ".").map { $0.capitalizingFirstLetter() }.joined() + let enumSchema = EnumSchema(name: enumName, type: type, caseValues: values) + let rendered = try! EnumSchemaRenderer(docsLoader: docsLoader) + .render(enumSchema: enumSchema, additionalProtocol: "ParameterValue") + fieldSubSchemas[name] = rendered + fields.append(EnumCase(id: name, value: "[\(enumName)]", deprecated: deprecated, documentation: documentation)) + } + } + case .filter(let name, let type, let required, let documentation): + switch type { + case .simple(let type): + filters.append(EnumCase(id: name, value: "[\(type.description)]", documentation: documentation)) + case .enum(let type, let values): let enumName = name.split(separator: ".").map { $0.capitalizingFirstLetter() }.joined() let enumSchema = EnumSchema(name: enumName, type: type, caseValues: values) let rendered = try! EnumSchemaRenderer(docsLoader: docsLoader) .render(enumSchema: enumSchema, additionalProtocol: "ParameterValue") - fieldSubSchemas[name] = rendered - fields.append(EnumCase(id: name, value: enumName, deprecated: deprecated, documentation: documentation)) + filterSubSchemas[name] = rendered + filters.append(EnumCase(id: name, value: "[\(enumName)]", documentation: documentation)) } + if required { + filtersRequired.append("`\(name)`") + } + case .exists(let name, let type, let documentation): + switch type { + case .simple(let type): + exists.append(EnumCase(id: name, value: type.description, documentation: documentation)) + default: + throw OperationRendererError.unknownTypeOfExists(name: name) + } + case .include(let type): + switch type { + case .enum(_, let values): + includes = values.map { EnumCase(id: $0, value: $0) } + default: + throw OperationRendererError.unknownTypeOfInclude + } + case .sort(let type, _): + switch type { + case .enum(_, let values): + sorts = values.map { sort in + let id: String + if sort.hasPrefix("-") { + id = "\(sort.dropFirst())Descending" + } else { + id = "\(sort)Ascending" + } + return EnumCase(id: id, value: sort) + }.sorted(by: { $0.id < $1.id }) + default: + throw OperationRendererError.unknownTypeOfSort + } + case .limit(let name, let documentation, let maximum): + limits.append(.init(id: name, value: "Int", documentation: "\(documentation) - maximum \(maximum)")) } - case .filter(let name, let type, let required, let documentation): - switch type { - case .simple(let type): - filters.append(EnumCase(id: name, value: type.description, documentation: documentation)) - case .enum(let type, let values): - let enumName = name.split(separator: ".").map { $0.capitalizingFirstLetter() }.joined() - let enumSchema = EnumSchema(name: enumName, type: type, caseValues: values) - let rendered = try! EnumSchemaRenderer(docsLoader: docsLoader) - .render(enumSchema: enumSchema, additionalProtocol: "ParameterValue") - filterSubSchemas[name] = rendered - filters.append(EnumCase(id: name, value: enumName, documentation: documentation)) - } - if required { - filtersRequired.append(name) - } - case .exists(let name, let type, let documentation): - switch type { - case .simple(let type): - exists.append(EnumCase(id: name, value: type.description, documentation: documentation)) - default: - throw OperationRendererError.unknownTypeOfExists(name: name) - } - case .include(let type): - switch type { - case .enum(_, let values): - includes = values - default: - throw OperationRendererError.unknownTypeOfInclude - } - case .sort(let type, let documentation): - switch type { - case .enum(_, let values): - sorts = values.map { sort in - let id: String - if sort.hasPrefix("-") { - id = "\(sort.dropFirst())Descending" - } - else { - id = "\(sort)Ascending" - } - return EnumCase(id: id, value: sort, documentation: documentation) - }.sorted(by: { $0.id < $1.id }) - default: - throw OperationRendererError.unknownTypeOfSort - } - case .limit(let name, let documentation, let maximum): - limits.append(LimitCase(name: name, documentation: documentation, maximum: maximum)) } - } - - var parameters = [String]() - var parametersInit = [String]() - var parametersDocumentations = [String]() - path.parameters?.forEach { pathParameter in - parameters.append("\(pathParameter.name): String") - parametersDocumentations.append("- Parameter \(pathParameter.name): \(pathParameter.description.capitalizingFirstLetter())") - } - if let requestBody = operation.requestBody { - parameters.append("requestBody: \(requestBody.name)") - parametersDocumentations.append("- Parameter requestBody: \(requestBody.documentation.capitalizingFirstLetter())") - } - if fields.count > 0 { - parameters.append("fields: [\(name).Field]? = nil") - parametersInit.append("fields: fields") - } - if filters.count > 0 { - parameters.append("filters: [\(name).Filter]? = nil") - parametersInit.append("filters: filters") - } - if exists.count > 0 { - parameters.append("exists: [\(name).Exist]? = nil") - parametersInit.append("exists: exists") - } - if includes.count > 0 { - parameters.append("includes: [\(name).Include]? = nil") - parametersInit.append("includes: includes") - } - if sorts.count > 0 { - parameters.append("sorts: [\(name).Sort]? = nil") - parametersInit.append("sorts: sorts") - } - if limits.count == 1 { - parameters.append("limit: Int? = nil") - parametersInit.append("limit: limit") - } - else if limits.count > 0 { - parameters.append("limits: [\(name).Limit]? = nil") - parametersInit.append("limits: limits") - } - - let wrapperProperties: [[Any]] = [fields, filters, includes, sorts] - let propertiesCount = wrapperProperties.reduce(into: 0) { count, properties in - count += properties.count - } + (limits.count > 1 ? limits.count : 0) - return ["name": name, - "deprecated": operation.deprecated, - "title": documentation?.title ?? "No overview available", - "abstract": documentation?.abstract ?? "", - "url": url, - "discussion": documentation?.discussion?.split(separator: "\n").joined(separator: "\n ") ?? "", - "path": interpolatablePath, - "method": operation.method.rawValue, - "successResponseType": operation.successResponseType, - "errorResponseType": operation.errorResponseType, - "addWrapperStruct": propertiesCount > 0, - "fields": fields.sorted(by: { $0.id < $1.id }), - "fieldSubschemas": fieldSubSchemas.sorted(by: { $0.0 < $1.0 }).map(\.value).joined(separator: "\n\n"), - "filters": filters.sorted(by: { $0.id < $1.id }), - "filterSubschemas": filterSubSchemas.sorted(by: { $0.0 < $1.0 }).map(\.value).joined(separator: "\n\n"), - "filtersRequired": filtersRequired.joined(separator: ", "), - "exists": exists.sorted(by: { $0.id < $1.id }), - "includes": includes.joined(separator: ", "), - "sorts": sorts, - "limits": limits, - "hasRequestBodyParameter": operation.requestBody != nil, - "hasParameters": parametersInit.count > 0, - "parameters": parameters.joined(separator: ",\n"), - "parametersInit": parametersInit.joined(separator: ",\n"), - "parametersDocumentations": parametersDocumentations] - } - private struct LimitCase { - let name: String - let documentation: String - let maximum: Int + let wrapperProperties: [[Any]] = [fields, filters, includes, sorts] + let propertiesCount = wrapperProperties.reduce(into: 0) { count, properties in + count += properties.count + } + (limits.count > 1 ? limits.count : 0) + requiresWrapperStruct = propertiesCount > 0 - init(name: String, documentation: String, maximum: Int) { - self.name = name - self.documentation = documentation.capitalizingFirstLetter() - self.maximum = maximum + path.parameters?.forEach { pathParameter in + pathParameters.append(.init(name: pathParameter.name, type: "String", optional: false, documentation: pathParameter.description.capitalizingFirstLetter())) + } + if let requestBody = operation.requestBody { + self.requestBody = .init(name: "requestBody", type: requestBody.name, optional: false, documentation: requestBody.documentation.capitalizingFirstLetter()) + } + let operationWrapperName = createOperationName(operation, path: path) + if fields.count > 0 { + parameters.append(.init(name: "fields", type: "[\(operationWrapperName).Field]", optional: true, documentation: "Fields to return for included related types")) + } + if filters.count > 0 { + parameters.append(.init(name: "filters", type: "[\(operationWrapperName).Filter]", optional: true, documentation: "Attributes, relationships, and IDs by which to filter")) + } + if exists.count > 0 { + parameters.append(.init(name: "exists", type: "[\(operationWrapperName).Exist]", optional: true, documentation: "Attributes, relationships, and IDs to check for existence")) + } + if includes.count > 0 { + parameters.append(.init(name: "includes", type: "[\(operationWrapperName).Include]", optional: true, documentation: "Relationship data to include in the response")) + } + if sorts.count > 0 { + parameters.append(.init(name: "sorts", type: "[\(operationWrapperName).Sort]", optional: true, documentation: "Attributes by which to sort")) + } + if limits.count > 0 { + let name: String + let type: String + let documentation: String + if limits.count == 1, let limit = limits.first { + name = "limit" + type = "Int" + documentation = limit.documentation! + } else { + name = "limits" + type = "[\(operationWrapperName).Limit]" + documentation = "Number of resources to return" + } + parameters.append(.init(name: name, type: type, optional: true, documentation: documentation)) + } } } } + +private func createOperationName(_ operation: BagbutikSpecDecoder.Operation, path: Path) -> String { + operation.name.capitalizingFirstLetter() + path.info.version +} diff --git a/Sources/BagbutikGenerator/Renderers/PlainTextSchemaRenderer.swift b/Sources/BagbutikGenerator/Renderers/PlainTextSchemaRenderer.swift index 575dbfb02..dd754bc45 100644 --- a/Sources/BagbutikGenerator/Renderers/PlainTextSchemaRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/PlainTextSchemaRenderer.swift @@ -4,12 +4,6 @@ import SwiftFormat /// A renderer which renders plain text schemas public class PlainTextSchemaRenderer: Renderer { - let docsLoader: DocsLoader - - public init(docsLoader: DocsLoader) { - self.docsLoader = docsLoader - } - /** Render an plain text schema @@ -18,31 +12,21 @@ public class PlainTextSchemaRenderer: Renderer { - Returns: The rendered plain text schema */ public func render(plainTextSchema: PlainTextSchema) throws -> String { - let context = try plainTextSchemaContext(for: plainTextSchema) - let rendered = try environment.renderTemplate(string: template, context: context) - return try SwiftFormat.format(rendered) - } + var rendered = """ + public struct \(plainTextSchema.name): PlainTextResponse { + public let text: String - private let template = """ - {% if documentation %}/// {{ documentation }} - {% endif %}public struct {{ name }}: PlainTextResponse { - public let text: String - - public static func from(text: String) -> {{ name }} { - return Self.init(text: text) + public static func from(text: String) -> \(plainTextSchema.name) { + return Self.init(text: text) + } } - } - - """ - - private func plainTextSchemaContext(for plainTextSchema: PlainTextSchema) throws -> [String: Any] { - var documentation: ObjectDocumentation? - if let url = plainTextSchema.url, case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url) { - documentation = objectDocumentation + + """ + if let url = plainTextSchema.url, + case .object(let objectDocumentation) = try docsLoader.resolveDocumentationForSchema(withDocsUrl: url), + let abstract = objectDocumentation.abstract { + rendered = "/// \(abstract)\n" + rendered } - return [ - "name": plainTextSchema.name, - "documentation": documentation?.abstract ?? "" - ] + return try SwiftFormat.format(rendered) } } diff --git a/Sources/BagbutikGenerator/Renderers/PropertyRenderer.swift b/Sources/BagbutikGenerator/Renderers/PropertyRenderer.swift index 9eb22e6de..9e19bd792 100644 --- a/Sources/BagbutikGenerator/Renderers/PropertyRenderer.swift +++ b/Sources/BagbutikGenerator/Renderers/PropertyRenderer.swift @@ -1,18 +1,25 @@ internal class PropertyRenderer: Renderer { - func render(id: String, type: String, optional: Bool, isSimpleType: Bool, deprecated: Bool = false) throws -> String { - return try environment.renderTemplate(string: template, context: [ - "id": id, - "type": type, - "optional": optional, - "deprecated": deprecated, - "propertyType": deprecated || optional ? "var" : "let", - "defaultValue": deprecated ? "nil" : "", - "nullCodable": id == "data" && (type == "Data" || type == "[Data]") && optional - ]) + func renderProperty(id: String, type: String, access: String = "public", optional: Bool, isSimpleType: Bool, deprecated: Bool = false) -> String { + var rendered = "" + if deprecated { + rendered += #"@available(*, deprecated, message: "Apple has marked this property deprecated and it will be removed sometime in the future.")"# + rendered += "\n" + } + if id == "data" && (type == "Data" || type == "[Data]") && optional { + rendered += "@NullCodable " + } + let propertyType = deprecated || optional ? "var" : "let" + rendered += "public \(propertyType) \(escapeReservedKeywords(in: id)): \(type.capitalizingFirstLetter())" + if optional { + rendered += "?" + } + if deprecated { + rendered += " = nil" + } + return rendered + } + + func renderConstant(id: String, type: String, access: String = "public", value: String) -> String { + return "\(access) var \(escapeReservedKeywords(in: id)): \(type) { \(value) }" } - - private let template = """ - {% if deprecated %}@available(*, deprecated, message: "Apple has marked this property deprecated and it will be removed sometime in the future.") - {% else %}{% endif %}{% if nullCodable %}@NullCodable {% endif %}public {{ propertyType }} {{ id|escapeReservedKeywords }}: {{ type|upperFirstLetter }}{% if optional %}?{% endif %}{% if defaultValue %} = {{ defaultValue }}{% endif %} - """ } diff --git a/Sources/BagbutikGenerator/Renderers/Renderer.swift b/Sources/BagbutikGenerator/Renderers/Renderer.swift index cc4a28b02..c8df5585f 100644 --- a/Sources/BagbutikGenerator/Renderers/Renderer.swift +++ b/Sources/BagbutikGenerator/Renderers/Renderer.swift @@ -1,6 +1,180 @@ -import StencilSwiftKit +import BagbutikDocsCollector +import BagbutikSpecDecoder /// A base class for the renderes which contains a default environment for Swift code rendering public class Renderer { - let environment = StencilSwiftKit.stencilSwiftEnvironment() + let docsLoader: DocsLoader + + public init(docsLoader: DocsLoader) { + self.docsLoader = docsLoader + } + + internal func escapeReservedKeywords(in searchString: String) -> String { + guard Self.reservedKeywords.contains(searchString) else { return searchString } + return "`\(searchString)`" + } + + internal func renderStruct(named name: String, access: String = "public", protocols: [String]? = nil, content: () throws -> String) rethrows -> String { + var protocolsString: String? + if let protocols = protocols, protocols.count > 0 { + protocolsString = ": " + protocols.joined(separator: ", ") + } + return """ + \(access) struct \(name)\(protocolsString ?? "") { + \(try content()) + } + """ + } + + internal func renderEnum(named name: String, access: String = "public", rawType: String? = nil, protocols: [String]? = nil, cases: [EnumCase], caseValueIsAssociated: Bool = false, content: String? = nil) -> String { + var inheritance = [String]() + if let rawType = rawType { + inheritance.append(rawType) + } + if let protocols = protocols { + inheritance.append(contentsOf: protocols) + } + var inheritanceString: String? + if inheritance.count > 0 { + inheritanceString = ": " + inheritance.joined(separator: ", ") + } + var casesAndContent = cases + .sorted(by: { $0.id < $1.id }) + .map { enumCase in + var formattedCase = [String]() + if let documentation = enumCase.documentation { + formattedCase.append("/// \(documentation)") + } + if enumCase.deprecated { + formattedCase.append(#"@available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.")"#) + } + var caseLine = "case \(enumCase.id)" + if caseValueIsAssociated { + caseLine += "(\(enumCase.value))" + } else { + caseLine += " = \"\(enumCase.value)\"" + } + formattedCase.append(caseLine) + return formattedCase.joined(separator: "\n") + } + .joined(separator: "\n") + if let content = content { + casesAndContent += "\n\n\(content)" + } + return """ + \(access) enum \(name)\(inheritanceString ?? "") { + \(casesAndContent) + } + """ + } + + internal func renderExtension(on extendedType: String, access: String = "public", content: () throws -> String) rethrows -> String { + """ + \(access) extension \(extendedType) { + \(try content()) + } + """ + } + + internal func renderDocumentationBlock(content: () throws -> String) rethrows -> String { + """ + /** + \(try content()) + */ + """ + } + + internal func renderDocumentationBlock(title: String, content: () throws -> String) rethrows -> String { + try renderDocumentationBlock { + """ + # \(title) + \(try content()) + """ + } + } + + internal func renderDocumentationParameterLine(name: String, description: String) -> String { + "- Parameter \(name): \(description)" + } + + internal func renderInitializer(parameters: [FunctionParameter], throwing: Bool = false, deprecated: Bool = false, content: () throws -> String) rethrows -> String { + var rendered = "" + if deprecated { + rendered += #"@available(*, deprecated, message: "This uses a property Apple has marked as deprecated.")"# + rendered += "\n" + } + return rendered + """ + public init(\(parameters.formatted))\(throwing ? " throws" : "") { + \(try content()) + } + """ + } + + internal func renderFunction(named name: String, parameters: [FunctionParameter], returnType: String? = nil, static isStatic: Bool = false, throwing: Bool = false, deprecated: Bool = false, content: () throws -> String) rethrows -> String { + var rendered = "" + if deprecated { + rendered += #"@available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.")"# + rendered += "\n" + } + var prefix = "public" + if isStatic { + prefix += " static" + } + var postfix = "" + if throwing { + postfix += " throws" + } + if let returnType = returnType { + postfix += " -> \(returnType)" + } + return rendered + """ + \(prefix) func \(name.lowercasedFirstLetter())(\(parameters.formatted))\(postfix) { + \(try content()) + } + """ + } + + struct FunctionParameter { + let prefix: String? + let name: String + let type: String + let optional: Bool + + init(prefix: String? = nil, name: String, type: String, optional: Bool = false) { + self.prefix = prefix + self.name = name + self.type = type + self.optional = optional + } + } + + private static let reservedKeywords = [ + "associatedtype", "class", "deinit", "enum", "extension", + "fileprivate", "func", "import", "init", "inout", "internal", + "let", "open", "operator", "private", "protocol", "public", + "static", "struct", "subscript", "typealias", "var", "break", + "case", "continue", "default", "defer", "do", "else", + "fallthrough", "for", "guard", "if", "in", "repeat", "return", + "switch", "where", "while", "as", "Any", "catch", "false", "is", + "nil", "rethrows", "super", "self", "Self", "throw", "throws", + "true", "try", "associativity", "convenience", "dynamic", + "didSet", "final", "get", "infix", "indirect", "lazy", "left", + "mutating", "none", "nonmutating", "optional", "override", + "postfix", "precedence", "prefix", "Protocol", "required", + "right", "set", "Type", "unowned", "weak", "willSet" + ] +} + +private extension Collection where Element == Renderer.FunctionParameter { + var formatted: String { + reduce(into: [String]()) { partialResult, parameter in + let name: String + if let prefix = parameter.prefix { + name = "\(prefix) \(parameter.name)" + } else { + name = parameter.name + } + partialResult.append("\(name): \(parameter.type)\(parameter.optional ? "? = nil" : "")") + }.joined(separator: ",\n") + } } diff --git a/Tests/BagbutikGeneratorTests/GeneratorTests.swift b/Tests/BagbutikGeneratorTests/GeneratorTests.swift index 3849a19e3..5aa4f28bc 100644 --- a/Tests/BagbutikGeneratorTests/GeneratorTests.swift +++ b/Tests/BagbutikGeneratorTests/GeneratorTests.swift @@ -161,7 +161,9 @@ final class GeneratorTests: XCTestCase { var fileNameToFailCreating: String? func createDirectory(at url: URL, withIntermediateDirectories createIntermediates: Bool, attributes: [FileAttributeKey: Any]?) throws { - directoriesCreated.append(url.lastPathComponent) + DispatchQueue.main.async { + self.directoriesCreated.append(url.lastPathComponent) + } } func createFile(atPath path: String, contents data: Data?, attributes attr: [FileAttributeKey: Any]?) -> Bool { diff --git a/Tests/BagbutikGeneratorTests/Renderers/EnumSchemaRendererTests.swift b/Tests/BagbutikGeneratorTests/Renderers/EnumSchemaRendererTests.swift index 2ab9769ee..9ad662205 100644 --- a/Tests/BagbutikGeneratorTests/Renderers/EnumSchemaRendererTests.swift +++ b/Tests/BagbutikGeneratorTests/Renderers/EnumSchemaRendererTests.swift @@ -18,12 +18,13 @@ final class EnumSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** - Strings that represent Apple operating systems. + # Platform + Strings that represent Apple operating systems. - Full documentation: - + All platforms are nice... - All platforms are nice... + Full documentation: + */ public enum Platform: String, Codable, CaseIterable { /// A string that represents macOS. diff --git a/Tests/BagbutikGeneratorTests/Renderers/ObjectSchemaRendererTests.swift b/Tests/BagbutikGeneratorTests/Renderers/ObjectSchemaRendererTests.swift index c615953b4..5e68a621e 100644 --- a/Tests/BagbutikGeneratorTests/Renderers/ObjectSchemaRendererTests.swift +++ b/Tests/BagbutikGeneratorTests/Renderers/ObjectSchemaRendererTests.swift @@ -42,12 +42,13 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. + What is a person? + Full documentation: - - What is a person? */ public struct Person: Codable { /// The person's name @@ -79,6 +80,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -92,7 +94,9 @@ final class ObjectSchemaRendererTests: XCTestCase { public var name: String? = nil @available(*, deprecated, message: "This uses a property Apple has marked as deprecated.") - public init(age: Int? = nil, name: String? = nil) { + public init(age: Int? = nil, + name: String? = nil) + { self.age = age self.name = name } @@ -121,6 +125,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # PersonCreateRequest The data for a request to create a person. Full documentation: @@ -161,6 +166,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -175,7 +181,10 @@ final class ObjectSchemaRendererTests: XCTestCase { /// A reference to the person public var itself: String? - public init(firstName: String, lastName: String? = nil, self itself: String? = nil) { + public init(firstName: String, + lastName: String? = nil, + self itself: String? = nil) + { self.firstName = firstName self.lastName = lastName self.itself = itself @@ -200,8 +209,8 @@ final class ObjectSchemaRendererTests: XCTestCase { private enum CodingKeys: String, CodingKey { case firstName case id - case lastName case itself = "self" + case lastName } } @@ -230,6 +239,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -240,7 +250,9 @@ final class ObjectSchemaRendererTests: XCTestCase { /// The resource's attributes. public var attributes: Attributes? - public init(name: String? = nil, attributes: Attributes? = nil) { + public init(name: String? = nil, + attributes: Attributes? = nil) + { self.name = name self.attributes = attributes } @@ -282,6 +294,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -292,12 +305,15 @@ final class ObjectSchemaRendererTests: XCTestCase { /// The resource's relationships. public var relationships: Relationships? - public init(name: String? = nil, relationships: Relationships? = nil) { + public init(name: String? = nil, + relationships: Relationships? = nil) + { self.name = name self.relationships = relationships } /** + # Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -338,6 +354,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -353,7 +370,11 @@ final class ObjectSchemaRendererTests: XCTestCase { /// The person's indentation preference public var preference: Preference? - public init(connection: Connection? = nil, name: String? = nil, pet: Pet? = nil, preference: Preference? = nil) { + public init(connection: Connection? = nil, + name: String? = nil, + pet: Pet? = nil, + preference: Preference? = nil) + { self.connection = connection self.name = name self.pet = pet @@ -421,10 +442,13 @@ final class ObjectSchemaRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public struct PersonsResponse: Codable, PagedResponse { public typealias Data = Person + public let data: [Person] public let links: PagedDocumentLinks - public init(data: [Person], links: PagedDocumentLinks) { + public init(data: [Person], + links: PagedDocumentLinks) + { self.data = data self.links = links } @@ -512,7 +536,9 @@ final class ObjectSchemaRendererTests: XCTestCase { public var data: Build? public var included: [Included]? - public init(data: Build? = nil, included: [Included]? = nil) { + public init(data: Build? = nil, + included: [Included]? = nil) + { self.data = data self.included = included } @@ -672,10 +698,13 @@ final class ObjectSchemaRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public struct BuildsResponse: Codable { public typealias Data = Build + public var data: [Build]? public var included: [Included]? - public init(data: [Build]? = nil, included: [Included]? = nil) { + public init(data: [Build]? = nil, + included: [Included]? = nil) + { self.data = data self.included = included } @@ -767,6 +796,7 @@ final class ObjectSchemaRendererTests: XCTestCase { // Then XCTAssertEqual(rendered, #""" /** + # Person A person with a name. Full documentation: @@ -779,7 +809,11 @@ final class ObjectSchemaRendererTests: XCTestCase { public let attributes: Attributes public var relationships: Relationships? - public init(age: Int? = nil, name: String, attributes: Attributes, relationships: Relationships? = nil) { + public init(age: Int? = nil, + name: String, + attributes: Attributes, + relationships: Relationships? = nil) + { self.age = age self.name = name self.attributes = attributes @@ -808,13 +842,14 @@ final class ObjectSchemaRendererTests: XCTestCase { private enum CodingKeys: String, CodingKey { case age - case name - case type case attributes + case name case relationships + case type } /** + # Attributes Attributes for a Person Full documentation: @@ -830,6 +865,7 @@ final class ObjectSchemaRendererTests: XCTestCase { } /** + # Relationships The relationships you included in the request and those on which you can operate. Full documentation: @@ -880,7 +916,10 @@ final class ObjectSchemaRendererTests: XCTestCase { public var number: String? public var type: PhoneNumberType? - public init(intent: String? = nil, number: String? = nil, type: PhoneNumberType? = nil) { + public init(intent: String? = nil, + number: String? = nil, + type: PhoneNumberType? = nil) + { self.intent = intent self.number = number self.type = type diff --git a/Tests/BagbutikGeneratorTests/Renderers/OperationRendererTests.swift b/Tests/BagbutikGeneratorTests/Renderers/OperationRendererTests.swift index 1452c5f0c..0bfebd23c 100644 --- a/Tests/BagbutikGeneratorTests/Renderers/OperationRendererTests.swift +++ b/Tests/BagbutikGeneratorTests/Renderers/OperationRendererTests.swift @@ -10,7 +10,8 @@ final class OperationRendererTests: XCTestCase { // Given let docsLoader = DocsLoader(operationDocumentationById: ["apps-get_collection": .init(id: "apps-get_collection", title: "Documentation title", abstract: "Documentation summary", discussion: "Documentation discussion", pathParameters: [:], queryParameters: [:], body: nil, responses: [ - .init(status: 200, reason: "OK", description: nil)])] + .init(status: 200, reason: "OK", description: nil) + ])] ) let renderer = OperationRenderer(docsLoader: docsLoader) let parameters: [Parameter] = [ @@ -24,19 +25,19 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # Documentation title - Documentation summary + # Documentation title + Documentation summary - Documentation discussion + Documentation discussion - Full documentation: - - - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + Full documentation: + + + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listUsersV1(limit: Int? = nil) -> Request { - return .init(path: "/users", method: .get, parameters: .init(limit: limit)) + .init(path: "/users", method: .get, parameters: .init(limit: limit)) } } @@ -58,16 +59,16 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # No overview available - - Full documentation: - + # No overview available + + Full documentation: + - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listUsersV1(limit: Int? = nil) -> Request { - return .init(path: "/users", method: .get, parameters: .init(limit: limit)) + .init(path: "/users", method: .get, parameters: .init(limit: limit)) } } @@ -89,17 +90,17 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # No overview available - - Full documentation: - + # No overview available - - Parameter limit: Maximum resources per page - maximum 200 - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + Full documentation: + + + - Parameter limit: Maximum resources per page - maximum 200 + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ @available(*, deprecated, message: "Apple has marked it as deprecated and it will be removed sometime in the future.") static func listUsersV1(limit: Int? = nil) -> Request { - return .init(path: "/users", method: .get, parameters: .init(limit: limit)) + .init(path: "/users", method: .get, parameters: .init(limit: limit)) } } @@ -134,21 +135,21 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # Documentation title - Documentation summary + # Documentation title + Documentation summary - Documentation discussion + Documentation discussion - Full documentation: - + Full documentation: + - - Parameter fields: Fields to return for included related types - - Parameter filters: Attributes, relationships, and IDs by which to filter - - Parameter exists: Attributes, relationships, and IDs to check for existence - - Parameter includes: Relationship data to include in the response - - Parameter sorts: Attributes by which to sort - - Parameter limits: Number of resources to return - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter fields: Fields to return for included related types + - Parameter filters: Attributes, relationships, and IDs by which to filter + - Parameter exists: Attributes, relationships, and IDs to check for existence + - Parameter includes: Relationship data to include in the response + - Parameter sorts: Attributes by which to sort + - Parameter limits: Number of resources to return + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func listUsersV1(fields: [ListUsersV1.Field]? = nil, filters: [ListUsersV1.Filter]? = nil, @@ -157,12 +158,12 @@ final class OperationRendererTests: XCTestCase { sorts: [ListUsersV1.Sort]? = nil, limits: [ListUsersV1.Limit]? = nil) -> Request { - return .init(path: "/users", method: .get, parameters: .init(fields: fields, - filters: filters, - exists: exists, - includes: includes, - sorts: sorts, - limits: limits)) + .init(path: "/users", method: .get, parameters: .init(fields: fields, + filters: filters, + exists: exists, + includes: includes, + sorts: sorts, + limits: limits)) } } @@ -193,7 +194,7 @@ final class OperationRendererTests: XCTestCase { /** Attributes, relationships, and IDs by which to filter. - Required: devices.properties + Required: `devices.properties` */ public enum Filter: FilterParameter { /// Filter by device properties @@ -228,7 +229,8 @@ final class OperationRendererTests: XCTestCase { Relationship data to include in the response. */ public enum Include: String, IncludeParameter { - case devices, glasses + case devices + case glasses } /** @@ -245,10 +247,10 @@ final class OperationRendererTests: XCTestCase { Number of included related resources to return. */ public enum Limit: LimitParameter { - /// Maximum of users - maximum 200 - case limit(Int) /// Maximum of included devices - maximum 10 case devices(Int) + /// Maximum of users - maximum 200 + case limit(Int) } } @@ -271,22 +273,22 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # Documentation title - Documentation summary + # Documentation title + Documentation summary + + Documentation discussion - Documentation discussion + Full documentation: + - Full documentation: - - - - Parameter id: Id of the user to update - - Parameter requestBody: User representation - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: Id of the user to update + - Parameter requestBody: User representation + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func updateUserV1(id: String, requestBody: UserUpdateRequest) -> Request { - return .init(path: "/users/\(id)", method: .patch, requestBody: requestBody) + .init(path: "/users/\(id)", method: .patch, requestBody: requestBody) } } @@ -304,7 +306,7 @@ final class OperationRendererTests: XCTestCase { let operation = Operation(id: "apps-get_collection", name: "listUsers", method: .get, parameters: parameters, successResponseType: "UsersResponse", errorResponseType: "ErrorResponse") let path = Path(path: "/users", info: .init(mainType: "User", version: "V1", isRelationship: false), operations: [operation]) // When - XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).operationContext(for: operation, in: path)) { + XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).render(operation: operation, in: path)) { // Then XCTAssertEqual($0 as? OperationRendererError, OperationRendererError.unknownTypeOfExists(name: "hair")) } @@ -321,7 +323,7 @@ final class OperationRendererTests: XCTestCase { let operation = Operation(id: "apps-get_collection", name: "listUsers", method: .get, parameters: parameters, successResponseType: "UsersResponse", errorResponseType: "ErrorResponse") let path = Path(path: "/users", info: .init(mainType: "User", version: "V1", isRelationship: false), operations: [operation]) // When - XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).operationContext(for: operation, in: path)) { + XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).render(operation: operation, in: path)) { // Then XCTAssertEqual($0 as? OperationRendererError, OperationRendererError.unknownTypeOfInclude) } @@ -338,7 +340,7 @@ final class OperationRendererTests: XCTestCase { let operation = Operation(id: "apps-get_collection", name: "listUsers", method: .get, parameters: parameters, successResponseType: "UsersResponse", errorResponseType: "ErrorResponse") let path = Path(path: "/users", info: .init(mainType: "User", version: "V1", isRelationship: false), operations: [operation]) // When - XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).operationContext(for: operation, in: path)) { + XCTAssertThrowsError(try OperationRenderer(docsLoader: docsLoader).render(operation: operation, in: path)) { // Then XCTAssertEqual($0 as? OperationRendererError, OperationRendererError.unknownTypeOfSort) } @@ -364,25 +366,25 @@ final class OperationRendererTests: XCTestCase { XCTAssertEqual(rendered, #""" public extension Request { /** - # Documentation title - Documentation summary + # Documentation title + Documentation summary - Documentation discussion + Documentation discussion - Full documentation: - + Full documentation: + - - Parameter id: Id of the user to update - - Parameter fields: Fields to return for included related types - - Parameter includes: Relationship data to include in the response - - Returns: A ``Request`` to send to an instance of ``BagbutikService`` + - Parameter id: Id of the user to update + - Parameter fields: Fields to return for included related types + - Parameter includes: Relationship data to include in the response + - Returns: A ``Request`` to send to an instance of ``BagbutikService`` */ static func getSubscriptionOfferCodeOneTimeUseCodesV1(id: String, fields: [GetSubscriptionOfferCodeOneTimeUseCodesV1.Field]? = nil, includes: [GetSubscriptionOfferCodeOneTimeUseCodesV1.Include]? = nil) -> Request { - return .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .get, parameters: .init(fields: fields, - includes: includes)) + .init(path: "/v1/subscriptionOfferCodeOneTimeUseCodes/\(id)", method: .get, parameters: .init(fields: fields, + includes: includes)) } } diff --git a/Tests/BagbutikGeneratorTests/Renderers/PropertyRendererTests.swift b/Tests/BagbutikGeneratorTests/Renderers/PropertyRendererTests.swift index 879d15106..b6b79ea31 100644 --- a/Tests/BagbutikGeneratorTests/Renderers/PropertyRendererTests.swift +++ b/Tests/BagbutikGeneratorTests/Renderers/PropertyRendererTests.swift @@ -1,69 +1,70 @@ +import BagbutikDocsCollector @testable import BagbutikGenerator import XCTest final class PropertyRendererTests: XCTestCase { func testRenderNonReservedButOptional() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "name", type: "string", optional: true, isSimpleType: true) + let rendered = renderer.renderProperty(id: "name", type: "string", optional: true, isSimpleType: true) // Then XCTAssertEqual(rendered, "public var name: String?") } func testRenderReservedButNotOptional() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "required", type: "bool", optional: false, isSimpleType: true) + let rendered = renderer.renderProperty(id: "required", type: "bool", optional: false, isSimpleType: true) // Then XCTAssertEqual(rendered, "public let `required`: Bool") } - + func testNullCodableOnNonSimpleOptionalData() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "data", type: "Data", optional: true, isSimpleType: false) + let rendered = renderer.renderProperty(id: "data", type: "Data", optional: true, isSimpleType: false) // Then XCTAssertEqual(rendered, "@NullCodable public var data: Data?") // It is necessary to add the @NullCodable property wrapper, to ensure that optionals are encoded as null. // If this is not done, the JSONEncoder will leave out optionals from the JSON instead. // This is needed when relationships in create and update requests are cleared (eg. when removing subcategory in app info) } - + func testNullCodableOnNonSimpleOptionalDataArray() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "data", type: "[Data]", optional: true, isSimpleType: false) + let rendered = renderer.renderProperty(id: "data", type: "[Data]", optional: true, isSimpleType: false) // Then XCTAssertEqual(rendered, "@NullCodable public var data: [Data]?") } - + func testNoNullCodableOnNonSimpleOptionalNotData() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "device", type: "Device", optional: true, isSimpleType: false) + let rendered = renderer.renderProperty(id: "device", type: "Device", optional: true, isSimpleType: false) // Then XCTAssertEqual(rendered, "public var device: Device?") } - + func testNoNullCodableOnNonSimpleNotOptional() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "device", type: "Device", optional: false, isSimpleType: false) + let rendered = renderer.renderProperty(id: "device", type: "Device", optional: false, isSimpleType: false) // Then XCTAssertEqual(rendered, "public let device: Device") } func testRenderDeprecated() throws { // Given - let renderer = PropertyRenderer() + let renderer = PropertyRenderer(docsLoader: DocsLoader()) // When - let rendered = try renderer.render(id: "name", type: "string", optional: true, isSimpleType: true, deprecated: true) + let rendered = renderer.renderProperty(id: "name", type: "string", optional: true, isSimpleType: true, deprecated: true) // Then XCTAssertEqual(rendered, """ @available(*, deprecated, message: "Apple has marked this property deprecated and it will be removed sometime in the future.")