Application Load

ICartPromoNotice

La declaración física de TypeScript de la plantilla de Nuxt, con los tipos enlazados y los comentarios de los campos.

ICartPromoNotice

Código promocional sin descuento, o un código quitado o rechazado.

interfaces/basklee/cart/ICartData.ts
TypeScript
export interface ICartPromoNotice {
  // Código del motivo. Con `is_removed: false`: `no_lines`, `not_matched`,
  // `product_discounted`, `below_minimum`, `subscriptions_only`, `too_small` o
  // `nothing_to_ship` (un código de envío gratuito en el que todos los envíos
  // cubiertos ya se envían gratis). Con `is_removed: true`: `expired`,
  // `not_active`, `not_started`, `usage_limit`, `promotion_limit`, `not_yours`,
  // `personal_limit`, `first_order_only` o `wrong_domain`, o uno del primer
  // grupo cuando `marketing_promo_promo_apply` rechazó el código para estos
  // artículos.
  reason: ECartPromoNoticeReason | string;
  /** The reason in the request language. */
  message: string;
  // Código al que se refiere el aviso.
  promocode: string | null;
  // `false`: el código sigue en `cart.promocode`, pero no da ningún descuento
  // con los artículos actuales. `true`: el carrito ya no tiene este código: se
  // quitó o se rechazó.
  is_removed: boolean;
  /**
   * Minimum order amount per currency; set only for `below_minimum`. The
   * dollar amount decides (catalog dollar prices); the other currencies
   * are its conversion.
   */
  minimum_order_amount: ICurrencyAmounts | null;
  /**
   * The currency ids the notice is about; `null` means every currency.
   * Show the notice only when the selected currency id is in the list, for
   * example a fixed code that takes $10 off in dollars and 0 ₽ in rubles
   * (`too_small`). Absent on older backends.
   */
  currency_ids?: Array<number | string> | null;
  /**
   * For `below_minimum`: how much more the products the code covers must
   * cost, per currency (dollars decide). `null` otherwise; absent on older
   * backends.
   */
  missing_amount?: ICurrencyAmounts | null;
}