Beispiel #1
0
        public IHttpActionResult TransactionLookup([FromBody] TransactionLookupRequest transactionLookupRequest)
        {
            transactionLookupRequest.PurposeOfLookup = PurposeOfLookup.Status;

            var detailLookupRespVm = _commonBusiness.TransactionLookup(transactionLookupRequest);

            return(Ok(detailLookupRespVm));
        }
Beispiel #2
0
        public IHttpActionResult TransactionLookup([FromBody] TransactionLookupRequest transactionLookupRequest)
        {
            transactionLookupRequest.ThrowIfNull(nameof(transactionLookupRequest));
            transactionLookupRequest.PurposeOfLookup = PurposeOfLookup.SendCompletion;
            var transactionLookupResponse = _commonBusiness.TransactionLookup(transactionLookupRequest);

            // If transactional limit is exceeded, it will throw an exception
            _commonBusiness.ExceedsTransactionalLimit(SessionType.SEND, transactionLookupResponse?.ResponseData?.Payload?.SendAmounts?.SendAmount ?? 0m);
            return(Ok(transactionLookupResponse));
        }
Beispiel #3
0
        public IHttpActionResult TransactionLookup([FromBody] TransactionLookupRequest transactionLookupRequest)
        {
            // Create request view model
            transactionLookupRequest.ThrowIfNull(nameof(transactionLookupRequest));
            transactionLookupRequest.PurposeOfLookup = PurposeOfLookup.BillPayCompletion;

            var transactionLookupResponse = _commonBusiness.TransactionLookup(transactionLookupRequest);

            _commonBusiness.ExceedsTransactionalLimit(SessionType.BP, transactionLookupResponse?.ResponseData?.Payload?.SendAmounts?.SendAmount ?? 0m);
            return(Ok(transactionLookupResponse));
        }
Beispiel #4
0
        private AcApiResponse <TransactionLookupResponse, ApiData> ExecuteTransactionLookup(TransactionLookupRequest transactionLookupRequest)
        {
            AcApiResponse <TransactionLookupResponse, ApiData> apiResp = new AcApiResponse <TransactionLookupResponse, ApiData>();

            try
            {
                apiResp = _commonBusiness.TransactionLookup(transactionLookupRequest);
            }
            catch (Exception ex)
            {
                apiResp.ApiErrors = new Dictionary <string, string>();
                apiResp.ApiErrors.Add($"{transactionLookupRequest.PurposeOfLookup} TransactionLookup", ex.Message);
            }

            return(apiResp);
        }