//------------------------------------------------------------------------------ // // Este código fue generado por una herramienta. // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a generar el código. // //------------------------------------------------------------------------------ namespace wsTestTimbrado { [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ServiceModel.ServiceContractAttribute(Namespace="http://digibox.com/", ConfigurationName="wsTestTimbrado.wsTimbradoSoap")] public interface wsTimbradoSoap { [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarCFDI", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarCFDIAsync(wsTestTimbrado.TimbrarCFDIRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXML", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXMLAsync(string xmlComprobante, string tokenAutenticacion); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXML_tmp", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXML_tmpAsync(string xmlComprobante, string tokenAutenticacion); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXMLV2", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXMLV2Async(string xmlComprobante, string tokenAutenticacion); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXMLV3", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXMLV3Async(string xmlComprobante, string tokenAutenticacion, string formato); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbarYObtenerQR", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbarYObtenerQRAsync(string xmlComprobante, string tokenAutenticacion); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXMLYObtenerPdf", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXMLYObtenerPdfAsync(string xmlComprobante, string tokenAutenticacion, bool personalizado); [System.ServiceModel.OperationContractAttribute(Action="http://digibox.com/TimbrarXMLSerieFolio", ReplyAction="*")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] System.Threading.Tasks.Task TimbrarXMLSerieFolioAsync(string xmlComprobante, string tokenAutenticacion); } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobante { private comprobanteEmisor emisorField; private comprobanteReceptor receptorField; private ArrayOfComprobanteConceptoConcepto[] conceptosField; private comprobanteImpuestos impuestosField; private comprobanteComplemento complementoField; private comprobanteAddenda addendaField; private string versionField; private string serieField; private string folioField; private string lugarExpedicionField; private string numCtaPagoField; private string tipoCambioField; private string monedaField; private string folioFiscalOrigField; private string serieFolioFiscalOrigField; private System.DateTime fechaFolioFiscalOrigField; private bool fechaFolioFiscalOrigFieldSpecified; private decimal montoFolioFiscalOrigField; private bool montoFolioFiscalOrigFieldSpecified; private System.DateTime fechaField; private string selloField; private string formaDePagoField; private string noCertificadoField; private string certificadoField; private string condicionesDePagoField; private decimal subTotalField; private decimal descuentoField; private bool descuentoFieldSpecified; private string motivoDescuentoField; private decimal totalField; private string metodoDePagoField; private comprobanteTipoDeComprobante tipoDeComprobanteField; private string cFechaVencimientoField; private string cReferen01Field; /// [System.Xml.Serialization.XmlElementAttribute(Order=0)] public comprobanteEmisor Emisor { get { return this.emisorField; } set { this.emisorField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=1)] public comprobanteReceptor Receptor { get { return this.receptorField; } set { this.receptorField = value; } } /// [System.Xml.Serialization.XmlArrayAttribute(Order=2)] [System.Xml.Serialization.XmlArrayItemAttribute("Concepto", IsNullable=false)] public ArrayOfComprobanteConceptoConcepto[] Conceptos { get { return this.conceptosField; } set { this.conceptosField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=3)] public comprobanteImpuestos Impuestos { get { return this.impuestosField; } set { this.impuestosField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=4)] public comprobanteComplemento Complemento { get { return this.complementoField; } set { this.complementoField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=5)] public comprobanteAddenda Addenda { get { return this.addendaField; } set { this.addendaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string version { get { return this.versionField; } set { this.versionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string serie { get { return this.serieField; } set { this.serieField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string folio { get { return this.folioField; } set { this.folioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string LugarExpedicion { get { return this.lugarExpedicionField; } set { this.lugarExpedicionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string NumCtaPago { get { return this.numCtaPagoField; } set { this.numCtaPagoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string TipoCambio { get { return this.tipoCambioField; } set { this.tipoCambioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string Moneda { get { return this.monedaField; } set { this.monedaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string FolioFiscalOrig { get { return this.folioFiscalOrigField; } set { this.folioFiscalOrigField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string SerieFolioFiscalOrig { get { return this.serieFolioFiscalOrigField; } set { this.serieFolioFiscalOrigField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public System.DateTime FechaFolioFiscalOrig { get { return this.fechaFolioFiscalOrigField; } set { this.fechaFolioFiscalOrigField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool FechaFolioFiscalOrigSpecified { get { return this.fechaFolioFiscalOrigFieldSpecified; } set { this.fechaFolioFiscalOrigFieldSpecified = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal MontoFolioFiscalOrig { get { return this.montoFolioFiscalOrigField; } set { this.montoFolioFiscalOrigField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool MontoFolioFiscalOrigSpecified { get { return this.montoFolioFiscalOrigFieldSpecified; } set { this.montoFolioFiscalOrigFieldSpecified = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public System.DateTime fecha { get { return this.fechaField; } set { this.fechaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string sello { get { return this.selloField; } set { this.selloField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string formaDePago { get { return this.formaDePagoField; } set { this.formaDePagoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noCertificado { get { return this.noCertificadoField; } set { this.noCertificadoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string certificado { get { return this.certificadoField; } set { this.certificadoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string condicionesDePago { get { return this.condicionesDePagoField; } set { this.condicionesDePagoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal subTotal { get { return this.subTotalField; } set { this.subTotalField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal descuento { get { return this.descuentoField; } set { this.descuentoField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool descuentoSpecified { get { return this.descuentoFieldSpecified; } set { this.descuentoFieldSpecified = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string motivoDescuento { get { return this.motivoDescuentoField; } set { this.motivoDescuentoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal total { get { return this.totalField; } set { this.totalField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string metodoDePago { get { return this.metodoDePagoField; } set { this.metodoDePagoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public comprobanteTipoDeComprobante tipoDeComprobante { get { return this.tipoDeComprobanteField; } set { this.tipoDeComprobanteField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string cFechaVencimiento { get { return this.cFechaVencimientoField; } set { this.cFechaVencimientoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string cReferen01 { get { return this.cReferen01Field; } set { this.cReferen01Field = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteEmisor { private t_UbicacionFiscal domicilioFiscalField; private t_Ubicacion expedidoEnField; private comprobanteEmisorRegimenFiscal[] regimenFiscalField; private string rfcField; private string nombreField; /// [System.Xml.Serialization.XmlElementAttribute(Order=0)] public t_UbicacionFiscal DomicilioFiscal { get { return this.domicilioFiscalField; } set { this.domicilioFiscalField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=1)] public t_Ubicacion ExpedidoEn { get { return this.expedidoEnField; } set { this.expedidoEnField = value; } } /// [System.Xml.Serialization.XmlElementAttribute("RegimenFiscal", Order=2)] public comprobanteEmisorRegimenFiscal[] RegimenFiscal { get { return this.regimenFiscalField; } set { this.regimenFiscalField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string rfc { get { return this.rfcField; } set { this.rfcField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string nombre { get { return this.nombreField; } set { this.nombreField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.sat.gob.mx/cfd/3")] public partial class t_UbicacionFiscal { private string calleField; private string noExteriorField; private string noInteriorField; private string coloniaField; private string localidadField; private string referenciaField; private string municipioField; private string estadoField; private string paisField; private string codigoPostalField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string calle { get { return this.calleField; } set { this.calleField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noExterior { get { return this.noExteriorField; } set { this.noExteriorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noInterior { get { return this.noInteriorField; } set { this.noInteriorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string colonia { get { return this.coloniaField; } set { this.coloniaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string localidad { get { return this.localidadField; } set { this.localidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string referencia { get { return this.referenciaField; } set { this.referenciaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string municipio { get { return this.municipioField; } set { this.municipioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string estado { get { return this.estadoField; } set { this.estadoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string pais { get { return this.paisField; } set { this.paisField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string codigoPostal { get { return this.codigoPostalField; } set { this.codigoPostalField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://digibox.com/")] public partial class XmlYPdfResponse { private string xmlField; private string pdfField; /// [System.Xml.Serialization.XmlElementAttribute(Order=0)] public string xml { get { return this.xmlField; } set { this.xmlField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Order=1)] public string pdf { get { return this.pdfField; } set { this.pdfField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.sat.gob.mx/cfd/3")] public partial class t_InformacionAduanera { private string numeroField; private System.DateTime fechaField; private string aduanaField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string numero { get { return this.numeroField; } set { this.numeroField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(DataType="date")] public System.DateTime fecha { get { return this.fechaField; } set { this.fechaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string aduana { get { return this.aduanaField; } set { this.aduanaField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.sat.gob.mx/cfd/3")] public partial class t_Ubicacion { private string calleField; private string noExteriorField; private string noInteriorField; private string coloniaField; private string localidadField; private string referenciaField; private string municipioField; private string estadoField; private string paisField; private string codigoPostalField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string calle { get { return this.calleField; } set { this.calleField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noExterior { get { return this.noExteriorField; } set { this.noExteriorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noInterior { get { return this.noInteriorField; } set { this.noInteriorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string colonia { get { return this.coloniaField; } set { this.coloniaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string localidad { get { return this.localidadField; } set { this.localidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string referencia { get { return this.referenciaField; } set { this.referenciaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string municipio { get { return this.municipioField; } set { this.municipioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string estado { get { return this.estadoField; } set { this.estadoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string pais { get { return this.paisField; } set { this.paisField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string codigoPostal { get { return this.codigoPostalField; } set { this.codigoPostalField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteEmisorRegimenFiscal { private string regimenField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string Regimen { get { return this.regimenField; } set { this.regimenField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteReceptor { private t_Ubicacion domicilioField; private string rfcField; private string nombreField; /// [System.Xml.Serialization.XmlElementAttribute(Order=0)] public t_Ubicacion Domicilio { get { return this.domicilioField; } set { this.domicilioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string rfc { get { return this.rfcField; } set { this.rfcField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string nombre { get { return this.nombreField; } set { this.nombreField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteConceptoConcepto { private object[] itemsField; private decimal cantidadField; private string unidadField; private string noIdentificacionField; private string descripcionField; private decimal valorUnitarioField; private decimal importeField; /// [System.Xml.Serialization.XmlElementAttribute("ComplementoConcepto", typeof(ArrayOfComprobanteConceptoConceptoComplementoConcepto), Order=0)] [System.Xml.Serialization.XmlElementAttribute("CuentaPredial", typeof(ArrayOfComprobanteConceptoConceptoCuentaPredial), Order=0)] [System.Xml.Serialization.XmlElementAttribute("InformacionAduanera", typeof(t_InformacionAduanera), Order=0)] [System.Xml.Serialization.XmlElementAttribute("Parte", typeof(ArrayOfComprobanteConceptoConceptoParte), Order=0)] public object[] Items { get { return this.itemsField; } set { this.itemsField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal cantidad { get { return this.cantidadField; } set { this.cantidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string unidad { get { return this.unidadField; } set { this.unidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noIdentificacion { get { return this.noIdentificacionField; } set { this.noIdentificacionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string descripcion { get { return this.descripcionField; } set { this.descripcionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal valorUnitario { get { return this.valorUnitarioField; } set { this.valorUnitarioField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal importe { get { return this.importeField; } set { this.importeField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteConceptoConceptoComplementoConcepto { private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteConceptoConceptoCuentaPredial { private string numeroField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string numero { get { return this.numeroField; } set { this.numeroField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteConceptoConceptoParte { private t_InformacionAduanera[] informacionAduaneraField; private decimal cantidadField; private string unidadField; private string noIdentificacionField; private string descripcionField; private decimal valorUnitarioField; private bool valorUnitarioFieldSpecified; private decimal importeField; private bool importeFieldSpecified; /// [System.Xml.Serialization.XmlElementAttribute("InformacionAduanera", Order=0)] public t_InformacionAduanera[] InformacionAduanera { get { return this.informacionAduaneraField; } set { this.informacionAduaneraField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal cantidad { get { return this.cantidadField; } set { this.cantidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string unidad { get { return this.unidadField; } set { this.unidadField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noIdentificacion { get { return this.noIdentificacionField; } set { this.noIdentificacionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string descripcion { get { return this.descripcionField; } set { this.descripcionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal valorUnitario { get { return this.valorUnitarioField; } set { this.valorUnitarioField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool valorUnitarioSpecified { get { return this.valorUnitarioFieldSpecified; } set { this.valorUnitarioFieldSpecified = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal importe { get { return this.importeField; } set { this.importeField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool importeSpecified { get { return this.importeFieldSpecified; } set { this.importeFieldSpecified = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteImpuestos { private ArrayOfComprobanteImpuestosRetencionRetencion[] retencionesField; private ArrayOfComprobanteImpuestosTrasladoTraslado[] trasladosField; private decimal totalImpuestosRetenidosField; private bool totalImpuestosRetenidosFieldSpecified; private decimal totalImpuestosTrasladadosField; private bool totalImpuestosTrasladadosFieldSpecified; /// [System.Xml.Serialization.XmlArrayAttribute(Order=0)] [System.Xml.Serialization.XmlArrayItemAttribute("Retencion", IsNullable=false)] public ArrayOfComprobanteImpuestosRetencionRetencion[] Retenciones { get { return this.retencionesField; } set { this.retencionesField = value; } } /// [System.Xml.Serialization.XmlArrayAttribute(Order=1)] [System.Xml.Serialization.XmlArrayItemAttribute("Traslado", IsNullable=false)] public ArrayOfComprobanteImpuestosTrasladoTraslado[] Traslados { get { return this.trasladosField; } set { this.trasladosField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal totalImpuestosRetenidos { get { return this.totalImpuestosRetenidosField; } set { this.totalImpuestosRetenidosField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool totalImpuestosRetenidosSpecified { get { return this.totalImpuestosRetenidosFieldSpecified; } set { this.totalImpuestosRetenidosFieldSpecified = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal totalImpuestosTrasladados { get { return this.totalImpuestosTrasladadosField; } set { this.totalImpuestosTrasladadosField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool totalImpuestosTrasladadosSpecified { get { return this.totalImpuestosTrasladadosFieldSpecified; } set { this.totalImpuestosTrasladadosFieldSpecified = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteImpuestosRetencionRetencion { private ArrayOfComprobanteImpuestosRetencionRetencionImpuesto impuestoField; private decimal importeField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public ArrayOfComprobanteImpuestosRetencionRetencionImpuesto impuesto { get { return this.impuestoField; } set { this.impuestoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal importe { get { return this.importeField; } set { this.importeField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public enum ArrayOfComprobanteImpuestosRetencionRetencionImpuesto { /// ISR, /// IVA, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class ArrayOfComprobanteImpuestosTrasladoTraslado { private ArrayOfComprobanteImpuestosTrasladoTrasladoImpuesto impuestoField; private decimal tasaField; private decimal importeField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public ArrayOfComprobanteImpuestosTrasladoTrasladoImpuesto impuesto { get { return this.impuestoField; } set { this.impuestoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal tasa { get { return this.tasaField; } set { this.tasaField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public decimal importe { get { return this.importeField; } set { this.importeField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public enum ArrayOfComprobanteImpuestosTrasladoTrasladoImpuesto { /// IVA, /// IEPS, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteComplemento { private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public partial class comprobanteAddenda { private System.Xml.XmlElement[] anyField; /// [System.Xml.Serialization.XmlAnyElementAttribute(Order=0)] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/cfd/3")] public enum comprobanteTipoDeComprobante { /// ingreso, /// egreso, /// traslado, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.sat.gob.mx/TimbreFiscalDigital")] public partial class TimbrarCFDIResult { private string versionField; private string uUIDField; private System.DateTime fechaTimbradoField; private string selloCFDField; private string noCertificadoSATField; private string selloSATField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string version { get { return this.versionField; } set { this.versionField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string UUID { get { return this.uUIDField; } set { this.uUIDField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public System.DateTime FechaTimbrado { get { return this.fechaTimbradoField; } set { this.fechaTimbradoField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string selloCFD { get { return this.selloCFDField; } set { this.selloCFDField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string noCertificadoSAT { get { return this.noCertificadoSATField; } set { this.noCertificadoSATField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string selloSAT { get { return this.selloSATField; } set { this.selloSATField = value; } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="TimbrarCFDI", WrapperNamespace="http://digibox.com/", IsWrapped=true)] public partial class TimbrarCFDIRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.sat.gob.mx/cfd/3", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.sat.gob.mx/cfd/3")] public wsTestTimbrado.comprobante comprobante; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://digibox.com/", Order=1)] public string tokenAutenticacion; public TimbrarCFDIRequest() { } public TimbrarCFDIRequest(wsTestTimbrado.comprobante comprobante, string tokenAutenticacion) { this.comprobante = comprobante; this.tokenAutenticacion = tokenAutenticacion; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="TimbrarCFDIResponse", WrapperNamespace="http://digibox.com/", IsWrapped=true)] public partial class TimbrarCFDIResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.sat.gob.mx/TimbreFiscalDigital", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.sat.gob.mx/TimbreFiscalDigital")] public wsTestTimbrado.TimbrarCFDIResult TimbrarCFDIResult; public TimbrarCFDIResponse() { } public TimbrarCFDIResponse(wsTestTimbrado.TimbrarCFDIResult TimbrarCFDIResult) { this.TimbrarCFDIResult = TimbrarCFDIResult; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] public interface wsTimbradoSoapChannel : wsTestTimbrado.wsTimbradoSoap, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")] public partial class wsTimbradoSoapClient : System.ServiceModel.ClientBase, wsTestTimbrado.wsTimbradoSoap { /// /// Implemente este método parcial para configurar el punto de conexión de servicio. /// /// El punto de conexión para configurar /// Credenciales de cliente static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public wsTimbradoSoapClient(EndpointConfiguration endpointConfiguration) : base(wsTimbradoSoapClient.GetBindingForEndpoint(endpointConfiguration), wsTimbradoSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsTimbradoSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : base(wsTimbradoSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsTimbradoSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(wsTimbradoSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public wsTimbradoSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task wsTestTimbrado.wsTimbradoSoap.TimbrarCFDIAsync(wsTestTimbrado.TimbrarCFDIRequest request) { return base.Channel.TimbrarCFDIAsync(request); } public System.Threading.Tasks.Task TimbrarCFDIAsync(wsTestTimbrado.comprobante comprobante, string tokenAutenticacion) { wsTestTimbrado.TimbrarCFDIRequest inValue = new wsTestTimbrado.TimbrarCFDIRequest(); inValue.comprobante = comprobante; inValue.tokenAutenticacion = tokenAutenticacion; return ((wsTestTimbrado.wsTimbradoSoap)(this)).TimbrarCFDIAsync(inValue); } public System.Threading.Tasks.Task TimbrarXMLAsync(string xmlComprobante, string tokenAutenticacion) { return base.Channel.TimbrarXMLAsync(xmlComprobante, tokenAutenticacion); } public System.Threading.Tasks.Task TimbrarXML_tmpAsync(string xmlComprobante, string tokenAutenticacion) { return base.Channel.TimbrarXML_tmpAsync(xmlComprobante, tokenAutenticacion); } public System.Threading.Tasks.Task TimbrarXMLV2Async(string xmlComprobante, string tokenAutenticacion) { return base.Channel.TimbrarXMLV2Async(xmlComprobante, tokenAutenticacion); } public System.Threading.Tasks.Task TimbrarXMLV3Async(string xmlComprobante, string tokenAutenticacion, string formato) { return base.Channel.TimbrarXMLV3Async(xmlComprobante, tokenAutenticacion, formato); } public System.Threading.Tasks.Task TimbarYObtenerQRAsync(string xmlComprobante, string tokenAutenticacion) { return base.Channel.TimbarYObtenerQRAsync(xmlComprobante, tokenAutenticacion); } public System.Threading.Tasks.Task TimbrarXMLYObtenerPdfAsync(string xmlComprobante, string tokenAutenticacion, bool personalizado) { return base.Channel.TimbrarXMLYObtenerPdfAsync(xmlComprobante, tokenAutenticacion, personalizado); } public System.Threading.Tasks.Task TimbrarXMLSerieFolioAsync(string xmlComprobante, string tokenAutenticacion) { return base.Channel.TimbrarXMLSerieFolioAsync(xmlComprobante, tokenAutenticacion); } public virtual System.Threading.Tasks.Task OpenAsync() { return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen)); } private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.wsTimbradoSoap)) { System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); result.MaxBufferSize = int.MaxValue; result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; result.MaxReceivedMessageSize = int.MaxValue; result.AllowCookies = true; result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport; return result; } if ((endpointConfiguration == EndpointConfiguration.wsTimbradoSoap12)) { System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); result.Elements.Add(textBindingElement); System.ServiceModel.Channels.HttpsTransportBindingElement httpsBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); httpsBindingElement.AllowCookies = true; httpsBindingElement.MaxBufferSize = int.MaxValue; httpsBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpsBindingElement); return result; } throw new System.InvalidOperationException(string.Format("No se pudo encontrar un punto de conexión con el nombre \"{0}\".", endpointConfiguration)); } private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.wsTimbradoSoap)) { return new System.ServiceModel.EndpointAddress("https://testtimbrado.digibox.com.mx/Timbrado/wsTimbrado.asmx"); } if ((endpointConfiguration == EndpointConfiguration.wsTimbradoSoap12)) { return new System.ServiceModel.EndpointAddress("https://testtimbrado.digibox.com.mx/Timbrado/wsTimbrado.asmx"); } throw new System.InvalidOperationException(string.Format("No se pudo encontrar un punto de conexión con el nombre \"{0}\".", endpointConfiguration)); } public enum EndpointConfiguration { wsTimbradoSoap, wsTimbradoSoap12, } } }