mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add billing (#329)
This commit is contained in:
committed by
GitHub
parent
fc36c967af
commit
bea146e612
21
app/javascript/interfaces/ITenantBilling.ts
Normal file
21
app/javascript/interfaces/ITenantBilling.ts
Normal 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;
|
||||
Reference in New Issue
Block a user