/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * OpenAPI spec version: 1.0.0 */ import type { CurrentSubscriptionPaymentMethod } from './currentSubscriptionPaymentMethod'; import type { CurrentSubscriptionPaymentProvider } from './currentSubscriptionPaymentProvider'; import type { CurrentSubscriptionScheduledChange } from './currentSubscriptionScheduledChange'; import type { StoreBilling } from './storeBilling'; import type { UsageStats } from './usageStats'; import type { WhiteLabelPlan } from './whiteLabelPlan'; /** * Current entity subscription with usage stats */ export interface CurrentSubscription { plan: WhiteLabelPlan; /** Subscription status */ status: string; /** * Current billing interval * @nullable */ billing_interval: string | null; /** Current period start date (ISO 8601) */ current_period_start: string; /** Current period end date (ISO 8601) */ current_period_end: string; /** Billing provider used for this subscription */ payment_provider: CurrentSubscriptionPaymentProvider; /** * Stable bank-transfer payment reference for Apollo subscriptions * @nullable */ bank_reference: string | null; /** * Billing email used for subscription notifications and invoices * @nullable */ billing_email: string | null; /** * Applied saved coupon code for the base plan price, e.g. "COUPON_50". * @nullable */ coupon_code: string | null; /** * Trial end date (ISO 8601). Null if not on trial. * @nullable */ trial_ends_at: string | null; /** * Days remaining in trial. Null if not on trial. * @nullable */ trial_days_remaining: number | null; /** * Scheduled cancellation date (ISO 8601). Null if not scheduled. * @nullable */ cancel_at: string | null; /** @nullable */ scheduled_change: CurrentSubscriptionScheduledChange; /** @nullable */ payment_method: CurrentSubscriptionPaymentMethod; store_billing: StoreBilling | null; usage: UsageStats; } //# sourceMappingURL=currentSubscription.d.ts.map