UNPKG

@calljmp/cli

Version:
34 lines 962 B
export declare enum BillingStatus { Trial = "trial", Depleted = "depleted", Expired = "expired", Active = "active", Canceled = "canceled" } export declare enum BillingCycle { Monthly = "monthly", Yearly = "yearly" } export declare enum BillingPlanLevel { Solo = "solo", Pro = "pro" } export interface Billing { id: number; accountId: number; stripeSubscriptionId: string | null; stripeCustomerId: string | null; status: BillingStatus; planLevel: BillingPlanLevel | null; billingCycle: BillingCycle | null; trialBalance: number; trialGrantedAt: Date | null; trialExpiresAt: Date | null; lastProcessedMonth: Date | null; canceledAt: Date | null; createdAt: Date; updatedAt: Date; } export declare function jsonToBilling(json: Record<string, any>): Billing; export declare function billingToJson(billing: Billing): Record<string, any>; //# sourceMappingURL=billing.d.ts.map