{
  "openapi": "3.1.1",
  "info": {
    "title": "Alige.Projects.Api",
    "description": "API .NET 10 (Hexagonal) para recepción y procesamiento de pólizas en PDF. Recibe archivos del UkuviConector u otros consumidores, los pasa por OCR (py.ukuvi.com) y persiste pólizas en SQL Server vía Stored Procedures.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api-conector.alige-seguro.com/"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "Health"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/polizas/extract": {
      "post": {
        "tags": [
          "Polizas"
        ],
        "summary": "OCR-only: extrae datos del PDF sin persistir.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OcrPolizaDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas/from-pdf": {
      "post": {
        "tags": [
          "Polizas"
        ],
        "summary": "OCR + persistencia: extrae el PDF, guarda el archivo y la póliza. Si la póliza ya existía (llave Aseguradora+Ramo+SubRamo+NumeroPoliza) NO recrea póliza ni contacto; solo adjunta el archivo a la póliza existente cuando aún no tenía uno (flags YaExistia / ArchivoGuardado en la respuesta 201).",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolizaFromPdfFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolizaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas/from-data": {
      "post": {
        "tags": [
          "Polizas"
        ],
        "summary": "Alta de póliza solo con datos (sin PDF). Para pólizas que el conector ya tiene en su BD pero no logró bajar la carátula.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolizaFromDataRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolizaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas/from-data-with-pdf": {
      "post": {
        "tags": [
          "Polizas"
        ],
        "summary": "Alta de póliza con DATOS del conector + PDF (sin OCR). La API persiste la póliza usando el JSON 'data' (mismo shape que from-data) y guarda el 'file' como carátula. Si la póliza ya existía, NO recrea póliza ni contacto: solo adjunta el archivo a la póliza existente cuando aún no tenía uno (flags YaExistia / ArchivoGuardado en la respuesta 201).",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolizaFromDataWithPdfFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolizaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas/{id}": {
      "get": {
        "tags": [
          "Polizas"
        ],
        "summary": "Obtiene la metadata de una póliza por su Id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolizaResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas/{id}/archivo": {
      "get": {
        "tags": [
          "Polizas"
        ],
        "summary": "Descarga el PDF asociado a la póliza.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileContentResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-colectivas/from-data-with-pdf": {
      "post": {
        "tags": [
          "PolizasColectivas"
        ],
        "summary": "Alta de póliza COLECTIVA (flotilla/grupal) con DATOS del conector. PDF madre OPCIONAL: si viene se asocia a la raíz, si no, la raíz se persiste sin archivo y un re-envío posterior con PDF lo adjunta. Persiste raíz + N incisos en el esquema [poliza] sin OCR. Idempotente por llave (Aseguradora+Ramo+SubRamo+Producto+Numero+TipoPoliza): si la raíz ya existía, NO duplica incisos y solo adjunta el PDF si faltaba.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolizaColectivaWithPdfFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolizaColectivaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/polizasnotificar": {
      "get": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Obtiene recibos pendientes de cobranza para notificar.",
        "parameters": [
          {
            "name": "clienteId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "usuarioId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "proposito",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "aseguradoras",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReciboParaNotificar"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/marcarnotificado": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Marca un recibo como notificado por WhatsApp para que no se vuelva a enviar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarcarNotificadoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/conciliacion": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Registra el resultado de verificación de pago para un batch de recibos.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConciliacionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConciliacionResumen"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/recibosactuales": {
      "get": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Obtiene recibos actuales de cobranza por usuario y cliente.",
        "parameters": [
          {
            "name": "usuarioId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "clienteId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReciboActual"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/estatus": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Estatus real de recibos y pólizas en el CRM (SOLO LECTURA, máx. 500 identificadores).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/EstatusCrmRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstatusCrmResultado"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/revertirpagado": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Devuelve a Pendiente recibos que la conciliación del Conector marcó pagados por error (máx. 100).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevertirPagadoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReversionPagadoResumen"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/forma-pago": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Corrige la forma de pago de pólizas y reconcilia sus recibos principales contra el calendario del portal (máx. 100; dryRun por defecto).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CambiarFormaPagoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CambioFormaPagoResumen"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contactos/{contactoId}": {
      "patch": {
        "tags": [
          "Contactos"
        ],
        "summary": "Actualiza correo, teléfono y/o nombre de un contacto en el CRM. Los campos null no se modifican.",
        "parameters": [
          {
            "name": "contactoId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "clienteId",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActualizarContactoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/catalogos/ramos": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/catalogos/subramos/{ramoId}": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "parameters": [
          {
            "name": "ramoId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/catalogos/aseguradoras": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/catalogos/productos/{aseguradoraId}/{ramoId}": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "parameters": [
          {
            "name": "aseguradoraId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ramoId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/catalogos/formas-pago": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/catalogos/metodos-pago": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/polizas-existencia/consultar": {
      "post": {
        "tags": [
          "PolizasExistencia"
        ],
        "summary": "Dado un lote de pólizas, indica cuáles ya existen en el CRM y cuáles de esas ya tienen carátula. Sólo lectura. Acotado al ClienteId del metadata. Un folio que casa con más de una póliza se reporta Ambiguo y Existe=false: no se afirma lo que no se puede probar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckExistenciaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckExistenciaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-caratula/reponer": {
      "post": {
        "tags": [
          "PolizasCaratula"
        ],
        "summary": "Repone el PDF de una carátula cuyo registro quedó huérfano (la fila existe pero el archivo no está en disco). ACTUALIZA la fila indicada: no borra ni inserta otra. Aborta sin escribir si la fila es de otro cliente, si la ruta en base ya cambió, o si el archivo sí está.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReponerCaratulaFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReponerCaratulaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-caratula-carga/consultar": {
      "post": {
        "tags": [
          "PolizasCaratulaCarga"
        ],
        "summary": "Vista previa de la carga de carátulas: para cada número de póliza del cliente, si se adjuntaría, se repararía o se omitiría (no existe, ambigua, ya tiene carátula, no verificable). Sólo lectura.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultarCaratulasRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultarCaratulasResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-caratula-carga/adjuntar": {
      "post": {
        "tags": [
          "PolizasCaratulaCarga"
        ],
        "summary": "Adjunta la carátula de una póliza del cliente que no tiene ninguna, o repara la de una cuyo PDF no está en disco. La póliza se busca por número. Si ya tiene carátula en disco, no existe o el número es ambiguo, no escribe nada.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdjuntarCaratulaFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdjuntarCaratulaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/reactivacion-poliza": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Reactiva pólizas que el CRM inactivó por no pago (MotivoId 5, o 7 automático) cuando la aseguradora confirma que la póliza no tiene deuda exigible. Máx. 100 por petición.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ReactivacionPolizaRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReactivacionPolizaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cobranza/cancelacion-poliza": {
      "post": {
        "tags": [
          "Cobranza"
        ],
        "summary": "Inactiva pólizas que la aseguradora confirma canceladas (MovimientoId 1, MotivoId 4 'Otro'). Si la póliza ya está inactiva no la toca. Máx. 100 por petición.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/CancelacionPolizaRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelacionPolizaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-duplicados/consultar": {
      "post": {
        "tags": [
          "Duplicados del Conector"
        ],
        "summary": "SOLO LECTURA. Por cada (folio, aseguradora) devuelve todos los registros del CRM con ese folio: alta (usuario y fecha), evidencia de que la creó el Conector (bitácora de envíos de la API), recibos y pagos, y actividad posterior de personas. Máx. 500 folios.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ConsultaDuplicadosRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaDuplicadosResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/v1/polizas-duplicados/baja": {
      "post": {
        "tags": [
          "Duplicados del Conector"
        ],
        "summary": "Baja controlada de duplicados creados por el Conector. modo 'ensayo' (ROLLBACK) o 'ejecutar' (requiere BajaDuplicadosConector:Habilitada). Máx. 50 pares por llamada.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/BajaDuplicadosRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BajaDuplicadosResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/polizas-duplicados/reversa": {
      "post": {
        "tags": [
          "Duplicados del Conector"
        ],
        "summary": "Restaura desde el respaldo todas las bajas ejecutadas de un lote.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/ReversaBajaRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReversaBajaResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActividadTabla": {
        "required": [
          "polizaId",
          "esquema",
          "tabla",
          "filas",
          "filasDelCreador",
          "filasOtroUsuario",
          "filasSinUsuario",
          "columnaUsuario"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "esquema": {
            "type": "string"
          },
          "tabla": {
            "type": "string"
          },
          "filas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "filasDelCreador": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "filasOtroUsuario": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "filasSinUsuario": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "columnaUsuario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ActualizarContactoRequest": {
        "required": [
          "correo",
          "telefono",
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno"
        ],
        "type": "object",
        "properties": {
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdjuntarCaratulaFormRequest": {
        "type": "object",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/IFormFile"
          },
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numeroPoliza": {
            "type": "string"
          }
        }
      },
      "AdjuntarCaratulaResponse": {
        "required": [
          "resultado",
          "polizaId",
          "numeroPolizaCrm",
          "consecutivo",
          "rutaNueva",
          "tamanioBytes"
        ],
        "type": "object",
        "properties": {
          "resultado": {
            "type": "string"
          },
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "numeroPolizaCrm": {
            "type": "string"
          },
          "consecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rutaNueva": {
            "type": "string"
          },
          "tamanioBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AgenteNotificacion": {
        "required": [
          "idCrm",
          "nombreCompleto",
          "correo",
          "telefonoE164"
        ],
        "type": "object",
        "properties": {
          "idCrm": {
            "type": "string"
          },
          "nombreCompleto": {
            "type": "string"
          },
          "correo": {
            "type": "string"
          },
          "telefonoE164": {
            "type": "string"
          }
        }
      },
      "AseguradoDataRequest": {
        "required": [
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string"
          },
          "apellidoPaterno": {
            "type": "string"
          },
          "apellidoMaterno": {
            "type": "string"
          },
          "fechaNacimiento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "sexo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BajaDuplicadosRequest": {
        "required": [
          "modo",
          "lote",
          "pares"
        ],
        "type": "object",
        "properties": {
          "modo": {
            "type": [
              "null",
              "string"
            ]
          },
          "lote": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "pares": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ParDuplicado"
            }
          }
        }
      },
      "BajaDuplicadosResponse": {
        "required": [
          "lote",
          "modo",
          "aceptados",
          "rechazados",
          "errores",
          "pares",
          "filasPorTabla"
        ],
        "type": "object",
        "properties": {
          "lote": {
            "type": "string",
            "format": "uuid"
          },
          "modo": {
            "type": "string"
          },
          "aceptados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rechazados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "errores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoPar"
            }
          },
          "filasPorTabla": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilasTocadas"
            }
          }
        }
      },
      "BeneficiarioDataRequest": {
        "required": [
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "porcentaje"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string"
          },
          "apellidoPaterno": {
            "type": "string"
          },
          "apellidoMaterno": {
            "type": "string"
          },
          "porcentaje": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CambiarFormaPagoPolizaRequest": {
        "required": [
          "polizaId",
          "formaPagoId",
          "recibos"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string"
          },
          "formaPagoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CambiarFormaPagoReciboRequest"
            }
          },
          "primaAnual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CambiarFormaPagoReciboRequest": {
        "required": [
          "parcialidad",
          "inicioVigencia",
          "finVigencia",
          "fechaVencimiento",
          "monto"
        ],
        "type": "object",
        "properties": {
          "parcialidad": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicioVigencia": {
            "type": "string"
          },
          "finVigencia": {
            "type": "string"
          },
          "fechaVencimiento": {
            "type": "string"
          },
          "monto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CambiarFormaPagoRequest": {
        "required": [
          "motivo",
          "dryRun",
          "polizas"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dryRun": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "polizas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CambiarFormaPagoPolizaRequest"
            }
          }
        }
      },
      "CambioFormaPagoRecibo": {
        "required": [
          "reciboId",
          "parcialidad",
          "tipo",
          "status",
          "fechaPago",
          "inicioVigencia",
          "finVigencia",
          "fechaVencimiento",
          "primaNeta",
          "recargos",
          "derechos",
          "iva",
          "primaTotal",
          "accion"
        ],
        "type": "object",
        "properties": {
          "reciboId": {
            "type": "string",
            "format": "uuid"
          },
          "parcialidad": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fechaPago": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechaVencimiento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "primaNeta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "derechos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "iva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "accion": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CambioFormaPagoResultado": {
        "required": [
          "polizaId",
          "resultado",
          "motivoRechazo",
          "formaPagoAntes",
          "formaPagoDespues",
          "recibosAntes",
          "recibosDespues"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "motivoRechazo": {
            "type": [
              "null",
              "string"
            ]
          },
          "formaPagoAntes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "formaPagoDespues": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibosAntes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CambioFormaPagoRecibo"
            }
          },
          "recibosDespues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CambioFormaPagoRecibo"
            }
          },
          "primaTotalAntes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotalDespues": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "finVigenciaAntes": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigenciaDespues": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "CambioFormaPagoResumen": {
        "required": [
          "dryRun",
          "abortado",
          "aplicadas",
          "sinCambio",
          "rechazadas",
          "cambiarian",
          "polizas"
        ],
        "type": "object",
        "properties": {
          "dryRun": {
            "type": "boolean"
          },
          "abortado": {
            "type": "boolean"
          },
          "aplicadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sinCambio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rechazadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cambiarian": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "polizas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CambioFormaPagoResultado"
            }
          }
        }
      },
      "CancelacionPolizaItem": {
        "required": [
          "polizaId",
          "reciboId",
          "resultado",
          "motivo",
          "motivoIdAnterior"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoIdAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CancelacionPolizaRequest": {
        "required": [
          "resultados"
        ],
        "type": "object",
        "properties": {
          "resultados": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SolicitudCancelacion"
            }
          }
        }
      },
      "CancelacionPolizaResponse": {
        "required": [
          "canceladas",
          "yaInactivas",
          "noEncontradas",
          "errores",
          "noCancelables",
          "items"
        ],
        "type": "object",
        "properties": {
          "canceladas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "yaInactivas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noEncontradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "errores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noCancelables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolizaNoCancelable"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CancelacionPolizaItem"
            }
          }
        }
      },
      "CaratulaConsultaItem": {
        "required": [
          "numeroConsultado",
          "estado",
          "polizaId",
          "numeroPolizaCrm"
        ],
        "type": "object",
        "properties": {
          "numeroConsultado": {
            "type": "string"
          },
          "estado": {
            "type": "string"
          },
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "numeroPolizaCrm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CheckExistenciaRequest": {
        "required": [
          "metadata",
          "polizas"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/ExistenciaMetadataRequest"
          },
          "polizas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolizaLlaveRequest"
            }
          }
        }
      },
      "CheckExistenciaResponse": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolizaExistenciaItem"
            }
          },
          "verificacionArchivoDisponible": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "CoberturaBitacoraEnvios": {
        "required": [
          "disponible",
          "archivos",
          "desde",
          "hasta"
        ],
        "type": "object",
        "properties": {
          "disponible": {
            "type": "boolean"
          },
          "archivos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "desde": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "hasta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "CoberturaDataRequest": {
        "required": [
          "descripcion"
        ],
        "type": "object",
        "properties": {
          "descripcion": {
            "type": "string"
          },
          "sumaAsegurada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "deducible": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notas": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CobranzaNotificacion": {
        "required": [
          "reciboIdCrm",
          "fechaLimite",
          "fechaPosibleCancelacion",
          "moneda",
          "primaNeta",
          "derecho",
          "recargo",
          "descuento",
          "iva",
          "primaTotal"
        ],
        "type": "object",
        "properties": {
          "reciboIdCrm": {
            "type": "string"
          },
          "fechaLimite": {
            "type": "string",
            "format": "date-time"
          },
          "fechaPosibleCancelacion": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "moneda": {
            "type": "string"
          },
          "primaNeta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "derecho": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "descuento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "iva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "numeroRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalRecibos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipoRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numeroEndoso": {
            "type": [
              "null",
              "string"
            ]
          },
          "primaNetaRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargoRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "derechoRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ivaRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotalRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ConceptoActividad": {
        "required": [
          "concepto",
          "existe",
          "tablas",
          "tablasLigablesPorPolizaId"
        ],
        "type": "object",
        "properties": {
          "concepto": {
            "type": "string"
          },
          "existe": {
            "type": "boolean"
          },
          "tablas": {
            "type": "string"
          },
          "tablasLigablesPorPolizaId": {
            "type": "string"
          }
        }
      },
      "ConciliacionItemRequest": {
        "required": [
          "reciboId",
          "secuenciaAviso",
          "estadoPago",
          "fuente",
          "verificadoEn"
        ],
        "type": "object",
        "properties": {
          "reciboId": {
            "type": "string"
          },
          "secuenciaAviso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "estadoPago": {
            "type": "string"
          },
          "fuente": {
            "type": "string"
          },
          "verificadoEn": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ConciliacionRequest": {
        "required": [
          "resultados"
        ],
        "type": "object",
        "properties": {
          "resultados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConciliacionItemRequest"
            }
          }
        }
      },
      "ConciliacionResumen": {
        "required": [
          "afectados",
          "noEncontrados"
        ],
        "type": "object",
        "properties": {
          "afectados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noEncontrados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ConsentimientoWhatsapp": {
        "required": [
          "otorgado",
          "fecha",
          "referencia"
        ],
        "type": "object",
        "properties": {
          "otorgado": {
            "type": "boolean"
          },
          "fecha": {
            "type": "string",
            "format": "date-time"
          },
          "referencia": {
            "type": "string"
          }
        }
      },
      "ConsultaDuplicadosRequest": {
        "required": [
          "folios"
        ],
        "type": "object",
        "properties": {
          "folios": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FolioAseguradora"
            }
          }
        }
      },
      "ConsultaDuplicadosResponse": {
        "required": [
          "registros",
          "ediciones",
          "actividad",
          "conceptos",
          "bitacoraEnvios"
        ],
        "type": "object",
        "properties": {
          "registros": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistroCrm"
            }
          },
          "ediciones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EdicionRegistro"
            }
          },
          "actividad": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActividadTabla"
            }
          },
          "conceptos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConceptoActividad"
            }
          },
          "bitacoraEnvios": {
            "$ref": "#/components/schemas/CoberturaBitacoraEnvios"
          }
        }
      },
      "ConsultarCaratulasRequest": {
        "required": [
          "clienteId",
          "usuarioId",
          "numerosPoliza"
        ],
        "type": "object",
        "properties": {
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numerosPoliza": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConsultarCaratulasResponse": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaratulaConsultaItem"
            }
          }
        }
      },
      "ContratanteDataRequest": {
        "required": [
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string"
          },
          "apellidoPaterno": {
            "type": "string"
          },
          "apellidoMaterno": {
            "type": "string"
          },
          "rfc": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocial": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccion": {
            "type": [
              "null",
              "string"
            ]
          },
          "colonia": {
            "type": [
              "null",
              "string"
            ]
          },
          "ciudad": {
            "type": [
              "null",
              "string"
            ]
          },
          "estado": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPostal": {
            "type": [
              "null",
              "string"
            ]
          },
          "genero": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContratanteNotificacion": {
        "required": [
          "idCrm",
          "nombreCompleto",
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "correo",
          "telefonoE164"
        ],
        "type": "object",
        "properties": {
          "idCrm": {
            "type": "string"
          },
          "nombreCompleto": {
            "type": "string"
          },
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefonoE164": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreatePolizaColectivaWithPdfFormRequest": {
        "type": "object",
        "properties": {
          "file": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IFormFile"
              }
            ]
          },
          "data": {
            "type": "string"
          }
        }
      },
      "CreatePolizaFromDataRequest": {
        "required": [
          "metadata",
          "poliza",
          "contratante",
          "plan"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/PolizaMetadataRequest"
          },
          "poliza": {
            "$ref": "#/components/schemas/PolizaDataRequest"
          },
          "contratante": {
            "$ref": "#/components/schemas/ContratanteDataRequest"
          },
          "plan": {
            "$ref": "#/components/schemas/PlanDataRequest"
          },
          "detalleAuto": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DetalleAutoDataRequest"
              }
            ]
          },
          "asegurados": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AseguradoDataRequest"
            }
          },
          "beneficiarios": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/BeneficiarioDataRequest"
            }
          },
          "coberturas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CoberturaDataRequest"
            }
          }
        }
      },
      "CreatePolizaFromDataWithPdfFormRequest": {
        "type": "object",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/IFormFile"
          },
          "data": {
            "type": "string"
          }
        }
      },
      "CreatePolizaFromPdfFormRequest": {
        "type": "object",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/IFormFile"
          },
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idUsuarioTitular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agenteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "grupoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DestinatarioWhatsapp": {
        "required": [
          "rol",
          "telefonoE164",
          "nombreDisplay",
          "consentimientoWhatsapp"
        ],
        "type": "object",
        "properties": {
          "rol": {
            "type": "string"
          },
          "telefonoE164": {
            "type": "string"
          },
          "nombreDisplay": {
            "type": "string"
          },
          "consentimientoWhatsapp": {
            "$ref": "#/components/schemas/ConsentimientoWhatsapp"
          }
        }
      },
      "DetalleAutoDataRequest": {
        "required": [
          "marca",
          "modelo",
          "version",
          "descripcion",
          "numeroSerie",
          "placa",
          "motor",
          "uso"
        ],
        "type": "object",
        "properties": {
          "marca": {
            "type": "string"
          },
          "modelo": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "descripcion": {
            "type": "string"
          },
          "numeroSerie": {
            "type": "string"
          },
          "placa": {
            "type": "string"
          },
          "motor": {
            "type": "string"
          },
          "uso": {
            "type": "string"
          }
        }
      },
      "EdicionRegistro": {
        "required": [
          "polizaId",
          "columnasJson"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "columnasJson": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EntityTagHeaderValue": {
        "type": "object",
        "properties": {
          "tag": {
            "$ref": "#/components/schemas/StringSegment"
          },
          "isWeak": {
            "type": "boolean"
          }
        }
      },
      "EstatusCodigo": {
        "required": [
          "codigo",
          "etiqueta"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "etiqueta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EstatusCrmNoEncontrado": {
        "required": [
          "tipo",
          "valor"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "valor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EstatusCrmRequest": {
        "required": [
          "reciboIds",
          "polizaIds",
          "numerosPoliza"
        ],
        "type": "object",
        "properties": {
          "reciboIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "polizaIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "numerosPoliza": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EstatusCrmResultado": {
        "required": [
          "recibos",
          "polizas",
          "noEncontrados"
        ],
        "type": "object",
        "properties": {
          "recibos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReciboEstatusCrm"
            }
          },
          "polizas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolizaEstatusCrm"
            }
          },
          "noEncontrados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EstatusCrmNoEncontrado"
            }
          }
        }
      },
      "EstatusPolizaCrm": {
        "required": [
          "codigo",
          "etiqueta",
          "motivoTxt",
          "motivoEtiqueta",
          "statusMovimiento"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "etiqueta": {
            "type": "string"
          },
          "motivoTxt": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoEtiqueta": {
            "type": [
              "null",
              "string"
            ]
          },
          "statusMovimiento": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EvidenciaCancelacionPoliza": {
        "required": [
          "fechaCorte",
          "canceladaPorAseguradora",
          "fechaCancelacion"
        ],
        "type": "object",
        "properties": {
          "fechaCorte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "canceladaPorAseguradora": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "fechaCancelacion": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EvidenciaConector": {
        "required": [
          "fuente",
          "via",
          "fecha",
          "archivo"
        ],
        "type": "object",
        "properties": {
          "fuente": {
            "type": "string"
          },
          "via": {
            "type": "string"
          },
          "fecha": {
            "type": "string",
            "format": "date-time"
          },
          "archivo": {
            "type": "string"
          }
        }
      },
      "EvidenciaPagoPoliza": {
        "required": [
          "fechaCorte",
          "tieneDeudaExigible",
          "recibosPagados"
        ],
        "type": "object",
        "properties": {
          "fechaCorte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "tieneDeudaExigible": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "recibosPagados": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ReciboPagadoEvidencia"
            }
          },
          "enGracia": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "finGracia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "ExistenciaMetadataRequest": {
        "required": [
          "clienteId"
        ],
        "type": "object",
        "properties": {
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "FilasTocadas": {
        "required": [
          "tabla",
          "filas",
          "origen"
        ],
        "type": "object",
        "properties": {
          "tabla": {
            "type": "string"
          },
          "filas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "origen": {
            "type": "string"
          }
        }
      },
      "FileContentResult": {
        "type": "object",
        "properties": {
          "fileContents": {
            "type": "string",
            "format": "byte"
          },
          "contentType": {
            "type": [
              "null",
              "string"
            ]
          },
          "fileDownloadName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastModified": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "entityTag": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EntityTagHeaderValue"
              }
            ]
          },
          "enableRangeProcessing": {
            "type": "boolean"
          }
        }
      },
      "FolioAseguradora": {
        "required": [
          "folio",
          "aseguradoraId"
        ],
        "type": "object",
        "properties": {
          "folio": {
            "type": [
              "null",
              "string"
            ]
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "MarcarNotificadoRequest": {
        "required": [
          "reciboId",
          "secuenciaAviso"
        ],
        "type": "object",
        "properties": {
          "reciboId": {
            "type": "string"
          },
          "secuenciaAviso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MotivoEstatus": {
        "required": [
          "id",
          "etiqueta"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "etiqueta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MovimientoEstatusCrm": {
        "required": [
          "movimientoId",
          "motivo",
          "motivoTxt",
          "status",
          "fecha",
          "usuario"
        ],
        "type": "object",
        "properties": {
          "movimientoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "motivo": {
            "$ref": "#/components/schemas/MotivoEstatus"
          },
          "motivoTxt": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fecha": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrAseguradoDto": {
        "required": [
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "fechaNacimiento",
          "parentesco",
          "sexo"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaNacimiento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "sexo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrBeneficiarioDto": {
        "required": [
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "porcentaje",
          "parentesco"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "porcentaje": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrCoberturaDto": {
        "required": [
          "descripcion",
          "sumaAsegurada",
          "deducible",
          "notas"
        ],
        "type": "object",
        "properties": {
          "descripcion": {
            "type": [
              "null",
              "string"
            ]
          },
          "sumaAsegurada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "deducible": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notas": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrContratanteDto": {
        "required": [
          "rfc",
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "razonSocial",
          "direccion",
          "colonia",
          "ciudad",
          "estado",
          "codigoPostal",
          "telefono",
          "correo"
        ],
        "type": "object",
        "properties": {
          "rfc": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocial": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccion": {
            "type": [
              "null",
              "string"
            ]
          },
          "colonia": {
            "type": [
              "null",
              "string"
            ]
          },
          "ciudad": {
            "type": [
              "null",
              "string"
            ]
          },
          "estado": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPostal": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "genero": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrDetalleAutoDto": {
        "required": [
          "marca",
          "modelo",
          "version",
          "descripcion",
          "numeroSerie",
          "placa",
          "motor",
          "uso"
        ],
        "type": "object",
        "properties": {
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "modelo": {
            "type": [
              "null",
              "string"
            ]
          },
          "version": {
            "type": [
              "null",
              "string"
            ]
          },
          "descripcion": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroSerie": {
            "type": [
              "null",
              "string"
            ]
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "motor": {
            "type": [
              "null",
              "string"
            ]
          },
          "uso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrPlanDto": {
        "required": [
          "inicioVigencia",
          "finVigencia",
          "fechaEmision",
          "primaNeta",
          "primaTotal",
          "iva",
          "recargo",
          "gastosExpedicion",
          "sumaAsegurada",
          "plan",
          "plazo"
        ],
        "type": "object",
        "properties": {
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechaEmision": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "primaNeta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "iva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "gastosExpedicion": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "sumaAsegurada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "plan": {
            "type": [
              "null",
              "string"
            ]
          },
          "plazo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OcrPolizaDto": {
        "required": [
          "ramo",
          "aseguradoraNombre",
          "numeroPoliza",
          "formaPagoTexto",
          "moneda",
          "descuento",
          "contratante",
          "plan",
          "detalleAuto",
          "asegurados",
          "beneficiarios",
          "coberturas"
        ],
        "type": "object",
        "properties": {
          "ramo": {
            "$ref": "#/components/schemas/RamoId"
          },
          "aseguradoraNombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "formaPagoTexto": {
            "type": [
              "null",
              "string"
            ]
          },
          "moneda": {
            "type": [
              "null",
              "string"
            ]
          },
          "descuento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "contratante": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OcrContratanteDto"
              }
            ]
          },
          "plan": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OcrPlanDto"
              }
            ]
          },
          "detalleAuto": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OcrDetalleAutoDto"
              }
            ]
          },
          "asegurados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcrAseguradoDto"
            }
          },
          "beneficiarios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcrBeneficiarioDto"
            }
          },
          "coberturas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcrCoberturaDto"
            }
          }
        }
      },
      "ParDuplicado": {
        "required": [
          "bajaId",
          "quedaId"
        ],
        "type": "object",
        "properties": {
          "bajaId": {
            "type": [
              "null",
              "string"
            ]
          },
          "quedaId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PlanDataRequest": {
        "required": [
          "inicioVigencia",
          "finVigencia",
          "fechaEmision",
          "primaNeta",
          "primaTotal"
        ],
        "type": "object",
        "properties": {
          "inicioVigencia": {
            "type": "string",
            "format": "date-time"
          },
          "finVigencia": {
            "type": "string",
            "format": "date-time"
          },
          "fechaEmision": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "primaNeta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "iva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "gastosExpedicion": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "sumaAsegurada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "plan": {
            "type": [
              "null",
              "string"
            ]
          },
          "plazo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PolizaColectivaResponse": {
        "required": [
          "polizaGuidRaiz",
          "polizaIdNumerico",
          "numeroPoliza",
          "ramo",
          "tipoPoliza",
          "aseguradoraId",
          "contactoId",
          "embudoId",
          "inicioVigencia",
          "finVigencia",
          "primaTotal",
          "moneda",
          "incisosCreados",
          "rutaArchivo"
        ],
        "type": "object",
        "properties": {
          "polizaGuidRaiz": {
            "type": "string",
            "format": "uuid"
          },
          "polizaIdNumerico": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numeroPoliza": {
            "type": "string"
          },
          "ramo": {
            "$ref": "#/components/schemas/RamoId"
          },
          "tipoPoliza": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contactoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "embudoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicioVigencia": {
            "type": "string",
            "format": "date-time"
          },
          "finVigencia": {
            "type": "string",
            "format": "date-time"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "moneda": {
            "type": "string"
          },
          "incisosCreados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rutaArchivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "yaExistia": {
            "type": "boolean",
            "default": false
          },
          "archivoGuardado": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PolizaDataRequest": {
        "required": [
          "numeroPoliza",
          "ramo"
        ],
        "type": "object",
        "properties": {
          "numeroPoliza": {
            "type": "string"
          },
          "ramo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradoraNombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "subRamoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "productoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subRamoTexto": {
            "type": [
              "null",
              "string"
            ]
          },
          "productoTexto": {
            "type": [
              "null",
              "string"
            ]
          },
          "formaPagoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "metodoPagoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "formaPagoTexto": {
            "type": [
              "null",
              "string"
            ]
          },
          "moneda": {
            "type": [
              "null",
              "string"
            ]
          },
          "descuento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PolizaEstatusCrm": {
        "required": [
          "id",
          "numeroPoliza",
          "aseguradoraId",
          "origen",
          "eliminado",
          "estatusPoliza",
          "fechaCambioEstatus",
          "usuarioCambioEstatus",
          "estatusColumna",
          "ultimosMovimientos"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "numeroPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "origen": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "eliminado": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "estatusPoliza": {
            "$ref": "#/components/schemas/EstatusPolizaCrm"
          },
          "fechaCambioEstatus": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "usuarioCambioEstatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "estatusColumna": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimosMovimientos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimientoEstatusCrm"
            }
          },
          "formaPagoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PolizaExistenciaItem": {
        "required": [
          "numeroPolizaConsultado",
          "aseguradoraId",
          "ramoId",
          "subRamoId",
          "existe",
          "tieneCaratula"
        ],
        "type": "object",
        "properties": {
          "numeroPolizaConsultado": {
            "type": "string"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ramoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subRamoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "existe": {
            "type": "boolean"
          },
          "tieneCaratula": {
            "type": "boolean"
          },
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "contactoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rutaArchivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "ambiguo": {
            "type": "boolean",
            "default": false
          },
          "consecutivoCaratula": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "archivoVerificado": {
            "type": "string",
            "default": "no_verificado"
          }
        }
      },
      "PolizaLlaveRequest": {
        "required": [
          "numeroPoliza",
          "ramo"
        ],
        "type": "object",
        "properties": {
          "numeroPoliza": {
            "type": "string"
          },
          "ramo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradoraNombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "subRamoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subRamoTexto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PolizaMetadataRequest": {
        "required": [
          "clienteId",
          "usuarioId",
          "idUsuarioTitular",
          "agenteId"
        ],
        "type": "object",
        "properties": {
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idUsuarioTitular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agenteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "grupoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "contactoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vendedorManual": {
            "type": [
              "null",
              "string"
            ]
          },
          "vendedorUsuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "claveAgente": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PolizaNoCancelable": {
        "required": [
          "polizaId",
          "reciboId",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PolizaNoReactivable": {
        "required": [
          "polizaId",
          "reciboId",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PolizaNotificacion": {
        "required": [
          "idCrm",
          "numero",
          "aseguradoraClave",
          "aseguradoraEtiqueta",
          "ramo",
          "subramo",
          "plan",
          "formaPago"
        ],
        "type": "object",
        "properties": {
          "idCrm": {
            "type": "string"
          },
          "numero": {
            "type": "string"
          },
          "aseguradoraClave": {
            "type": "string"
          },
          "aseguradoraEtiqueta": {
            "type": "string"
          },
          "ramo": {
            "type": "string"
          },
          "subramo": {
            "type": "string"
          },
          "plan": {
            "type": [
              "null",
              "string"
            ]
          },
          "formaPago": {
            "type": "string"
          },
          "claveAgentePortal": {
            "type": [
              "null",
              "string"
            ]
          },
          "condicionClaveAgentePortal": {
            "type": [
              "null",
              "string"
            ]
          },
          "vendedorNombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "metodoPagoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PolizaResponse": {
        "required": [
          "id",
          "numeroPoliza",
          "ramo",
          "aseguradoraId",
          "contactoId",
          "embudoId",
          "inicioVigencia",
          "finVigencia",
          "primaTotal",
          "moneda",
          "rutaArchivo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "numeroPoliza": {
            "type": "string"
          },
          "ramo": {
            "$ref": "#/components/schemas/RamoId"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contactoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "embudoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "moneda": {
            "type": "string"
          },
          "rutaArchivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "yaExistia": {
            "type": "boolean",
            "default": false
          },
          "archivoGuardado": {
            "type": "boolean",
            "default": false
          },
          "montosActualizados": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RamoId": {
        "type": "integer"
      },
      "ReactivacionPolizaItem": {
        "required": [
          "polizaId",
          "reciboId",
          "resultado",
          "motivo",
          "motivoIdAnterior",
          "recibosMarcadosPagados",
          "recibosVencidosSinPago"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoIdAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibosMarcadosPagados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibosVencidosSinPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ReactivacionPolizaRequest": {
        "required": [
          "resultados"
        ],
        "type": "object",
        "properties": {
          "resultados": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SolicitudReactivacion"
            }
          }
        }
      },
      "ReactivacionPolizaResponse": {
        "required": [
          "reactivadas",
          "yaActivas",
          "noEncontradas",
          "errores",
          "noReactivables",
          "items"
        ],
        "type": "object",
        "properties": {
          "reactivadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "yaActivas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noEncontradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "errores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noReactivables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolizaNoReactivable"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReactivacionPolizaItem"
            }
          }
        }
      },
      "ReciboActual": {
        "required": [
          "polizaId",
          "reciboId",
          "fechaEmision",
          "nombre",
          "apellidoPaterno",
          "apellidoMaterno",
          "numeroPoliza",
          "ramo",
          "subramo",
          "aseguradoraId",
          "aseguradora",
          "metodoPago",
          "formaPago",
          "status",
          "inicioVigencia",
          "finVigencia",
          "vencimientoPago",
          "proximoPago",
          "primaTotal",
          "fechaPago",
          "ramoId",
          "productoId",
          "producto",
          "plan",
          "correo",
          "contactoId",
          "diaCompromisoPago",
          "inicioVigenciaPoliza",
          "finVigenciaPoliza",
          "diasAtraso",
          "motivoRechazo",
          "numeroRecibo",
          "tipoPoliza",
          "numeroSubGrupo",
          "subGrupoGuid",
          "totalRegistros"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ]
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoPaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "apellidoMaterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "ramo": {
            "type": [
              "null",
              "string"
            ]
          },
          "subramo": {
            "type": [
              "null",
              "string"
            ]
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aseguradora": {
            "type": [
              "null",
              "string"
            ]
          },
          "metodoPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "formaPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "vencimientoPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "proximoPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fechaPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "ramoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "productoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "producto": {
            "type": [
              "null",
              "string"
            ]
          },
          "plan": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "contactoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaCompromisoPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicioVigenciaPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "finVigenciaPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "diasAtraso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivoRechazo": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroRecibo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoPoliza": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numeroSubGrupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "subGrupoGuid": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "totalRegistros": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ReciboEstatusCrm": {
        "required": [
          "id",
          "polizaId",
          "numeroPoliza",
          "numeroRecibo",
          "tipo",
          "origen",
          "status",
          "fechaPago",
          "fechaLimite",
          "inicioVigencia",
          "finVigencia",
          "fechaUltimoCambio",
          "usuarioUltimoCambio",
          "vigenteParaCobranza"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "numeroPoliza": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroRecibo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "origen": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/EstatusCodigo"
          },
          "fechaPago": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechaLimite": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechaUltimoCambio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "usuarioUltimoCambio": {
            "type": [
              "null",
              "string"
            ]
          },
          "vigenteParaCobranza": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "excluidoDeAvisos": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "motivoExclusionAvisos": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaExclusionAvisos": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "primaNeta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recargos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "derechos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "iva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "primaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ReciboPagadoEvidencia": {
        "required": [
          "parcialidad",
          "vencimiento",
          "fechaPago",
          "monto"
        ],
        "type": "object",
        "properties": {
          "parcialidad": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencimiento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "fechaPago": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "monto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ReciboParaNotificar": {
        "required": [
          "eventId",
          "tipoEvento",
          "tenantClienteIdCrm",
          "emitidoEn",
          "secuenciaAviso",
          "poliza",
          "vigencia",
          "cobranza",
          "agente",
          "contratante",
          "destinatariosWhatsapp"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string"
          },
          "tipoEvento": {
            "type": "string"
          },
          "tenantClienteIdCrm": {
            "type": "string"
          },
          "emitidoEn": {
            "type": "string",
            "format": "date-time"
          },
          "secuenciaAviso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "poliza": {
            "$ref": "#/components/schemas/PolizaNotificacion"
          },
          "vigencia": {
            "$ref": "#/components/schemas/VigenciaNotificacion"
          },
          "cobranza": {
            "$ref": "#/components/schemas/CobranzaNotificacion"
          },
          "agente": {
            "$ref": "#/components/schemas/AgenteNotificacion"
          },
          "contratante": {
            "$ref": "#/components/schemas/ContratanteNotificacion"
          },
          "destinatariosWhatsapp": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DestinatarioWhatsapp"
            }
          }
        }
      },
      "RegistroCrm": {
        "required": [
          "polizaId",
          "folioSolicitado",
          "numeroPoliza",
          "aseguradoraId",
          "ramoId",
          "subRamoId",
          "productoId",
          "inicioVigencia",
          "finVigencia",
          "eliminado",
          "motivoInactiva",
          "creadoPorUsuarioId",
          "creadoEn",
          "recibos",
          "recibosPagados",
          "montoPagado"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "folioSolicitado": {
            "type": "string"
          },
          "numeroPoliza": {
            "type": "string"
          },
          "aseguradoraId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ramoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subRamoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "productoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicioVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "finVigencia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "eliminado": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivoInactiva": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "creadoPorUsuarioId": {
            "type": [
              "null",
              "string"
            ]
          },
          "creadoEn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "recibos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibosPagados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "montoPagado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "evidenciaConector": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EvidenciaConector"
              }
            ]
          }
        }
      },
      "ReponerCaratulaFormRequest": {
        "type": "object",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/IFormFile"
          },
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "consecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rutaEsperada": {
            "type": "string"
          },
          "clienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ReponerCaratulaResponse": {
        "required": [
          "polizaId",
          "consecutivo",
          "rutaAnterior",
          "rutaNueva",
          "tamanioBytes"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "consecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rutaAnterior": {
            "type": "string"
          },
          "rutaNueva": {
            "type": "string"
          },
          "tamanioBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ResultadoPar": {
        "required": [
          "fila",
          "polizaBajaId",
          "polizaQuedaId",
          "resultado",
          "motivo",
          "detalle"
        ],
        "type": "object",
        "properties": {
          "fila": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "polizaBajaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "polizaQuedaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalle": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ResultadoReversa": {
        "required": [
          "polizaId",
          "resultado",
          "detalle"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": "string",
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "detalle": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ReversaBajaRequest": {
        "required": [
          "lote"
        ],
        "type": "object",
        "properties": {
          "lote": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "ReversaBajaResponse": {
        "required": [
          "lote",
          "revertidas",
          "sinCambio",
          "errores",
          "items"
        ],
        "type": "object",
        "properties": {
          "lote": {
            "type": "string",
            "format": "uuid"
          },
          "revertidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sinCambio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "errores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoReversa"
            }
          }
        }
      },
      "ReversionPagadoResultado": {
        "required": [
          "reciboId",
          "resultado",
          "statusPrevio",
          "fechaPagoPrevia",
          "statusNuevo",
          "fechaPagoNueva"
        ],
        "type": "object",
        "properties": {
          "reciboId": {
            "type": "string",
            "format": "uuid"
          },
          "resultado": {
            "type": "string"
          },
          "statusPrevio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fechaPagoPrevia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "statusNuevo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fechaPagoNueva": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ReversionPagadoResumen": {
        "required": [
          "revertidos",
          "noAplican",
          "noEncontrados",
          "recibos"
        ],
        "type": "object",
        "properties": {
          "revertidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noAplican": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noEncontrados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recibos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReversionPagadoResultado"
            }
          }
        }
      },
      "RevertirPagadoItemRequest": {
        "required": [
          "reciboId",
          "fechaPagoEsperada"
        ],
        "type": "object",
        "properties": {
          "reciboId": {
            "type": "string"
          },
          "fechaPagoEsperada": {
            "type": "string"
          }
        }
      },
      "RevertirPagadoRequest": {
        "required": [
          "motivo",
          "recibos"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "recibos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RevertirPagadoItemRequest"
            }
          }
        }
      },
      "SolicitudCancelacion": {
        "required": [
          "polizaId",
          "reciboId",
          "estadoPago",
          "fuente",
          "verificadoEn",
          "evidencia"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ]
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ]
          },
          "estadoPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "fuente": {
            "type": [
              "null",
              "string"
            ]
          },
          "verificadoEn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "evidencia": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EvidenciaCancelacionPoliza"
              }
            ]
          }
        }
      },
      "SolicitudReactivacion": {
        "required": [
          "polizaId",
          "reciboId",
          "estadoPago",
          "fuente",
          "verificadoEn",
          "evidencia"
        ],
        "type": "object",
        "properties": {
          "polizaId": {
            "type": [
              "null",
              "string"
            ]
          },
          "reciboId": {
            "type": [
              "null",
              "string"
            ]
          },
          "estadoPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "fuente": {
            "type": [
              "null",
              "string"
            ]
          },
          "verificadoEn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "evidencia": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EvidenciaPagoPoliza"
              }
            ]
          }
        }
      },
      "StringSegment": {
        "type": "object",
        "properties": {
          "buffer": {
            "type": [
              "null",
              "string"
            ]
          },
          "offset": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "length": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "value": {
            "type": [
              "null",
              "string"
            ]
          },
          "hasValue": {
            "type": "boolean"
          }
        }
      },
      "VigenciaNotificacion": {
        "required": [
          "inicio",
          "fin"
        ],
        "type": "object",
        "properties": {
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "fin": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Health"
    },
    {
      "name": "Polizas"
    },
    {
      "name": "PolizasColectivas"
    },
    {
      "name": "Cobranza"
    },
    {
      "name": "Contactos"
    },
    {
      "name": "Catalogos"
    },
    {
      "name": "PolizasExistencia"
    },
    {
      "name": "PolizasCaratula"
    },
    {
      "name": "PolizasCaratulaCarga"
    },
    {
      "name": "Duplicados del Conector"
    }
  ]
}