Skip to content

Commit

Permalink
Fix double versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenGregersen committed Sep 14, 2023
1 parent af2ac9c commit 51fda48
Show file tree
Hide file tree
Showing 27 changed files with 98 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Request {
- Parameter requestBody: AppAvailability representation
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func createAppAvailabilitiesV2V2(requestBody: AppAvailabilityV2CreateRequest) -> Request<AppAvailabilityV2Response, ErrorResponse> {
static func createAppAvailabilitiesV2(requestBody: AppAvailabilityV2CreateRequest) -> Request<AppAvailabilityV2Response, ErrorResponse> {
.init(path: "/v2/appAvailabilities", method: .post, requestBody: requestBody)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limit: Maximum number of related territoryAvailabilities returned (when they are included) - maximum 50
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getAppAvailabilitiesV2V2(id: String,
fields: [GetAppAvailabilitiesV2V2.Field]? = nil,
includes: [GetAppAvailabilitiesV2V2.Include]? = nil,
limit: Int? = nil) -> Request<AppAvailabilityV2Response, ErrorResponse>
static func getAppAvailabilitiesV2(id: String,
fields: [GetAppAvailabilitiesV2.Field]? = nil,
includes: [GetAppAvailabilitiesV2.Include]? = nil,
limit: Int? = nil) -> Request<AppAvailabilityV2Response, ErrorResponse>
{
.init(path: "/v2/appAvailabilities/\(id)", method: .get, parameters: .init(fields: fields,
includes: includes,
limit: limit))
}
}

public enum GetAppAvailabilitiesV2V2 {
public enum GetAppAvailabilitiesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limit: Maximum resources per page - maximum 200
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func listTerritoryAvailabilitiesForAppAvailabilitiesV2V2(id: String,
fields: [ListTerritoryAvailabilitiesForAppAvailabilitiesV2V2.Field]? = nil,
includes: [ListTerritoryAvailabilitiesForAppAvailabilitiesV2V2.Include]? = nil,
limit: Int? = nil) -> Request<TerritoryAvailabilitiesResponse, ErrorResponse>
static func listTerritoryAvailabilitiesForAppAvailabilitiesV2(id: String,
fields: [ListTerritoryAvailabilitiesForAppAvailabilitiesV2.Field]? = nil,
includes: [ListTerritoryAvailabilitiesForAppAvailabilitiesV2.Include]? = nil,
limit: Int? = nil) -> Request<TerritoryAvailabilitiesResponse, ErrorResponse>
{
.init(path: "/v2/appAvailabilities/\(id)/territoryAvailabilities", method: .get, parameters: .init(fields: fields,
includes: includes,
limit: limit))
}
}

public enum ListTerritoryAvailabilitiesForAppAvailabilitiesV2V2 {
public enum ListTerritoryAvailabilitiesForAppAvailabilitiesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ public extension Request {
- Parameter includes: Relationship data to include in the response
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getAppPricePointsV3V3(id: String,
fields: [GetAppPricePointsV3V3.Field]? = nil,
includes: [GetAppPricePointsV3V3.Include]? = nil) -> Request<AppPricePointV3Response, ErrorResponse>
static func getAppPricePointsV3(id: String,
fields: [GetAppPricePointsV3.Field]? = nil,
includes: [GetAppPricePointsV3.Include]? = nil) -> Request<AppPricePointV3Response, ErrorResponse>
{
.init(path: "/v3/appPricePoints/\(id)", method: .get, parameters: .init(fields: fields,
includes: includes))
}
}

public enum GetAppPricePointsV3V3 {
public enum GetAppPricePointsV3 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public extension Request {
- Parameter limit: Maximum resources per page - maximum 200
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func listEqualizationsForAppPricePointsV3V3(id: String,
fields: [ListEqualizationsForAppPricePointsV3V3.Field]? = nil,
filters: [ListEqualizationsForAppPricePointsV3V3.Filter]? = nil,
includes: [ListEqualizationsForAppPricePointsV3V3.Include]? = nil,
limit: Int? = nil) -> Request<AppPricePointsV3Response, ErrorResponse>
static func listEqualizationsForAppPricePointsV3(id: String,
fields: [ListEqualizationsForAppPricePointsV3.Field]? = nil,
filters: [ListEqualizationsForAppPricePointsV3.Filter]? = nil,
includes: [ListEqualizationsForAppPricePointsV3.Include]? = nil,
limit: Int? = nil) -> Request<AppPricePointsV3Response, ErrorResponse>
{
.init(path: "/v3/appPricePoints/\(id)/equalizations", method: .get, parameters: .init(fields: fields,
filters: filters,
Expand All @@ -29,7 +29,7 @@ public extension Request {
}
}

public enum ListEqualizationsForAppPricePointsV3V3 {
public enum ListEqualizationsForAppPricePointsV3 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Request {
- Parameter requestBody: AppStoreVersionExperiment representation
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func createAppStoreVersionExperimentsV2V2(requestBody: AppStoreVersionExperimentV2CreateRequest) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse> {
static func createAppStoreVersionExperimentsV2(requestBody: AppStoreVersionExperimentV2CreateRequest) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse> {
.init(path: "/v2/appStoreVersionExperiments", method: .post, requestBody: requestBody)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Request {
- Parameter id: The id of the requested resource
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func deleteAppStoreVersionExperimentsV2V2(id: String) -> Request<EmptyResponse, ErrorResponse> {
static func deleteAppStoreVersionExperimentsV2(id: String) -> Request<EmptyResponse, ErrorResponse> {
.init(path: "/v2/appStoreVersionExperiments/\(id)", method: .delete)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limits: Number of resources to return
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getAppStoreVersionExperimentsV2V2(id: String,
fields: [GetAppStoreVersionExperimentsV2V2.Field]? = nil,
includes: [GetAppStoreVersionExperimentsV2V2.Include]? = nil,
limits: [GetAppStoreVersionExperimentsV2V2.Limit]? = nil) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse>
static func getAppStoreVersionExperimentsV2(id: String,
fields: [GetAppStoreVersionExperimentsV2.Field]? = nil,
includes: [GetAppStoreVersionExperimentsV2.Include]? = nil,
limits: [GetAppStoreVersionExperimentsV2.Limit]? = nil) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse>
{
.init(path: "/v2/appStoreVersionExperiments/\(id)", method: .get, parameters: .init(fields: fields,
includes: includes,
limits: limits))
}
}

public enum GetAppStoreVersionExperimentsV2V2 {
public enum GetAppStoreVersionExperimentsV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limits: Number of resources to return
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func listAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2V2(id: String,
fields: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2V2.Field]? = nil,
includes: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2V2.Include]? = nil,
limits: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2V2.Limit]? = nil) -> Request<AppStoreVersionExperimentTreatmentsResponse, ErrorResponse>
static func listAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2(id: String,
fields: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2.Field]? = nil,
includes: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2.Include]? = nil,
limits: [ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2.Limit]? = nil) -> Request<AppStoreVersionExperimentTreatmentsResponse, ErrorResponse>
{
.init(path: "/v2/appStoreVersionExperiments/\(id)/appStoreVersionExperimentTreatments", method: .get, parameters: .init(fields: fields,
includes: includes,
limits: limits))
}
}

public enum ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2V2 {
public enum ListAppStoreVersionExperimentTreatmentsForAppStoreVersionExperimentsV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public extension Request {
- Parameter requestBody: AppStoreVersionExperiment representation
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func updateAppStoreVersionExperimentsV2V2(id: String,
requestBody: AppStoreVersionExperimentV2UpdateRequest) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse>
static func updateAppStoreVersionExperimentsV2(id: String,
requestBody: AppStoreVersionExperimentV2UpdateRequest) -> Request<AppStoreVersionExperimentV2Response, ErrorResponse>
{
.init(path: "/v2/appStoreVersionExperiments/\(id)", method: .patch, requestBody: requestBody)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Request {
- Parameter requestBody: InAppPurchase representation
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func createInAppPurchasesV2V2(requestBody: InAppPurchaseV2CreateRequest) -> Request<InAppPurchaseV2Response, ErrorResponse> {
static func createInAppPurchasesV2(requestBody: InAppPurchaseV2CreateRequest) -> Request<InAppPurchaseV2Response, ErrorResponse> {
.init(path: "/v2/inAppPurchases", method: .post, requestBody: requestBody)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Request {
- Parameter id: The id of the requested resource
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func deleteInAppPurchasesV2V2(id: String) -> Request<EmptyResponse, ErrorResponse> {
static func deleteInAppPurchasesV2(id: String) -> Request<EmptyResponse, ErrorResponse> {
.init(path: "/v2/inAppPurchases/\(id)", method: .delete)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limits: Number of resources to return
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getInAppPurchasesV2V2(id: String,
fields: [GetInAppPurchasesV2V2.Field]? = nil,
includes: [GetInAppPurchasesV2V2.Include]? = nil,
limits: [GetInAppPurchasesV2V2.Limit]? = nil) -> Request<InAppPurchaseV2Response, ErrorResponse>
static func getInAppPurchasesV2(id: String,
fields: [GetInAppPurchasesV2.Field]? = nil,
includes: [GetInAppPurchasesV2.Include]? = nil,
limits: [GetInAppPurchasesV2.Limit]? = nil) -> Request<InAppPurchaseV2Response, ErrorResponse>
{
.init(path: "/v2/inAppPurchases/\(id)", method: .get, parameters: .init(fields: fields,
includes: includes,
limits: limits))
}
}

public enum GetInAppPurchasesV2V2 {
public enum GetInAppPurchasesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ public extension Request {
- Parameter includes: Relationship data to include in the response
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getAppStoreReviewScreenshotForInAppPurchasesV2V2(id: String,
fields: [GetAppStoreReviewScreenshotForInAppPurchasesV2V2.Field]? = nil,
includes: [GetAppStoreReviewScreenshotForInAppPurchasesV2V2.Include]? = nil) -> Request<InAppPurchaseAppStoreReviewScreenshotResponse, ErrorResponse>
static func getAppStoreReviewScreenshotForInAppPurchasesV2(id: String,
fields: [GetAppStoreReviewScreenshotForInAppPurchasesV2.Field]? = nil,
includes: [GetAppStoreReviewScreenshotForInAppPurchasesV2.Include]? = nil) -> Request<InAppPurchaseAppStoreReviewScreenshotResponse, ErrorResponse>
{
.init(path: "/v2/inAppPurchases/\(id)/appStoreReviewScreenshot", method: .get, parameters: .init(fields: fields,
includes: includes))
}
}

public enum GetAppStoreReviewScreenshotForInAppPurchasesV2V2 {
public enum GetAppStoreReviewScreenshotForInAppPurchasesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ public extension Request {
- Parameter includes: Relationship data to include in the response
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getContentForInAppPurchasesV2V2(id: String,
fields: [GetContentForInAppPurchasesV2V2.Field]? = nil,
includes: [GetContentForInAppPurchasesV2V2.Include]? = nil) -> Request<InAppPurchaseContentResponse, ErrorResponse>
static func getContentForInAppPurchasesV2(id: String,
fields: [GetContentForInAppPurchasesV2.Field]? = nil,
includes: [GetContentForInAppPurchasesV2.Include]? = nil) -> Request<InAppPurchaseContentResponse, ErrorResponse>
{
.init(path: "/v2/inAppPurchases/\(id)/content", method: .get, parameters: .init(fields: fields,
includes: includes))
}
}

public enum GetContentForInAppPurchasesV2V2 {
public enum GetContentForInAppPurchasesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ public extension Request {
- Parameter limits: Number of resources to return
- Returns: A ``Request`` to send to an instance of ``BagbutikService``
*/
static func getIapPriceScheduleForInAppPurchasesV2V2(id: String,
fields: [GetIapPriceScheduleForInAppPurchasesV2V2.Field]? = nil,
includes: [GetIapPriceScheduleForInAppPurchasesV2V2.Include]? = nil,
limits: [GetIapPriceScheduleForInAppPurchasesV2V2.Limit]? = nil) -> Request<InAppPurchasePriceScheduleResponse, ErrorResponse>
static func getIapPriceScheduleForInAppPurchasesV2(id: String,
fields: [GetIapPriceScheduleForInAppPurchasesV2.Field]? = nil,
includes: [GetIapPriceScheduleForInAppPurchasesV2.Include]? = nil,
limits: [GetIapPriceScheduleForInAppPurchasesV2.Limit]? = nil) -> Request<InAppPurchasePriceScheduleResponse, ErrorResponse>
{
.init(path: "/v2/inAppPurchases/\(id)/iapPriceSchedule", method: .get, parameters: .init(fields: fields,
includes: includes,
limits: limits))
}
}

public enum GetIapPriceScheduleForInAppPurchasesV2V2 {
public enum GetIapPriceScheduleForInAppPurchasesV2 {
/**
Fields to return for included related types.
*/
Expand Down
Loading

0 comments on commit 51fda48

Please sign in to comment.