spei-python 0.51.1__tar.gz → 0.52.0__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.
- {spei_python-0.51.1 → spei_python-0.52.0}/PKG-INFO +3 -2
- {spei_python-0.51.1 → spei_python-0.52.0}/pyproject.toml +6 -6
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/checksum/generator.py +2 -2
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/client.py +1 -1
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/orden.py +2 -1
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/payments.py +2 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/README.md +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/README.md +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/cep_generator.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/checksum/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/checksum/factory.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/checksum/types.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/errors/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/errors/sice.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/errors/spei.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/exceptions.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/mappings.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/requests/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/requests/acuse.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/requests/cda.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/requests/orden.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/requests/respuesta.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/acuse.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/cda.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/ensesion.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/mensaje.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/resources/respuesta.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/responses/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/responses/acuse.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/responses/orden.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/responses/respuesta.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/sice.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/types/__init__.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/types/sice.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/types/spei.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/utils.py +0 -0
- {spei_python-0.51.1 → spei_python-0.52.0}/spei/validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: spei-python
|
|
3
|
-
Version: 0.
|
|
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 (>=
|
|
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
|
[](https://github.com/wemake-services/wemake-python-styleguide)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "spei-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.52.0"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["tech <tech@fondeadora.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -8,14 +8,15 @@ packages = [{include = "spei"}]
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry.dependencies]
|
|
10
10
|
python = ">=3.8.1,<4.0"
|
|
11
|
-
lxml = "^
|
|
11
|
+
lxml = "^5.0.0"
|
|
12
12
|
pydantic = ">=1.8.2, <2.0.0"
|
|
13
13
|
requests = "^2.32.2"
|
|
14
14
|
cryptography = ">=3.0,<43.1"
|
|
15
|
+
unidecode = "^1.3.8"
|
|
15
16
|
|
|
16
|
-
[tool.poetry.dev
|
|
17
|
+
[tool.poetry.group.dev.dependencies]
|
|
17
18
|
add-trailing-comma = "^2.2.3"
|
|
18
|
-
commitizen = "^
|
|
19
|
+
commitizen = "^3.31.0"
|
|
19
20
|
docformatter = "1.5.0"
|
|
20
21
|
expects = "^0.9.0"
|
|
21
22
|
Faker = "^13.12.0"
|
|
@@ -29,10 +30,9 @@ mypy = "^1.10"
|
|
|
29
30
|
requires = ["poetry-core>=1.0.0"]
|
|
30
31
|
build-backend = "poetry.core.masonry.api"
|
|
31
32
|
|
|
32
|
-
|
|
33
33
|
[tool.commitizen]
|
|
34
34
|
name = "cz_conventional_commits"
|
|
35
|
-
version = "0.
|
|
35
|
+
version = "0.52.0"
|
|
36
36
|
tag_format = "v$version"
|
|
37
37
|
bump_message = "bump: Semantic Release Bot: Release Version: $new_version 🤖🚀 [skip ci]"
|
|
38
38
|
version_files = [
|
|
@@ -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:
|
|
59
|
+
message_data: Tuple[bytearray, ...],
|
|
60
60
|
) -> bytes:
|
|
61
61
|
res = bytearray()
|
|
62
62
|
for field in message_data:
|
|
@@ -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)
|
|
@@ -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':
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|