{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xipfax-com/json-schema/xipfax-com-quote-schema.json",
  "title": "Quote",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xipfax-com-openapi.json#/components/schemas/Quote",
  "type": "object",
  "properties": {
    "pages": {
      "type": "integer",
      "description": "The pages quoted."
    },
    "price": {
      "type": "object",
      "properties": {
        "amount_minor": {
          "type": "integer",
          "description": "In the currency’s smallest unit: cents."
        },
        "currency": {
          "type": "string",
          "const": "USD"
        }
      },
      "required": [
        "amount_minor",
        "currency"
      ],
      "description": "What the fax costs without a plan, and on the plan where it doesn’t cover the number."
    },
    "plan_covers": {
      "type": "boolean",
      "description": "Whether the plan covers a fax to the number: sent on the plan, its pages count there instead of the price."
    },
    "price_shown": {
      "type": "string",
      "description": "The price as XipFax prints it: $4.99."
    },
    "terms": {
      "type": "string",
      "description": "How the price is made, as XipFax’s pages say it: the first pages, then each page."
    },
    "price_list": {
      "type": "string",
      "description": "The version of XipFax’s price list the quote is from."
    }
  },
  "required": [
    "pages",
    "price",
    "plan_covers",
    "price_shown",
    "terms",
    "price_list"
  ]
}