1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/frontend/src/interfaces/instance.ts
Nuno Góis 29c0a3a557
chore: adapt billing page to custom billing scenarios (#8862)
https://linear.app/unleash/issue/2-3030/improve-the-billing-page-behavior-for-instances-with-custom-billing

Adapts the billing page to support custom billing scenarios.

Here’s how it will appear in such cases (notice a new "Your billing is
managed by Unleash" text, with no visible button to update billing
information):


![image](https://github.com/user-attachments/assets/39d7418a-1f22-41b3-9360-ca7c40a2ce7d)
2024-11-27 08:59:25 +00:00

28 lines
572 B
TypeScript

export interface IInstanceStatus {
plan: InstancePlan;
trialExpiry?: string;
trialStart?: string;
trialExtended?: number;
billingCenter?: string;
state?: InstanceState;
seats?: number;
minSeats?: number;
isCustomBilling?: boolean;
}
export enum InstanceState {
UNASSIGNED = 'UNASSIGNED',
TRIAL = 'TRIAL',
ACTIVE = 'ACTIVE',
EXPIRED = 'EXPIRED',
CHURNED = 'CHURNED',
}
export enum InstancePlan {
PRO = 'Pro',
COMPANY = 'Company',
TEAM = 'Team',
ENTERPRISE = 'Enterprise',
UNKNOWN = 'Unknown',
}