{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Response Message for 'cancelTransaction'",
  "description": "Indicates that the attempt to cancel the transaction has completed. The PerformTransaction response should be relied upon for the outcome of the transaction as usual.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "jsonrpc",
    "id",
    "result"
  ],
  "properties": {
    "jsonrpc": {
      "title": "JSON-RPC Version Number",
      "description": "Identifies the JSON Remote Protocol version that this message uses.",
      "type": "string",
      "enum": [
        "2.0"
      ],
      "default": "2.0"
    },
    "id": {
      "title": "JSON-RPC2 Message ID",
      "description": "The same message id as the request JSON message this is a reply to, so that this response can be matched to the correct request.",
      "type": "integer",
      "maximum": 999999,
      "minimum": 0
    },
    "result": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tid",
        "cancelling"
      ],
      "properties": {
        "tid": {
          "title": "Terminal Identifier (TID)",
          "description": "The identifier for a terminal.",
          "type": "string",
          "default": "N/A"
        },
        "cancelling": {
          "title": "Cancel Request Result",
          "description": "Confirms if the transaction is cancelling or not.",
          "type": "boolean",
          "enum": [
            true,
            false
          ]
        }
      }
    }
  }
}