spei-python 1.0.9__tar.gz → 1.0.11__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-1.0.9 → spei_python-1.0.11}/PKG-INFO +4 -3
- {spei_python-1.0.9 → spei_python-1.0.11}/pyproject.toml +4 -4
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/signature/payload.py +13 -9
- {spei_python-1.0.9 → spei_python-1.0.11}/README.md +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/README.md +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/cep_generator.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/checksum/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/checksum/factory.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/checksum/generator.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/checksum/types.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/client.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/errors/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/errors/sice.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/errors/spei.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/exceptions.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/mappings.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/requests/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/requests/acuse.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/requests/cda.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/requests/orden.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/requests/respuesta.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/acuse.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/cda.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/ensesion.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/mensaje.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/orden.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/payments.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/respuesta.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/resources/validators.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/responses/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/responses/orden.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/responses/respuesta.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/sice.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/signature/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/signature/factory.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/signature/types.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/types/__init__.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/types/common.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/types/sice.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/types/spei.py +0 -0
- {spei_python-1.0.9 → spei_python-1.0.11}/spei/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: spei-python
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.11
|
|
4
4
|
Summary:
|
|
5
5
|
Author: tech
|
|
6
6
|
Author-email: tech@fondeadora.com
|
|
@@ -10,8 +10,9 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
-
|
|
14
|
-
Requires-Dist:
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
14
|
+
Requires-Dist: cryptography (>=50.0.0)
|
|
15
|
+
Requires-Dist: lxml (>=6.1.0)
|
|
15
16
|
Requires-Dist: pydantic (>=1.10.17,<3)
|
|
16
17
|
Requires-Dist: requests (>=2.32.2,<3.0.0)
|
|
17
18
|
Requires-Dist: unidecode (>=1.3.8,<2.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "spei-python"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.11"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["tech <tech@fondeadora.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -8,10 +8,10 @@ packages = [{ include = "spei" }]
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry.dependencies]
|
|
10
10
|
python = ">=3.11,<4.0"
|
|
11
|
-
lxml = "
|
|
11
|
+
lxml = ">=6.1.0"
|
|
12
12
|
pydantic = ">=1.10.17,<3"
|
|
13
13
|
requests = "^2.32.2"
|
|
14
|
-
cryptography = ">=
|
|
14
|
+
cryptography = ">=50.0.0"
|
|
15
15
|
unidecode = "^1.3.8"
|
|
16
16
|
|
|
17
17
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -32,7 +32,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
32
32
|
|
|
33
33
|
[tool.commitizen]
|
|
34
34
|
name = "cz_conventional_commits"
|
|
35
|
-
version = "1.0.
|
|
35
|
+
version = "1.0.11"
|
|
36
36
|
tag_format = "v$version"
|
|
37
37
|
bump_message = "bump: Semantic Release Bot: Release Version: $new_version 🤖🚀 [skip ci]"
|
|
38
38
|
version_files = ["pyproject.toml:version"]
|
|
@@ -38,9 +38,12 @@ class SignaturePayloadBuilder(object):
|
|
|
38
38
|
return bytearray(day + month + year)
|
|
39
39
|
|
|
40
40
|
def _clave_to_bytearray(self, clave: Optional[str]) -> bytearray:
|
|
41
|
-
|
|
41
|
+
# Falsy (None, '', or the literal string 'None' from an unguarded str()
|
|
42
|
+
# at a call site) means "no institution clave" — e.g. a card destination,
|
|
43
|
+
# which has no CLABE institution code. Encode that as 0, not a crash.
|
|
44
|
+
clave_int = int(clave) if clave and clave != 'None' else 0
|
|
42
45
|
|
|
43
|
-
return bytearray(int.to_bytes(
|
|
46
|
+
return bytearray(int.to_bytes(clave_int, 4, 'big'))
|
|
44
47
|
|
|
45
48
|
def _monto_to_bytearray(self, amount: str) -> bytearray:
|
|
46
49
|
high_value, low_value = self.split_amount(amount)
|
|
@@ -78,7 +81,7 @@ class RemittanceSignaturePayloadBuilder(
|
|
|
78
81
|
SignaturePayloadBuilder,
|
|
79
82
|
):
|
|
80
83
|
def build(self, orden: Orden) -> bytes:
|
|
81
|
-
message_data =
|
|
84
|
+
message_data = [
|
|
82
85
|
self._fecha_to_bytearray(orden.op_fecha_oper),
|
|
83
86
|
self._clave_to_bytearray(str(orden.op_ins_clave_ord)),
|
|
84
87
|
self._clave_to_bytearray(str(orden.op_ins_clave_ben)),
|
|
@@ -86,12 +89,13 @@ class RemittanceSignaturePayloadBuilder(
|
|
|
86
89
|
self._monto_to_bytearray(orden.op_monto),
|
|
87
90
|
self._to_byte_array(orden.op_cuenta_ord, add_zero_byte=True),
|
|
88
91
|
self._to_byte_array(orden.op_cuenta_ben, add_zero_byte=True),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
]
|
|
93
|
+
participante = orden.op_cuenta_participante_ord
|
|
94
|
+
if participante and participante != '0':
|
|
95
|
+
message_data.append(
|
|
96
|
+
self._to_byte_array(participante, add_zero_byte=True),
|
|
97
|
+
)
|
|
98
|
+
return self._list_to_bytes(tuple(message_data))
|
|
95
99
|
|
|
96
100
|
|
|
97
101
|
class DefaultSignaturePayloadBuilder(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|