diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/Namespace.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/Namespace.swift index dcedf2d3..ab8fab00 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/Namespace.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/Namespace.swift @@ -1830,6 +1830,16 @@ public enum V1 { } } + public enum SubscriptionPlanAvailabilities { + public enum ById { + public enum AvailableTerritories {} + + public enum Relationships { + public enum AvailableTerritories {} + } + } + } + public enum SubscriptionPricePoints { public enum ById { public enum Equalizations {} @@ -1866,6 +1876,8 @@ public enum V1 { public enum OfferCodes {} + public enum PlanAvailabilities {} + public enum PricePoints {} public enum Prices {} @@ -1883,6 +1895,8 @@ public enum V1 { public enum OfferCodes {} + public enum PlanAvailabilities {} + public enum PricePoints {} public enum Prices {} diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppPreviewSets/AppCustomProductPageLocalizationsByIdAppPreviewSets.GET.8d6d7bd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppPreviewSets/AppCustomProductPageLocalizationsByIdAppPreviewSets.GET.8d6d7bd.generated.swift index 4855c9d3..7e8d5383 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppPreviewSets/AppCustomProductPageLocalizationsByIdAppPreviewSets.GET.8d6d7bd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppPreviewSets/AppCustomProductPageLocalizationsByIdAppPreviewSets.GET.8d6d7bd.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppCustomProductPageLocalizations.ById.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppScreenshotSets/AppCustomProductPageLocalizationsByIdAppScreenshotSets.GET.489daf1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppScreenshotSets/AppCustomProductPageLocalizationsByIdAppScreenshotSets.GET.489daf1.generated.swift index 0048cc18..929900cf 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppScreenshotSets/AppCustomProductPageLocalizationsByIdAppScreenshotSets.GET.489daf1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/AppScreenshotSets/AppCustomProductPageLocalizationsByIdAppScreenshotSets.GET.489daf1.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppCustomProductPageLocalizations.ById.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppPreviewSets/AppCustomProductPageLocalizationsByIdRelationshipsAppPreviewSets.GET.2d76aba.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppPreviewSets/AppCustomProductPageLocalizationsByIdRelationshipsAppPreviewSets.GET.2d76aba.generated.swift index 84701e1d..ab5a3562 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppPreviewSets/AppCustomProductPageLocalizationsByIdRelationshipsAppPreviewSets.GET.2d76aba.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppPreviewSets/AppCustomProductPageLocalizationsByIdRelationshipsAppPreviewSets.GET.2d76aba.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppCustomProductPageLocalizations.ById.Relationships.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppCustomProductPageLocalizationAppPreviewSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppScreenshotSets/AppCustomProductPageLocalizationsByIdRelationshipsAppScreenshotSets.GET.eb4c40c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppScreenshotSets/AppCustomProductPageLocalizationsByIdRelationshipsAppScreenshotSets.GET.eb4c40c.generated.swift index 832249af..ae178deb 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppScreenshotSets/AppCustomProductPageLocalizationsByIdRelationshipsAppScreenshotSets.GET.eb4c40c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppCustomProductPageLocalizations/ById/Relationships/AppScreenshotSets/AppCustomProductPageLocalizationsByIdRelationshipsAppScreenshotSets.GET.eb4c40c.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppCustomProductPageLocalizations.ById.Relationships.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppCustomProductPageLocalizationAppScreenshotSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventScreenshots/AppEventLocalizationsByIdAppEventScreenshots.GET.47c3a0e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventScreenshots/AppEventLocalizationsByIdAppEventScreenshots.GET.47c3a0e.generated.swift index a99dad9b..c4c880ce 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventScreenshots/AppEventLocalizationsByIdAppEventScreenshots.GET.47c3a0e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventScreenshots/AppEventLocalizationsByIdAppEventScreenshots.GET.47c3a0e.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventLocalizations.ById.AppEventScreenshots { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventScreenshotsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventVideoClips/AppEventLocalizationsByIdAppEventVideoClips.GET.891b5ab.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventVideoClips/AppEventLocalizationsByIdAppEventVideoClips.GET.891b5ab.generated.swift index 824a9a0c..9a1af7ec 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventVideoClips/AppEventLocalizationsByIdAppEventVideoClips.GET.891b5ab.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/AppEventVideoClips/AppEventLocalizationsByIdAppEventVideoClips.GET.891b5ab.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventLocalizations.ById.AppEventVideoClips { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventVideoClipsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventScreenshots/AppEventLocalizationsByIdRelationshipsAppEventScreenshots.GET.f37c852.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventScreenshots/AppEventLocalizationsByIdRelationshipsAppEventScreenshots.GET.f37c852.generated.swift index 9700ec6e..d62d9871 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventScreenshots/AppEventLocalizationsByIdRelationshipsAppEventScreenshots.GET.f37c852.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventScreenshots/AppEventLocalizationsByIdRelationshipsAppEventScreenshots.GET.f37c852.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventLocalizations.ById.Relationships.AppEventScreenshots { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventLocalizationAppEventScreenshotsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventVideoClips/AppEventLocalizationsByIdRelationshipsAppEventVideoClips.GET.5a78ae1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventVideoClips/AppEventLocalizationsByIdRelationshipsAppEventVideoClips.GET.5a78ae1.generated.swift index a6762d7a..c8fb0a2f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventVideoClips/AppEventLocalizationsByIdRelationshipsAppEventVideoClips.GET.5a78ae1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventLocalizations/ById/Relationships/AppEventVideoClips/AppEventLocalizationsByIdRelationshipsAppEventVideoClips.GET.5a78ae1.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventLocalizations.ById.Relationships.AppEventVideoClips { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventLocalizationAppEventVideoClipsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/AppEventScreenshots.POST.e315a5e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/AppEventScreenshots.POST.e315a5e.generated.swift index 7ee34411..57282270 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/AppEventScreenshots.POST.e315a5e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/AppEventScreenshots.POST.e315a5e.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventScreenshots { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppEventScreenshotCreateRequest public typealias Response = AppEventScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.DELETE.468aec9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.DELETE.468aec9.generated.swift index 602dcee8..e3f6b235 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.DELETE.468aec9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.DELETE.468aec9.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventScreenshots.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift index af609b38..df01d674 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.GET.468aec9.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventScreenshots.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.PATCH.468aec9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.PATCH.468aec9.generated.swift index 74d5769d..657487f7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.PATCH.468aec9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventScreenshots/ById/AppEventScreenshotsById.PATCH.468aec9.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventScreenshots.ById { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppEventScreenshotUpdateRequest public typealias Response = AppEventScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/AppEventVideoClips.POST.da99af1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/AppEventVideoClips.POST.da99af1.generated.swift index f6f6b9b7..8a237c7f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/AppEventVideoClips.POST.da99af1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/AppEventVideoClips.POST.da99af1.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventVideoClips { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppEventVideoClipCreateRequest public typealias Response = AppEventVideoClipResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.DELETE.ed0e879.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.DELETE.ed0e879.generated.swift index f5682b74..485cf590 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.DELETE.ed0e879.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.DELETE.ed0e879.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventVideoClips.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift index 7634a71c..cbc63666 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.GET.ed0e879.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventVideoClips.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppEventVideoClipResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.PATCH.ed0e879.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.PATCH.ed0e879.generated.swift index f4af36e8..b6c757f7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.PATCH.ed0e879.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppEventVideoClips/ById/AppEventVideoClipsById.PATCH.ed0e879.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppEventVideoClips.ById { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppEventVideoClipUpdateRequest public typealias Response = AppEventVideoClipResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift index 9048bf2b..c397d8a5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfoLocalizations/ById/AppInfoLocalizationsById.GET.0b83534.generated.swift @@ -174,10 +174,6 @@ extension V1.AppInfoLocalizations.ById.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfoLocalizations/AppInfosByIdAppInfoLocalizations.GET.3d8ecb5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfoLocalizations/AppInfosByIdAppInfoLocalizations.GET.3d8ecb5.generated.swift index 84137cb9..cf732e1a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfoLocalizations/AppInfosByIdAppInfoLocalizations.GET.3d8ecb5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfoLocalizations/AppInfosByIdAppInfoLocalizations.GET.3d8ecb5.generated.swift @@ -183,10 +183,6 @@ extension V1.AppInfos.ById.AppInfoLocalizations.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift index b016c681..49eb1a67 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppInfos/ById/AppInfosById.GET.f5390de.generated.swift @@ -328,10 +328,6 @@ extension V1.AppInfos.ById.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/AppPreviewSets.POST.704590c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/AppPreviewSets.POST.704590c.generated.swift index 4814ba67..1d4edf87 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/AppPreviewSets.POST.704590c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/AppPreviewSets.POST.704590c.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppPreviewSetCreateRequest public typealias Response = AppPreviewSetResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.DELETE.fc798bf.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.DELETE.fc798bf.generated.swift index 32303b9b..e565ff60 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.DELETE.fc798bf.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.DELETE.fc798bf.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift index 01db66ee..91b07b1d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviewSetsById.GET.fc798bf.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewSetResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviews/AppPreviewSetsByIdAppPreviews.GET.a3d2673.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviews/AppPreviewSetsByIdAppPreviews.GET.a3d2673.generated.swift index c9bd2fa6..b5d87333 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviews/AppPreviewSetsByIdAppPreviews.GET.a3d2673.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/AppPreviews/AppPreviewSetsByIdAppPreviews.GET.a3d2673.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets.ById.AppPreviews { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.GET.7ca8051.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.GET.7ca8051.generated.swift index fdbac137..b590588e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.GET.7ca8051.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.GET.7ca8051.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets.ById.Relationships.AppPreviews { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewSetAppPreviewsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift index 81488051..0d90497f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviewSets/ById/Relationships/AppPreviews/AppPreviewSetsByIdRelationshipsAppPreviews.PATCH.7ca8051.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviewSets.ById.Relationships.AppPreviews { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppPreviewSetAppPreviewsLinkagesRequest public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/AppPreviews.POST.177bb39.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/AppPreviews.POST.177bb39.generated.swift index 13411ccc..b3720902 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/AppPreviews.POST.177bb39.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/AppPreviews.POST.177bb39.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviews { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppPreviewCreateRequest public typealias Response = AppPreviewResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.DELETE.9a43a28.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.DELETE.9a43a28.generated.swift index 38ee539f..16ac1777 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.DELETE.9a43a28.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.DELETE.9a43a28.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviews.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift index 58e4ee5f..48ea3319 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.GET.9a43a28.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviews.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.PATCH.9a43a28.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.PATCH.9a43a28.generated.swift index 117af40e..2682a746 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.PATCH.9a43a28.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppPreviews/ById/AppPreviewsById.PATCH.9a43a28.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppPreviews.ById { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppPreviewUpdateRequest public typealias Response = AppPreviewResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/AppScreenshotSets.POST.31b308a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/AppScreenshotSets.POST.31b308a.generated.swift index 14c6a80e..11a69397 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/AppScreenshotSets.POST.31b308a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/AppScreenshotSets.POST.31b308a.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppScreenshotSetCreateRequest public typealias Response = AppScreenshotSetResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.DELETE.0b8968b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.DELETE.0b8968b.generated.swift index c4652b46..663793c3 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.DELETE.0b8968b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.DELETE.0b8968b.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift index 386af7e5..d70d0289 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshotSetsById.GET.0b8968b.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotSetResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshots/AppScreenshotSetsByIdAppScreenshots.GET.e7ccee6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshots/AppScreenshotSetsByIdAppScreenshots.GET.e7ccee6.generated.swift index 5d5bc40d..d4972029 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshots/AppScreenshotSetsByIdAppScreenshots.GET.e7ccee6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/AppScreenshots/AppScreenshotSetsByIdAppScreenshots.GET.e7ccee6.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets.ById.AppScreenshots { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.GET.a264720.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.GET.a264720.generated.swift index 8db919e7..73e29522 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.GET.a264720.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.GET.a264720.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets.ById.Relationships.AppScreenshots { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotSetAppScreenshotsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift index 54ffc611..cb690eff 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshotSets/ById/Relationships/AppScreenshots/AppScreenshotSetsByIdRelationshipsAppScreenshots.PATCH.a264720.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshotSets.ById.Relationships.AppScreenshots { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppScreenshotSetAppScreenshotsLinkagesRequest public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/AppScreenshots.POST.2f0287f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/AppScreenshots.POST.2f0287f.generated.swift index d3644e68..46bae059 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/AppScreenshots.POST.2f0287f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/AppScreenshots.POST.2f0287f.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshots { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = AppScreenshotCreateRequest public typealias Response = AppScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.DELETE.1a453d6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.DELETE.1a453d6.generated.swift index 02f46ca4..0a6d6714 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.DELETE.1a453d6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.DELETE.1a453d6.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshots.ById { + @available(*, deprecated) public struct DELETE: Endpoint { public typealias Parameters = Never public typealias Response = Void diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift index 7d2c841b..f216e520 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.GET.1a453d6.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshots.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.PATCH.1a453d6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.PATCH.1a453d6.generated.swift index 965ba412..3c6da6c0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.PATCH.1a453d6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppScreenshots/ById/AppScreenshotsById.PATCH.1a453d6.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppScreenshots.ById { + @available(*, deprecated) public struct PATCH: Endpoint { public typealias Parameters = AppScreenshotUpdateRequest public typealias Response = AppScreenshotResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppPreviewSets.GET.7672523.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppPreviewSets.GET.7672523.generated.swift index 1ea2bed6..15c9a512 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppPreviewSets.GET.7672523.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppPreviewSets.GET.7672523.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppScreenshotSets.GET.52e9ae2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppScreenshotSets.GET.52e9ae2.generated.swift index 8a6816f6..82b38d0b 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppScreenshotSets.GET.52e9ae2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdAppScreenshotSets.GET.52e9ae2.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppPreviewSets.GET.f714c7c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppPreviewSets.GET.f714c7c.generated.swift index 43ff186f..a331ff8c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppPreviewSets.GET.f714c7c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppPreviewSets.GET.f714c7c.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.Relationships.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppStoreVersionExperimentTreatmentLocalizationAppPreviewSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppScreenshotSets.GET.04df64b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppScreenshotSets.GET.04df64b.generated.swift index 6b0ba5dc..58009585 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppScreenshotSets.GET.04df64b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionExperimentTreatmentLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionExperimentTreatmentLocalizationsByIdRelationshipsAppScreenshotSets.GET.04df64b.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionExperimentTreatmentLocalizations.ById.Relationships.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppStoreVersionExperimentTreatmentLocalizationAppScreenshotSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppPreviewSets/AppStoreVersionLocalizationsByIdAppPreviewSets.GET.9dc3d45.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppPreviewSets/AppStoreVersionLocalizationsByIdAppPreviewSets.GET.9dc3d45.generated.swift index 691d9f57..c2879db1 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppPreviewSets/AppStoreVersionLocalizationsByIdAppPreviewSets.GET.9dc3d45.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppPreviewSets/AppStoreVersionLocalizationsByIdAppPreviewSets.GET.9dc3d45.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionLocalizations.ById.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppPreviewSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppScreenshotSets/AppStoreVersionLocalizationsByIdAppScreenshotSets.GET.468d156.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppScreenshotSets/AppStoreVersionLocalizationsByIdAppScreenshotSets.GET.468d156.generated.swift index 90c6e223..3fba78fe 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppScreenshotSets/AppStoreVersionLocalizationsByIdAppScreenshotSets.GET.468d156.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/AppScreenshotSets/AppStoreVersionLocalizationsByIdAppScreenshotSets.GET.468d156.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionLocalizations.ById.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppScreenshotSetsResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionLocalizationsByIdRelationshipsAppPreviewSets.GET.829b8c5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionLocalizationsByIdRelationshipsAppPreviewSets.GET.829b8c5.generated.swift index dba3498f..2d19b491 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionLocalizationsByIdRelationshipsAppPreviewSets.GET.829b8c5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppPreviewSets/AppStoreVersionLocalizationsByIdRelationshipsAppPreviewSets.GET.829b8c5.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionLocalizations.ById.Relationships.AppPreviewSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppStoreVersionLocalizationAppPreviewSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionLocalizationsByIdRelationshipsAppScreenshotSets.GET.fa3030d.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionLocalizationsByIdRelationshipsAppScreenshotSets.GET.fa3030d.generated.swift index c1de74fb..cdc9d006 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionLocalizationsByIdRelationshipsAppScreenshotSets.GET.fa3030d.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/AppStoreVersionLocalizations/ById/Relationships/AppScreenshotSets/AppStoreVersionLocalizationsByIdRelationshipsAppScreenshotSets.GET.fa3030d.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.AppStoreVersionLocalizations.ById.Relationships.AppScreenshotSets { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = AppStoreVersionLocalizationAppScreenshotSetsLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift index e7a2e07d..0d680f7f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/Apps.GET.d3db1ee.generated.swift @@ -483,10 +483,6 @@ extension V1.Apps.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppInfos/AppsByIdAppInfos.GET.dcf3ea6.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppInfos/AppsByIdAppInfos.GET.dcf3ea6.generated.swift index 97a26c6d..fbd436b1 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppInfos/AppsByIdAppInfos.GET.dcf3ea6.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppInfos/AppsByIdAppInfos.GET.dcf3ea6.generated.swift @@ -331,10 +331,6 @@ extension V1.Apps.ById.AppInfos.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift index 4c7d9214..2ca2c1ee 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/AppsById.GET.37ceec0.generated.swift @@ -434,10 +434,6 @@ extension V1.Apps.ById.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/BackgroundAssets/AppsByIdBackgroundAssets.GET.77addb9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/BackgroundAssets/AppsByIdBackgroundAssets.GET.77addb9.generated.swift index ecacd8e3..44cfe89c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/BackgroundAssets/AppsByIdBackgroundAssets.GET.77addb9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/BackgroundAssets/AppsByIdBackgroundAssets.GET.77addb9.generated.swift @@ -38,6 +38,8 @@ extension V1.Apps.ById.BackgroundAssets { value: parameters.filter[.archived]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[assetPackIdentifier]", value: parameters.filter[.assetPackIdentifier]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "filter[versions.locale]", + value: parameters.filter[.versionsLocale]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[versions.platforms]", value: parameters.filter[.versionsPlatforms]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "include", @@ -378,6 +380,10 @@ extension V1.Apps.ById.BackgroundAssets.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } @@ -528,6 +534,11 @@ extension V1.Apps.ById.BackgroundAssets.GET { .init(key: "filter[assetPackIdentifier]") } + /// filter by attribute 'versions.locale' + public static var versionsLocale: Relation<[String]?> { + .init(key: "filter[versions.locale]") + } + /// filter by attribute 'versions.platforms' public static var versionsPlatforms: Relation<[VersionsPlatforms]?> { .init(key: "filter[versions.platforms]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PerfPowerMetrics/AppsByIdPerfPowerMetrics.GET.7611cac.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PerfPowerMetrics/AppsByIdPerfPowerMetrics.GET.7611cac.generated.swift index 1ac20f5b..adf6f7e3 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PerfPowerMetrics/AppsByIdPerfPowerMetrics.GET.7611cac.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PerfPowerMetrics/AppsByIdPerfPowerMetrics.GET.7611cac.generated.swift @@ -119,6 +119,10 @@ extension V1.Apps.ById.PerfPowerMetrics.GET { .init(rawValue: "MEMORY") } + public static var storage: Self { + .init(rawValue: "STORAGE") + } + public static var termination: Self { .init(rawValue: "TERMINATION") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PromotedPurchases/AppsByIdPromotedPurchases.GET.62d9cf2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PromotedPurchases/AppsByIdPromotedPurchases.GET.62d9cf2.generated.swift index 9e91dc23..01d7961d 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PromotedPurchases/AppsByIdPromotedPurchases.GET.62d9cf2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/PromotedPurchases/AppsByIdPromotedPurchases.GET.62d9cf2.generated.swift @@ -245,6 +245,10 @@ extension V1.Apps.ById.PromotedPurchases.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/SubscriptionGroups/AppsByIdSubscriptionGroups.GET.3586939.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/SubscriptionGroups/AppsByIdSubscriptionGroups.GET.3586939.generated.swift index ea140325..a8de9afc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/SubscriptionGroups/AppsByIdSubscriptionGroups.GET.3586939.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Apps/ById/SubscriptionGroups/AppsByIdSubscriptionGroups.GET.3586939.generated.swift @@ -208,6 +208,10 @@ extension V1.Apps.ById.SubscriptionGroups.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift index 4edb07a8..57f14e9c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionAppStoreReleases/ById/BackgroundAssetVersionAppStoreReleasesById.GET.9b8f9e1.generated.swift @@ -146,6 +146,10 @@ extension V1.BackgroundAssetVersionAppStoreReleases.ById.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift index 0aef741b..4906822f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionExternalBetaReleases/ById/BackgroundAssetVersionExternalBetaReleasesById.GET.10363e9.generated.swift @@ -146,6 +146,10 @@ extension V1.BackgroundAssetVersionExternalBetaReleases.ById.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift index 562f7654..41971d69 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersionInternalBetaReleases/ById/BackgroundAssetVersionInternalBetaReleasesById.GET.c763a11.generated.swift @@ -146,6 +146,10 @@ extension V1.BackgroundAssetVersionInternalBetaReleases.ById.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift index b60819d9..e9ad0ff4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssetVersions/ById/BackgroundAssetVersionsById.GET.95cd11c.generated.swift @@ -238,6 +238,10 @@ extension V1.BackgroundAssetVersions.ById.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift index 4c12881c..5522d281 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/BackgroundAssetsById.GET.ab8fadb.generated.swift @@ -360,6 +360,10 @@ extension V1.BackgroundAssets.ById.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/Versions/BackgroundAssetsByIdVersions.GET.c529844.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/Versions/BackgroundAssetsByIdVersions.GET.c529844.generated.swift index f91edabc..3b32e637 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/Versions/BackgroundAssetsByIdVersions.GET.c529844.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/BackgroundAssets/ById/Versions/BackgroundAssetsByIdVersions.GET.c529844.generated.swift @@ -46,6 +46,8 @@ extension V1.BackgroundAssets.ById.Versions { value: parameters.filter[.externalBetaReleaseState]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[internalBetaRelease.state]", value: parameters.filter[.internalBetaReleaseState]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "filter[locale]", + value: parameters.filter[.locale]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[platforms]", value: parameters.filter[.platforms]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[state]", @@ -262,6 +264,10 @@ extension V1.BackgroundAssets.ById.Versions.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } @@ -568,6 +574,11 @@ extension V1.BackgroundAssets.ById.Versions.GET { .init(key: "filter[internalBetaRelease.state]") } + /// filter by attribute 'locale' + public static var locale: Relation<[String]?> { + .init(key: "filter[locale]") + } + /// filter by attribute 'platforms' public static var platforms: Relation<[Platforms]?> { .init(key: "filter[platforms]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/PerfPowerMetrics/BuildsByIdPerfPowerMetrics.GET.5ad0e3a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/PerfPowerMetrics/BuildsByIdPerfPowerMetrics.GET.5ad0e3a.generated.swift index c4d90da2..9ad3f68f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/PerfPowerMetrics/BuildsByIdPerfPowerMetrics.GET.5ad0e3a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Builds/ById/PerfPowerMetrics/BuildsByIdPerfPowerMetrics.GET.5ad0e3a.generated.swift @@ -119,6 +119,10 @@ extension V1.Builds.ById.PerfPowerMetrics.GET { .init(rawValue: "MEMORY") } + public static var storage: Self { + .init(rawValue: "STORAGE") + } + public static var termination: Self { .init(rawValue: "TERMINATION") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/App/CiProductsByIdApp.GET.a65f4ca.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/App/CiProductsByIdApp.GET.a65f4ca.generated.swift index 34ecaf6a..62184647 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/App/CiProductsByIdApp.GET.a65f4ca.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/CiProducts/ById/App/CiProductsByIdApp.GET.a65f4ca.generated.swift @@ -434,10 +434,6 @@ extension V1.CiProducts.ById.App.GET { .init(rawValue: "franceAgeRating") } - public static var kidsAgeBand: Self { - .init(rawValue: "kidsAgeBand") - } - public static var koreaAgeRating: Self { .init(rawValue: "koreaAgeRating") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift index f44a5745..70bc49a3 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/PromotedPurchases/ById/PromotedPurchasesById.GET.1e5319f.generated.swift @@ -240,6 +240,10 @@ extension V1.PromotedPurchases.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/Items/ReviewSubmissionsByIdItems.GET.82e114e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/Items/ReviewSubmissionsByIdItems.GET.82e114e.generated.swift index 08a680f2..610ca687 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/Items/ReviewSubmissionsByIdItems.GET.82e114e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/ReviewSubmissions/ById/Items/ReviewSubmissionsByIdItems.GET.82e114e.generated.swift @@ -405,6 +405,10 @@ extension V1.ReviewSubmissions.ById.Items.GET { .init(rawValue: "internalBetaRelease") } + public static var locale: Self { + .init(rawValue: "locale") + } + public static var manifestFile: Self { .init(rawValue: "manifestFile") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift index e6b9beb4..479986b4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAppStoreReviewScreenshots/ById/SubscriptionAppStoreReviewScreenshotsById.GET.1504677.generated.swift @@ -178,6 +178,10 @@ extension V1.SubscriptionAppStoreReviewScreenshots.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/AvailableTerritories/SubscriptionAvailabilitiesByIdAvailableTerritories.GET.ec82b5e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/AvailableTerritories/SubscriptionAvailabilitiesByIdAvailableTerritories.GET.ec82b5e.generated.swift index cf4bd01b..a2569880 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/AvailableTerritories/SubscriptionAvailabilitiesByIdAvailableTerritories.GET.ec82b5e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/AvailableTerritories/SubscriptionAvailabilitiesByIdAvailableTerritories.GET.ec82b5e.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.SubscriptionAvailabilities.ById.AvailableTerritories { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = TerritoriesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionAvailabilitiesByIdRelationshipsAvailableTerritories.GET.83b9b65.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionAvailabilitiesByIdRelationshipsAvailableTerritories.GET.83b9b65.generated.swift index 2daa91d1..b33bfaa7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionAvailabilitiesByIdRelationshipsAvailableTerritories.GET.83b9b65.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionAvailabilitiesByIdRelationshipsAvailableTerritories.GET.83b9b65.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.SubscriptionAvailabilities.ById.Relationships.AvailableTerritories { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = SubscriptionAvailabilityAvailableTerritoriesLinkagesResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/SubscriptionAvailabilitiesById.GET.93e5129.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/SubscriptionAvailabilitiesById.GET.93e5129.generated.swift index eff22af4..1fc27458 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/SubscriptionAvailabilitiesById.GET.93e5129.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/ById/SubscriptionAvailabilitiesById.GET.93e5129.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.SubscriptionAvailabilities.ById { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = SubscriptionAvailabilityResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/SubscriptionAvailabilities.POST.55eb408.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/SubscriptionAvailabilities.POST.55eb408.generated.swift index 3e784949..f52ec949 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/SubscriptionAvailabilities.POST.55eb408.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionAvailabilities/SubscriptionAvailabilities.POST.55eb408.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.SubscriptionAvailabilities { + @available(*, deprecated) public struct POST: Endpoint { public typealias Parameters = SubscriptionAvailabilityCreateRequest public typealias Response = SubscriptionAvailabilityResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/SubscriptionGroupsById.GET.216dec1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/SubscriptionGroupsById.GET.216dec1.generated.swift index f6ebbc77..74bd3198 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/SubscriptionGroupsById.GET.216dec1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/SubscriptionGroupsById.GET.216dec1.generated.swift @@ -194,6 +194,10 @@ extension V1.SubscriptionGroups.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/Subscriptions/SubscriptionGroupsByIdSubscriptions.GET.c1878f2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/Subscriptions/SubscriptionGroupsByIdSubscriptions.GET.c1878f2.generated.swift index 01a8b87e..0e3776bf 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/Subscriptions/SubscriptionGroupsByIdSubscriptions.GET.c1878f2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionGroups/ById/Subscriptions/SubscriptionGroupsByIdSubscriptions.GET.c1878f2.generated.swift @@ -44,6 +44,8 @@ extension V1.SubscriptionGroups.ById.Subscriptions { value: parameters.fields[.subscriptionLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionOfferCodes]", value: parameters.fields[.subscriptionOfferCodes]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionPlanAvailabilities]", + value: parameters.fields[.subscriptionPlanAvailabilities]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionPrices]", value: parameters.fields[.subscriptionPrices]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionPromotionalOffers]", @@ -66,6 +68,8 @@ extension V1.SubscriptionGroups.ById.Subscriptions { value: parameters.limit[.introductoryOffers].map { "\($0)" }), URLQueryItem(name: "limit[offerCodes]", value: parameters.limit[.offerCodes].map { "\($0)" }), + URLQueryItem(name: "limit[planAvailabilities]", + value: parameters.limit[.planAvailabilities].map { "\($0)" }), URLQueryItem(name: "limit[prices]", value: parameters.limit[.prices].map { "\($0)" }), URLQueryItem(name: "limit[promotionalOffers]", @@ -346,6 +350,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "subscriptionPricePoint") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var territory: Self { .init(rawValue: "territory") } @@ -450,6 +458,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } @@ -465,7 +477,35 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { } } + public struct SubscriptionPlanAvailabilities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableInNewTerritories: Self { + .init(rawValue: "availableInNewTerritories") + } + + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public static var planType: Self { + .init(rawValue: "planType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct SubscriptionPrices: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var planType: Self { + .init(rawValue: "planType") + } + public static var preserved: Self { .init(rawValue: "preserved") } @@ -522,6 +562,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -566,6 +610,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } @@ -674,6 +722,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "startDate") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -726,6 +778,11 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(key: "fields[subscriptionOfferCodes]") } + /// the fields to include for returned resources of type subscriptionPlanAvailabilities + public static var subscriptionPlanAvailabilities: Relation<[SubscriptionPlanAvailabilities]?> { + .init(key: "fields[subscriptionPlanAvailabilities]") + } + /// the fields to include for returned resources of type subscriptionPrices public static var subscriptionPrices: Relation<[SubscriptionPrices]?> { .init(key: "fields[subscriptionPrices]") @@ -859,6 +916,10 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var prices: Self { .init(rawValue: "prices") } @@ -923,6 +984,11 @@ extension V1.SubscriptionGroups.ById.Subscriptions.GET { .init(key: "limit[offerCodes]") } + /// maximum number of related planAvailabilities returned (when they are included) + public static var planAvailabilities: Relation { + .init(key: "limit[planAvailabilities]") + } + /// maximum number of related prices returned (when they are included) public static var prices: Relation { .init(key: "limit[prices]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift index 373ba3d6..4db2af3e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionImages/ById/SubscriptionImagesById.GET.e335fd1.generated.swift @@ -174,6 +174,10 @@ extension V1.SubscriptionImages.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift index 029d6e96..d5aab332 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionLocalizations/ById/SubscriptionLocalizationsById.GET.731e3ba.generated.swift @@ -162,6 +162,10 @@ extension V1.SubscriptionLocalizations.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift index 157b8672..58c71011 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeCustomCodes/ById/SubscriptionOfferCodeCustomCodesById.GET.3300220.generated.swift @@ -190,6 +190,10 @@ extension V1.SubscriptionOfferCodeCustomCodes.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift index 31360d9d..bf0bfe51 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodeOneTimeUseCodes/ById/SubscriptionOfferCodeOneTimeUseCodesById.GET.5f16424.generated.swift @@ -194,6 +194,10 @@ extension V1.SubscriptionOfferCodeOneTimeUseCodes.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/CustomCodes/SubscriptionOfferCodesByIdCustomCodes.GET.2081035.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/CustomCodes/SubscriptionOfferCodesByIdCustomCodes.GET.2081035.generated.swift index 25a5f3b3..ccfacfca 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/CustomCodes/SubscriptionOfferCodesByIdCustomCodes.GET.2081035.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/CustomCodes/SubscriptionOfferCodesByIdCustomCodes.GET.2081035.generated.swift @@ -195,6 +195,10 @@ extension V1.SubscriptionOfferCodes.ById.CustomCodes.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/OneTimeUseCodes/SubscriptionOfferCodesByIdOneTimeUseCodes.GET.2f05613.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/OneTimeUseCodes/SubscriptionOfferCodesByIdOneTimeUseCodes.GET.2f05613.generated.swift index 016e6be1..5d96ffe7 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/OneTimeUseCodes/SubscriptionOfferCodesByIdOneTimeUseCodes.GET.2f05613.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/OneTimeUseCodes/SubscriptionOfferCodesByIdOneTimeUseCodes.GET.2f05613.generated.swift @@ -199,6 +199,10 @@ extension V1.SubscriptionOfferCodes.ById.OneTimeUseCodes.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift index 11c889af..383049f9 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionOfferCodes/ById/SubscriptionOfferCodesById.GET.6f18d2e.generated.swift @@ -264,6 +264,10 @@ extension V1.SubscriptionOfferCodes.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } @@ -312,6 +316,10 @@ extension V1.SubscriptionOfferCodes.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdAvailableTerritories.GET.00cdc80.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdAvailableTerritories.GET.00cdc80.generated.swift new file mode 100644 index 00000000..645ed415 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdAvailableTerritories.GET.00cdc80.generated.swift @@ -0,0 +1,130 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities.ById.AvailableTerritories { + public struct GET: Endpoint { + public typealias Response = TerritoriesResponse + + public var path: String { + "/v1/subscriptionPlanAvailabilities/\(id)/availableTerritories" + } + + /// the id of the requested resource + public var id: String + + public var parameters: Parameters = Parameters() + + public init(id: String) { + self.id = id + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + components?.queryItems = [ + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "limit", + value: parameters.limit.map { "\($0)" }) + ].filter { $0.value != nil } + if components?.queryItems?.isEmpty ?? false { + components?.queryItems = nil + } + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "GET" + return urlRequest + } + + /// - Returns: **200**, List of Territories as `TerritoriesResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(TerritoriesResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +extension V1.SubscriptionPlanAvailabilities.ById.AvailableTerritories.GET { + public struct Parameters: Hashable { + public var fields: Fields = Fields() + + /// maximum resources per page + public var limit: Int? + + public struct Fields: Hashable { + public subscript (_ relation: Relation) -> T { + get { values[relation]?.base as! T } + set { values[relation] = AnyHashable(newValue) } + } + + private var values: [AnyHashable: AnyHashable] = [:] + + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Relation: Hashable { + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + + internal let key: String + + public func hash(into hasher: inout Hasher) { + hasher.combine(key) + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.GET.f5ee85f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.GET.f5ee85f.generated.swift new file mode 100644 index 00000000..48d4deaf --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.GET.f5ee85f.generated.swift @@ -0,0 +1,88 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities.ById.Relationships.AvailableTerritories { + public struct GET: Endpoint { + public typealias Response = SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse + + public var path: String { + "/v1/subscriptionPlanAvailabilities/\(id)/relationships/availableTerritories" + } + + /// the id of the requested resource + public var id: String + + public var parameters: Parameters = Parameters() + + public init(id: String) { + self.id = id + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + components?.queryItems = [ + URLQueryItem(name: "limit", + value: parameters.limit.map { "\($0)" }) + ].filter { $0.value != nil } + if components?.queryItems?.isEmpty ?? false { + components?.queryItems = nil + } + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "GET" + return urlRequest + } + + /// - Returns: **200**, List of related linkages as `SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +extension V1.SubscriptionPlanAvailabilities.ById.Relationships.AvailableTerritories.GET { + public struct Parameters: Hashable { + /// maximum resources per page + public var limit: Int? + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.PATCH.f5ee85f.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.PATCH.f5ee85f.generated.swift new file mode 100644 index 00000000..27bb795d --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/Relationships/AvailableTerritories/SubscriptionPlanAvailabilitiesByIdRelationshipsAvailableTerritories.PATCH.f5ee85f.generated.swift @@ -0,0 +1,91 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities.ById.Relationships.AvailableTerritories { + public struct PATCH: Endpoint { + public typealias Parameters = SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest + public typealias Response = Void + + public var path: String { + "/v1/subscriptionPlanAvailabilities/\(id)/relationships/availableTerritories" + } + + /// the id of the requested resource + public var id: String + + /// List of related linkages + public var parameters: Parameters + + public init( + id: String, + parameters: Parameters + ) { + self.id = id + self.parameters = parameters + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "PATCH" + + var jsonEncoder: JSONEncoder { + let encoder = JSONEncoder() + return encoder + } + + urlRequest?.httpBody = try jsonEncoder.encode(parameters) + urlRequest?.setValue("application/json", forHTTPHeaderField: "Content-Type") + return urlRequest + } + + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **409**, Request entity error(s) as `ErrorResponse` + /// - Throws: **422**, Unprocessable request entity error(s) as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 409: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 422: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.GET.0a60521.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.GET.0a60521.generated.swift new file mode 100644 index 00000000..95738850 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.GET.0a60521.generated.swift @@ -0,0 +1,203 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities.ById { + public struct GET: Endpoint { + public typealias Response = SubscriptionPlanAvailabilityResponse + + public var path: String { + "/v1/subscriptionPlanAvailabilities/\(id)" + } + + /// the id of the requested resource + public var id: String + + public var parameters: Parameters = Parameters() + + public init(id: String) { + self.id = id + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + components?.queryItems = [ + URLQueryItem(name: "fields[subscriptionPlanAvailabilities]", + value: parameters.fields[.subscriptionPlanAvailabilities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "include", + value: parameters.include?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "limit[availableTerritories]", + value: parameters.limit[.availableTerritories].map { "\($0)" }) + ].filter { $0.value != nil } + if components?.queryItems?.isEmpty ?? false { + components?.queryItems = nil + } + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "GET" + return urlRequest + } + + /// - Returns: **200**, Single SubscriptionPlanAvailability as `SubscriptionPlanAvailabilityResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(SubscriptionPlanAvailabilityResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +extension V1.SubscriptionPlanAvailabilities.ById.GET { + public struct Parameters: Hashable { + public var fields: Fields = Fields() + + /// comma-separated list of relationships to include + public var include: [Include]? + + public var limit: Limit = Limit() + + public struct Fields: Hashable { + public subscript (_ relation: Relation) -> T { + get { values[relation]?.base as! T } + set { values[relation] = AnyHashable(newValue) } + } + + private var values: [AnyHashable: AnyHashable] = [:] + + public struct SubscriptionPlanAvailabilities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableInNewTerritories: Self { + .init(rawValue: "availableInNewTerritories") + } + + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public static var planType: Self { + .init(rawValue: "planType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Relation: Hashable { + /// the fields to include for returned resources of type subscriptionPlanAvailabilities + public static var subscriptionPlanAvailabilities: Relation<[SubscriptionPlanAvailabilities]?> { + .init(key: "fields[subscriptionPlanAvailabilities]") + } + + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + + internal let key: String + + public func hash(into hasher: inout Hasher) { + hasher.combine(key) + } + } + } + + public struct Include: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Limit: Hashable { + public subscript (_ relation: Relation) -> T { + get { values[relation]?.base as! T } + set { values[relation] = AnyHashable(newValue) } + } + + private var values: [AnyHashable: AnyHashable] = [:] + + public struct Relation: Hashable { + /// maximum number of related availableTerritories returned (when they are included) + public static var availableTerritories: Relation { + .init(key: "limit[availableTerritories]") + } + + internal let key: String + + public func hash(into hasher: inout Hasher) { + hasher.combine(key) + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.PATCH.0a60521.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.PATCH.0a60521.generated.swift new file mode 100644 index 00000000..5be030e5 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/ById/SubscriptionPlanAvailabilitiesById.PATCH.0a60521.generated.swift @@ -0,0 +1,95 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities.ById { + public struct PATCH: Endpoint { + public typealias Parameters = SubscriptionPlanAvailabilityUpdateRequest + public typealias Response = SubscriptionPlanAvailabilityResponse + + public var path: String { + "/v1/subscriptionPlanAvailabilities/\(id)" + } + + /// the id of the requested resource + public var id: String + + /// SubscriptionPlanAvailability representation + public var parameters: Parameters + + public init( + id: String, + parameters: Parameters + ) { + self.id = id + self.parameters = parameters + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "PATCH" + + var jsonEncoder: JSONEncoder { + let encoder = JSONEncoder() + return encoder + } + + urlRequest?.httpBody = try jsonEncoder.encode(parameters) + urlRequest?.setValue("application/json", forHTTPHeaderField: "Content-Type") + return urlRequest + } + + /// - Returns: **200**, Single SubscriptionPlanAvailability as `SubscriptionPlanAvailabilityResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **409**, Request entity error(s) as `ErrorResponse` + /// - Throws: **422**, Unprocessable request entity error(s) as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(SubscriptionPlanAvailabilityResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 409: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 422: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/SubscriptionPlanAvailabilities.POST.be2357d.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/SubscriptionPlanAvailabilities.POST.be2357d.generated.swift new file mode 100644 index 00000000..4da05f76 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPlanAvailabilities/SubscriptionPlanAvailabilities.POST.be2357d.generated.swift @@ -0,0 +1,84 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.SubscriptionPlanAvailabilities { + public struct POST: Endpoint { + public typealias Parameters = SubscriptionPlanAvailabilityCreateRequest + public typealias Response = SubscriptionPlanAvailabilityResponse + + public var path: String { + "/v1/subscriptionPlanAvailabilities" + } + + /// SubscriptionPlanAvailability representation + public var parameters: Parameters + + public init(parameters: Parameters) { + self.parameters = parameters + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "POST" + + var jsonEncoder: JSONEncoder { + let encoder = JSONEncoder() + return encoder + } + + urlRequest?.httpBody = try jsonEncoder.encode(parameters) + urlRequest?.setValue("application/json", forHTTPHeaderField: "Content-Type") + return urlRequest + } + + /// - Returns: **201**, Single SubscriptionPlanAvailability as `SubscriptionPlanAvailabilityResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **409**, Request entity error(s) as `ErrorResponse` + /// - Throws: **422**, Unprocessable request entity error(s) as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 201: + return try jsonDecoder.decode(SubscriptionPlanAvailabilityResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 409: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 422: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift index a2bb8ef6..d8e01178 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/SubscriptionPromotionalOffers/ById/SubscriptionPromotionalOffersById.GET.c143fce.generated.swift @@ -152,6 +152,10 @@ extension V1.SubscriptionPromotionalOffers.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -196,6 +200,10 @@ extension V1.SubscriptionPromotionalOffers.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/AppStoreReviewScreenshot/SubscriptionsByIdAppStoreReviewScreenshot.GET.1e85fc9.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/AppStoreReviewScreenshot/SubscriptionsByIdAppStoreReviewScreenshot.GET.1e85fc9.generated.swift index 86f70e84..43cab393 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/AppStoreReviewScreenshot/SubscriptionsByIdAppStoreReviewScreenshot.GET.1e85fc9.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/AppStoreReviewScreenshot/SubscriptionsByIdAppStoreReviewScreenshot.GET.1e85fc9.generated.swift @@ -178,6 +178,10 @@ extension V1.Subscriptions.ById.AppStoreReviewScreenshot.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Images/SubscriptionsByIdImages.GET.dc8952a.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Images/SubscriptionsByIdImages.GET.dc8952a.generated.swift index 1d3c51d7..bac14cd5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Images/SubscriptionsByIdImages.GET.dc8952a.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Images/SubscriptionsByIdImages.GET.dc8952a.generated.swift @@ -179,6 +179,10 @@ extension V1.Subscriptions.ById.Images.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/IntroductoryOffers/SubscriptionsByIdIntroductoryOffers.GET.a4dd192.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/IntroductoryOffers/SubscriptionsByIdIntroductoryOffers.GET.a4dd192.generated.swift index a6c412f3..85fdda9f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/IntroductoryOffers/SubscriptionsByIdIntroductoryOffers.GET.a4dd192.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/IntroductoryOffers/SubscriptionsByIdIntroductoryOffers.GET.a4dd192.generated.swift @@ -139,6 +139,10 @@ extension V1.Subscriptions.ById.IntroductoryOffers.GET { .init(rawValue: "subscriptionPricePoint") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var territory: Self { .init(rawValue: "territory") } @@ -219,6 +223,10 @@ extension V1.Subscriptions.ById.IntroductoryOffers.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/OfferCodes/SubscriptionsByIdOfferCodes.GET.12e3713.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/OfferCodes/SubscriptionsByIdOfferCodes.GET.12e3713.generated.swift index 29801958..7a17b95c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/OfferCodes/SubscriptionsByIdOfferCodes.GET.12e3713.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/OfferCodes/SubscriptionsByIdOfferCodes.GET.12e3713.generated.swift @@ -271,6 +271,10 @@ extension V1.Subscriptions.ById.OfferCodes.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } @@ -319,6 +323,10 @@ extension V1.Subscriptions.ById.OfferCodes.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PlanAvailabilities/SubscriptionsByIdPlanAvailabilities.GET.71007d8.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PlanAvailabilities/SubscriptionsByIdPlanAvailabilities.GET.71007d8.generated.swift new file mode 100644 index 00000000..2c078d15 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PlanAvailabilities/SubscriptionsByIdPlanAvailabilities.GET.71007d8.generated.swift @@ -0,0 +1,211 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.Subscriptions.ById.PlanAvailabilities { + public struct GET: Endpoint { + public typealias Response = SubscriptionPlanAvailabilitiesResponse + + public var path: String { + "/v1/subscriptions/\(id)/planAvailabilities" + } + + /// the id of the requested resource + public var id: String + + public var parameters: Parameters = Parameters() + + public init(id: String) { + self.id = id + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + components?.queryItems = [ + URLQueryItem(name: "fields[subscriptionPlanAvailabilities]", + value: parameters.fields[.subscriptionPlanAvailabilities]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[territories]", + value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "include", + value: parameters.include?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "limit[availableTerritories]", + value: parameters.limit[.availableTerritories].map { "\($0)" }), + URLQueryItem(name: "limit", + value: parameters.limit[].map { "\($0)" }) + ].filter { $0.value != nil } + if components?.queryItems?.isEmpty ?? false { + components?.queryItems = nil + } + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "GET" + return urlRequest + } + + /// - Returns: **200**, List of SubscriptionPlanAvailabilities as `SubscriptionPlanAvailabilitiesResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(SubscriptionPlanAvailabilitiesResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +extension V1.Subscriptions.ById.PlanAvailabilities.GET { + public struct Parameters: Hashable { + public var fields: Fields = Fields() + + /// comma-separated list of relationships to include + public var include: [Include]? + + /// maximum resources per page + public var limit: Limit = Limit() + + public struct Fields: Hashable { + public subscript (_ relation: Relation) -> T { + get { values[relation]?.base as! T } + set { values[relation] = AnyHashable(newValue) } + } + + private var values: [AnyHashable: AnyHashable] = [:] + + public struct SubscriptionPlanAvailabilities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableInNewTerritories: Self { + .init(rawValue: "availableInNewTerritories") + } + + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public static var planType: Self { + .init(rawValue: "planType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Territories: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var currency: Self { + .init(rawValue: "currency") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Relation: Hashable { + /// the fields to include for returned resources of type subscriptionPlanAvailabilities + public static var subscriptionPlanAvailabilities: Relation<[SubscriptionPlanAvailabilities]?> { + .init(key: "fields[subscriptionPlanAvailabilities]") + } + + /// the fields to include for returned resources of type territories + public static var territories: Relation<[Territories]?> { + .init(key: "fields[territories]") + } + + internal let key: String + + public func hash(into hasher: inout Hasher) { + hasher.combine(key) + } + } + } + + public struct Include: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + + public struct Limit: Hashable { + public subscript () -> Int? { + get { self[Relation(key: "limit")] } + set { self[Relation(key: "limit")] = newValue } + } + + public subscript (_ relation: Relation) -> T { + get { values[relation]?.base as! T } + set { values[relation] = AnyHashable(newValue) } + } + + private var values: [AnyHashable: AnyHashable] = [:] + + public struct Relation: Hashable { + /// maximum number of related availableTerritories returned (when they are included) + public static var availableTerritories: Relation { + .init(key: "limit[availableTerritories]") + } + + internal let key: String + + public func hash(into hasher: inout Hasher) { + hasher.combine(key) + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Prices/SubscriptionsByIdPrices.GET.e41242b.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Prices/SubscriptionsByIdPrices.GET.e41242b.generated.swift index 1267d25d..709fff6a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Prices/SubscriptionsByIdPrices.GET.e41242b.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Prices/SubscriptionsByIdPrices.GET.e41242b.generated.swift @@ -34,6 +34,8 @@ extension V1.Subscriptions.ById.Prices { value: parameters.fields[.subscriptionPrices]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[territories]", value: parameters.fields[.territories]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "filter[planType]", + value: parameters.filter[.planType]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[subscriptionPricePoint]", value: parameters.filter[.subscriptionPricePoint]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "filter[territory]", @@ -143,6 +145,10 @@ extension V1.Subscriptions.ById.Prices.GET { } public struct SubscriptionPrices: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var planType: Self { + .init(rawValue: "planType") + } + public static var preserved: Self { .init(rawValue: "preserved") } @@ -218,7 +224,32 @@ extension V1.Subscriptions.ById.Prices.GET { private var values: [AnyHashable: AnyHashable] = [:] + public struct PlanType: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var monthly: Self { + .init(rawValue: "MONTHLY") + } + + public static var upfront: Self { + .init(rawValue: "UPFRONT") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct Relation: Hashable { + /// filter by attribute 'planType' + public static var planType: Relation<[PlanType]?> { + .init(key: "filter[planType]") + } + /// filter by id(s) of related 'subscriptionPricePoint' public static var subscriptionPricePoint: Relation<[String]?> { .init(key: "filter[subscriptionPricePoint]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotedPurchase/SubscriptionsByIdPromotedPurchase.GET.96fa960.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotedPurchase/SubscriptionsByIdPromotedPurchase.GET.96fa960.generated.swift index c19be716..70a02a06 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotedPurchase/SubscriptionsByIdPromotedPurchase.GET.96fa960.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotedPurchase/SubscriptionsByIdPromotedPurchase.GET.96fa960.generated.swift @@ -240,6 +240,10 @@ extension V1.Subscriptions.ById.PromotedPurchase.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotionalOffers/SubscriptionsByIdPromotionalOffers.GET.0f955f5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotionalOffers/SubscriptionsByIdPromotionalOffers.GET.0f955f5.generated.swift index 8b908462..855ff26f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotionalOffers/SubscriptionsByIdPromotionalOffers.GET.0f955f5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/PromotionalOffers/SubscriptionsByIdPromotionalOffers.GET.0f955f5.generated.swift @@ -159,6 +159,10 @@ extension V1.Subscriptions.ById.PromotionalOffers.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -203,6 +207,10 @@ extension V1.Subscriptions.ById.PromotionalOffers.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/PlanAvailabilities/SubscriptionsByIdRelationshipsPlanAvailabilities.GET.9c93536.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/PlanAvailabilities/SubscriptionsByIdRelationshipsPlanAvailabilities.GET.9c93536.generated.swift new file mode 100644 index 00000000..fe571200 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/PlanAvailabilities/SubscriptionsByIdRelationshipsPlanAvailabilities.GET.9c93536.generated.swift @@ -0,0 +1,88 @@ +// autogenerated + +// swiftlint:disable all +import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif + +extension V1.Subscriptions.ById.Relationships.PlanAvailabilities { + public struct GET: Endpoint { + public typealias Response = SubscriptionPlanAvailabilitiesLinkagesResponse + + public var path: String { + "/v1/subscriptions/\(id)/relationships/planAvailabilities" + } + + /// the id of the requested resource + public var id: String + + public var parameters: Parameters = Parameters() + + public init(id: String) { + self.id = id + } + + public func request(with baseURL: URL) throws -> URLRequest? { + var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: true) + components?.path = path + + components?.queryItems = [ + URLQueryItem(name: "limit", + value: parameters.limit.map { "\($0)" }) + ].filter { $0.value != nil } + if components?.queryItems?.isEmpty ?? false { + components?.queryItems = nil + } + + var urlRequest = components?.url.map { URLRequest(url: $0) } + urlRequest?.httpMethod = "GET" + return urlRequest + } + + /// - Returns: **200**, List of related linkages as `SubscriptionPlanAvailabilitiesLinkagesResponse` + /// - Throws: **400**, Parameter error(s) as `ErrorResponse` + /// - Throws: **401**, Unauthorized error(s) as `ErrorResponse` + /// - Throws: **403**, Forbidden error as `ErrorResponse` + /// - Throws: **404**, Not found error as `ErrorResponse` + /// - Throws: **429**, Rate limit exceeded error as `ErrorResponse` + public static func response(from data: Data, urlResponse: HTTPURLResponse) throws -> Response { + var jsonDecoder: JSONDecoder { + let decoder = JSONDecoder() + return decoder + } + + switch urlResponse.statusCode { + case 200: + return try jsonDecoder.decode(SubscriptionPlanAvailabilitiesLinkagesResponse.self, from: data) + + case 400: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 401: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 403: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 404: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + case 429: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + + default: + throw try jsonDecoder.decode(ErrorResponse.self, from: data) + } + } + } +} + +extension V1.Subscriptions.ById.Relationships.PlanAvailabilities.GET { + public struct Parameters: Hashable { + /// maximum resources per page + public var limit: Int? + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/SubscriptionAvailability/SubscriptionsByIdRelationshipsSubscriptionAvailability.GET.40de5dc.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/SubscriptionAvailability/SubscriptionsByIdRelationshipsSubscriptionAvailability.GET.40de5dc.generated.swift index 0f1147b3..d82c6eac 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/SubscriptionAvailability/SubscriptionsByIdRelationshipsSubscriptionAvailability.GET.40de5dc.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/Relationships/SubscriptionAvailability/SubscriptionsByIdRelationshipsSubscriptionAvailability.GET.40de5dc.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.Subscriptions.ById.Relationships.SubscriptionAvailability { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = SubscriptionSubscriptionAvailabilityLinkageResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionAvailability/SubscriptionsByIdSubscriptionAvailability.GET.7ff32af.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionAvailability/SubscriptionsByIdSubscriptionAvailability.GET.7ff32af.generated.swift index 8646c250..3e339fca 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionAvailability/SubscriptionsByIdSubscriptionAvailability.GET.7ff32af.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionAvailability/SubscriptionsByIdSubscriptionAvailability.GET.7ff32af.generated.swift @@ -7,6 +7,7 @@ import FoundationNetworking #endif extension V1.Subscriptions.ById.SubscriptionAvailability { + @available(*, deprecated) public struct GET: Endpoint { public typealias Response = SubscriptionAvailabilityResponse diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionLocalizations/SubscriptionsByIdSubscriptionLocalizations.GET.eef6109.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionLocalizations/SubscriptionsByIdSubscriptionLocalizations.GET.eef6109.generated.swift index d4f55a18..e3220136 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionLocalizations/SubscriptionsByIdSubscriptionLocalizations.GET.eef6109.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionLocalizations/SubscriptionsByIdSubscriptionLocalizations.GET.eef6109.generated.swift @@ -167,6 +167,10 @@ extension V1.Subscriptions.ById.SubscriptionLocalizations.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift index acc80355..fbbb8647 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/SubscriptionsById.GET.fc34fc5.generated.swift @@ -44,6 +44,8 @@ extension V1.Subscriptions.ById { value: parameters.fields[.subscriptionLocalizations]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionOfferCodes]", value: parameters.fields[.subscriptionOfferCodes]?.map { "\($0)" }.joined(separator: ",")), + URLQueryItem(name: "fields[subscriptionPlanAvailabilities]", + value: parameters.fields[.subscriptionPlanAvailabilities]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionPrices]", value: parameters.fields[.subscriptionPrices]?.map { "\($0)" }.joined(separator: ",")), URLQueryItem(name: "fields[subscriptionPromotionalOffers]", @@ -60,6 +62,8 @@ extension V1.Subscriptions.ById { value: parameters.limit[.introductoryOffers].map { "\($0)" }), URLQueryItem(name: "limit[offerCodes]", value: parameters.limit[.offerCodes].map { "\($0)" }), + URLQueryItem(name: "limit[planAvailabilities]", + value: parameters.limit[.planAvailabilities].map { "\($0)" }), URLQueryItem(name: "limit[prices]", value: parameters.limit[.prices].map { "\($0)" }), URLQueryItem(name: "limit[promotionalOffers]", @@ -330,6 +334,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "subscriptionPricePoint") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var territory: Self { .init(rawValue: "territory") } @@ -434,6 +442,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public static var totalNumberOfCodes: Self { .init(rawValue: "totalNumberOfCodes") } @@ -449,7 +461,35 @@ extension V1.Subscriptions.ById.GET { } } + public struct SubscriptionPlanAvailabilities: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var availableInNewTerritories: Self { + .init(rawValue: "availableInNewTerritories") + } + + public static var availableTerritories: Self { + .init(rawValue: "availableTerritories") + } + + public static var planType: Self { + .init(rawValue: "planType") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } + } + public struct SubscriptionPrices: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var planType: Self { + .init(rawValue: "planType") + } + public static var preserved: Self { .init(rawValue: "preserved") } @@ -506,6 +546,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "subscription") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -550,6 +594,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } @@ -658,6 +706,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "startDate") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } @@ -710,6 +762,11 @@ extension V1.Subscriptions.ById.GET { .init(key: "fields[subscriptionOfferCodes]") } + /// the fields to include for returned resources of type subscriptionPlanAvailabilities + public static var subscriptionPlanAvailabilities: Relation<[SubscriptionPlanAvailabilities]?> { + .init(key: "fields[subscriptionPlanAvailabilities]") + } + /// the fields to include for returned resources of type subscriptionPrices public static var subscriptionPrices: Relation<[SubscriptionPrices]?> { .init(key: "fields[subscriptionPrices]") @@ -759,6 +816,10 @@ extension V1.Subscriptions.ById.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var prices: Self { .init(rawValue: "prices") } @@ -818,6 +879,11 @@ extension V1.Subscriptions.ById.GET { .init(key: "limit[offerCodes]") } + /// maximum number of related planAvailabilities returned (when they are included) + public static var planAvailabilities: Relation { + .init(key: "limit[planAvailabilities]") + } + /// maximum number of related prices returned (when they are included) public static var prices: Relation { .init(key: "limit[prices]") diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/WinBackOffers/SubscriptionsByIdWinBackOffers.GET.befc1c2.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/WinBackOffers/SubscriptionsByIdWinBackOffers.GET.befc1c2.generated.swift index 441e2e9c..12c12f57 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/WinBackOffers/SubscriptionsByIdWinBackOffers.GET.befc1c2.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/Subscriptions/ById/WinBackOffers/SubscriptionsByIdWinBackOffers.GET.befc1c2.generated.swift @@ -177,6 +177,10 @@ extension V1.Subscriptions.ById.WinBackOffers.GET { .init(rawValue: "startDate") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/WinBackOffers/ById/WinBackOffersById.GET.0e8f1fd.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/WinBackOffers/ById/WinBackOffersById.GET.0e8f1fd.generated.swift index 48cb8283..22427e34 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/WinBackOffers/ById/WinBackOffersById.GET.0e8f1fd.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V1/WinBackOffers/ById/WinBackOffersById.GET.0e8f1fd.generated.swift @@ -174,6 +174,10 @@ extension V1.WinBackOffers.ById.GET { .init(rawValue: "startDate") } + public static var targetSubscriptionPlanType: Self { + .init(rawValue: "targetSubscriptionPlanType") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/InAppPurchases/ById/PromotedPurchase/InAppPurchasesByIdPromotedPurchase.GET.12375e3.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/InAppPurchases/ById/PromotedPurchase/InAppPurchasesByIdPromotedPurchase.GET.12375e3.generated.swift index 439baada..45cf6efc 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/InAppPurchases/ById/PromotedPurchase/InAppPurchasesByIdPromotedPurchase.GET.12375e3.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Endpoints/V2/InAppPurchases/ById/PromotedPurchase/InAppPurchasesByIdPromotedPurchase.GET.12375e3.generated.swift @@ -240,6 +240,10 @@ extension V2.InAppPurchases.ById.PromotedPurchase.GET { .init(rawValue: "offerCodes") } + public static var planAvailabilities: Self { + .init(rawValue: "planAvailabilities") + } + public static var pricePoints: Self { .init(rawValue: "pricePoints") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppCustomProductPageLocalization.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppCustomProductPageLocalization.generated.swift index b124527f..9a80229e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppCustomProductPageLocalization.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppCustomProductPageLocalization.generated.swift @@ -62,8 +62,10 @@ public struct AppCustomProductPageLocalization: Hashable, Codable, Sendable { public struct Relationships: Hashable, Codable, Sendable { public var appCustomProductPageVersion: AppCustomProductPageVersion? + @available(*, deprecated) public var appPreviewSets: AppPreviewSets? + @available(*, deprecated) public var appScreenshotSets: AppScreenshotSets? public var searchKeywords: SearchKeywords? diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppEventLocalization.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppEventLocalization.generated.swift index 2d6955a4..f409808e 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppEventLocalization.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppEventLocalization.generated.swift @@ -72,8 +72,10 @@ public struct AppEventLocalization: Hashable, Codable, Sendable { public struct Relationships: Hashable, Codable, Sendable { public var appEvent: AppEvent? + @available(*, deprecated) public var appEventScreenshots: AppEventScreenshots? + @available(*, deprecated) public var appEventVideoClips: AppEventVideoClips? public init( diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppInfo.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppInfo.generated.swift index 20588ba9..6a23ac66 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppInfo.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppInfo.generated.swift @@ -56,8 +56,6 @@ public struct AppInfo: Hashable, Codable, Sendable { @available(*, deprecated) public var franceAgeRating: FranceAgeRating? - public var kidsAgeBand: KidsAgeBand? - @available(*, deprecated) public var koreaAgeRating: KoreaAgeRating? @@ -70,7 +68,6 @@ public struct AppInfo: Hashable, Codable, Sendable { brazilAgeRating: BrazilAgeRating? = nil, brazilAgeRatingV2: BrazilAgeRatingV2? = nil, franceAgeRating: FranceAgeRating? = nil, - kidsAgeBand: KidsAgeBand? = nil, koreaAgeRating: KoreaAgeRating? = nil, state: State? = nil ) { @@ -80,7 +77,6 @@ public struct AppInfo: Hashable, Codable, Sendable { self.brazilAgeRating = brazilAgeRating self.brazilAgeRatingV2 = brazilAgeRatingV2 self.franceAgeRating = franceAgeRating - self.kidsAgeBand = kidsAgeBand self.koreaAgeRating = koreaAgeRating self.state = state } @@ -92,7 +88,6 @@ public struct AppInfo: Hashable, Codable, Sendable { case brazilAgeRating case brazilAgeRatingV2 case franceAgeRating - case kidsAgeBand case koreaAgeRating case state } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreAgeRating.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreAgeRating.generated.swift index dbddd7df..9044f538 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreAgeRating.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreAgeRating.generated.swift @@ -100,6 +100,10 @@ public struct AppStoreAgeRating: Hashable, Codable, RawRepresentable, CustomStri .init(rawValue: "UNRATED") } + public static var zeroZero: Self { + .init(rawValue: "ZERO_ZERO") + } + public var description: String { rawValue } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionExperimentTreatmentLocalization.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionExperimentTreatmentLocalization.generated.swift index 9c414755..2d70f954 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionExperimentTreatmentLocalization.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionExperimentTreatmentLocalization.generated.swift @@ -53,8 +53,10 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Hashable, Codable, } public struct Relationships: Hashable, Codable, Sendable { + @available(*, deprecated) public var appPreviewSets: AppPreviewSets? + @available(*, deprecated) public var appScreenshotSets: AppScreenshotSets? public var appStoreVersionExperimentTreatment: AppStoreVersionExperimentTreatment? diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionLocalization.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionLocalization.generated.swift index e1b34548..01a11970 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionLocalization.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/AppStoreVersionLocalization.generated.swift @@ -85,8 +85,10 @@ public struct AppStoreVersionLocalization: Hashable, Codable, Sendable { } public struct Relationships: Hashable, Codable, Sendable { + @available(*, deprecated) public var appPreviewSets: AppPreviewSets? + @available(*, deprecated) public var appScreenshotSets: AppScreenshotSets? public var appStoreVersion: AppStoreVersion? diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/BackgroundAssetVersion.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/BackgroundAssetVersion.generated.swift index a683104b..925e1957 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/BackgroundAssetVersion.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/BackgroundAssetVersion.generated.swift @@ -43,6 +43,8 @@ public struct BackgroundAssetVersion: Hashable, Codable, Sendable { public struct Attributes: Hashable, Codable, Sendable { public var createdDate: String? + public var locale: String? + public var platforms: [Platform]? public var state: BackgroundAssetVersionState? @@ -53,12 +55,14 @@ public struct BackgroundAssetVersion: Hashable, Codable, Sendable { public init( createdDate: String? = nil, + locale: String? = nil, platforms: [Platform]? = nil, state: BackgroundAssetVersionState? = nil, stateDetails: StateDetails? = nil, version: String? = nil ) { self.createdDate = createdDate + self.locale = locale self.platforms = platforms self.state = state self.stateDetails = stateDetails @@ -67,6 +71,7 @@ public struct BackgroundAssetVersion: Hashable, Codable, Sendable { private enum CodingKeys: String, CodingKey { case createdDate + case locale case platforms case state case stateDetails diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/MetricCategory.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/MetricCategory.generated.swift index 99e707bd..1cbdd1eb 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/MetricCategory.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/MetricCategory.generated.swift @@ -28,6 +28,10 @@ public struct MetricCategory: Hashable, Codable, RawRepresentable, CustomStringC .init(rawValue: "MEMORY") } + public static var storage: Self { + .init(rawValue: "STORAGE") + } + public static var termination: Self { .init(rawValue: "TERMINATION") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/PerfPowerMetric.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/PerfPowerMetric.generated.swift index e2cefbf1..15f22242 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/PerfPowerMetric.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/PerfPowerMetric.generated.swift @@ -83,6 +83,10 @@ public struct PerfPowerMetric: Hashable, Codable, Sendable { .init(rawValue: "MEMORY") } + public static var storage: Self { + .init(rawValue: "STORAGE") + } + public static var termination: Self { .init(rawValue: "TERMINATION") } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionIntroductoryOfferCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionIntroductoryOfferCreateRequest.generated.swift index 641f26ab..612d27d4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionIntroductoryOfferCreateRequest.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionIntroductoryOfferCreateRequest.generated.swift @@ -59,18 +59,22 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Hashable, Codable, Sen public var startDate: String? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration, endDate: String? = nil, numberOfPeriods: Int, offerMode: SubscriptionOfferMode, - startDate: String? = nil + startDate: String? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods self.offerMode = offerMode self.startDate = startDate + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -79,6 +83,7 @@ public struct SubscriptionIntroductoryOfferCreateRequest: Hashable, Codable, Sen case numberOfPeriods case offerMode case startDate + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionOfferCodeCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionOfferCodeCreateRequest.generated.swift index de48c70e..e97e19e4 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionOfferCodeCreateRequest.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionOfferCodeCreateRequest.generated.swift @@ -63,6 +63,8 @@ public struct SubscriptionOfferCodeCreateRequest: Hashable, Codable, Sendable { public var offerMode: SubscriptionOfferMode + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( autoRenewEnabled: Bool? = nil, customerEligibilities: [SubscriptionCustomerEligibility], @@ -70,7 +72,8 @@ public struct SubscriptionOfferCodeCreateRequest: Hashable, Codable, Sendable { name: String, numberOfPeriods: Int, offerEligibility: SubscriptionOfferEligibility, - offerMode: SubscriptionOfferMode + offerMode: SubscriptionOfferMode, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.autoRenewEnabled = autoRenewEnabled self.customerEligibilities = customerEligibilities @@ -79,6 +82,7 @@ public struct SubscriptionOfferCodeCreateRequest: Hashable, Codable, Sendable { self.numberOfPeriods = numberOfPeriods self.offerEligibility = offerEligibility self.offerMode = offerMode + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -89,6 +93,7 @@ public struct SubscriptionOfferCodeCreateRequest: Hashable, Codable, Sendable { case numberOfPeriods case offerEligibility case offerMode + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest.generated.swift new file mode 100644 index 00000000..5fe6d596 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest.generated.swift @@ -0,0 +1,41 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest: Hashable, Codable, Sendable { + public var data: [Data] + + public init(data: [Data]) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityCreateRequest.generated.swift new file mode 100644 index 00000000..5fd557ed --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityCreateRequest.generated.swift @@ -0,0 +1,154 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilityCreateRequest: Hashable, Codable, Sendable { + public var data: Data + + public init(data: Data) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var type: `Type` + + public var attributes: Attributes + + public var relationships: Relationships + + public init( + type: `Type`, + attributes: Attributes, + relationships: Relationships + ) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + private enum CodingKeys: String, CodingKey { + case type + case attributes + case relationships + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptionPlanAvailabilities + } + + public struct Attributes: Hashable, Codable, Sendable { + public var availableInNewTerritories: Bool? + + public var planType: SubscriptionPlanType + + public init( + availableInNewTerritories: Bool? = nil, + planType: SubscriptionPlanType + ) { + self.availableInNewTerritories = availableInNewTerritories + self.planType = planType + } + + private enum CodingKeys: String, CodingKey { + case availableInNewTerritories + case planType + } + } + + public struct Relationships: Hashable, Codable, Sendable { + public var availableTerritories: AvailableTerritories + + public var subscription: Subscription + + public init( + availableTerritories: AvailableTerritories, + subscription: Subscription + ) { + self.availableTerritories = availableTerritories + self.subscription = subscription + } + + private enum CodingKeys: String, CodingKey { + case availableTerritories + case subscription + } + + public struct AvailableTerritories: Hashable, Codable, Sendable { + public var data: [Data] + + public init(data: [Data]) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } + } + + public struct Subscription: Hashable, Codable, Sendable { + public var data: Data + + public init(data: Data) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptions + } + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityUpdateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityUpdateRequest.generated.swift new file mode 100644 index 00000000..b870bc93 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPlanAvailabilityUpdateRequest.generated.swift @@ -0,0 +1,110 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilityUpdateRequest: Hashable, Codable, Sendable { + public var data: Data + + public init(data: Data) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public var attributes: Attributes? + + public var relationships: Relationships? + + public init( + id: String, + type: `Type`, + attributes: Attributes? = nil, + relationships: Relationships? = nil + ) { + self.id = id + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + private enum CodingKeys: String, CodingKey { + case id + case type + case attributes + case relationships + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptionPlanAvailabilities + } + + public struct Attributes: Hashable, Codable, Sendable { + public var availableInNewTerritories: Bool? + + public init(availableInNewTerritories: Bool? = nil) { + self.availableInNewTerritories = availableInNewTerritories + } + + private enum CodingKeys: String, CodingKey { + case availableInNewTerritories + } + } + + public struct Relationships: Hashable, Codable, Sendable { + public var availableTerritories: AvailableTerritories? + + public init(availableTerritories: AvailableTerritories? = nil) { + self.availableTerritories = availableTerritories + } + + private enum CodingKeys: String, CodingKey { + case availableTerritories + } + + public struct AvailableTerritories: Hashable, Codable, Sendable { + public var data: [Data]? + + public init(data: [Data]? = nil) { + self.data = data + } + + private enum CodingKeys: String, CodingKey { + case data + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPriceCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPriceCreateRequest.generated.swift index d32de84d..47a4be80 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPriceCreateRequest.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPriceCreateRequest.generated.swift @@ -42,19 +42,24 @@ public struct SubscriptionPriceCreateRequest: Hashable, Codable, Sendable { } public struct Attributes: Hashable, Codable, Sendable { + public var planType: SubscriptionPlanType? + public var preserveCurrentPrice: Bool? public var startDate: String? public init( + planType: SubscriptionPlanType? = nil, preserveCurrentPrice: Bool? = nil, startDate: String? = nil ) { + self.planType = planType self.preserveCurrentPrice = preserveCurrentPrice self.startDate = startDate } private enum CodingKeys: String, CodingKey { + case planType case preserveCurrentPrice case startDate } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPromotionalOfferCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPromotionalOfferCreateRequest.generated.swift index acebfb12..d828a0af 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPromotionalOfferCreateRequest.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/SubscriptionPromotionalOfferCreateRequest.generated.swift @@ -59,18 +59,22 @@ public struct SubscriptionPromotionalOfferCreateRequest: Hashable, Codable, Send public var offerMode: SubscriptionOfferMode + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration, name: String, numberOfPeriods: Int, offerCode: String, - offerMode: SubscriptionOfferMode + offerMode: SubscriptionOfferMode, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods self.offerCode = offerCode self.offerMode = offerMode + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -79,6 +83,7 @@ public struct SubscriptionPromotionalOfferCreateRequest: Hashable, Codable, Send case numberOfPeriods case offerCode case offerMode + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/WinBackOfferCreateRequest.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/WinBackOfferCreateRequest.generated.swift index ec72f505..df888e8c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/WinBackOfferCreateRequest.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Requests/WinBackOfferCreateRequest.generated.swift @@ -73,6 +73,8 @@ public struct WinBackOfferCreateRequest: Hashable, Codable, Sendable { public var startDate: String + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( customerEligibilityPaidSubscriptionDurationInMonths: Int, customerEligibilityTimeSinceLastSubscribedInMonths: IntegerRange, @@ -85,7 +87,8 @@ public struct WinBackOfferCreateRequest: Hashable, Codable, Sendable { priority: Priority, promotionIntent: PromotionIntent? = nil, referenceName: String, - startDate: String + startDate: String, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.customerEligibilityPaidSubscriptionDurationInMonths = customerEligibilityPaidSubscriptionDurationInMonths self.customerEligibilityTimeSinceLastSubscribedInMonths = customerEligibilityTimeSinceLastSubscribedInMonths @@ -99,6 +102,7 @@ public struct WinBackOfferCreateRequest: Hashable, Codable, Sendable { self.promotionIntent = promotionIntent self.referenceName = referenceName self.startDate = startDate + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -114,6 +118,7 @@ public struct WinBackOfferCreateRequest: Hashable, Codable, Sendable { case promotionIntent case referenceName case startDate + case targetSubscriptionPlanType } public struct Priority: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesLinkagesResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesLinkagesResponse.generated.swift new file mode 100644 index 00000000..a73c1208 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesLinkagesResponse.generated.swift @@ -0,0 +1,53 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilitiesLinkagesResponse: Hashable, Codable, Sendable { + public var data: [Data] + + public var links: PagedDocumentLinks + + public var meta: PagingInformation? + + public init( + data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil + ) { + self.data = data + self.links = links + self.meta = meta + } + + private enum CodingKeys: String, CodingKey { + case data + case links + case meta + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptionPlanAvailabilities + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesResponse.generated.swift new file mode 100644 index 00000000..02dce322 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilitiesResponse.generated.swift @@ -0,0 +1,35 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilitiesResponse: Hashable, Codable, Sendable { + public var data: [SubscriptionPlanAvailability] + + public var included: [Territory]? + + public var links: PagedDocumentLinks + + public var meta: PagingInformation? + + public init( + data: [SubscriptionPlanAvailability], + included: [Territory]? = nil, + links: PagedDocumentLinks, + meta: PagingInformation? = nil + ) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + private enum CodingKeys: String, CodingKey { + case data + case included + case links + case meta + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse.generated.swift new file mode 100644 index 00000000..d9673102 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse.generated.swift @@ -0,0 +1,53 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse: Hashable, Codable, Sendable { + public var data: [Data] + + public var links: PagedDocumentLinks + + public var meta: PagingInformation? + + public init( + data: [Data], + links: PagedDocumentLinks, + meta: PagingInformation? = nil + ) { + self.data = data + self.links = links + self.meta = meta + } + + private enum CodingKeys: String, CodingKey { + case data + case links + case meta + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityResponse.generated.swift new file mode 100644 index 00000000..aecfaddf --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionPlanAvailabilityResponse.generated.swift @@ -0,0 +1,30 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailabilityResponse: Hashable, Codable, Sendable { + public var data: SubscriptionPlanAvailability + + public var included: [Territory]? + + public var links: DocumentLinks + + public init( + data: SubscriptionPlanAvailability, + included: [Territory]? = nil, + links: DocumentLinks + ) { + self.data = data + self.included = included + self.links = links + } + + private enum CodingKeys: String, CodingKey { + case data + case included + case links + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionResponse.generated.swift index 44dcacc8..abc79d27 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionResponse.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionResponse.generated.swift @@ -35,6 +35,7 @@ public struct SubscriptionResponse: Hashable, Codable, Sendable { case subscriptionIntroductoryOffer(SubscriptionIntroductoryOffer) case subscriptionLocalization(SubscriptionLocalization) case subscriptionOfferCode(SubscriptionOfferCode) + case subscriptionPlanAvailability(SubscriptionPlanAvailability) case subscriptionPrice(SubscriptionPrice) case subscriptionPromotionalOffer(SubscriptionPromotionalOffer) case winBackOffer(WinBackOffer) @@ -82,6 +83,11 @@ public struct SubscriptionResponse: Hashable, Codable, Sendable { } catch { lastError = error } + do { + return .subscriptionPlanAvailability(try SubscriptionPlanAvailability(from: decoder)) + } catch { + lastError = error + } do { return .subscriptionPrice(try SubscriptionPrice(from: decoder)) } catch { @@ -127,6 +133,9 @@ public struct SubscriptionResponse: Hashable, Codable, Sendable { case .subscriptionOfferCode(let value): try value.encode(to: encoder) + case .subscriptionPlanAvailability(let value): + try value.encode(to: encoder) + case .subscriptionPrice(let value): try value.encode(to: encoder) diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionsResponse.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionsResponse.generated.swift index 2fb2396e..633b63c6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionsResponse.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Responses/SubscriptionsResponse.generated.swift @@ -40,6 +40,7 @@ public struct SubscriptionsResponse: Hashable, Codable, Sendable { case subscriptionIntroductoryOffer(SubscriptionIntroductoryOffer) case subscriptionLocalization(SubscriptionLocalization) case subscriptionOfferCode(SubscriptionOfferCode) + case subscriptionPlanAvailability(SubscriptionPlanAvailability) case subscriptionPrice(SubscriptionPrice) case subscriptionPromotionalOffer(SubscriptionPromotionalOffer) case winBackOffer(WinBackOffer) @@ -87,6 +88,11 @@ public struct SubscriptionsResponse: Hashable, Codable, Sendable { } catch { lastError = error } + do { + return .subscriptionPlanAvailability(try SubscriptionPlanAvailability(from: decoder)) + } catch { + lastError = error + } do { return .subscriptionPrice(try SubscriptionPrice(from: decoder)) } catch { @@ -132,6 +138,9 @@ public struct SubscriptionsResponse: Hashable, Codable, Sendable { case .subscriptionOfferCode(let value): try value.encode(to: encoder) + case .subscriptionPlanAvailability(let value): + try value.encode(to: encoder) + case .subscriptionPrice(let value): try value.encode(to: encoder) diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/Subscription.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/Subscription.generated.swift index 333c0f8e..5a4ec8d6 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/Subscription.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/Subscription.generated.swift @@ -183,6 +183,8 @@ public struct Subscription: Hashable, Codable, Sendable { public var offerCodes: OfferCodes? + public var planAvailabilities: PlanAvailabilities? + public var pricePoints: PricePoints? public var prices: Prices? @@ -191,6 +193,7 @@ public struct Subscription: Hashable, Codable, Sendable { public var promotionalOffers: PromotionalOffers? + @available(*, deprecated) public var subscriptionAvailability: SubscriptionAvailability? public var subscriptionLocalizations: SubscriptionLocalizations? @@ -203,6 +206,7 @@ public struct Subscription: Hashable, Codable, Sendable { images: Images? = nil, introductoryOffers: IntroductoryOffers? = nil, offerCodes: OfferCodes? = nil, + planAvailabilities: PlanAvailabilities? = nil, pricePoints: PricePoints? = nil, prices: Prices? = nil, promotedPurchase: PromotedPurchase? = nil, @@ -216,6 +220,7 @@ public struct Subscription: Hashable, Codable, Sendable { self.images = images self.introductoryOffers = introductoryOffers self.offerCodes = offerCodes + self.planAvailabilities = planAvailabilities self.pricePoints = pricePoints self.prices = prices self.promotedPurchase = promotedPurchase @@ -231,6 +236,7 @@ public struct Subscription: Hashable, Codable, Sendable { case images case introductoryOffers case offerCodes + case planAvailabilities case pricePoints case prices case promotedPurchase @@ -458,6 +464,53 @@ public struct Subscription: Hashable, Codable, Sendable { } } + public struct PlanAvailabilities: Hashable, Codable, Sendable { + public var data: [Data]? + + public var links: RelationshipLinks? + + public var meta: PagingInformation? + + public init( + data: [Data]? = nil, + links: RelationshipLinks? = nil, + meta: PagingInformation? = nil + ) { + self.data = data + self.links = links + self.meta = meta + } + + private enum CodingKeys: String, CodingKey { + case data + case links + case meta + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptionPlanAvailabilities + } + } + } + public struct PricePoints: Hashable, Codable, Sendable { public var links: RelationshipLinks? diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOffer.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOffer.generated.swift index b623914a..b5d0096f 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOffer.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOffer.generated.swift @@ -51,18 +51,22 @@ public struct SubscriptionIntroductoryOffer: Hashable, Codable, Sendable { public var startDate: String? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration? = nil, endDate: String? = nil, numberOfPeriods: Int? = nil, offerMode: SubscriptionOfferMode? = nil, - startDate: String? = nil + startDate: String? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods self.offerMode = offerMode self.startDate = startDate + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -71,6 +75,7 @@ public struct SubscriptionIntroductoryOffer: Hashable, Codable, Sendable { case numberOfPeriods case offerMode case startDate + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOfferInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOfferInlineCreate.generated.swift index 8bd9bed8..0f51618c 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOfferInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionIntroductoryOfferInlineCreate.generated.swift @@ -46,18 +46,22 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Hashable, Codable, Send public var startDate: String? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration, endDate: String? = nil, numberOfPeriods: Int, offerMode: SubscriptionOfferMode, - startDate: String? = nil + startDate: String? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.endDate = endDate self.numberOfPeriods = numberOfPeriods self.offerMode = offerMode self.startDate = startDate + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -66,6 +70,7 @@ public struct SubscriptionIntroductoryOfferInlineCreate: Hashable, Codable, Send case numberOfPeriods case offerMode case startDate + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionOfferCode.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionOfferCode.generated.swift index 37cd2793..41e3e6fe 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionOfferCode.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionOfferCode.generated.swift @@ -61,6 +61,8 @@ public struct SubscriptionOfferCode: Hashable, Codable, Sendable { public var sandboxCodeCount: Int? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public var totalNumberOfCodes: Int? public init( @@ -74,6 +76,7 @@ public struct SubscriptionOfferCode: Hashable, Codable, Sendable { offerMode: SubscriptionOfferMode? = nil, productionCodeCount: Int? = nil, sandboxCodeCount: Int? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil, totalNumberOfCodes: Int? = nil ) { self.active = active @@ -86,6 +89,7 @@ public struct SubscriptionOfferCode: Hashable, Codable, Sendable { self.offerMode = offerMode self.productionCodeCount = productionCodeCount self.sandboxCodeCount = sandboxCodeCount + self.targetSubscriptionPlanType = targetSubscriptionPlanType self.totalNumberOfCodes = totalNumberOfCodes } @@ -100,6 +104,7 @@ public struct SubscriptionOfferCode: Hashable, Codable, Sendable { case offerMode case productionCodeCount case sandboxCodeCount + case targetSubscriptionPlanType case totalNumberOfCodes } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanAvailability.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanAvailability.generated.swift new file mode 100644 index 00000000..94d98dc5 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanAvailability.generated.swift @@ -0,0 +1,122 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanAvailability: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public var attributes: Attributes? + + public var relationships: Relationships? + + public var links: ResourceLinks? + + public init( + id: String, + type: `Type`, + attributes: Attributes? = nil, + relationships: Relationships? = nil, + links: ResourceLinks? = nil + ) { + self.id = id + self.type = type + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + private enum CodingKeys: String, CodingKey { + case id + case type + case attributes + case relationships + case links + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case subscriptionPlanAvailabilities + } + + public struct Attributes: Hashable, Codable, Sendable { + public var availableInNewTerritories: Bool? + + public var planType: SubscriptionPlanType? + + public init( + availableInNewTerritories: Bool? = nil, + planType: SubscriptionPlanType? = nil + ) { + self.availableInNewTerritories = availableInNewTerritories + self.planType = planType + } + + private enum CodingKeys: String, CodingKey { + case availableInNewTerritories + case planType + } + } + + public struct Relationships: Hashable, Codable, Sendable { + public var availableTerritories: AvailableTerritories? + + public init(availableTerritories: AvailableTerritories? = nil) { + self.availableTerritories = availableTerritories + } + + private enum CodingKeys: String, CodingKey { + case availableTerritories + } + + public struct AvailableTerritories: Hashable, Codable, Sendable { + public var data: [Data]? + + public var links: RelationshipLinks? + + public var meta: PagingInformation? + + public init( + data: [Data]? = nil, + links: RelationshipLinks? = nil, + meta: PagingInformation? = nil + ) { + self.data = data + self.links = links + self.meta = meta + } + + private enum CodingKeys: String, CodingKey { + case data + case links + case meta + } + + public struct Data: Hashable, Codable, Sendable { + public var id: String + + public var type: `Type` + + public init( + id: String, + type: `Type` + ) { + self.id = id + self.type = type + } + + private enum CodingKeys: String, CodingKey { + case id + case type + } + + public enum `Type`: String, Hashable, Codable, Sendable { + case territories + } + } + } + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanType.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanType.generated.swift new file mode 100644 index 00000000..afe7c1f0 --- /dev/null +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPlanType.generated.swift @@ -0,0 +1,26 @@ +// autogenerated + +// swiftlint:disable all +import Foundation + +public struct SubscriptionPlanType: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable { + public static var monthly: Self { + .init(rawValue: "MONTHLY") + } + + public static var upfront: Self { + .init(rawValue: "UPFRONT") + } + + public var description: String { + rawValue + } + + public var rawValue: String + + public init(rawValue: String) { + self.rawValue = rawValue + } +} + +// swiftlint:enable all diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPrice.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPrice.generated.swift index 5d86ff60..52679017 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPrice.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPrice.generated.swift @@ -41,19 +41,24 @@ public struct SubscriptionPrice: Hashable, Codable, Sendable { } public struct Attributes: Hashable, Codable, Sendable { + public var planType: SubscriptionPlanType? + public var preserved: Bool? public var startDate: String? public init( + planType: SubscriptionPlanType? = nil, preserved: Bool? = nil, startDate: String? = nil ) { + self.planType = planType self.preserved = preserved self.startDate = startDate } private enum CodingKeys: String, CodingKey { + case planType case preserved case startDate } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPriceInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPriceInlineCreate.generated.swift index 3ec50c74..a510be5a 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPriceInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPriceInlineCreate.generated.swift @@ -36,19 +36,24 @@ public struct SubscriptionPriceInlineCreate: Hashable, Codable, Sendable { } public struct Attributes: Hashable, Codable, Sendable { + public var planType: SubscriptionPlanType? + public var preserveCurrentPrice: Bool? public var startDate: String? public init( + planType: SubscriptionPlanType? = nil, preserveCurrentPrice: Bool? = nil, startDate: String? = nil ) { + self.planType = planType self.preserveCurrentPrice = preserveCurrentPrice self.startDate = startDate } private enum CodingKeys: String, CodingKey { + case planType case preserveCurrentPrice case startDate } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOffer.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOffer.generated.swift index 89d9233b..f6e911e0 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOffer.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOffer.generated.swift @@ -51,18 +51,22 @@ public struct SubscriptionPromotionalOffer: Hashable, Codable, Sendable { public var offerMode: SubscriptionOfferMode? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration? = nil, name: String? = nil, numberOfPeriods: Int? = nil, offerCode: String? = nil, - offerMode: SubscriptionOfferMode? = nil + offerMode: SubscriptionOfferMode? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods self.offerCode = offerCode self.offerMode = offerMode + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -71,6 +75,7 @@ public struct SubscriptionPromotionalOffer: Hashable, Codable, Sendable { case numberOfPeriods case offerCode case offerMode + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOfferInlineCreate.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOfferInlineCreate.generated.swift index f6adbabe..3889fdb5 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOfferInlineCreate.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/SubscriptionPromotionalOfferInlineCreate.generated.swift @@ -46,18 +46,22 @@ public struct SubscriptionPromotionalOfferInlineCreate: Hashable, Codable, Senda public var offerMode: SubscriptionOfferMode + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( duration: SubscriptionOfferDuration, name: String, numberOfPeriods: Int, offerCode: String, - offerMode: SubscriptionOfferMode + offerMode: SubscriptionOfferMode, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.duration = duration self.name = name self.numberOfPeriods = numberOfPeriods self.offerCode = offerCode self.offerMode = offerMode + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -66,6 +70,7 @@ public struct SubscriptionPromotionalOfferInlineCreate: Hashable, Codable, Senda case numberOfPeriods case offerCode case offerMode + case targetSubscriptionPlanType } } diff --git a/Sources/AppStoreConnectKit/autogenerated/Schemas/WinBackOffer.generated.swift b/Sources/AppStoreConnectKit/autogenerated/Schemas/WinBackOffer.generated.swift index 0b772869..f3c84038 100644 --- a/Sources/AppStoreConnectKit/autogenerated/Schemas/WinBackOffer.generated.swift +++ b/Sources/AppStoreConnectKit/autogenerated/Schemas/WinBackOffer.generated.swift @@ -65,6 +65,8 @@ public struct WinBackOffer: Hashable, Codable, Sendable { public var startDate: String? + public var targetSubscriptionPlanType: SubscriptionPlanType? + public init( customerEligibilityPaidSubscriptionDurationInMonths: Int? = nil, customerEligibilityTimeSinceLastSubscribedInMonths: IntegerRange? = nil, @@ -77,7 +79,8 @@ public struct WinBackOffer: Hashable, Codable, Sendable { priority: Priority? = nil, promotionIntent: PromotionIntent? = nil, referenceName: String? = nil, - startDate: String? = nil + startDate: String? = nil, + targetSubscriptionPlanType: SubscriptionPlanType? = nil ) { self.customerEligibilityPaidSubscriptionDurationInMonths = customerEligibilityPaidSubscriptionDurationInMonths self.customerEligibilityTimeSinceLastSubscribedInMonths = customerEligibilityTimeSinceLastSubscribedInMonths @@ -91,6 +94,7 @@ public struct WinBackOffer: Hashable, Codable, Sendable { self.promotionIntent = promotionIntent self.referenceName = referenceName self.startDate = startDate + self.targetSubscriptionPlanType = targetSubscriptionPlanType } private enum CodingKeys: String, CodingKey { @@ -106,6 +110,7 @@ public struct WinBackOffer: Hashable, Codable, Sendable { case promotionIntent case referenceName case startDate + case targetSubscriptionPlanType } public struct Priority: Hashable, Codable, RawRepresentable, CustomStringConvertible, Sendable {