{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-doc-update-bank-account-request-schema.json",
  "title": "DocUpdateBankAccountRequest",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-external-account-api-openapi.yml#/components/schemas/DocUpdateBankAccountRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/UpdateClientOrgExternalAccountDto"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "ChildClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the child client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgExternalBankAccountDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the client organization's external bank account"
        },
        "achAuthorizedIndicator": {
          "type": "boolean",
          "description": "Indicates whether the Client has been authorized to initiate ACH transactions against this account"
        }
      },
      "required": [
        "achAuthorizedIndicator",
        "id"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "UpdateClientOrgExternalAccountDto": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "childClientOrg": {
          "$ref": "#/$defs/ChildClientOrgDto"
        },
        "clientOrgExternalBankAccount": {
          "$ref": "#/$defs/ClientOrgExternalBankAccountDto"
        }
      },
      "required": [
        "clientOrg",
        "clientOrgExternalBankAccount"
      ]
    }
  }
}