spei-python 1.0.10__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.
Files changed (43) hide show
  1. {spei_python-1.0.10 → spei_python-1.0.11}/PKG-INFO +2 -1
  2. {spei_python-1.0.10 → spei_python-1.0.11}/pyproject.toml +2 -2
  3. {spei_python-1.0.10 → spei_python-1.0.11}/spei/signature/payload.py +10 -9
  4. {spei_python-1.0.10 → spei_python-1.0.11}/README.md +0 -0
  5. {spei_python-1.0.10 → spei_python-1.0.11}/spei/README.md +0 -0
  6. {spei_python-1.0.10 → spei_python-1.0.11}/spei/__init__.py +0 -0
  7. {spei_python-1.0.10 → spei_python-1.0.11}/spei/cep_generator.py +0 -0
  8. {spei_python-1.0.10 → spei_python-1.0.11}/spei/checksum/__init__.py +0 -0
  9. {spei_python-1.0.10 → spei_python-1.0.11}/spei/checksum/factory.py +0 -0
  10. {spei_python-1.0.10 → spei_python-1.0.11}/spei/checksum/generator.py +0 -0
  11. {spei_python-1.0.10 → spei_python-1.0.11}/spei/checksum/types.py +0 -0
  12. {spei_python-1.0.10 → spei_python-1.0.11}/spei/client.py +0 -0
  13. {spei_python-1.0.10 → spei_python-1.0.11}/spei/errors/__init__.py +0 -0
  14. {spei_python-1.0.10 → spei_python-1.0.11}/spei/errors/sice.py +0 -0
  15. {spei_python-1.0.10 → spei_python-1.0.11}/spei/errors/spei.py +0 -0
  16. {spei_python-1.0.10 → spei_python-1.0.11}/spei/exceptions.py +0 -0
  17. {spei_python-1.0.10 → spei_python-1.0.11}/spei/mappings.py +0 -0
  18. {spei_python-1.0.10 → spei_python-1.0.11}/spei/requests/__init__.py +0 -0
  19. {spei_python-1.0.10 → spei_python-1.0.11}/spei/requests/acuse.py +0 -0
  20. {spei_python-1.0.10 → spei_python-1.0.11}/spei/requests/cda.py +0 -0
  21. {spei_python-1.0.10 → spei_python-1.0.11}/spei/requests/orden.py +0 -0
  22. {spei_python-1.0.10 → spei_python-1.0.11}/spei/requests/respuesta.py +0 -0
  23. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/__init__.py +0 -0
  24. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/acuse.py +0 -0
  25. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/cda.py +0 -0
  26. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/ensesion.py +0 -0
  27. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/mensaje.py +0 -0
  28. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/orden.py +0 -0
  29. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/payments.py +0 -0
  30. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/respuesta.py +0 -0
  31. {spei_python-1.0.10 → spei_python-1.0.11}/spei/resources/validators.py +0 -0
  32. {spei_python-1.0.10 → spei_python-1.0.11}/spei/responses/__init__.py +0 -0
  33. {spei_python-1.0.10 → spei_python-1.0.11}/spei/responses/orden.py +0 -0
  34. {spei_python-1.0.10 → spei_python-1.0.11}/spei/responses/respuesta.py +0 -0
  35. {spei_python-1.0.10 → spei_python-1.0.11}/spei/sice.py +0 -0
  36. {spei_python-1.0.10 → spei_python-1.0.11}/spei/signature/__init__.py +0 -0
  37. {spei_python-1.0.10 → spei_python-1.0.11}/spei/signature/factory.py +0 -0
  38. {spei_python-1.0.10 → spei_python-1.0.11}/spei/signature/types.py +0 -0
  39. {spei_python-1.0.10 → spei_python-1.0.11}/spei/types/__init__.py +0 -0
  40. {spei_python-1.0.10 → spei_python-1.0.11}/spei/types/common.py +0 -0
  41. {spei_python-1.0.10 → spei_python-1.0.11}/spei/types/sice.py +0 -0
  42. {spei_python-1.0.10 → spei_python-1.0.11}/spei/types/spei.py +0 -0
  43. {spei_python-1.0.10 → 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.10
3
+ Version: 1.0.11
4
4
  Summary:
5
5
  Author: tech
6
6
  Author-email: tech@fondeadora.com
@@ -10,6 +10,7 @@ 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
+ Classifier: Programming Language :: Python :: 3.15
13
14
  Requires-Dist: cryptography (>=50.0.0)
14
15
  Requires-Dist: lxml (>=6.1.0)
15
16
  Requires-Dist: pydantic (>=1.10.17,<3)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "spei-python"
3
- version = "1.0.10"
3
+ version = "1.0.11"
4
4
  description = ""
5
5
  authors = ["tech <tech@fondeadora.com>"]
6
6
  readme = "README.md"
@@ -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.10"
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"]
@@ -41,9 +41,9 @@ class SignaturePayloadBuilder(object):
41
41
  # Falsy (None, '', or the literal string 'None' from an unguarded str()
42
42
  # at a call site) means "no institution clave" — e.g. a card destination,
43
43
  # which has no CLABE institution code. Encode that as 0, not a crash.
44
- clave = clave if clave and clave != 'None' else 0
44
+ clave_int = int(clave) if clave and clave != 'None' else 0
45
45
 
46
- return bytearray(int.to_bytes(int(clave), 4, 'big'))
46
+ return bytearray(int.to_bytes(clave_int, 4, 'big'))
47
47
 
48
48
  def _monto_to_bytearray(self, amount: str) -> bytearray:
49
49
  high_value, low_value = self.split_amount(amount)
@@ -81,7 +81,7 @@ class RemittanceSignaturePayloadBuilder(
81
81
  SignaturePayloadBuilder,
82
82
  ):
83
83
  def build(self, orden: Orden) -> bytes:
84
- message_data = (
84
+ message_data = [
85
85
  self._fecha_to_bytearray(orden.op_fecha_oper),
86
86
  self._clave_to_bytearray(str(orden.op_ins_clave_ord)),
87
87
  self._clave_to_bytearray(str(orden.op_ins_clave_ben)),
@@ -89,12 +89,13 @@ class RemittanceSignaturePayloadBuilder(
89
89
  self._monto_to_bytearray(orden.op_monto),
90
90
  self._to_byte_array(orden.op_cuenta_ord, add_zero_byte=True),
91
91
  self._to_byte_array(orden.op_cuenta_ben, add_zero_byte=True),
92
- self._to_byte_array(
93
- orden.op_cuenta_participante_ord,
94
- add_zero_byte=True,
95
- ),
96
- )
97
- return self._list_to_bytes(message_data)
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))
98
99
 
99
100
 
100
101
  class DefaultSignaturePayloadBuilder(
File without changes
File without changes
File without changes