{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Quote extraction application contract v1",
  "type": "object",
  "properties": {
    "quote_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "enum": [
        "CNY",
        "USD",
        null
      ]
    },
    "subtotal_minor": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "tax_minor": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "total_minor": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "status": {
      "enum": [
        "complete",
        "needs_review"
      ]
    }
  },
  "required": [
    "quote_id",
    "currency",
    "subtotal_minor",
    "tax_minor",
    "total_minor",
    "status"
  ],
  "additionalProperties": false
}
