private wsbfe.BFEResponseAuthorize ReprocessOnError(wsbfe.ClsBFEAuthRequest objBFEAuthRequest, wsbfe.ClsBFERequest objBFERequest) { //consulto el cae wsbfe.BFEGetCMPResponse objBFEGetCMPResponse = new wsbfe.BFEGetCMPResponse(); wsbfe.ClsBFEGetCMP objCMP = new wsbfe.ClsBFEGetCMP(); wsbfe.BFEResponseAuthorize objBFEResponseAuthorize = new wsbfe.BFEResponseAuthorize(); objCMP.Punto_vta = Convert.ToInt16(objBFERequest.Punto_vta); objCMP.Tipo_cbte = Convert.ToInt16(objBFERequest.Tipo_cbte); objCMP.Cbte_nro = Convert.ToInt64(objBFERequest.Cbte_nro); try { objBFEGetCMPResponse = bfeService.BFEGetCMP(objBFEAuthRequest, objCMP); if (objBFEGetCMPResponse.BFEResultGet != null && objBFEGetCMPResponse.BFEResultGet.Fch_venc_Cae != null) { if (objBFEResponseAuthorize.BFEErr == null) { objBFEResponseAuthorize.BFEErr = new wsbfe.ClsBFEErr(); } objBFEResponseAuthorize.BFEErr.ErrCode = objBFEGetCMPResponse.BFEErr.ErrCode; objBFEResponseAuthorize.BFEErr.ErrMsg = objBFEGetCMPResponse.BFEErr.ErrMsg; if (objBFEResponseAuthorize.BFEEvents == null) { objBFEResponseAuthorize.BFEEvents = new wsbfe.ClsBFEEvents(); } objBFEResponseAuthorize.BFEEvents.EventCode = objBFEGetCMPResponse.BFEEvents.EventCode; objBFEResponseAuthorize.BFEEvents.EventMsg = objBFEGetCMPResponse.BFEEvents.EventMsg; if (objBFEResponseAuthorize.BFEResultAuth == null) { objBFEResponseAuthorize.BFEResultAuth = new wsbfe.ClsBFEOutAuthorize(); } objBFEResponseAuthorize.BFEResultAuth.Resultado = "A"; objBFEResponseAuthorize.BFEResultAuth.Cae = objBFEGetCMPResponse.BFEResultGet.Cae; objBFEResponseAuthorize.BFEResultAuth.Cuit = objBFEGetCMPResponse.BFEResultGet.Cuit; objBFEResponseAuthorize.BFEResultAuth.Fch_cbte = objBFEGetCMPResponse.BFEResultGet.Fecha_cbte_cae; objBFEResponseAuthorize.BFEResultAuth.Fch_venc_Cae = objBFEGetCMPResponse.BFEResultGet.Fch_venc_Cae; objBFEResponseAuthorize.BFEResultAuth.Id = objBFEGetCMPResponse.BFEResultGet.Id; objBFEResponseAuthorize.BFEResultAuth.Obs = objBFEGetCMPResponse.BFEResultGet.Obs; objBFEResponseAuthorize.BFEResultAuth.Resultado = objBFEGetCMPResponse.BFEResultGet.Resultado; objBFEResponseAuthorize.BFEResultAuth.Reproceso = "S"; } } catch { objBFEResponseAuthorize = null; } return objBFEResponseAuthorize; }
/// <remarks/> public void BFEGetCMPAsync(ClsBFEAuthRequest Auth, ClsBFEGetCMP Cmp) { this.BFEGetCMPAsync(Auth, Cmp, null); }
/// <remarks/> public void BFEGetCMPAsync(ClsBFEAuthRequest Auth, ClsBFEGetCMP Cmp, object userState) { if ((this.BFEGetCMPOperationCompleted == null)) { this.BFEGetCMPOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBFEGetCMPOperationCompleted); } this.InvokeAsync("BFEGetCMP", new object[] { Auth, Cmp}, this.BFEGetCMPOperationCompleted, userState); }
public BFEGetCMPResponse BFEGetCMP(ClsBFEAuthRequest Auth, ClsBFEGetCMP Cmp) { object[] results = this.Invoke("BFEGetCMP", new object[] { Auth, Cmp}); return ((BFEGetCMPResponse)(results[0])); }