File

apps/recallassess/recallassess-api/src/api/shared/stripe/dto/immediate-charge-result.dto.ts

Description

Response shape for expired-recovery charge (portal activate billing; batch job snapshot fields). One billing period’s renewal amount (the “missing” expired period) is charged via Stripe; this snapshot reflects DB + Stripe state after the operation.

Index

Properties

Properties

is_subscription_expiry
is_subscription_expiry: boolean
Type : boolean
stripe_subscription_id
stripe_subscription_id: string | null
Type : string | null
export interface ImmediateChargeCompanySnapshot {
  is_subscription_expiry: boolean;
  stripe_subscription_id: string | null;
}

export interface ImmediateChargeSubscriptionSnapshot {
  id: number;
  status: string;
  is_current: boolean;
  stripe_subscription_id: string | null;
}

export interface ImmediateChargeInvoiceSnapshot {
  id: number;
  stripe_invoice_id: string | null;
  stripe_payment_intent_id: string | null;
  status: string;
  total_amount: number;
  paid_date: string | null;
}

export interface ImmediateChargeResult {
  success: boolean;
  message: string;
  stripe_subscription_status: string | null;
  company?: ImmediateChargeCompanySnapshot;
  subscription?: ImmediateChargeSubscriptionSnapshot | null;
  invoice?: ImmediateChargeInvoiceSnapshot | null;
}

results matching ""

    No results matching ""