UNPKG

@experts_hub/shared

Version:

Shared DTOs, interfaces, and utilities for experts hub applications

23 lines (22 loc) 634 B
import { Plan } from './plan.entity'; import { BaseEntity } from './base.entity'; export declare enum PlanPricingBillingCycleEnum { MONTHLY = "monthly", YEARLY = "yearly" } export declare class PlanPricing extends BaseEntity { planId: number; plan: Plan; billingCycle: PlanPricingBillingCycleEnum; price: number; originalPrice: number | null; discountPct: number | null; currency: string; isFree: boolean; stripePriceId: string | null; trialDays: number; isActive: boolean; sanitize(): void; get monthlyEquivalent(): number | null; get savingsAmount(): number | null; }