/** * Dashboard API * Dashboard API documentation * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { BillingSubscriptionCoupon } from './BillingSubscriptionCoupon'; import { BillingSubscriptionPeriod } from './BillingSubscriptionPeriod'; import { BillingSubscriptionPlanTypeEnum } from './BillingSubscriptionPlanTypeEnum'; /** * * @export * @interface BillingSubscription */ export interface BillingSubscription { /** * URL to the Stripe billing portal for managing the subscription * @type {string} * @memberof BillingSubscription */ billingPortalUrl?: string; /** * URL to the Stripe billing portal pre-configured to add a payment method * @type {string} * @memberof BillingSubscription */ billingPortalAddPaymentMethodUrl?: string; /** * When true, the subscription will be cancelled at the end of the current billing period * @type {boolean} * @memberof BillingSubscription */ cancelAtPeriodEnd?: boolean; /** * Whether the organization has a valid payment method on file * @type {boolean} * @memberof BillingSubscription */ hasPaymentMethod: boolean; /** * * @type {BillingSubscriptionPlanTypeEnum} * @memberof BillingSubscription */ planType: BillingSubscriptionPlanTypeEnum; /** * Whether the subscription is currently in a free trial period * @type {boolean} * @memberof BillingSubscription */ inTrial: boolean; /** * List of feature scope strings included in the current subscription plan * @type {Array} * @memberof BillingSubscription */ scope: Array; /** * ISO 8601 timestamp of when the trial period started * @type {Date} * @memberof BillingSubscription */ trialStart?: Date; /** * ISO 8601 timestamp of when the trial period ends * @type {Date} * @memberof BillingSubscription */ trialEnd?: Date; /** * Number of days remaining in the trial period * @type {number} * @memberof BillingSubscription */ trialDaysLeft?: number; /** * * @type {BillingSubscriptionPeriod} * @memberof BillingSubscription */ currentBillingPeriod?: BillingSubscriptionPeriod; /** * Billing plan version identifier * @type {string} * @memberof BillingSubscription */ version: string; /** * When true, the user cannot switch between live and sandbox until payment is added * @type {boolean} * @memberof BillingSubscription */ shouldLockEnvironmentSwitch?: boolean; /** * List of discount coupons applied to the subscription * @type {Array} * @memberof BillingSubscription */ coupons?: Array; } export declare function BillingSubscriptionFromJSON(json: any): BillingSubscription; export declare function BillingSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingSubscription; export declare function BillingSubscriptionToJSON(value?: BillingSubscription | null): any;