mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
51 lines
2.1 KiB
Swift
51 lines
2.1 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||
|
||
import Foundation
|
||
|
||
extension Operations {
|
||
/// If the account’s Plex Pass subscription is active
|
||
public struct Subscription {
|
||
/// If the account's Plex Pass subscription is active
|
||
public let active: Bool?
|
||
/// List of features allowed on your Plex Pass subscription
|
||
public let features: [Operations.Features]?
|
||
/// Payment service used for your Plex Pass subscription
|
||
public let paymentService: String?
|
||
/// Name of Plex Pass subscription plan
|
||
public let plan: String?
|
||
/// String representation of subscriptionActive
|
||
public let status: Operations.GetTokenDetailsAuthenticationStatus?
|
||
/// Date the account subscribed to Plex Pass
|
||
public let subscribedAt: String?
|
||
|
||
/// Creates an object with the specified parameters
|
||
///
|
||
/// - Parameter active: If the account's Plex Pass subscription is active
|
||
/// - Parameter features: List of features allowed on your Plex Pass subscription
|
||
/// - Parameter paymentService: Payment service used for your Plex Pass subscription
|
||
/// - Parameter plan: Name of Plex Pass subscription plan
|
||
/// - Parameter status: String representation of subscriptionActive
|
||
/// - Parameter subscribedAt: Date the account subscribed to Plex Pass
|
||
///
|
||
public init(active: Bool? = nil, features: [Operations.Features]? = nil, paymentService: String? = nil, plan: String? = nil, status: Operations.GetTokenDetailsAuthenticationStatus? = nil, subscribedAt: String? = nil) {
|
||
self.active = active
|
||
self.features = features
|
||
self.paymentService = paymentService
|
||
self.plan = plan
|
||
self.status = status
|
||
self.subscribedAt = subscribedAt
|
||
}
|
||
}}
|
||
|
||
extension Operations.Subscription: Codable {
|
||
enum CodingKeys: String, CodingKey {
|
||
case active
|
||
case features
|
||
case paymentService
|
||
case plan
|
||
case status
|
||
case subscribedAt
|
||
}
|
||
}
|
||
|