facho/cli.py: nuevo comando soap-get-numbering-range

FossilOrigin-Name: d14d8f78bc133599e116319bd1cad9049ebf4971f57aac7a593493b6c48e4d03
This commit is contained in:
2020-05-31 03:26:28 +00:00
parent ae12f706cb
commit aa7ee9f523
2 changed files with 36 additions and 8 deletions

View File

@@ -64,19 +64,20 @@ class ConsultaResolucionesFacturacionRespuesta:
@dataclass
class ConsultaResolucionesFacturacionPeticion(SOAPService):
NITObligadoFacturarElectronicamente: str
NITProveedorTecnologico: str
IdentificadorSoftware: str
class GetNumberingRange(SOAPService):
accountCode: str
accountCodeT: str
softwareCode: str
def get_wsdl(self):
return 'https://facturaelectronica.dian.gov.co/servicios/B2BIntegrationEngine-servicios/FacturaElectronica/consultaResolucionesFacturacion.wsdl'
return 'https://colombia-dian-webservices-input-sbx.azurewebsites.net/WcfDianCustomerServices.svc?wsdl'
def get_service(self):
return 'ConsultaResolucionesFacturacion'
return 'GetNumberingRange'
def build_response(self, as_dict):
return ConsultaResolucionesFacturacionRespuesta.fromdict(as_dict)
return as_dict
@dataclass
class SendBillAsync(SOAPService):
@@ -154,12 +155,14 @@ class GetStatusZip(SOAPService):
class Habilitacion:
WSDL = 'https://vpfe-hab.dian.gov.co/WcfDianCustomerServices.svc?wsdl'
class GetNumberingRange(GetNumberingRange):
def get_wsdl(self):
return Habilitacion.WSDL
class SendBillAsync(SendBillAsync):
def get_wsdl(self):
return Habilitacion.WSDL
class SendBillSync(SendBillSync):
def get_wsdl(self):
return Habilitacion.WSDL