{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bancomat/main/json-schema/bancomat-create-ais-session-request-schema.json",
  "title": "CreateAisSessionRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bancomat-ais-service-api-openapi.yml#/components/schemas/CreateAisSessionRequest",
  "properties": {
    "consentType": {
      "$ref": "#/$defs/AisConsentType"
    },
    "iban": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "nokRedirect": {
      "type": "string"
    },
    "okRedirect": {
      "type": "string"
    },
    "surname": {
      "type": "string"
    },
    "vatCode": {
      "type": "string"
    }
  },
  "required": [
    "okRedirect",
    "nokRedirect"
  ],
  "type": "object",
  "$defs": {
    "AisConsentType": {
      "enum": [
        "transaction",
        "balance"
      ],
      "type": "string"
    }
  }
}