LAgencia-prospects-softseguros 0.1.15__tar.gz → 0.1.17__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.17}/PKG-INFO +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/pyproject.toml +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/LAgencia_prospects_softseguros.egg-info/PKG-INFO +1 -1
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/execute_sincronization.py +8 -8
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/create_customers_softin.py +21 -6
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/README.md +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/setup.cfg +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/LAgencia_prospects_softseguros.egg-info/SOURCES.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/LAgencia_prospects_softseguros.egg-info/dependency_links.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/LAgencia_prospects_softseguros.egg-info/requires.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/LAgencia_prospects_softseguros.egg-info/top_level.txt +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/main.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/pr_async_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/pr_repository_async.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/codes_status_api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/custom_execptions_api.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/execute_load_to_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/models_request.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_libertador/models_response.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softin/fetch_softin.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/api_softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/create_customers_libertador.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/create_prospectsfrom_in_crm_softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/models_requests.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/api_softseguros/models_response.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/config/logging_config.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/config/settings.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/config_db.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/models/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/models/models.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/repositories/__init__.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/repositories/libertadors.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/repositories/softin.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/database/repositories/softseguros.py +0 -0
- {lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/src/softseguros/notifier/notificaciones.py +0 -0
|
@@ -51,14 +51,14 @@ def main():
|
|
|
51
51
|
synchronize_prospects_libertador_table_for_castillo()
|
|
52
52
|
synchronize_prospects_libertador_table_for_villacruz()
|
|
53
53
|
|
|
54
|
-
# # # # # + sincronizacion por softin
|
|
55
|
-
synchronize_prospects_softin_table_for_estrella()
|
|
56
|
-
synchronize_prospects_softin_table_for_castillo()
|
|
57
|
-
synchronize_prospects_softin_table_for_villacruz()
|
|
58
|
-
|
|
59
|
-
# # # # + sincronizacion tabla softseguros
|
|
60
|
-
synchronize_the_softseguros_table_with_libertador_prospects()
|
|
61
|
-
synchronize_the_softseguros_table_with_softin_prospects_for_landlord()
|
|
54
|
+
# # # # # # + sincronizacion por softin
|
|
55
|
+
# synchronize_prospects_softin_table_for_estrella()
|
|
56
|
+
# synchronize_prospects_softin_table_for_castillo()
|
|
57
|
+
# synchronize_prospects_softin_table_for_villacruz()
|
|
58
|
+
|
|
59
|
+
# # # # # + sincronizacion tabla softseguros
|
|
60
|
+
# synchronize_the_softseguros_table_with_libertador_prospects()
|
|
61
|
+
# synchronize_the_softseguros_table_with_softin_prospects_for_landlord()
|
|
62
62
|
|
|
63
63
|
# # # + crear cleintes softseguros
|
|
64
64
|
# create_prospectsfrom_libertador_in_crm_softseguros()
|
|
@@ -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,20 @@ 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
|
+
|
|
39
|
+
if len(digits) > 10:
|
|
40
|
+
digits = digits[-10:]
|
|
41
|
+
return digits
|
|
42
|
+
|
|
43
|
+
|
|
30
44
|
def create_prospects_to_secure_for_landlord(real_state, informacion_contrato_Inmueble, informacion_propietario, asignaciones_y_operaciones):
|
|
31
45
|
match real_state:
|
|
32
46
|
case "villacruz":
|
|
@@ -56,14 +70,15 @@ def create_prospects_to_secure_for_landlord(real_state, informacion_contrato_Inm
|
|
|
56
70
|
correoAsesor="",
|
|
57
71
|
)
|
|
58
72
|
|
|
73
|
+
phone= informacion_propietario.get("celular_Prop")
|
|
59
74
|
clente = RequestsCreateCustomerSoftseguros(
|
|
60
75
|
numero_documento=informacion_propietario.get("nro_id_prop"),
|
|
61
76
|
nombres=informacion_propietario.get("nombre_Prop"),
|
|
62
77
|
# apellidos="villa",
|
|
63
78
|
direccion=informacion_contrato_Inmueble.get("dir_inmueble"),
|
|
64
79
|
ciudad="", # informacion_contrato_Inmueble.get("")
|
|
65
|
-
telefono=
|
|
66
|
-
celular=
|
|
80
|
+
telefono=phone,
|
|
81
|
+
celular=phone,
|
|
67
82
|
email=informacion_propietario.get("email_Prop"),
|
|
68
83
|
ids_categorias=",".join(ids_categorias),
|
|
69
84
|
fecha_expedicion_cedula=None, # "yyyy-mm-dd"
|
|
@@ -104,14 +119,14 @@ def create_prospects_to_secure_for_tenant(real_state, informacion_contrato_Inmue
|
|
|
104
119
|
correoAsesor="",
|
|
105
120
|
)
|
|
106
121
|
|
|
122
|
+
phone= normalize_phone(informacion_inquilino.get("celular_Inq"))
|
|
107
123
|
clente = RequestsCreateCustomerSoftseguros(
|
|
108
124
|
numero_documento=informacion_inquilino.get("nro_id_Inq"),
|
|
109
125
|
nombres=informacion_inquilino.get("nombre_Inq"),
|
|
110
|
-
# apellidos="villa",
|
|
111
126
|
direccion=informacion_contrato_Inmueble.get("dir_inmueble"),
|
|
112
127
|
ciudad="", # informacion_contrato_Inmueble.get("")
|
|
113
|
-
telefono=
|
|
114
|
-
celular=
|
|
128
|
+
telefono=phone,
|
|
129
|
+
celular=phone,
|
|
115
130
|
email=informacion_inquilino.get("email_Inq"),
|
|
116
131
|
ids_categorias=",".join(ids_categorias),
|
|
117
132
|
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
|
{lagencia_prospects_softseguros-0.1.15 → lagencia_prospects_softseguros-0.1.17}/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
|