LAgencia-prospects-softseguros 0.1.15__tar.gz → 0.1.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/PKG-INFO +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/pyproject.toml +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/LAgencia_prospects_softseguros.egg-info/PKG-INFO +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/create_customers_softin.py +17 -4
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/README.md +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/setup.cfg +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/LAgencia_prospects_softseguros.egg-info/SOURCES.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/LAgencia_prospects_softseguros.egg-info/dependency_links.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/LAgencia_prospects_softseguros.egg-info/requires.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/LAgencia_prospects_softseguros.egg-info/top_level.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/execute_sincronization.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/main.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/pr_async_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/pr_repository_async.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/codes_status_api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/custom_execptions_api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/execute_load_to_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/models_request.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_libertador/models_response.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softin/fetch_softin.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/api_softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/create_customers_libertador.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/create_prospectsfrom_in_crm_softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/models_requests.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/api_softseguros/models_response.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/config/logging_config.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/config/settings.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/config_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/models/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/models/models.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/repositories/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/repositories/libertadors.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/repositories/softin.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/database/repositories/softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/softseguros/notifier/notificaciones.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ast
|
|
2
2
|
from typing import Union
|
|
3
|
-
|
|
3
|
+
import re
|
|
4
4
|
from loguru import logger # noqa: F401
|
|
5
5
|
|
|
6
6
|
from softseguros.api_libertador.execute_load_to_db import synchronize_prospects_libertador_table_for_castillo, synchronize_prospects_libertador_table_for_estrella, synchronize_prospects_libertador_table_for_livin, synchronize_prospects_libertador_table_for_villacruz # noqa: F401
|
|
@@ -27,6 +27,19 @@ def with_point(n: Union[int, float, str]) -> str:
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def normalize_phone(value: str | None) -> str | None:
|
|
33
|
+
if not value:
|
|
34
|
+
return None
|
|
35
|
+
digits = re.sub(r"\D+", "", value) # deja solo números
|
|
36
|
+
if not digits:
|
|
37
|
+
return None
|
|
38
|
+
# En Colombia normalmente son 10 dígitos móviles; ajusta según tu regla real:
|
|
39
|
+
if len(digits) > 10:
|
|
40
|
+
digits = digits[-10:]
|
|
41
|
+
return digits
|
|
42
|
+
|
|
30
43
|
def create_prospects_to_secure_for_landlord(real_state, informacion_contrato_Inmueble, informacion_propietario, asignaciones_y_operaciones):
|
|
31
44
|
match real_state:
|
|
32
45
|
case "villacruz":
|
|
@@ -104,14 +117,14 @@ def create_prospects_to_secure_for_tenant(real_state, informacion_contrato_Inmue
|
|
|
104
117
|
correoAsesor="",
|
|
105
118
|
)
|
|
106
119
|
|
|
120
|
+
phone= normalize_phone(informacion_inquilino.get("celular_Inq"))
|
|
107
121
|
clente = RequestsCreateCustomerSoftseguros(
|
|
108
122
|
numero_documento=informacion_inquilino.get("nro_id_Inq"),
|
|
109
123
|
nombres=informacion_inquilino.get("nombre_Inq"),
|
|
110
|
-
# apellidos="villa",
|
|
111
124
|
direccion=informacion_contrato_Inmueble.get("dir_inmueble"),
|
|
112
125
|
ciudad="", # informacion_contrato_Inmueble.get("")
|
|
113
|
-
telefono=
|
|
114
|
-
celular=
|
|
126
|
+
telefono=phone,
|
|
127
|
+
celular=phone,
|
|
115
128
|
email=informacion_inquilino.get("email_Inq"),
|
|
116
129
|
ids_categorias=",".join(ids_categorias),
|
|
117
130
|
fecha_expedicion_cedula=None, # "yyyy-mm-dd"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.16}/src/pr_async_db.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|