{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/accounting-notifications-bank-account-v3-schema.json",
  "title": "BankAccountV3",
  "description": "BankAccountV3 schema from Adyen API",
  "properties": {
    "accountHolder": {
      "description": "Information about the owner of the bank account.",
      "$ref": "#/components/schemas/PartyIdentification-2"
    },
    "accountIdentification": {
      "description": "Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/AULocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/BRLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/CALocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/CZLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/DKLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/HULocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/IbanAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/NOLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/NumberAndBicAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/PLLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/SELocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/SGLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/UKLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/USLocalAccountIdentification"
        }
      ]
    }
  },
  "required": [
    "accountIdentification",
    "accountHolder"
  ],
  "type": "object"
}