Skip to content

Commit 0850a13

Browse files
Merge pull request #855 from cordada/deploy/v0.51.0
Deploy release v0.51.0
2 parents b2e4c98 + 09e8530 commit 0850a13

File tree

5 files changed

+60
-4
lines changed

5 files changed

+60
-4
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.50.0
2+
current_version = 0.51.0
33
commit = True
44
tag = False
55
message = chore: Bump version from {current_version} to {new_version}

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# History
22

3+
## 0.51.0 (2025-08-21)
4+
5+
- (PR #852, 2025-08-21) rcv: Add RvTipoVenta enum to represent "Tipo de Venta" in RCV
6+
- (PR #853, 2025-08-21) rcv: Extend RcTipoCompra enum with new purchase types
7+
38
## 0.50.0 (2025-08-20)
49

510
- (PR #843, 2025-07-30) chore(task): Update editorconfig checker

src/cl_sii/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
"""
66

7-
__version__ = '0.50.0'
7+
__version__ = '0.51.0'

src/cl_sii/rcv/constants.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,23 @@ class RcTipoCompra(enum.Enum):
106106
DEL_GIRO = "DEL_GIRO"
107107
"""Del Giro"""
108108

109+
SUPERMERCADOS = "SUPERMERCADOS"
110+
"""Supermercados"""
111+
112+
BIENES_RAICES = "BIENES_RAICES"
113+
"""Bienes Raíces"""
114+
115+
ACTIVO_FIJO = "ACTIVO_FIJO"
116+
"""Activo Fijo"""
117+
118+
IVA_USO_COMUN = "IVA_USO_COMUN"
119+
"""IVA Uso Común"""
120+
121+
IVA_NO_RECUPERABLE = "IVA_NO_RECUPERABLE"
122+
"""IVA no Recuperable"""
123+
109124
NO_CORRESPONDE_INCLUIR = "NO_CORRESPONDE_INCLUIR"
110-
"""No corresponde incluir"""
125+
"""No Corresp. Incluir"""
111126

112127

113128
@enum.unique
@@ -318,3 +333,19 @@ def as_tipo_dte(self) -> TipoDte:
318333
) from exc
319334

320335
return value
336+
337+
338+
@enum.unique
339+
class RvTipoVenta(enum.Enum):
340+
"""
341+
Enum of "Tipo de Venta" for the RCV domain.
342+
"""
343+
344+
DEL_GIRO = "DEL_GIRO"
345+
"""Del Giro"""
346+
347+
BIENES_RAICES = "BIENES_RAICES"
348+
"""Bienes Raíces"""
349+
350+
ACTIVO_FIJO = "ACTIVO_FIJO"
351+
"""Activo Fijo"""

src/tests/test_rcv_constants.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from cl_sii.dte.constants import TipoDte # noqa: F401
44
from cl_sii.rcv import constants # noqa: F401
5-
from cl_sii.rcv.constants import RcEstadoContable, RcTipoCompra, RcvKind, RcvTipoDocto # noqa: F401
5+
from cl_sii.rcv.constants import RcEstadoContable, RcTipoCompra, RcvKind, RcvTipoDocto, RvTipoVenta
66

77

88
class RcvKindTest(unittest.TestCase):
@@ -54,6 +54,11 @@ def test_members(self) -> None:
5454
{x for x in RcTipoCompra},
5555
{
5656
RcTipoCompra.DEL_GIRO,
57+
RcTipoCompra.SUPERMERCADOS,
58+
RcTipoCompra.BIENES_RAICES,
59+
RcTipoCompra.ACTIVO_FIJO,
60+
RcTipoCompra.IVA_USO_COMUN,
61+
RcTipoCompra.IVA_NO_RECUPERABLE,
5762
RcTipoCompra.NO_CORRESPONDE_INCLUIR,
5863
},
5964
)
@@ -139,3 +144,18 @@ def test_as_tipo_dte(self) -> None:
139144
self.assertEqual(
140145
cm.exception.args, ("There is no equivalent 'TipoDte' for 'RcvTipoDocto.FACTURA'.",)
141146
)
147+
148+
149+
class RvTipoVentaTest(unittest.TestCase):
150+
def test_members(self) -> None:
151+
self.assertSetEqual(
152+
{x for x in RvTipoVenta},
153+
{
154+
RvTipoVenta.DEL_GIRO,
155+
RvTipoVenta.BIENES_RAICES,
156+
RvTipoVenta.ACTIVO_FIJO,
157+
},
158+
)
159+
160+
def test_values_type(self) -> None:
161+
self.assertSetEqual({type(x.value) for x in RvTipoVenta}, {str})

0 commit comments

Comments
 (0)