{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Request Message for 'connectedTerminals'",
  "description": "Request a list of connected terminals and their details. The terminals are identified by their terminal identifier (TID), and the details include information about a terminal's currency and its current status. The list of terminals can be filtered by status and currency.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "jsonrpc",
    "id",
    "method"
  ],
  "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": "Used to identify this request message. The same id will be used in the response message so that the response can be matched with the request.",
      "type": "integer",
      "maximum": 999999,
      "minimum": 0
    },
    "method": {
      "type": "string",
      "enum": [
        "connectedTerminals"
      ]
    },
    "params": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "title": "Terminal Status",
          "description": "The current status of a terminal. 'AVAILABLE' means the terminal is currently able to accept a request. 'BUSY' means the terminal is currently processing a request and so is unable to accept a new request.",
          "type": "string",
          "enum": [
            "AVAILABLE",
            "BUSY"
          ]
        },
        "currency": {
          "title": "Currency Code",
          "description": "The currency this terminal or request is using. If being used to set the currency code of a response message then it must be the same currency as the associated request message. The textual representation from ISO 4217 is used.",
          "type": "string",
          "enum": [
            "GBP",
            "EUR"
          ]
        }
      }
    }
  }
}