Skip to content

Commit

Permalink
Remove eFACT suport
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleJB authored Jul 16, 2024
1 parent 652d035 commit bf757b0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions face/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()))
Expand Down

0 comments on commit bf757b0

Please sign in to comment.