/**
 * Generated by orval v8.8.0 🍺
 * Do not edit manually.
 * OpenAPI spec version: 0.0.0
 */

export interface PatchedProduct {
  readonly id?: number;
  /** @maxLength 200 */
  name?: string;
  description?: string;
  /**
   * @maxLength 100
   * @nullable
   */
  code?: string | null;
  /**
   * Net price (without VAT)
   * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
   */
  price?: string;
  /**
   * @maxLength 50
   * @pattern ^[-a-zA-Z0-9_]+$
   */
  url?: string;
  /**
   * @minimum 0
   * @maximum 2147483647
   */
  stock?: number;
  is_active?: boolean;
  /** @nullable */
  limited_to?: Date | null;
  include_in_week_summary_email?: boolean;
  readonly created_at?: Date;
  readonly updated_at?: Date;
  category?: number;
  /**
   * VAT rate for this product. Leave empty to use default rate.
   * @nullable
   */
  vat_rate?: number | null;
  /** @nullable */
  default_carrier?: number | null;
  /** Symetrické varianty produktu: pokud přidáte variantu A → B, Django automaticky přidá i variantu B → A. Všechny varianty jsou rovnocenné a zobrazí se vzájemně. */
  variants?: number[];
}
