{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pluggy/json-schema/pluggy-page-response-category-rules-schema.json",
  "title": "PageResponseCategoryRules",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-category-api-openapi.yml#/components/schemas/PageResponseCategoryRules",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClientCategoryRule"
      },
      "description": ""
    },
    "page": {
      "type": "number",
      "format": "double",
      "description": ""
    },
    "total": {
      "type": "number",
      "format": "double",
      "description": ""
    },
    "totalPages": {
      "type": "number",
      "format": "double",
      "description": ""
    }
  },
  "type": "object",
  "required": [
    "results",
    "page",
    "total",
    "totalPages"
  ],
  "$defs": {
    "ClientCategoryRule": {
      "description": "Category rule by client id",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the transaction rule."
        },
        "categoryId": {
          "type": "string",
          "description": "Identifier of the category"
        },
        "category": {
          "type": "string",
          "description": "Description of the category"
        },
        "clientId": {
          "type": "string",
          "description": "Identifier of the client"
        },
        "transactionType": {
          "type": "string",
          "description": "Transaction type (DEBIT/CREDIT)"
        },
        "accountType": {
          "type": "string",
          "description": "Account type (CHECKING_ACCOUNT/CREDIT_CARD)"
        }
      },
      "type": "object",
      "required": [
        "description",
        "category"
      ]
    }
  }
}