pyEscoAPI 0.0.20__tar.gz → 0.0.21__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.20
3
+ Version: 0.0.21
4
4
  Summary: Python client for Esco API (Esco bolsa)
5
5
  Author-email: Codetria <hola@codetria.com>
6
6
  License: MIT License
@@ -1803,3 +1803,16 @@ class EscoAPI:
1803
1803
  request_body=req_body,
1804
1804
  request_method=HTTPMethod.POST
1805
1805
  )
1806
+
1807
+ def get_domicilio_cuenta_comitente(self, cuenta: str, cod_tp_domicilio: str):
1808
+ """
1809
+ Devuelve el domicilio de una cuenta comitente.
1810
+ :param cuenta: Cuenta a la que pertenece el domicilio a buscar.
1811
+ :param cod_tp_domicilio: Código del tipo de domicilio (PA: Particular, DO: Comercial).
1812
+ """
1813
+ self.__pre_connection()
1814
+ return self.__make_request(
1815
+ request_endpoint=f"/domicilio-cuenta-comitente?Cuenta={cuenta}&CodTpDomicilio={cod_tp_domicilio}",
1816
+ request_body={},
1817
+ request_method=HTTPMethod.GET
1818
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyEscoAPI
3
- Version: 0.0.20
3
+ Version: 0.0.21
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.20"
7
+ version = "0.0.21"
8
8
  license = {text = "MIT License"}
9
9
  authors = [
10
10
  { name="Codetria", email="hola@codetria.com" },
@@ -286,3 +286,9 @@ def test_preview_orden_compra(api_client):
286
286
  assert "precio" in result
287
287
 
288
288
 
289
+ def test_get_domicilio_cuenta_comitente(api_client):
290
+ result = api_client.get_domicilio_cuenta_comitente(
291
+ cuenta="351011787",
292
+ cod_tp_domicilio="PA"
293
+ )
294
+ assert "codTpDomicilio" in result
File without changes
File without changes