Exemplo n.º 1
0
        public AcApiResponse <MoneyOrderTotalResponse, ApiData> MoneyOrderTotal(MoneyOrderTotalRequest req)
        {
            var resp = agentConnectIntegration.MoneyOrderTotal(req);

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

            return(apiResp);
        }
        /// <summary>
        ///     MONEY ORDER MoneyOrderTotal AgentConnect Call
        /// </summary>
        /// <param name="moneyOrderTotalRequest">moneyOrderTotalRequest Model</param>
        /// <returns>MoneyOrderTotalResponse Model</returns>
        public MoneyOrderTotalResponse MoneyOrderTotal(MoneyOrderTotalRequest moneyOrderTotalRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.MoneyOrderTotal(agent, moneyOrderTotalRequest);

            if ((response.Payload?.Flags & 1) != 0 || (response.Payload?.Flags & 16) != 0)
            {
                // ignore code table updates.
            }
            else
            {
                CheckFlagsForDataChange(response.Payload?.Flags, agent);
            }
            return(response);
        }
Exemplo n.º 3
0
 public virtual async Task <MoneyOrderTotalResponse> MoneyOrderTotalAsync(Agent agent, MoneyOrderTotalRequest moneyOrderTotalRequest)
 {
     return(await AgentConnect.MoneyOrderTotalAsync(agent, moneyOrderTotalRequest));
 }
Exemplo n.º 4
0
 public virtual MoneyOrderTotalResponse MoneyOrderTotal(Agent agent, MoneyOrderTotalRequest moneyOrderTotalRequest)
 {
     return(AgentConnect.MoneyOrderTotal(agent, moneyOrderTotalRequest));
 }
Exemplo n.º 5
0
        public IHttpActionResult MoneyOrderTotal(MoneyOrderTotalRequest request)
        {
            var resp = _moneyOrderBusiness.MoneyOrderTotal(request);

            return(Ok(resp));
        }