pyEscoAPI 0.0.28__tar.gz → 0.0.30__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.28
3
+ Version: 0.0.30
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -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,
@@ -1875,7 +1929,7 @@ class EscoAPI:
1875
1929
  "tpCuenta": tp_cuenta,
1876
1930
  "moneda": moneda,
1877
1931
  "numCuenta": num_cuenta,
1878
- "fechaApertura": fecha_apertura,
1932
+ "fechaApertura": fecha_apertura.isoformat(timespec='milliseconds').replace('+00:00', 'Z'),
1879
1933
  "cbu": cbu,
1880
1934
  "numSucursal": num_sucursal,
1881
1935
  "alias": alias,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.28
3
+ Version: 0.0.30
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = 'pyEscoAPI'
7
- version = "0.0.28"
7
+ version = "0.0.30"
8
8
  license = {text = "MIT License"}
9
9
  authors = [
10
10
  { name="Codetria", email="hola@codetria.com" },
@@ -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