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

export interface PatchedDiscountCode {
  readonly id?: number;
  /** @maxLength 50 */
  code?: string;
  /** @maxLength 255 */
  description?: string;
  /**
   * Procento sleva 0-100
   * @minimum 0
   * @maximum 100
   * @nullable
   */
  percent?: number | null;
  /**
   * Fixed discount amount in site currency
   * @nullable
   * @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
   */
  amount?: string | null;
  valid_from?: Date;
  /** @nullable */
  valid_to?: Date | null;
  active?: boolean;
  /**
   * @minimum 0
   * @maximum 2147483647
   * @nullable
   */
  usage_limit?: number | null;
  readonly used_count?: number;
  specific_products?: number[];
  specific_categories?: number[];
}
