/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { ItemPrice } from './ItemPrice'; import type { Status0e3Enum } from './Status0e3Enum'; export type ItemSubscription = { readonly unique_id: string; readonly user_id: number; readonly username: string; readonly email: string; /** * Type of item being subscribed to */ item_type: string; /** * Identifier for the item */ item_id: string; readonly item_name: string; /** * Current subscription status * * * `active` - Active * * `free` - Free Tier * * `grandfathered` - Grandfathered * * `trialing` - Trialing * * `past_due` - Past Due * * `canceled` - Canceled * * `incomplete` - Incomplete */ status?: Status0e3Enum; readonly price: ItemPrice; /** * Start of current billing period */ current_period_start?: string | null; /** * End of current billing period */ current_period_end?: string | null; /** * When the trial ends (if applicable) */ trial_end?: string | null; /** * Whether subscription will cancel at period end */ cancel_at_period_end?: boolean; /** * When the subscription was canceled */ canceled_at?: string | null; /** * Whether this is a grandfathered pre-paywall user */ is_grandfathered?: boolean; /** * When the user was grandfathered */ grandfathered_at?: string | null; readonly billing_portal_url: string | null; /** * Additional subscription metadata */ metadata?: any; readonly created_at: string; readonly updated_at: string; };