pyEscoAPI 0.0.27__tar.gz → 0.0.29__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.
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/PKG-INFO +1 -1
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI/esco_api.py +78 -24
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI.egg-info/PKG-INFO +1 -1
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyproject.toml +1 -1
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/tests/test_client.py +13 -1
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/README.md +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI/__init__.py +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI/dataclasses.py +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI/exception.py +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI.egg-info/SOURCES.txt +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI.egg-info/dependency_links.txt +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI.egg-info/requires.txt +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/pyEscoAPI.egg-info/top_level.txt +0 -0
- {pyescoapi-0.0.27 → pyescoapi-0.0.29}/setup.cfg +0 -0
|
@@ -702,7 +702,7 @@ class EscoAPI:
|
|
|
702
702
|
precio: decimal = None,
|
|
703
703
|
importe: decimal = None,
|
|
704
704
|
moneda: str = "ARS",
|
|
705
|
-
fecha_concertacion: date = date.today(),
|
|
705
|
+
fecha_concertacion: date | None = date.today(),
|
|
706
706
|
observacion: str = None,
|
|
707
707
|
cod_usuario: int = None,
|
|
708
708
|
id_usuario: str = None,
|
|
@@ -763,7 +763,7 @@ class EscoAPI:
|
|
|
763
763
|
"importe": importe,
|
|
764
764
|
"cuenta": cuenta,
|
|
765
765
|
"moneda": moneda,
|
|
766
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
766
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
767
767
|
"plazo": plazo,
|
|
768
768
|
"observacion": observacion,
|
|
769
769
|
"codUsuario": cod_usuario,
|
|
@@ -872,7 +872,7 @@ class EscoAPI:
|
|
|
872
872
|
precio: decimal = None,
|
|
873
873
|
importe: decimal = None,
|
|
874
874
|
moneda: str = "ARS",
|
|
875
|
-
fecha_concertacion: date = date.today(),
|
|
875
|
+
fecha_concertacion: date | None = date.today(),
|
|
876
876
|
observacion: str = None,
|
|
877
877
|
cod_usuario: int = None,
|
|
878
878
|
id_usuario: str = None,
|
|
@@ -932,7 +932,7 @@ class EscoAPI:
|
|
|
932
932
|
"importe": importe,
|
|
933
933
|
"cuenta": cuenta,
|
|
934
934
|
"moneda": moneda,
|
|
935
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
935
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
936
936
|
"plazo": plazo,
|
|
937
937
|
"observacion": observacion,
|
|
938
938
|
"codUsuario": cod_usuario,
|
|
@@ -968,8 +968,8 @@ class EscoAPI:
|
|
|
968
968
|
fondo: str,
|
|
969
969
|
cuenta: str,
|
|
970
970
|
importe: decimal,
|
|
971
|
-
fecha_concertacion: date = date.today(),
|
|
972
|
-
fecha_acreditacion: date =
|
|
971
|
+
fecha_concertacion: date | None = date.today(),
|
|
972
|
+
fecha_acreditacion: date | None = None,
|
|
973
973
|
tp_cambio_mov_pais: decimal = 1,
|
|
974
974
|
moneda: str = "ARS",
|
|
975
975
|
cod_usuario: int = None,
|
|
@@ -1008,8 +1008,8 @@ class EscoAPI:
|
|
|
1008
1008
|
req_body = {
|
|
1009
1009
|
"fondo": fondo,
|
|
1010
1010
|
"cuenta": cuenta,
|
|
1011
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1012
|
-
"fechaAcreditacion": fecha_acreditacion.strftime("%Y-%m-%d"),
|
|
1011
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1012
|
+
"fechaAcreditacion": fecha_acreditacion.strftime("%Y-%m-%d") if fecha_acreditacion else None,
|
|
1013
1013
|
"importe": importe,
|
|
1014
1014
|
"tpCambioMovPais": tp_cambio_mov_pais,
|
|
1015
1015
|
"moneda": moneda,
|
|
@@ -1040,8 +1040,8 @@ class EscoAPI:
|
|
|
1040
1040
|
cant_cuotapartes: decimal = None,
|
|
1041
1041
|
es_total: bool = False,
|
|
1042
1042
|
es_por_cantidad: bool = False,
|
|
1043
|
-
fecha_concertacion: date = date.today(),
|
|
1044
|
-
fecha_acreditacion: date =
|
|
1043
|
+
fecha_concertacion: date | None = date.today(),
|
|
1044
|
+
fecha_acreditacion: date | None = None,
|
|
1045
1045
|
tp_cambio_mov_pais: decimal = 1,
|
|
1046
1046
|
moneda: str = "ARS",
|
|
1047
1047
|
cod_usuario: int = None,
|
|
@@ -1083,8 +1083,8 @@ class EscoAPI:
|
|
|
1083
1083
|
req_body = {
|
|
1084
1084
|
"fondo": fondo,
|
|
1085
1085
|
"cuenta": cuenta,
|
|
1086
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1087
|
-
"fechaAcreditacion": fecha_acreditacion.strftime("%Y-%m-%d"),
|
|
1086
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1087
|
+
"fechaAcreditacion": fecha_acreditacion.strftime("%Y-%m-%d") if fecha_acreditacion else None,
|
|
1088
1088
|
"cantCuotapartes": cant_cuotapartes,
|
|
1089
1089
|
"esTotal": es_total,
|
|
1090
1090
|
"esPorCantidad": es_por_cantidad,
|
|
@@ -1109,6 +1109,60 @@ class EscoAPI:
|
|
|
1109
1109
|
request_body=req_body,
|
|
1110
1110
|
request_method=HTTPMethod.POST
|
|
1111
1111
|
)
|
|
1112
|
+
|
|
1113
|
+
def insert_solicitud_fci_simple(
|
|
1114
|
+
self,
|
|
1115
|
+
cuenta: str,
|
|
1116
|
+
fondo: str,
|
|
1117
|
+
tipo_operacion: str,
|
|
1118
|
+
id_origen: str,
|
|
1119
|
+
importe: decimal,
|
|
1120
|
+
es_total: bool = False,
|
|
1121
|
+
es_por_cantidad: bool = False,
|
|
1122
|
+
cant_cuotapartes: decimal = 0,
|
|
1123
|
+
generar_recibo_cobro: bool = False,
|
|
1124
|
+
liquida_cta_bancaria: bool = False,
|
|
1125
|
+
moneda: str = "ARS",
|
|
1126
|
+
fecha_concertacion: date | None = None,
|
|
1127
|
+
incluye_creditos: bool = True,
|
|
1128
|
+
tp_cambio_moneda_pais = 1,
|
|
1129
|
+
canal: str = "CE",
|
|
1130
|
+
cuenta_contable: int | None = None
|
|
1131
|
+
):
|
|
1132
|
+
|
|
1133
|
+
if fecha_concertacion is None:
|
|
1134
|
+
fecha_concertacion = date.today()
|
|
1135
|
+
|
|
1136
|
+
req_body = {
|
|
1137
|
+
"fondo": fondo,
|
|
1138
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1139
|
+
"moneda": moneda,
|
|
1140
|
+
"incluyeCreditos": incluye_creditos,
|
|
1141
|
+
"generarReciboDeCobro": generar_recibo_cobro,
|
|
1142
|
+
"procesamientoSincrono": True,
|
|
1143
|
+
"liquidaCtaBancaria": liquida_cta_bancaria,
|
|
1144
|
+
"esACDI": False,
|
|
1145
|
+
"cuentaContable": cuenta_contable,
|
|
1146
|
+
"solicitudes":[
|
|
1147
|
+
{
|
|
1148
|
+
"tpOperacionFdo": tipo_operacion,
|
|
1149
|
+
"importe": importe,
|
|
1150
|
+
"cantCuotapartes": cant_cuotapartes,
|
|
1151
|
+
"esTotal": es_total,
|
|
1152
|
+
"esPorCantidad": es_por_cantidad,
|
|
1153
|
+
"cuenta": cuenta,
|
|
1154
|
+
"tpCambioMovPais": tp_cambio_moneda_pais,
|
|
1155
|
+
"canal": canal,
|
|
1156
|
+
"idOrigen": id_origen
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
}
|
|
1160
|
+
self.__pre_connection()
|
|
1161
|
+
return self.__make_request(
|
|
1162
|
+
request_endpoint="/insert-solicitud-fci-lista",
|
|
1163
|
+
request_body=req_body,
|
|
1164
|
+
request_method=HTTPMethod.POST
|
|
1165
|
+
)
|
|
1112
1166
|
|
|
1113
1167
|
def get_boletos(
|
|
1114
1168
|
self,
|
|
@@ -1438,7 +1492,7 @@ class EscoAPI:
|
|
|
1438
1492
|
precio: decimal = None,
|
|
1439
1493
|
importe: decimal = None,
|
|
1440
1494
|
moneda: str = "ARS",
|
|
1441
|
-
fecha_concertacion: date = date.today(),
|
|
1495
|
+
fecha_concertacion: date | None = date.today(),
|
|
1442
1496
|
observacion: str = None,
|
|
1443
1497
|
cod_usuario: int = None,
|
|
1444
1498
|
id_usuario: str = None,
|
|
@@ -1498,7 +1552,7 @@ class EscoAPI:
|
|
|
1498
1552
|
"importe": importe,
|
|
1499
1553
|
"cuenta": cuenta,
|
|
1500
1554
|
"moneda": moneda,
|
|
1501
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1555
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1502
1556
|
"plazo": plazo,
|
|
1503
1557
|
"observacion": observacion,
|
|
1504
1558
|
"codUsuario": cod_usuario,
|
|
@@ -1538,7 +1592,7 @@ class EscoAPI:
|
|
|
1538
1592
|
precio: decimal = None,
|
|
1539
1593
|
importe: decimal = None,
|
|
1540
1594
|
moneda: str = "ARS",
|
|
1541
|
-
fecha_concertacion: date = date.today(),
|
|
1595
|
+
fecha_concertacion: date | None = date.today(),
|
|
1542
1596
|
observacion: str = None,
|
|
1543
1597
|
cod_usuario: int = None,
|
|
1544
1598
|
id_usuario: str = None,
|
|
@@ -1598,7 +1652,7 @@ class EscoAPI:
|
|
|
1598
1652
|
"importe": importe,
|
|
1599
1653
|
"cuenta": cuenta,
|
|
1600
1654
|
"moneda": moneda,
|
|
1601
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1655
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1602
1656
|
"plazo": plazo,
|
|
1603
1657
|
"observacion": observacion,
|
|
1604
1658
|
"codUsuario": cod_usuario,
|
|
@@ -1638,7 +1692,7 @@ class EscoAPI:
|
|
|
1638
1692
|
precio: decimal = None,
|
|
1639
1693
|
importe: decimal = None,
|
|
1640
1694
|
moneda: str = "ARS",
|
|
1641
|
-
fecha_concertacion: date = date.today(),
|
|
1695
|
+
fecha_concertacion: date | None = date.today(),
|
|
1642
1696
|
observacion: str = None,
|
|
1643
1697
|
cod_usuario: int = None,
|
|
1644
1698
|
id_usuario: str = None,
|
|
@@ -1683,7 +1737,7 @@ class EscoAPI:
|
|
|
1683
1737
|
"importe": importe,
|
|
1684
1738
|
"cuenta": cuenta,
|
|
1685
1739
|
"moneda": moneda,
|
|
1686
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1740
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1687
1741
|
"plazo": plazo,
|
|
1688
1742
|
"observacion": observacion,
|
|
1689
1743
|
"codUsuario": cod_usuario,
|
|
@@ -1715,7 +1769,7 @@ class EscoAPI:
|
|
|
1715
1769
|
precio: decimal = None,
|
|
1716
1770
|
importe: decimal = None,
|
|
1717
1771
|
moneda: str = "ARS",
|
|
1718
|
-
fecha_concertacion: date = date.today(),
|
|
1772
|
+
fecha_concertacion: date | None = date.today(),
|
|
1719
1773
|
observacion: str = None,
|
|
1720
1774
|
cod_usuario: int = None,
|
|
1721
1775
|
id_usuario: str = None,
|
|
@@ -1763,7 +1817,7 @@ class EscoAPI:
|
|
|
1763
1817
|
"importe": importe,
|
|
1764
1818
|
"cuenta": cuenta,
|
|
1765
1819
|
"moneda": moneda,
|
|
1766
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1820
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1767
1821
|
"plazo": plazo,
|
|
1768
1822
|
"observacion": observacion,
|
|
1769
1823
|
"codUsuario": cod_usuario,
|
|
@@ -1894,8 +1948,8 @@ class EscoAPI:
|
|
|
1894
1948
|
moneda: str,
|
|
1895
1949
|
importe: decimal,
|
|
1896
1950
|
cuenta_contable: int,
|
|
1897
|
-
fecha_concertacion: date = date.today(),
|
|
1898
|
-
fecha_liquidacion: date =
|
|
1951
|
+
fecha_concertacion: date | None = date.today(),
|
|
1952
|
+
fecha_liquidacion: date | None = None,
|
|
1899
1953
|
tp_cambio_mov_pais: int = 1,
|
|
1900
1954
|
cuenta_bancaria_comitente: int = None,
|
|
1901
1955
|
controla_saldo_monetario: bool = True,
|
|
@@ -1927,8 +1981,8 @@ class EscoAPI:
|
|
|
1927
1981
|
req_body = {
|
|
1928
1982
|
"cuenta": cuenta,
|
|
1929
1983
|
"moneda": moneda,
|
|
1930
|
-
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d"),
|
|
1931
|
-
"fechaLiquidacion": fecha_liquidacion.strftime("%Y-%m-%d"),
|
|
1984
|
+
"fechaConcertacion": fecha_concertacion.strftime("%Y-%m-%d") if fecha_concertacion else None,
|
|
1985
|
+
"fechaLiquidacion": fecha_liquidacion.strftime("%Y-%m-%d") if fecha_liquidacion else None,
|
|
1932
1986
|
"importe": importe,
|
|
1933
1987
|
"tpCambioMovPais": tp_cambio_mov_pais,
|
|
1934
1988
|
"cuentaContable": cuenta_contable,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from datetime import datetime, timedelta
|
|
2
|
+
from datetime import date, datetime, timedelta
|
|
3
3
|
|
|
4
4
|
import pytest
|
|
5
5
|
from unittest.mock import patch
|
|
@@ -220,6 +220,18 @@ def test_insert_suscripcion_fci(api_client):
|
|
|
220
220
|
)
|
|
221
221
|
assert "codSolicitudFdo" in result
|
|
222
222
|
|
|
223
|
+
def test_insert_solicitud_fci_simple(api_client):
|
|
224
|
+
cuenta = "197383"
|
|
225
|
+
result = api_client.insert_solicitud_fci_simple(
|
|
226
|
+
fondo="Adcap Verde y Sustentable ASG - Clase A",
|
|
227
|
+
cuenta=cuenta,
|
|
228
|
+
importe=1000,
|
|
229
|
+
fecha_concertacion=date.today(),
|
|
230
|
+
tipo_operacion="SU",
|
|
231
|
+
id_origen="121545583"
|
|
232
|
+
)
|
|
233
|
+
assert "idProceso" in result
|
|
234
|
+
|
|
223
235
|
|
|
224
236
|
def test_get_boletos(api_client):
|
|
225
237
|
result = api_client.get_boletos()
|
|
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
|