Files
plexswift/Sources/Plexswift/models/operations/Subscription.swift

51 lines
2.0 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// If the accounts 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: [String]?
/// 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: [String]? = 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
}
}