Exemplo n.º 1
0
        public void CreditCardGetBatchCloseData()
        {
            VPI_ERROR_CODE            retCode;
            string                    errMsg = "";
            List <BATCHCLOSEDATA_OUT> batchList;

            if ((retCode = IntegratedPOS.GetBatchCloseData(out batchList, ref errMsg)) != VPI_ERROR_CODE.VPI_OK)
            {
                OpsContext.ShowError($"Error al intentar obtener los totales de Cierre de Lote\r\n{errMsg}");
                LOG.Error("{Message}", $"LAPOS Get Batch Close Data operation failed:\r\n{errMsg}");
                return;
            }

            OpsContext.ShowTextList("Cierre de Lote", batchList.Select(batch => batch.DumpString()));
        }
Exemplo n.º 2
0
        private List <PLAN_OUT> DoCCGetPlan()
        {
            List <PLAN_OUT> retVal = new List <PLAN_OUT>();
            VPI_ERROR_CODE  retCode;
            string          errMsg = "";

            if ((retCode = IntegratedPOS.GetPlan(out retVal, ref errMsg)) != VPI_ERROR_CODE.VPI_OK)
            {
                OpsContext.ShowError($"Error al intentar obtener el Listado de Tarjetas\r\n{errMsg}");
                LOG.Error("{Message}", $"LAPOS Get Issuer operation failed:\r\n{errMsg}");
                return(retVal);
            }

            OpsContext.ShowTextList("Listado de Planes", retVal.Select(plan => plan.DumpString()));

            return(retVal);
        }
Exemplo n.º 3
0
        private List <ISSUER_OUT> DoCCGetCards(bool showCards_ = true)
        {
            List <ISSUER_OUT> retVal = new List <ISSUER_OUT>();
            VPI_ERROR_CODE    retCode;
            string            errMsg = "";

            if ((retCode = IntegratedPOS.GetIssuer(out retVal, ref errMsg)) != VPI_ERROR_CODE.VPI_OK)
            {
                OpsContext.ShowError($"Error al intentar obtener el Listado de Tarjetas\r\n{errMsg}");
                LOG.Error("{Message}", $"LAPOS Get Issuer operation failed:\r\n{errMsg}");

                return(retVal);
            }

            if (showCards_)
            {
                OpsContext.ShowTextList("Listado de Tarjetas", retVal.Select(card => card.DumpString()));
            }

            return(retVal);
        }