Exemple #1
0
        public DailyTransactionDetailLookupResponse DailyTransactionDetailLookup(
            DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest)
        {
            var agent = AuthIntegration.GetAgent();

            return(_repo.DailyTransactionDetailLookup(agent.IsInTrainingMode, dailyTransactionDetailLookupRequest));
        }
Exemple #2
0
        public void ValidateDailyTransactionDetailLookup()
        {
            DLSMapper.Configure();
            var request = new DailyTransactionDetailLookupRequest()
            {
                AgentId   = "40698809",
                PosId     = "",
                StartDate = "09/27/2017"
            };

            var header = new Header();
            var processingInstruction = new ProcessingInstruction
            {
                Action = "DailyTransactionDetailLookup",
                RollbackTransaction = false
            };


            header.ProcessingInstruction = processingInstruction;
            request.header = header;

            request.header = header;

            var config = new DLSConfig();
            var proxy  = new DLSProxyFactory(config);
            var repo   = new DLSRepository(proxy);
            var x      = repo.DailyTransactionDetailLookup(false, request);
        }
        public static DailyTransactionDetailLookupRequest ToDailyTranDetailLookupModel(this ReportRequest reportRequest)
        {
            var req                = new DailyTransactionDetailLookupRequest();
            var header             = new MoneyGram.DLS.DomainModel.Header();
            var processInstruction = new MoneyGram.DLS.DomainModel.ProcessingInstruction();

            req.header = header;
            req.header.ProcessingInstruction        = processInstruction;
            req.header.ProcessingInstruction.Action = "DailyTransactionDetailLookup";
            req.PosId     = null;
            req.AgentId   = reportRequest.Locations?.First();
            req.StartDate = reportRequest.StartDate;
            return(req);
        }
Exemple #4
0
 public virtual async Task <DailyTransactionDetailLookupResponse> DailyTransactionDetailLookupAsync(bool isInTrainingMode, DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest)
 {
     return(await _dlsRepository.DailyTransactionDetailLookupAsync(isInTrainingMode, dailyTransactionDetailLookupRequest));
 }
Exemple #5
0
 public virtual DailyTransactionDetailLookupResponse DailyTransactionDetailLookup(bool isInTrainingMode, DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest)
 {
     return(_dlsRepository.DailyTransactionDetailLookup(isInTrainingMode, dailyTransactionDetailLookupRequest));
 }