spei-python 0.51.1__py3-none-any.whl → 0.52.0__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.
@@ -1,6 +1,6 @@
1
1
  from datetime import datetime
2
2
  from decimal import Decimal
3
- from typing import Optional
3
+ from typing import Optional, Tuple
4
4
 
5
5
  from spei.resources import Orden
6
6
 
@@ -56,7 +56,7 @@ class ChecksumGenerator(object):
56
56
 
57
57
  def _list_to_bytes(
58
58
  self,
59
- message_data: tuple[bytearray, ...],
59
+ message_data: Tuple[bytearray, ...],
60
60
  ) -> bytes:
61
61
  res = bytearray()
62
62
  for field in message_data:
spei/client.py CHANGED
@@ -83,6 +83,6 @@ class BaseClient(object):
83
83
  def _raise_error(self, respuesta: Respuesta):
84
84
  if respuesta.err_codigo == errors.GenericoCodigoError.tipo_pago_invalido:
85
85
  raise exceptions.TipoPagoInvalidoError(respuesta)
86
- if respuesta.err_codigo == errors.OtrosCodigoError.otros_fecha_operacion_incorrecta: # noqa: E501
86
+ if (respuesta.err_codigo == errors.OtrosCodigoError.otros_fecha_operacion_incorrecta): # noqa: E501
87
87
  raise exceptions.FechaOperacionIncorrectaError(respuesta)
88
88
  raise exceptions.SPEIError(respuesta)
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
@@ -175,7 +176,7 @@ class Orden(BaseModel):
175
176
  tag = to_snake_case(element.tag)
176
177
  if tag in cls.__fields__:
177
178
  if element.text:
178
- orden_data[tag] = element.text.strip()
179
+ orden_data[tag] = unidecode(element.text.strip())
179
180
  else:
180
181
  orden_data[tag] = None
181
182
  if tag == 'op_ins_clave':
@@ -1,3 +1,5 @@
1
+ # mypy: disable-error-code="override"
2
+
1
3
  from typing import Optional
2
4
 
3
5
  from spei import types
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spei-python
3
- Version: 0.51.1
3
+ Version: 0.52.0
4
4
  Summary:
5
5
  Author: tech
6
6
  Author-email: tech@fondeadora.com
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Dist: cryptography (>=3.0,<43.1)
15
- Requires-Dist: lxml (>=4.7.1,<5.0.0)
15
+ Requires-Dist: lxml (>=5.0.0,<6.0.0)
16
16
  Requires-Dist: pydantic (>=1.8.2,<2.0.0)
17
17
  Requires-Dist: requests (>=2.32.2,<3.0.0)
18
+ Requires-Dist: unidecode (>=1.3.8,<2.0.0)
18
19
  Description-Content-Type: text/markdown
19
20
 
20
21
  [![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)
@@ -3,9 +3,9 @@ spei/__init__.py,sha256=T8DMjAToKpTIuUcnzfGpOEgEzAZ8LuRWABeJoClc2zg,149
3
3
  spei/cep_generator.py,sha256=NH96gb6j1DQM5dZKgTGY2bVAOV4tj5tZ2CVFS4lawpc,2808
4
4
  spei/checksum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  spei/checksum/factory.py,sha256=wDZGjHYlcyQhsRSwYp87rNc7bL9eUNjRJu3-XvNhD2s,2092
6
- spei/checksum/generator.py,sha256=_EQ_9DUa46iEqiaIrroNyZBd4FSFAYbJXZvRl9brmH8,7824
6
+ spei/checksum/generator.py,sha256=P_Aif9WxgGSeMHvCyhItgvDLPI0GjwQqnZDgWgXddT8,7831
7
7
  spei/checksum/types.py,sha256=7pvxGCB3IBHe9-bE_UnJQF1TfLtTDHchU4leLui32qI,1912
8
- spei/client.py,sha256=SH8-gyJQQyMxv6Uzet1NDo4iSDcEqquQlm2hWn40dyM,3061
8
+ spei/client.py,sha256=F13e1rnrtuiXJ7CCJJoRS7fF5D4ZI8nHfUQc_6Kr-ok,3063
9
9
  spei/errors/__init__.py,sha256=vEL39E44fDD2nkmhVi3lqC1P5nXUNQDX1_GtzR6d4jk,100
10
10
  spei/errors/sice.py,sha256=SZqA2DnkFxE7ux4obXXzED7AyQwOmOvxjTXB_etenI0,4363
11
11
  spei/errors/spei.py,sha256=ne3Qg5ciRo_4TkiR4xJOSK7WQ-teeG6I9-dxqykUH-0,16065
@@ -21,8 +21,8 @@ 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=I2rlaX4Nptos5ioBv8nV214oBcbnfgWLRGNHHhqL1HE,7024
25
- spei/resources/payments.py,sha256=H5XEexg_EHtaWObYZ9e-neMWsbe8BxWQd5yF8fG9Bxk,8841
24
+ spei/resources/orden.py,sha256=4nozN-lhKXK9YY1yt4dwpWtE0tu2iCgrtHll8Uq9Q7E,7067
25
+ spei/resources/payments.py,sha256=l32vrXuXP0VH0iY3adR0_C8_S8_3vOiaaSgLdd22tp4,8880
26
26
  spei/resources/respuesta.py,sha256=TV5DqrDgkIgnYhka4ceNxuBIo1L7zeHPF0_SJw_23YQ,1497
27
27
  spei/responses/__init__.py,sha256=WxHb0KJ1sI5m6iLfxtf3h8MnqubQlxdtiaarXJvZdkM,247
28
28
  spei/responses/acuse.py,sha256=ZGfP45XYvDSDbgfSKWeraDpFApDc0oks05_tQH-bwzM,650
@@ -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.1.dist-info/METADATA,sha256=YNRozYmfUU5KNMhMyVIW-JALvmMZwbCljnhzOHxF8Jo,3914
38
- spei_python-0.51.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
39
- spei_python-0.51.1.dist-info/RECORD,,
37
+ spei_python-0.52.0.dist-info/METADATA,sha256=0zJjqSho5wJKUFh1Aw1pURbloyCS_-u1rVyQ9cax-zk,3956
38
+ spei_python-0.52.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
39
+ spei_python-0.52.0.dist-info/RECORD,,