-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update from new spec (2.0) * Update Package.resolved * Update Package.resolved * Regenerate * Add documentation * Remove fields with no cases Co-authored-by: Morten Bjerg Gregersen <[email protected]>
- Loading branch information
1 parent
519a312
commit a0752c0
Showing
330 changed files
with
20,975 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Sources/Bagbutik/Endpoints/App/Relationships/GetSubscriptionGracePeriodForAppV1.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
public extension Request { | ||
/** | ||
# No overview available | ||
|
||
- Parameter id: The id of the requested resource | ||
- Parameter fields: Fields to return for included related types | ||
- Returns: A `Request` with to send to an instance of `BagbutikService` | ||
*/ | ||
static func getSubscriptionGracePeriodForAppV1(id: String, | ||
fields: [GetSubscriptionGracePeriodForAppV1.Field]? = nil) -> Request<SubscriptionGracePeriodResponse, ErrorResponse> | ||
{ | ||
return .init(path: "/v1/apps/\(id)/subscriptionGracePeriod", method: .get, parameters: .init(fields: fields)) | ||
} | ||
} | ||
|
||
public enum GetSubscriptionGracePeriodForAppV1 { | ||
/** | ||
Fields to return for included related types. | ||
*/ | ||
public enum Field: FieldParameter { | ||
/// The fields to include for returned resources of type subscriptionGracePeriods | ||
case subscriptionGracePeriods([SubscriptionGracePeriods]) | ||
|
||
public enum SubscriptionGracePeriods: String, ParameterValue, CaseIterable { | ||
case app | ||
case optIn | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.