{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "InitRequest",
  "title": "InitRequest",
  "definitions": {
    "extraTaxes": {
      "type": "object",
      "properties": {
        "propina": {
          "type": "integer",
          "minimum": 0
        },
        "tasaAeroportuaria": {
          "type": "integer",
          "minimum": 0
        },
        "agenciaDeViajes": {
          "type": "integer",
          "minimum": 0
        },
        "iac": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  },
  "additionalProperties": false,
  "properties": {
    "amount": {
      "type": "object",
      "properties": {
        "subtotalIva": {
          "type": "integer",
          "minimum": 0
        },
        "subtotalIva0": {
          "type": "integer",
          "minimum": 0
        },
        "iva": {
          "type": "integer",
          "minimum": 0
        },
        "extraTaxes": {
          "$ref": "#/definitions/extraTaxes"
        }
      },
      "required": ["subtotalIva", "subtotalIva0", "iva"]
    },
    "token": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{32}$"
    },
    "metadata": {
      "type": "object"
    }
  },
  "required": ["amount", "token"],
  "type": "object"
}
