{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tagli-co-il/json-schema/tagli-co-il-quote-response-schema.json",
  "title": "QuoteResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tagli-co-il-openapi.json#/components/schemas/QuoteResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "quote_id": {
      "type": "string"
    },
    "quote_number": {
      "type": "string"
    },
    "qb_quote_id": {
      "type": "integer"
    },
    "is_multi_item": {
      "type": "boolean"
    },
    "item_count": {
      "type": "integer"
    },
    "total_quantity": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "product_id": {
      "type": "integer"
    },
    "variation_id": {
      "type": "integer"
    },
    "quantity": {
      "type": "integer"
    },
    "validated_options": {
      "$ref": "#/$defs/ValidatedOptions"
    },
    "unit_price": {
      "type": "number"
    },
    "price_total": {
      "type": "number"
    },
    "currency": {
      "type": "string",
      "const": "ILS"
    },
    "price_policy": {
      "$ref": "#/$defs/PricePolicy"
    },
    "qb_share_url": {
      "type": "string",
      "format": "uri"
    },
    "qb_pdf_url": {
      "type": "string",
      "format": "uri"
    },
    "dispatch": {
      "type": "object",
      "properties": {
        "email_dispatched": {
          "type": "boolean"
        },
        "dispatched_to": {
          "type": [
            "string",
            "null"
          ]
        },
        "notice": {
          "type": "string"
        }
      }
    },
    "issued_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "PricePolicy": {
      "type": "object",
      "properties": {
        "all_inclusive": {
          "type": "boolean"
        },
        "includes_vat": {
          "type": "boolean"
        },
        "includes_branding": {
          "type": "boolean"
        },
        "includes_shipping_to_business": {
          "type": "boolean"
        },
        "currency": {
          "type": "string",
          "const": "ILS"
        },
        "note": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "ValidatedOptions": {
      "type": "object",
      "description": "Server-validated and normalized product options.",
      "properties": {
        "variation_id": {
          "type": "integer"
        },
        "color": {
          "type": "string"
        },
        "color_name": {
          "type": "string"
        },
        "branding": {
          "type": "string"
        },
        "sleeve": {
          "type": "integer"
        },
        "sizes": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "additionalProperties": true
    }
  }
}