spei-python 0.43.0__tar.gz → 0.44.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.43.0 → spei_python-0.44.0}/PKG-INFO +1 -1
- {spei_python-0.43.0 → spei_python-0.44.0}/pyproject.toml +2 -2
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/checksum/factory.py +8 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/checksum/generator.py +29 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/checksum/types.py +0 -3
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/orden.py +4 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/README.md +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/README.md +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/cep_generator.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/checksum/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/client.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/errors/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/errors/sice.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/errors/spei.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/exceptions.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/mappings.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/requests/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/requests/acuse.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/requests/cda.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/requests/orden.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/requests/respuesta.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/acuse.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/cda.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/mensaje.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/payments.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/resources/respuesta.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/responses/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/responses/acuse.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/responses/orden.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/responses/respuesta.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/sice.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/types/__init__.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/types/sice.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/types/spei.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/utils.py +0 -0
- {spei_python-0.43.0 → spei_python-0.44.0}/spei/validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "spei-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.44.0"
|
|
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 = "0.
|
|
35
|
+
version = "0.44.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 = [
|
|
@@ -6,6 +6,8 @@ from spei.checksum.generator import (
|
|
|
6
6
|
ChecksumGeneratorEveryField,
|
|
7
7
|
ChecksumGeneratorOrigin,
|
|
8
8
|
ChecksumGeneratorOriginAndBeneficiary,
|
|
9
|
+
ChecksumGeneratorOriginBeneficiaryAndParticipant,
|
|
10
|
+
ChecksumGeneratorOriginBeneficiaryWithoutAccountAndParticipant,
|
|
9
11
|
)
|
|
10
12
|
from spei.checksum.types import (
|
|
11
13
|
PAYMENT_TYPES_WITH_BENEFICIARY_ACCOUNT,
|
|
@@ -34,6 +36,12 @@ def get_checksum_generator(payment_type: TipoPagoOrdenPago) -> ChecksumGenerator
|
|
|
34
36
|
if payment_type in PAYMENT_TYPES_WITH_BENEFICIARY_AND_ADDITIONAL_BENEFICIARY_ACCOUNT: # noqa: E501
|
|
35
37
|
return ChecksumGeneratorBeneficiaryAndAdditionalBeneficiary()
|
|
36
38
|
|
|
39
|
+
if payment_type == TipoPagoOrdenPago.tercero_indirecto_a_tercero:
|
|
40
|
+
return ChecksumGeneratorOriginBeneficiaryAndParticipant()
|
|
41
|
+
|
|
42
|
+
if payment_type == TipoPagoOrdenPago.tercero_indirecto_a_participante:
|
|
43
|
+
return ChecksumGeneratorOriginBeneficiaryWithoutAccountAndParticipant()
|
|
44
|
+
|
|
37
45
|
if payment_type in PAYMENT_TYPES_WITH_ORIGIN_BENEFICIARY_AND_ADDITIONAL_BENEFICIARY_ACCOUNT: # noqa: E501
|
|
38
46
|
return ChecksumGeneratorEveryField()
|
|
39
47
|
|
|
@@ -121,6 +121,35 @@ class ChecksumGeneratorBeneficiaryAndAdditionalBeneficiary(ChecksumGenerator):
|
|
|
121
121
|
return self._list_to_bytes(message_data)
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
class ChecksumGeneratorOriginBeneficiaryWithoutAccountAndParticipant(ChecksumGenerator):
|
|
125
|
+
def format_data(self, message: Dict[AnyStr, Any]):
|
|
126
|
+
message_data = (
|
|
127
|
+
self._fecha_to_bytearray(message['op_fecha_oper']),
|
|
128
|
+
self._clave_to_bytearray(message['op_ins_clave_ord']),
|
|
129
|
+
self._clave_to_bytearray(message['op_ins_clave_ben']),
|
|
130
|
+
self._to_byte_array(message['op_cve_rastreo'], add_zero_byte=True),
|
|
131
|
+
self._monto_to_bytearray(message['op_monto']),
|
|
132
|
+
self._to_byte_array(message['op_cuenta_ord'], add_zero_byte=True),
|
|
133
|
+
self._to_byte_array(message['op_cuenta_participante_ord'], add_zero_byte=True), # noqa: E501
|
|
134
|
+
)
|
|
135
|
+
return self._list_to_bytes(message_data)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class ChecksumGeneratorOriginBeneficiaryAndParticipant(ChecksumGenerator):
|
|
139
|
+
def format_data(self, message: Dict[AnyStr, Any]):
|
|
140
|
+
message_data = (
|
|
141
|
+
self._fecha_to_bytearray(message['op_fecha_oper']),
|
|
142
|
+
self._clave_to_bytearray(message['op_ins_clave_ord']),
|
|
143
|
+
self._clave_to_bytearray(message['op_ins_clave_ben']),
|
|
144
|
+
self._to_byte_array(message['op_cve_rastreo'], add_zero_byte=True),
|
|
145
|
+
self._monto_to_bytearray(message['op_monto']),
|
|
146
|
+
self._to_byte_array(message['op_cuenta_ord'], add_zero_byte=True),
|
|
147
|
+
self._to_byte_array(message['op_cuenta_ben'], add_zero_byte=True),
|
|
148
|
+
self._to_byte_array(message['op_cuenta_participante_ord'], add_zero_byte=True), # noqa: E501
|
|
149
|
+
)
|
|
150
|
+
return self._list_to_bytes(message_data)
|
|
151
|
+
|
|
152
|
+
|
|
124
153
|
class ChecksumGeneratorEveryField(ChecksumGenerator):
|
|
125
154
|
def format_data(self, message: Dict[AnyStr, Any]):
|
|
126
155
|
message_data = (
|
|
@@ -24,8 +24,6 @@ PAYMENT_TYPES_WITH_BENEFICIARY_ACCOUNT = (
|
|
|
24
24
|
PAYMENT_TYPES_WITH_ORIGIN_AND_BENEFICIARY_ACCOUNT = (
|
|
25
25
|
TipoPagoOrdenPago.tercero_a_tercero,
|
|
26
26
|
TipoPagoOrdenPago.tercero_a_tercero_fsw,
|
|
27
|
-
TipoPagoOrdenPago.tercero_indirecto_a_tercero,
|
|
28
|
-
TipoPagoOrdenPago.tercero_indirecto_a_participante,
|
|
29
27
|
TipoPagoOrdenPago.nomina,
|
|
30
28
|
TipoPagoOrdenPago.pago_factura,
|
|
31
29
|
TipoPagoOrdenPago.cobros_no_presenciales_de_una_ocasion,
|
|
@@ -33,7 +31,6 @@ PAYMENT_TYPES_WITH_ORIGIN_AND_BENEFICIARY_ACCOUNT = (
|
|
|
33
31
|
TipoPagoOrdenPago.cobros_presenciales_de_una_ocasion,
|
|
34
32
|
)
|
|
35
33
|
|
|
36
|
-
|
|
37
34
|
PAYMENT_TYPES_WITH_BENEFICIARY_AND_ADDITIONAL_BENEFICIARY_ACCOUNT = (
|
|
38
35
|
TipoPagoOrdenPago.participante_a_tercero_vostro,
|
|
39
36
|
TipoPagoOrdenPago.participante_a_tercero_vostro_fsw,
|
|
@@ -41,6 +41,10 @@ class Orden(BaseModel):
|
|
|
41
41
|
op_cuenta_ben: str = None
|
|
42
42
|
op_rfc_curp_ben: str = None
|
|
43
43
|
op_ins_clave_ben: digits(3, 5) = None
|
|
44
|
+
# participant info
|
|
45
|
+
op_cuenta_participante_ord: str = None
|
|
46
|
+
op_nom_participante_ord: str = None
|
|
47
|
+
op_rfc_participante_ord: str = None
|
|
44
48
|
# additional destination info
|
|
45
49
|
op_nom_ben_2: str = None
|
|
46
50
|
op_tc_clave_ben_2: types.TipoCuentaOrdenPago = None
|
|
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
|