{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-guarantee-beneficiary-response-schema.json",
  "title": "GuaranteeBeneficiaryResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/raiffeisen-ru-trade-finance-beneficiary-guarantees-openapi.yml#/components/schemas/GuaranteeBeneficiaryResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GuaranteeBeneficiaryDto"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    }
  ],
  "$defs": {
    "Beneficiary": {
      "type": "object",
      "properties": {
        "shortName": {
          "type": "string",
          "description": "Наименование бенефициара"
        },
        "cnum": {
          "type": "string",
          "description": "CNUM бенефициара"
        },
        "inn": {
          "type": "string",
          "description": "ИНН бенефициара"
        }
      }
    },
    "GuaranteeBeneficiaryDto": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "guaranteeNumber": {
          "type": "string"
        },
        "statusTFO": {
          "type": "string"
        },
        "issueDate": {
          "type": "string",
          "format": "date"
        },
        "expiryDate": {
          "type": "string",
          "format": "date"
        },
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "guaranteeType": {
          "type": "string"
        },
        "principal": {
          "$ref": "#/$defs/Principal"
        },
        "beneficiaryCnum": {
          "type": "string"
        },
        "beneficiary": {
          "$ref": "#/$defs/Beneficiary"
        }
      }
    },
    "Pagination": {
      "required": [
        "limit",
        "offset",
        "totalCount"
      ],
      "type": "object",
      "properties": {
        "offset": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "totalCount": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "Principal": {
      "type": "object",
      "properties": {
        "shortName": {
          "type": "string",
          "description": "Наименование принципала"
        },
        "cnum": {
          "type": "string",
          "description": "CNUM принципала"
        },
        "inn": {
          "type": "string",
          "description": "ИНН принципала"
        }
      },
      "description": "CNUM принципала"
    }
  }
}