/// <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)); }
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()); }
public async Task <IList <Model.Bank> > Filter(BankFilter filter) { return(await _apiClient.BankSdk.List(filter)); }
public FilterBankCommand(BankFilter options) { _options = options; }