Add billing (#329)

This commit is contained in:
Riccardo Graziosi
2024-05-03 18:11:07 +02:00
committed by GitHub
parent fc36c967af
commit bea146e612
63 changed files with 1354 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
// 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;