Application Load

ISubscriptionChangeOptionRequest

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

ISubscriptionChangeOptionRequest

Fields sent to move a subscription to another service option.

src/lib/interfaces/orionplace/subscribes/ISubscriptionApi.ts
TypeScript
export interface ISubscriptionChangeOptionRequest {
  // Customer subscription ID from `subscriptions_get`. A current period and an
  // active paid period are required.
  existed_subscription: number;
  // Service option ID to move to. The plan in use sells it and it differs from
  // the option in use.
  option: number;
  // Tariff-cost ID of the period to buy, belonging to the plan in use. A period
  // of zero days is not accepted for a change.
  period: number;
  // Tariff-cost ID saved as the automatic renewal after the change, from the
  // same plan. Omission leaves automatic renewal off; sending it also clears
  // `cancelled_date`.
  renew_period?: number;
  // Promo code applied to the new period, at most 20 characters.
  attach_issue?: string;
}