{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BankAccountInfo",
  "title": "BankAccountInfo",
  "properties": {
    "accountIdentification": {
      "x-addedInVersion": "3",
      "description": "Identification of the bank account.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/AULocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/CALocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/CZLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/DKLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/HKLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/HULocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/IbanAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/NOLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/NZLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/NumberAndBicAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/PLLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/SELocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/SGLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/UKLocalAccountIdentification"
        },
        {
          "$ref": "#/components/schemas/USLocalAccountIdentification"
        }
      ]
    },
    "accountType": {
      "deprecated": true,
      "x-deprecatedInVersion": "2",
      "description": "The type of bank account.",
      "type": "string"
    },
    "bankName": {
      "description": "The name of the banking institution where the bank account is held.",
      "type": "string"
    },
    "countryCode": {
      "description": "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**.",
      "type": "string"
    },
    "trustedSource": {
      "description": "Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding).",
      "readOnly": true,
      "type": "boolean"
    }
  },
  "type": "object"
}