Application Load

ICustomerSubscriptionsResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

ICustomerSubscriptionsResponse

Field or general errors.

interfaces/orionplace/subscribes/ISubscriptionApi.ts
TypeScript
export interface ICustomerSubscriptionsResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Owned subscriptions and conditional related summaries.
  page_data: {
    // Value of data.
    data: ICustomerSubscription[];
    // Related subscription summaries can be empty even when `data` contains
    // subscriptions. The customer flow should read the owned records from
    // `data`.
    subscriptions: IPublicSubscription[];
    // Plans referenced by the customer subscriptions, including their periods,
    // options and localized content.
    tariffs: ISubscribeTariff[];
  } | null;
}