{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pluggy/json-schema/pluggy-smart-transfer-preauthorization-balance-schema.json",
  "title": "SmartTransferPreauthorizationBalance",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-smart-transfer-api-openapi.yml#/components/schemas/SmartTransferPreauthorizationBalance",
  "type": "object",
  "required": [
    "balance",
    "overdraft"
  ],
  "properties": {
    "balance": {
      "type": "number",
      "description": "Source account balance in BRL."
    },
    "overdraft": {
      "description": "Overdraft limit of the source account. Null when the institution does not share it.",
      "oneOf": [
        {
          "$ref": "#/$defs/SmartTransferOverdraft"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "SmartTransferOverdraft": {
      "type": "object",
      "required": [
        "contracted",
        "used",
        "available"
      ],
      "properties": {
        "contracted": {
          "type": "number",
          "description": "Overdraft limit contracted, in BRL."
        },
        "used": {
          "type": "number",
          "description": "Part of the overdraft limit in use, in BRL."
        },
        "available": {
          "type": "number",
          "description": "Part of the overdraft limit still available, in BRL."
        }
      }
    }
  }
}