/// <summary> /// Obtiene informacion de respuesta de autorizacion para un comprobante /// </summary> /// <param name="aut">Autorizacion</param> /// <param name="tipoComprobante">Tipo de Comprobante</param> /// <param name="nroComprobante">Nro de Comprobante</param> /// <param name="ptoVta">Punto de Venta</param> /// <returns>Respuesta simil a la de solicitud de CAE</returns> public ClsFEXGetCMPR DatosDeComprobante( Autorizacion aut, int tipoComprobante, long nroComprobante, int ptoVta ) { ClsFEXAuthRequest feAutRequest = this.wa.ConvertirFex( aut ); ClsFEXGetCMP solicitud = new ClsFEXGetCMP(); solicitud.Cbte_nro = nroComprobante; solicitud.Cbte_tipo = (short)tipoComprobante; solicitud.Punto_vta = (short)ptoVta; FEXGetCMPResponse respuesta = this.wsfe.FEXGetCMP( feAutRequest, solicitud ); this.managerErrores.CapturarError( respuesta.FEXErr ); return respuesta.FEXResultGet; }
/// <remarks/> public void FEXGetCMPAsync( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp, object userState ) { if ( ( this.FEXGetCMPOperationCompleted == null ) ) { this.FEXGetCMPOperationCompleted = new System.Threading.SendOrPostCallback( this.OnFEXGetCMPOperationCompleted ); } this.InvokeAsync( "FEXGetCMP", new object[] { Auth, Cmp}, this.FEXGetCMPOperationCompleted, userState ); }
public FEXGetCMPResponse FEXGetCMP( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp ) { object[] results = this.Invoke( "FEXGetCMP", new object[] { Auth, Cmp} ); return ( (FEXGetCMPResponse) ( results[0] ) ); }
/// <remarks/> public void FEXGetCMPAsync( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp ) { this.FEXGetCMPAsync( Auth, Cmp, null ); }
/// <remarks/> public System.IAsyncResult BeginFEXGetCMP( ClsFEXAuthRequest Auth, ClsFEXGetCMP Cmp, System.AsyncCallback callback, object asyncState ) { return this.BeginInvoke( "FEXGetCMP", new object[] { Auth, Cmp}, callback, asyncState ); }