import type { CheckoutState } from './Checkout/interfaces'; import type { BillingState } from './Billing/interfaces'; import type { PlansState } from './Plans/interfaces'; import type { PaymentProviderConfigState } from './Config/interfaces'; import type { StripeState } from './Stripe/interfaces'; import { VendorPublicConfigurationState } from './VendorPublicConfig/interfaces'; export type SubscriptionsState = { config: PaymentProviderConfigState; billing: BillingState; plans: PlansState; checkout: CheckoutState; stripe: StripeState; vendorPublicConfig: VendorPublicConfigurationState; }; export declare enum PaymentProvider { STRIPE = "Stripe" } export interface Plan { id: string; name: string; description: string; price: number; currency: string; recurringInterval: string; slug: string; } export declare enum SubscriptionStatus { ACTIVE = "ACTIVE", CANCELED = "CANCELED", INCOMPLETE = "INCOMPLETE", EXPIRED = "EXPIRED", TRIALING = "TRIALING" } export interface Subscription { id: string; externalId: string; startDate: string; currentPeriodStart: string; currentPeriodEnd: string; status: SubscriptionStatus; cancellation: SubscriptionCancellation | null; trialEnd: string | null; } export interface SubscriptionItem { id: string; planId: string; } export interface SubscriptionCancellation { policy: SubscriptionCancellationPolicy; } export declare enum SubscriptionCancellationPolicy { AT_PERIOD_END = "atPeriodEnd" } export interface Invoice { id: string; externalId?: string; subscriptionId: string; paymentDate: Date; totalAmount: number; currency: string; paid: boolean; receiptNumber?: string; }