コード例 #1
0
        private PagoCuotaResponse PagoCuota(ISunitpService _iSunitpService, PagoCuotaRequest request)
        {
            _iAcademiaPinaresClient = new AcademiaPinaresClient();
            var response = _iAcademiaPinaresClient.PagoCuota(_iSunitpService, request);

            return(response);
        }
        public PagoCuotaResponse PagoCuota(ISunitpService _iSunitpService, PagoCuotaRequest request)
        {
            _iSunitpService.AddObjLog("AcademiaPinaresClient PagoCuota", "00000000000000000000", "REQUEST ENVIADO.", request);

            var response = new PagoCuotaResponse();

            response.Body = new PagoCuotaResponseBody();

            try
            {
                var client = new Cobranzas_Bancarias_API_DaviviendaSoapClient();
                var saldos = client.PagoCuota(request.Body.sBank, request.Body.sPass, request.Body.__oPago);
                response.Body.PagoCuotaResult = saldos;
                _iSunitpService.AddObjLog("AcademiaPinaresClient PagoCuota", "00000000000000000000", "PROCESO REALIZADO CORRECTAMENTE.", response);
            }
            catch (Exception ex)
            {
                var saldos = new Saldos();
                saldos.Error         = new Error();
                saldos.Error.Codigo  = "999";
                saldos.Error.Mensaje = "Error al momento de consultar el servicio.";

                response.Body.PagoCuotaResult = saldos;

                _iSunitpService.AddLog("AcademiaPinaresClient PagoCuota", "10000000000000000034", "ERROR AL MOMENTO DE EJECUTAR EL POSTEO A UN SERVICIO EXTERNO.", ex.ToString());
            }

            return(response);
        }
コード例 #3
0
 public PagarCuotaAdapter()
 {
     _iAcademiaPinaresClient = new AcademiaPinaresClient();
     _request      = new PagoCuotaRequest();
     _request.Body = new PagoCuotaRequestBody();
 }