spei-python 0.48.7__tar.gz → 0.48.8__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 (39) hide show
  1. {spei_python-0.48.7 → spei_python-0.48.8}/PKG-INFO +1 -1
  2. {spei_python-0.48.7 → spei_python-0.48.8}/pyproject.toml +2 -2
  3. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/mensaje.py +8 -4
  4. {spei_python-0.48.7 → spei_python-0.48.8}/spei/responses/orden.py +3 -1
  5. {spei_python-0.48.7 → spei_python-0.48.8}/README.md +0 -0
  6. {spei_python-0.48.7 → spei_python-0.48.8}/spei/README.md +0 -0
  7. {spei_python-0.48.7 → spei_python-0.48.8}/spei/__init__.py +0 -0
  8. {spei_python-0.48.7 → spei_python-0.48.8}/spei/cep_generator.py +0 -0
  9. {spei_python-0.48.7 → spei_python-0.48.8}/spei/checksum/__init__.py +0 -0
  10. {spei_python-0.48.7 → spei_python-0.48.8}/spei/checksum/factory.py +0 -0
  11. {spei_python-0.48.7 → spei_python-0.48.8}/spei/checksum/generator.py +0 -0
  12. {spei_python-0.48.7 → spei_python-0.48.8}/spei/checksum/types.py +0 -0
  13. {spei_python-0.48.7 → spei_python-0.48.8}/spei/client.py +0 -0
  14. {spei_python-0.48.7 → spei_python-0.48.8}/spei/errors/__init__.py +0 -0
  15. {spei_python-0.48.7 → spei_python-0.48.8}/spei/errors/sice.py +0 -0
  16. {spei_python-0.48.7 → spei_python-0.48.8}/spei/errors/spei.py +0 -0
  17. {spei_python-0.48.7 → spei_python-0.48.8}/spei/exceptions.py +0 -0
  18. {spei_python-0.48.7 → spei_python-0.48.8}/spei/mappings.py +0 -0
  19. {spei_python-0.48.7 → spei_python-0.48.8}/spei/requests/__init__.py +0 -0
  20. {spei_python-0.48.7 → spei_python-0.48.8}/spei/requests/acuse.py +0 -0
  21. {spei_python-0.48.7 → spei_python-0.48.8}/spei/requests/cda.py +0 -0
  22. {spei_python-0.48.7 → spei_python-0.48.8}/spei/requests/orden.py +0 -0
  23. {spei_python-0.48.7 → spei_python-0.48.8}/spei/requests/respuesta.py +0 -0
  24. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/__init__.py +0 -0
  25. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/acuse.py +0 -0
  26. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/cda.py +0 -0
  27. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/ensesion.py +0 -0
  28. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/orden.py +0 -0
  29. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/payments.py +0 -0
  30. {spei_python-0.48.7 → spei_python-0.48.8}/spei/resources/respuesta.py +0 -0
  31. {spei_python-0.48.7 → spei_python-0.48.8}/spei/responses/__init__.py +0 -0
  32. {spei_python-0.48.7 → spei_python-0.48.8}/spei/responses/acuse.py +0 -0
  33. {spei_python-0.48.7 → spei_python-0.48.8}/spei/responses/respuesta.py +0 -0
  34. {spei_python-0.48.7 → spei_python-0.48.8}/spei/sice.py +0 -0
  35. {spei_python-0.48.7 → spei_python-0.48.8}/spei/types/__init__.py +0 -0
  36. {spei_python-0.48.7 → spei_python-0.48.8}/spei/types/sice.py +0 -0
  37. {spei_python-0.48.7 → spei_python-0.48.8}/spei/types/spei.py +0 -0
  38. {spei_python-0.48.7 → spei_python-0.48.8}/spei/utils.py +0 -0
  39. {spei_python-0.48.7 → spei_python-0.48.8}/spei/validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spei-python
3
- Version: 0.48.7
3
+ Version: 0.48.8
4
4
  Summary:
5
5
  Author: tech
6
6
  Author-email: tech@fondeadora.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "spei-python"
3
- version = "0.48.7"
3
+ version = "0.48.8"
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.48.7"
35
+ version = "0.48.8"
36
36
  tag_format = "v$version"
37
37
  bump_message = "bump: Semantic Release Bot: Release Version: $new_version 🤖🚀 [skip ci]"
38
38
  version_files = [
@@ -17,9 +17,13 @@ class Mensaje(BaseModel):
17
17
 
18
18
  @classmethod
19
19
  def parse_xml(cls, mensaje): # noqa: WPS210
20
- decoded = mensaje.decode('latin1').replace('&amp;', '&amp;amp;')
21
- encoded = decoded.encode('utf-8')
22
- mensaje = etree.fromstring(encoded) # noqa: S320
20
+ is_ensesion = mensaje.find(b'ENSESION')
21
+ if is_ensesion == -1:
22
+ decoded = mensaje.decode('utf-8')
23
+ else:
24
+ decoded = mensaje.decode('latin1').replace('&amp;', '&amp;amp;')
25
+
26
+ mensaje = etree.fromstring(bytes(decoded, encoding='utf-8')) # noqa: S320
23
27
  body = mensaje.find(
24
28
  '{http://schemas.xmlsoap.org/soap/envelope/}Body',
25
29
  )
@@ -28,7 +32,7 @@ class Mensaje(BaseModel):
28
32
 
29
33
  if ordenpago is not None:
30
34
  element = etree.fromstring( # noqa: S320
31
- bytes(ordenpago.text.strip(), encoding='utf-8'),
35
+ bytes(ordenpago.text.strip(), encoding='cp850'),
32
36
  )
33
37
  categoria = element.attrib['categoria']
34
38
 
@@ -31,5 +31,7 @@ class BodyElement(object):
31
31
 
32
32
  class OrdenResponse(object):
33
33
  def __new__(cls, orden):
34
- mensaje = etree.fromstring(orden) # noqa: S320
34
+ mensaje = etree.fromstring( # noqa: S320
35
+ bytes(orden, encoding='utf-8'),
36
+ )
35
37
  return OrdenPagoElement(MensajeElement(RootElement(BodyElement(mensaje))))
File without changes
File without changes
File without changes