- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
27 lines
644 B
TypeScript
27 lines
644 B
TypeScript
import { Plan } from './plan.entity';
|
|
export declare enum SubscriptionStatus {
|
|
TRIAL = "trial",
|
|
ACTIVE = "active",
|
|
PAST_DUE = "past_due",
|
|
CANCELLED = "cancelled",
|
|
EXPIRED = "expired"
|
|
}
|
|
export declare class Subscription {
|
|
id: string;
|
|
tenantId: string;
|
|
planId: string;
|
|
billingCycle: string;
|
|
currentPeriodStart: Date;
|
|
currentPeriodEnd: Date;
|
|
status: SubscriptionStatus;
|
|
cancelAtPeriodEnd: boolean;
|
|
cancelledAt: Date;
|
|
paymentMethod: string;
|
|
stripeSubscriptionId: string;
|
|
stripeCustomerId: string;
|
|
trialEndsAt: Date;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
plan: Plan;
|
|
}
|