spei-python 0.51.0__py3-none-any.whl → 0.51.2__py3-none-any.whl

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.
spei/resources/orden.py CHANGED
@@ -3,6 +3,7 @@ from typing import Optional
3
3
 
4
4
  from lxml import etree
5
5
  from pydantic import BaseModel, validator
6
+ from unidecode import unidecode
6
7
 
7
8
  from spei import types
8
9
  from spei.utils import to_snake_case, to_upper_camel_case # noqa: WPS347
@@ -174,7 +175,10 @@ class Orden(BaseModel):
174
175
  for element in orden_element.getchildren():
175
176
  tag = to_snake_case(element.tag)
176
177
  if tag in cls.__fields__:
177
- orden_data[tag] = element.text.strip()
178
+ if element.text:
179
+ orden_data[tag] = unidecode(element.text.strip())
180
+ else:
181
+ orden_data[tag] = None
178
182
  if tag == 'op_ins_clave':
179
183
  orden_data['op_ins_clave_ord'] = element.text
180
184
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spei-python
3
- Version: 0.51.0
3
+ Version: 0.51.2
4
4
  Summary:
5
5
  Author: tech
6
6
  Author-email: tech@fondeadora.com
@@ -10,10 +10,12 @@ Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
13
14
  Requires-Dist: cryptography (>=3.0,<43.1)
14
15
  Requires-Dist: lxml (>=4.7.1,<5.0.0)
15
16
  Requires-Dist: pydantic (>=1.8.2,<2.0.0)
16
17
  Requires-Dist: requests (>=2.32.2,<3.0.0)
18
+ Requires-Dist: unidecode (>=1.3.8,<2.0.0)
17
19
  Description-Content-Type: text/markdown
18
20
 
19
21
  [![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)
@@ -21,7 +21,7 @@ spei/resources/acuse.py,sha256=GmEBuxqDTr1eaZl-z6oy3YyE7NkkuGCNUz44C41JvFc,5596
21
21
  spei/resources/cda.py,sha256=23tEs7j_VBRc6pu99Sj9-6Z0mvOdXhYW97NKwAS5-UM,2697
22
22
  spei/resources/ensesion.py,sha256=9sHwVxav17tANds3RGZJAPfoQQM_-thhZS-2iUzqo0Y,1585
23
23
  spei/resources/mensaje.py,sha256=YCaZigRmrVYJQ7dRw0oXnrqpSo8DW_VsWqcSM2CXm_0,1804
24
- spei/resources/orden.py,sha256=BhO_WKiR8Z4zLDxGPXXMBtZFF0m9MpavOfQ2u-BLLVU,6922
24
+ spei/resources/orden.py,sha256=4nozN-lhKXK9YY1yt4dwpWtE0tu2iCgrtHll8Uq9Q7E,7067
25
25
  spei/resources/payments.py,sha256=H5XEexg_EHtaWObYZ9e-neMWsbe8BxWQd5yF8fG9Bxk,8841
26
26
  spei/resources/respuesta.py,sha256=TV5DqrDgkIgnYhka4ceNxuBIo1L7zeHPF0_SJw_23YQ,1497
27
27
  spei/responses/__init__.py,sha256=WxHb0KJ1sI5m6iLfxtf3h8MnqubQlxdtiaarXJvZdkM,247
@@ -34,6 +34,6 @@ spei/types/sice.py,sha256=xFSoiLklRNWXoWwZXpSN8-SdkliNK23_MZbhcOc7a9s,222
34
34
  spei/types/spei.py,sha256=rgdbWEMqIHNuSBaCwWmpziK35JcQ-q3nDHZR7-rDpMU,4765
35
35
  spei/utils.py,sha256=Lje_sg6hLKQxsPmqf7ovVKKVcGZi7LlgNNg1MRtWnRo,247
36
36
  spei/validators.py,sha256=1b-brOmNesdiUi2X0LV0-Km4Sh6RGNeKNeAxshQXtOs,742
37
- spei_python-0.51.0.dist-info/METADATA,sha256=vx9m2CEJeAH0ErLV35MBJHkXaiIvrN8S1G73OemCf8Y,3863
38
- spei_python-0.51.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
39
- spei_python-0.51.0.dist-info/RECORD,,
37
+ spei_python-0.51.2.dist-info/METADATA,sha256=_KIQHujB8HS-5UxwbphUR1RJ4omZHS4G9qcdcO5c_mo,3956
38
+ spei_python-0.51.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
39
+ spei_python-0.51.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any