Application Load

ITariffSubscribeRequest

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

ITariffSubscribeRequest

Fields for creating a subscription through subscriptions_subscribe.

app/interfaces/orionplace/subscribeTariff/ITariffSelection.ts
TypeScript
export interface ITariffSubscribeRequest {
  // tariff.id — the selected tariff.
  tariff: number;
  // tariff.prices[i].tariff_cost_id. Omitted for a trial, which requires
  // positive trial_days.
  period?: number;
  // ID from the selected tariff’s `options`. If the request returns an error
  // requiring an option, let the customer select one.
  option?: number;
  // Optional promo code, up to 20 characters. Not sent for a trial.
  attach_issue?: string;
}