{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/declararfacil-com/json-schema/declararfacil-com-manual-expense-input-schema.json",
  "title": "ManualExpenseInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/declararfacil-com-manual-expenses-api-openapi.yml#/components/schemas/ManualExpenseInput",
  "type": "object",
  "required": [
    "concepto",
    "tipoGasto",
    "fecha",
    "importe"
  ],
  "properties": {
    "concepto": {
      "type": "string"
    },
    "tipoGasto": {
      "type": "string",
      "enum": [
        "SEGURIDAD_SOCIAL",
        "COMISIONES_BANCARIAS",
        "EFECTIVO",
        "IMPUESTOS",
        "OTROS"
      ]
    },
    "fecha": {
      "type": "string",
      "description": "YYYY-MM-DD"
    },
    "importe": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "tieneIVA": {
      "type": "boolean",
      "default": false
    },
    "tipoIVA": {
      "type": "number"
    },
    "cuotaIVA": {
      "type": "number"
    },
    "esDeducible": {
      "type": "boolean",
      "default": true
    },
    "porcentajeDeduccion": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 100
    },
    "notas": {
      "type": "string"
    }
  }
}