pyEscoAPI 0.0.23__tar.gz → 0.0.25__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.23
3
+ Version: 0.0.25
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -1959,3 +1959,26 @@ class EscoAPI:
1959
1959
  request_body={},
1960
1960
  request_method=HTTPMethod.GET
1961
1961
  )
1962
+
1963
+ def get_cuentas_bancarias_comitente(self, cuenta: str):
1964
+ """
1965
+ Devuelve las cuentas bancarias asociadas a una cuenta comitente.
1966
+ :param cuenta: Cuenta comitente a la pertenecen las cuentas bancarias a buscar.
1967
+ """
1968
+ self.__pre_connection()
1969
+ return self.__make_request(
1970
+ request_endpoint=f"/get-cuentas-bancarias-comitente?cuenta={cuenta}",
1971
+ request_body={},
1972
+ request_method=HTTPMethod.GET
1973
+ )
1974
+
1975
+ def get_bancos(self):
1976
+ """
1977
+ Devuelve el listado de bancos cargados en servidor.
1978
+ """
1979
+ self.__pre_connection()
1980
+ return self.__make_request(
1981
+ request_endpoint=f"/get-bancos",
1982
+ request_body={},
1983
+ request_method=HTTPMethod.GET
1984
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.23
3
+ Version: 0.0.25
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.23"
7
+ version = "0.0.25"
8
8
  license = {text = "MIT License"}
9
9
  authors = [
10
10
  { name="Codetria", email="hola@codetria.com" },
@@ -310,4 +310,14 @@ def test_insert_ejecucion_orden(api_client):
310
310
  precio = 100,
311
311
  num_ejecucion=1
312
312
  )
313
- assert "codOperacion" in result
313
+ assert "codOperacion" in result
314
+
315
+ def test_get_cuentas_bancarias_comitente(api_client):
316
+ result = api_client.get_cuentas_bancarias_comitente(cuenta="172998")
317
+ assert isinstance(result, list)
318
+ assert "cuit" in result[0]
319
+
320
+ def test_get_bancos(api_client):
321
+ result = api_client.get_bancos()
322
+ assert isinstance(result, list)
323
+ assert "codigo" in result[0]
File without changes
File without changes