Exemplo n.º 1
0
        public IHttpActionResult ConsumerHistoryLookup(ConsumerHistoryLookupRequest req)
        {
            req.MgiSessionType = SessionType.SEND;

            var consumerRespVm = _consumerBusiness.ConsumerHistoryLookup(req);

            return(Ok(consumerRespVm));
        }
        public ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest consumerHistoryLookupReq)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupReq);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
        public List <SenderLookupInfo> BillPaymentConsumerLookup(ConsumerHistoryLookupRequest consumerHistoryLookupRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response.Payload.SenderInfos.SenderInfo.ToList());
        }
        public ConsumerHistoryLookupResponse ConsumerHistoryLookup(ConsumerHistoryLookupRequest req)
        {
            var agent = _agents.GetAgent(req.AgentID, req.AgentSequence);

            _agentConnectConfig.DecorateRequest(req);
            var response = _testRunner.AgentConnect.ConsumerHistoryLookup(agent, req);

            return(response);
        }
Exemplo n.º 5
0
        public static ConsumerHistoryLookupRequest ApplyBusinessRules(this ConsumerHistoryLookupRequest req)
        {
            const string defMaxConsumersToReturn = "10";

            if (string.IsNullOrEmpty(req.MaxSendersToReturn))
            {
                req.MaxSendersToReturn = defMaxConsumersToReturn;
            }
            if (string.IsNullOrEmpty(req.MaxReceiversToReturn))
            {
                req.MaxReceiversToReturn = defMaxConsumersToReturn;
            }
            return(req);
        }
Exemplo n.º 6
0
 public void Set(ConsumerHistoryLookupRequest consumerHistoryLookupRequest)
 {
     ConsumerHistoryLookupRequest = consumerHistoryLookupRequest;
     SetExecutionOrder(nameof(ConsumerHistoryLookupRequest));
 }
Exemplo n.º 7
0
 public virtual async Task <ConsumerHistoryLookupResponse> ConsumerHistoryLookupAsync(Agent agent, ConsumerHistoryLookupRequest consumerHistoryLookupRequest)
 {
     return(await AgentConnect.ConsumerHistoryLookupAsync(agent, consumerHistoryLookupRequest));
 }
Exemplo n.º 8
0
 public virtual ConsumerHistoryLookupResponse ConsumerHistoryLookup(Agent agent, ConsumerHistoryLookupRequest consumerHistoryLookupRequest)
 {
     return(AgentConnect.ConsumerHistoryLookup(agent, consumerHistoryLookupRequest));
 }
Exemplo n.º 9
0
        public AcApiResponse <ConsumerHistoryLookupResponse, ApiData> ConsumerHistoryLookup(ConsumerHistoryLookupRequest req)
        {
            req.ApplyBusinessRules();

            var resp = _agentConnectIntegration.ConsumerHistoryLookup(req);

            var apiResp = new AcApiResponse <ConsumerHistoryLookupResponse, ApiData>
            {
                BusinessMetadata = MapperHelper.SetResponseProperties(resp.Payload?.Flags, DataSource.AgentConnect),
                ResponseData     = resp
            };

            return(apiResp);
        }
Exemplo n.º 10
0
        public IHttpActionResult ConsumerHistoryLookup(ConsumerHistoryLookupRequest req)
        {
            var consumerRespVm = _business.ConsumerHistoryLookup(req);

            return(Ok(consumerRespVm));
        }