/// <summary>
        /// Returns a list of countries with Token-enabled banks.
        /// </summary>
        /// <param name="provider">If specified, return banks whose 'provider' matches the given provider</param>
        /// <returns>a list if country codes</returns>
        public Task <IList <string> > GetCountries(string provider)
        {
            var request = new GetBanksCountriesRequest();

            if (provider != null)
            {
                var filter = new BankFilter
                {
                    Provider = provider
                };
                request.Filter = filter;
            }

            return(gateway.GetBanksCountriesAsync(request)
                   .ToTask(response => (IList <string>)response.Countries));
        }
示例#2
0
        public async Task <IList <Bank> > Query(BankFilter options)
        {
            var param = new DynamicParameters();

            param.Add("@AccountName", options.AccountName);
            param.Add("@AccountNo", options.AccountNo);
            param.Add("@BankName", options.BankName);
            param.Add("@BranchCode", options.BranchCode);
            param.Add("@DDAStatus", options.DDAStatus);

            return((await SqlMapper.QueryAsync <Bank>(_unitOfWork.Connection,
                                                      "SelectBank",
                                                      param,
                                                      commandType: CommandType.StoredProcedure,
                                                      transaction: _unitOfWork.Transaction)).ToList());
        }
示例#3
0
 public async Task <IList <Model.Bank> > Filter(BankFilter filter)
 {
     return(await _apiClient.BankSdk.List(filter));
 }
示例#4
0
 public FilterBankCommand(BankFilter options)
 {
     _options = options;
 }