{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adorsys/json-schema/adorsys-bank-data-schema.json",
  "title": "BankData",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adorsys-admin-openapi.yml#/components/schemas/BankData",
  "type": "object",
  "properties": {
    "bank": {
      "$ref": "#/$defs/Bank"
    },
    "profiles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BankProfile"
      }
    }
  },
  "$defs": {
    "Bank": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "uuid": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "bankCode": {
          "type": "string"
        },
        "isActive": {
          "type": "boolean"
        }
      }
    },
    "BankAction": {
      "type": "object",
      "properties": {
        "protocolAction": {
          "type": "string",
          "enum": [
            "list-accounts",
            "list-transactions",
            "delete-consent",
            "get-consent-status",
            "get-ais-authorization-status",
            "update-external-ais-session",
            "authorization",
            "on-login",
            "get-authorization-state",
            "update-authorization",
            "deny-authorization",
            "from-aspsp-redirect",
            "single-payment",
            "get-payment-status",
            "get-payment-information",
            "get-pis-authorization-status"
          ]
        },
        "protocolBeanName": {
          "type": "string"
        },
        "consentSupported": {
          "type": "boolean"
        },
        "subProtocols": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BankSubAction"
          }
        }
      }
    },
    "BankProfile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "url": {
          "type": "string"
        },
        "uuid": {
          "type": "string",
          "format": "uuid"
        },
        "adapterId": {
          "type": "string"
        },
        "idpUrl": {
          "type": "string"
        },
        "scaApproaches": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "REDIRECT",
              "EMBEDDED",
              "DECOUPLED"
            ]
          }
        },
        "preferredApproach": {
          "type": "string",
          "enum": [
            "REDIRECT",
            "EMBEDDED",
            "DECOUPLED"
          ]
        },
        "supportedConsentType": {
          "type": "string",
          "enum": [
            "DEDICATED_ALL",
            "GLOBAL_ALL",
            "GLOBAL_ACCOUNTS"
          ]
        },
        "tryToUsePreferredApproach": {
          "type": "boolean"
        },
        "uniquePaymentPurpose": {
          "type": "boolean"
        },
        "actions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/BankAction"
          }
        },
        "bankCode": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "externalId": {
          "type": "string"
        },
        "externalInterfaces": {
          "type": "string",
          "description": "Comma-separated external interfaces"
        },
        "protocolType": {
          "type": "string"
        },
        "protocolConfiguration": {
          "type": "string"
        },
        "isSandbox": {
          "type": "boolean"
        },
        "isActive": {
          "type": "boolean"
        }
      }
    },
    "BankSubAction": {
      "type": "object",
      "properties": {
        "protocolAction": {
          "type": "string",
          "enum": [
            "list-accounts",
            "list-transactions",
            "delete-consent",
            "get-consent-status",
            "get-ais-authorization-status",
            "update-external-ais-session",
            "authorization",
            "on-login",
            "get-authorization-state",
            "update-authorization",
            "deny-authorization",
            "from-aspsp-redirect",
            "single-payment",
            "get-payment-status",
            "get-payment-information",
            "get-pis-authorization-status"
          ]
        },
        "subProtocolBeanName": {
          "type": "string"
        }
      }
    }
  }
}