File size: 744 Bytes
d714fad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Tenant } from './tenant.entity';
import { SubscriptionPlan } from './subscription-plan.entity';
export declare enum SubStatus {
    TRIALING = "trialing",
    ACTIVE = "active",
    PAST_DUE = "past_due",
    CANCELED = "canceled",
    INCOMPLETE = "incomplete"
}
export declare class Subscription {
    id: string;
    tenant_id: string;
    tenant: Tenant;
    plan_id: string;
    plan: SubscriptionPlan;
    stripe_subscription_id: string;
    stripe_customer_id: string;
    stripe_invoice_id: string;
    status: SubStatus;
    trial_start: Date;
    trial_end: Date;
    current_period_start: Date;
    current_period_end: Date;
    canceled_at: Date;
    billing_interval: string;
    created_at: Date;
    updated_at: Date;
}