@devopness/sdk-js
Version:
Devopness API JS/TS SDK - Painless essential DevOps to everyone
104 lines (103 loc) • 2.5 kB
TypeScript
/**
* devopness API
* Devopness API - Painless essential DevOps to everyone
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { SubscriptionBalance } from './subscription-balance';
/**
* The user\'s active subscription
* @export
* @interface Subscription
*/
export interface Subscription {
/**
* The ID of the subscription
* @type {number}
* @memberof Subscription
*/
id?: number;
/**
* The ID of the user this subscription belongs to
* @type {number}
* @memberof Subscription
*/
user_id?: number;
/**
* The plan name of this subscription
* @type {string}
* @memberof Subscription
*/
plan_name?: string;
/**
* Status of this subscription
* @type {string}
* @memberof Subscription
*/
status?: string;
/**
* Amount of plans purchased in this subscription
* @type {number}
* @memberof Subscription
*/
quantity?: number;
/**
* Unitary price of the subscribed plan
* @type {number}
* @memberof Subscription
*/
price_unit?: number;
/**
* Total price of this subscription (quantity x price_unit)
* @type {number}
* @memberof Subscription
*/
price_total?: number;
/**
* Currency of the prices
* @type {string}
* @memberof Subscription
*/
price_currency?: string;
/**
* If not null, indicates the date when this subscription was cancelled
* @type {string}
* @memberof Subscription
*/
cancelled_at?: string | null;
/**
* Indicates the date and time when this subscription ends
* @type {string}
* @memberof Subscription
*/
ends_at?: string;
/**
* The date and time when the record was created
* @type {string}
* @memberof Subscription
*/
created_at?: string;
/**
* The date and time when the record was last updated
* @type {string}
* @memberof Subscription
*/
updated_at?: string;
/**
*
* @type {SubscriptionBalance}
* @memberof Subscription
*/
current_balance?: SubscriptionBalance | null;
/**
* The list of subscription balances
* @type {Array<SubscriptionBalance>}
* @memberof Subscription
*/
balances?: Array<SubscriptionBalance>;
}