{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "settlement": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[a-zA-Z0-9_-]+$"
    },
    "batches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "payout": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string"
          },
          "signature": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["payout", "index", "status", "signature"]
      }
    },
    "paid": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "pending": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "unpaid": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": ["settlement", "batches", "paid", "pending", "unpaid"]
}
