{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-push-bank-account-response-v2-dto-schema.json",
  "title": "PushBankAccountResponseV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-bankcontrollerv2-api-openapi.yml#/components/schemas/PushBankAccountResponseV2Dto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "readOnly": true
    },
    "businessName": {
      "type": "string",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "freshbooks",
        "quickbooks",
        "quickbooksDesktop",
        "xero",
        "oracleNetsuite",
        "sageBusinessCloud",
        "sageIntacct",
        "dynamicsBusinessCentral",
        "dynamics365Finance",
        "wave",
        "myob",
        "zohoBooks",
        "byod"
      ]
    },
    "pushCommunicationId": {
      "type": "string",
      "readOnly": true
    },
    "requestedOn": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "success",
        "failed",
        "pending"
      ]
    },
    "data": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/$defs/PushBankAccountV2"
        }
      ]
    }
  },
  "required": [
    "connectionUuid",
    "businessName",
    "serviceName",
    "pushCommunicationId",
    "requestedOn",
    "status",
    "data"
  ],
  "$defs": {
    "PushBankAccountV2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "nominalCode": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "accountType": {
          "type": "string",
          "enum": [
            "checking",
            "saving",
            "creditCard",
            "loan",
            "investment",
            "unknown"
          ]
        },
        "accountNumber": {
          "type": "string"
        },
        "routingNumber": {
          "type": "string"
        },
        "bankCode": {
          "type": "string"
        },
        "iBan": {
          "type": "string"
        },
        "locationId": {
          "type": "string"
        },
        "institutionName": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "currentBalance": {
          "type": "number"
        },
        "overdraftLimit": {
          "type": "number"
        },
        "availableBalance": {
          "type": "number"
        },
        "isActive": {
          "type": "boolean"
        }
      }
    }
  }
}