From f9007aa9cad3682941e3de900e9034337e98ab50 Mon Sep 17 00:00:00 2001 From: SatCFDI Date: Wed, 10 Jul 2024 13:32:41 -0600 Subject: [PATCH] Removed deprecated code --- satcfdi/create/cfd/cfdi40.py | 18 ------------------ satcfdi/pacs/__init__.py | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/satcfdi/create/cfd/cfdi40.py b/satcfdi/create/cfd/cfdi40.py index 498c1f4..484e7d7 100644 --- a/satcfdi/create/cfd/cfdi40.py +++ b/satcfdi/create/cfd/cfdi40.py @@ -151,15 +151,6 @@ def __init__( 'Importe': importe, }) - @classmethod # obsolete - def parse(cls, impuesto: str): - parts = impuesto.split("|") - return cls( - impuesto=parts[0], - tipo_factor=parts[1], - tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None, - ) - class Retencion(ScalarMap): """ @@ -188,15 +179,6 @@ def __init__( 'Importe': importe, }) - @classmethod # obsolete - def parse(cls, impuesto: str): - parts = impuesto.split("|") - return cls( - impuesto=parts[0], - tipo_factor=parts[1], - tasa_o_cuota=Decimal(parts[2]) if len(parts) > 2 else None, - ) - class Impuestos(ScalarMap): """ diff --git a/satcfdi/pacs/__init__.py b/satcfdi/pacs/__init__.py index 94f64ff..292e6a6 100644 --- a/satcfdi/pacs/__init__.py +++ b/satcfdi/pacs/__init__.py @@ -142,7 +142,7 @@ class Environment(Enum): class PAC: RFC = None - def __init__(self, environment): + def __init__(self, environment: Environment): self.environment = environment def status(self, cfdi: CFDI) -> dict: