Beispiel #1
0
        public async Task <dynamic> SearchEbizWebFormPendingPayments(EmailDetailModel model)
        {
            SecurityToken token = await GetSecurityToken();

            var      client = new PaymentGateway.IeBizServiceClient();
            TimeSpan ts     = new TimeSpan(00, 00, 0);

            model.fromPaymentRequestDateTime = model.fromPaymentRequestDateTime.Date + ts;
            TimeSpan ts2 = new TimeSpan(23, 59, 0);

            model.toPaymentRequestDateTime = model.toPaymentRequestDateTime.Date + ts2;
            dynamic response = await client.SearchPaymentFormPendingPaymentsAsync(token, model.customerId, model.fromPaymentRequestDateTime, model.toPaymentRequestDateTime, model.start, model.limit, model.sort);

            return(response);
        }