{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alto-vebra/json-schema/alto-vebra-integration-state-response-schema.json",
  "title": "IntegrationStateResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alto-vebra-partners-api-openapi.yml#/components/schemas/IntegrationStateResponse",
  "type": "object",
  "properties": {
    "integrationId": {
      "type": "string",
      "format": "uuid"
    },
    "integrationName": {
      "type": [
        "string",
        "null"
      ]
    },
    "agencyName": {
      "type": [
        "string",
        "null"
      ]
    },
    "requestedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "agencyIntegrationData": {},
    "branches": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/IntegrationBranchResponse"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "BranchAddressResponse": {
      "type": "object",
      "properties": {
        "subDwelling": {
          "type": [
            "string",
            "null"
          ]
        },
        "nameNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "locality": {
          "type": [
            "string",
            "null"
          ]
        },
        "town": {
          "type": [
            "string",
            "null"
          ]
        },
        "county": {
          "type": [
            "string",
            "null"
          ]
        },
        "postCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "IntegrationBranchResponse": {
      "type": "object",
      "properties": {
        "branchRef": {
          "type": [
            "string",
            "null"
          ]
        },
        "branchId": {
          "type": "integer",
          "format": "int32"
        },
        "branchName": {
          "type": [
            "string",
            "null"
          ]
        },
        "branchAddress": {
          "allOf": [
            {
              "$ref": "#/$defs/BranchAddressResponse"
            }
          ]
        },
        "overridesAgencyIntegrationData": {
          "type": "boolean"
        },
        "integrationData": {}
      },
      "additionalProperties": false
    }
  }
}