{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-guarantee-renunciation-dto-schema.json",
  "title": "GuaranteeRenunciationDto",
  "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/GuaranteeRenunciationDto",
  "required": [
    "id"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "guaranteeId": {
      "type": "integer",
      "format": "int64"
    },
    "number": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "amountOutstanding": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "currencyOutstanding": {
      "type": "string"
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "status": {
      "$ref": "#/$defs/RenunciationStatus"
    },
    "type": {
      "$ref": "#/$defs/RenunciationType"
    },
    "reason": {
      "$ref": "#/$defs/RenunciationReason"
    },
    "cnum": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    },
    "beneficiary": {
      "type": "string"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "availableActions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActionDto"
      }
    }
  },
  "$defs": {
    "ActionDto": {
      "required": [
        "actionType",
        "permissionType"
      ],
      "type": "object",
      "properties": {
        "actionType": {
          "type": "string"
        },
        "permissionType": {
          "$ref": "#/$defs/PermissionType"
        }
      }
    },
    "PermissionType": {
      "type": "string",
      "enum": [
        "ALLOWED",
        "DENIED"
      ]
    },
    "RenunciationReason": {
      "type": "string",
      "enum": [
        "FULFILLMENT_OBLIGATION",
        "OTHER_OBLIGATION",
        "CONTRACT_TERMINATION"
      ]
    },
    "RenunciationStatus": {
      "type": "string",
      "enum": [
        "DRAFT",
        "ON_SIGN",
        "PARTIALLY_SIGNED",
        "SIGNED",
        "ON_PENDING_BANK",
        "BANK_PROCESSING",
        "APPROVED",
        "DECLINED",
        "DELETED"
      ]
    },
    "RenunciationType": {
      "type": "string",
      "enum": [
        "PARTLY",
        "FULL"
      ]
    }
  }
}