Application Load

IProductPreorderResponse

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

IProductPreorderResponse

New preorder ID, product, captured USD price and state.

app/interfaces/orionplace/orders/IProductPreorder.ts
TypeScript
export interface IProductPreorderResponse {
  // Field and general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // Created preorder summary.
  page_data: {
    // Created preorder ID.
    id: number;
    // Product ID.
    product: number;
    // Product price in USD when the preorder was created.
    preorder_usd_price: number | string;
    // `int` is the created preorder’s state code; `text` is its translated
    // label.
    state: {
      // State code of the created preorder.
      int: EPreorderState;
      // Translated label of the preorder state.
      text: string;
    };
  } | null;
}