Files
astuto/app/javascript/interfaces/ITenantBilling.ts

21 lines
620 B
TypeScript
Raw Normal View History

2024-05-03 18:11:07 +02:00
// Status
export const TENANT_BILLING_STATUS_TRIAL = 'trial';
export const TENANT_BILLING_STATUS_ACTIVE = 'active';
export const TENANT_BILLING_STATUS_CANCELED = 'canceled';
export const TENANT_BILLING_STATUS_PERPETUAL = 'perpetual';
export type TenantBillingStatus =
typeof TENANT_BILLING_STATUS_TRIAL |
typeof TENANT_BILLING_STATUS_ACTIVE |
typeof TENANT_BILLING_STATUS_CANCELED |
typeof TENANT_BILLING_STATUS_PERPETUAL;
interface ITenantBilling {
trial_ends_at: string;
subscription_ends_at: string;
status: TenantBillingStatus;
customer_id: string;
slug: string;
}
export default ITenantBilling;