Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.49.0
current_version = 0.50.0
commit = True
tag = False
message = chore: Bump version from {current_version} to {new_version}
Expand Down
2 changes: 1 addition & 1 deletion .ecrc → .editorconfig-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"SpacesAfterTabs": false,
"NoColor": false,
"Exclude": [],
"AllowedContentTypes": [],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
make test-coverage-report

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.4.3
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./test-reports/coverage/
Expand Down
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# History

## 0.50.0 (2025-08-20)

- (PR #843, 2025-07-30) chore(task): Update editorconfig checker
- (PR #844, 2025-08-01) Pin GitHub Action `codecov/codecov-action` to commit hash
- (PR #848, 2025-08-20) rcv: Add RcTipoCompra enum to represent "Tipo de Compra" in RCV

## 0.49.0 (2025-07-08)

- (PR #837, 2025-07-02) dte: Customize range of random folio in `DteNaturalKey.random()`
Expand Down
2 changes: 1 addition & 1 deletion src/cl_sii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

"""

__version__ = '0.49.0'
__version__ = '0.50.0'
13 changes: 13 additions & 0 deletions src/cl_sii/rcv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ class RcEstadoContable(enum.Enum):
PENDIENTE = 'PENDIENTE'


@enum.unique
class RcTipoCompra(enum.Enum):
"""
Enum of "Tipo de Compra" for the RCV domain.
"""

DEL_GIRO = "DEL_GIRO"
"""Del Giro"""

NO_CORRESPONDE_INCLUIR = "NO_CORRESPONDE_INCLUIR"
"""No corresponde incluir"""


@enum.unique
class RcvTipoDocto(enum.IntEnum):
"""
Expand Down
16 changes: 15 additions & 1 deletion src/tests/test_rcv_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from cl_sii.dte.constants import TipoDte # noqa: F401
from cl_sii.rcv import constants # noqa: F401
from cl_sii.rcv.constants import RcEstadoContable, RcvKind, RcvTipoDocto # noqa: F401
from cl_sii.rcv.constants import RcEstadoContable, RcTipoCompra, RcvKind, RcvTipoDocto # noqa: F401


class RcvKindTest(unittest.TestCase):
Expand Down Expand Up @@ -48,6 +48,20 @@ def test_values_type(self) -> None:
self.assertSetEqual({type(x.value) for x in RcEstadoContable}, {str})


class RcTipoCompraTest(unittest.TestCase):
def test_members(self) -> None:
self.assertSetEqual(
{x for x in RcTipoCompra},
{
RcTipoCompra.DEL_GIRO,
RcTipoCompra.NO_CORRESPONDE_INCLUIR,
},
)

def test_values_type(self) -> None:
self.assertSetEqual({type(x.value) for x in RcTipoCompra}, {str})


class RcvTipoDoctoTest(unittest.TestCase):
def test_members(self) -> None:
self.assertSetEqual(
Expand Down
Loading