From bf757b0e369d9a2d843303e2e956d115931d9da6 Mon Sep 17 00:00:00 2001 From: guilleJB Date: Tue, 16 Jul 2024 13:50:58 +0200 Subject: [PATCH] Remove eFACT suport --- face/face.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/face/face.py b/face/face.py index b972a85..a0c4d62 100644 --- a/face/face.py +++ b/face/face.py @@ -13,12 +13,6 @@ 'staging': "https://se-face-webservice.redsara.es/facturasspp2?wsdl", } -EFACT_ENVS = { - 'prod': "https://efact.aoc.cat/bustia/services/EFactWebServiceProxyService.wsdl", - 'staging': "https://efact-pre.aoc.cat/bustia/services/EFactWebServiceProxyService.wsdl", -} - - class FACe(object): """ FACe object @@ -55,10 +49,8 @@ def __init__(self, **kwargs): self.destination = kwargs.get('destination', 'FACE') if self.destination == 'FACE': destination = FACE_ENVS - elif self.destination == 'EFACT': - destination = EFACT_ENVS else: - raise Exception("Environment isn't correct. It must be FACE or EFACT") + raise Exception("Environment isn't correct. It must be FACE") if 'environment' in kwargs: assert type(kwargs['environment']) == str, "environment argument must be an string" assert kwargs['environment'] in destination.keys(), "Provided environment '{}' not recognized in defined destination {}".format(kwargs['environment'], str(destination.keys()))