| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- using Muchinfo.MTPClient.Data;
- using Muchinfo.MTPClient.Data.Model.Account;
- using Muchinfo.MTPClient.Data.Model.Bank;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- namespace Muchinfo.MTPClient.IService
- {
- public interface IBankService
- {
- /// <summary>
- /// 进行银行解约申请
- /// </summary>
- /// <param name="bankInfo">银行信息</param>
- /// <param name="tradeAccount">交易账号</param>
- /// <returns>错误码</returns>
- // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
- void BankCaneclSign(SigningBank bankInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 签约银行申请
- /// </summary>
- /// <param name="signingBank">The signing bank.</param>
- /// <param name="tradeAccount">The trade account.</param>
- /// <returns>System.Int32.</returns>
- // int BankSign(SigningBank signingBank, TradeAccount tradeAccount, out BankSignResult bankSignResult);
- void BankSign(SigningBank signingBank, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 签约信息变更
- /// </summary>
- /// <param name="signingBank"></param>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- //int SignUpdate(SigningBank signingBank, TradeAccount tradeAccount);
- void SignUpdate(SigningBank signingBank, Action<int> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 客户签约银行信息查询
- /// </summary>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- // ObservableCollection<SigningBank> QueryBankCustomerSign(TradeAccount tradeAccount);
- void QueryBankCustomerSign(string accountCode, Action<ObservableCollection<SigningBank>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 托管银行简要信息查询
- /// </summary>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- // List<SigningBank> QueryCusBankInfo(TradeAccount tradeAccount);
- void QueryCusBankInfo(Action<List<SigningBank>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 银行信息查询
- /// </summary>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- //List<Banks> GetBanks(TradeAccount tradeAccount);
- /// <summary>
- /// 查询银行信息
- /// </summary>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- //List<Banks> QueryBankInfo(TradeAccount tradeAccount);
- void QueryBankInfo(Action<List<Banks>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 支行查询
- /// </summary>
- /// <param name="bankId"></param>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- List<Branchs> GetBranchBanks(string bankId, string cityName, TradeAccount tradeAccount);
- /// <summary>
- /// 委托银行设置查询
- /// </summary>
- /// <param name="cusBankID"></param>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- /// // SigningBank QueryBankParamConfig(string cusBankID, TradeAccount tradeAccount);
- void QueryBankParamConfig(string cusBankID, Action<List<SigningBank>> successAction, Action<ErrorEntity> errorAction);
-
- /// <summary>
- /// 获取省份
- /// </summary>
- /// <returns></returns>
- List<KeyValuePair<string, string>> GetProvinces(TradeAccount tradeAccount);
- /// <summary>
- /// 获取城市
- /// </summary>
- /// <returns></returns>
- List<string> GetCitys(string province, TradeAccount tradeAccount);
- /// <summary>
- /// 出入金查询
- /// </summary>
- /// <param name="tradeAccount"></param>
- /// <returns></returns>
- List<AmountQuery> QueryBankOutIn(DateTime startDate, DateTime endDate, TradeAccount tradeAccount);
- /// <summary>
- /// 出入金请求
- /// </summary>
- /// <param name="applyType"></param>
- /// <param name="tradeAccount">The trade account.</param>
- /// <param name="amount">申请金额</param>
- /// <returns>返回码:1为成功,其它为失败</returns>
- //int OutInMoney(Amount amount, TradeAccount tradeAccount, SigningBank bankAccountInfo, out BankSignResult bankSignResult);
- void OutInMoney(Amount amount, SigningBank bankAccountInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 签约银行密码确认
- /// </summary>
- /// <param name="signbPdw">提交参数</param>
- /// <param name="loginCode">登录账号</param>
- /// <returns></returns>
- // int SignBankPwd(SignBankPDW signbPdw, string loginCode);
- void SignBankPwd(SignBankPDW signbPdw, Action<int> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询密码加密钥
- /// </summary>
- /// <param name="request">密钥请求参数</param>
- /// <param name="loginCode">登录账号</param>
- /// <returns></returns>
- // EncryptKey QueryEncryptKey(EncryptKeyRequest request, string loginCode);
- void QueryEncryptKey(EncryptKeyRequest request, Action<EncryptKey> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询一级省列表
- /// </summary>
- /// <returns></returns>
- // List<Province> QueryProvinceInfo(TradeAccount tradeAccount);
- void QueryProvinceInfo(Action<List<Province>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 查询一级市列表
- /// </summary>
- /// <param name="provinceCode"></param>
- /// <returns></returns>
- //List<City> QueryCityInfo(string provinceCode, TradeAccount tradeAccount);
- void QueryCityInfo(string provinceCode, Action<List<City>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 出入金查询
- /// </summary>
- /// <param name="statement"></param>
- /// <param name="queryCommonParams"></param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryBankOutIn(string statement, List<QueryCommonParam> queryCommonParams, Action<List<AmountQuery>> successAction,
- Action<Data.ErrorEntity> errorAction);
- /// <summary>
- /// 查询账号所属会员账号信息
- /// </summary>
- /// <param name="accountId">交易员ID</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryMemberAccountInfo(ulong accountId, Action<List<AreaAccount>> successAction,
- Action<Data.ErrorEntity> errorAction);
- /// <summary>
- /// 查询签约信息
- /// </summary>
- /// <param name="accountId"> ID</param>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryBankCustomerSignInfo(ulong accountId, Action<List<SigningBank>> successAction,
- Action<Data.ErrorEntity> errorAction);
- /// <summary>
- /// 查询托管银行信息
- /// </summary>
- /// <param name="successAction"></param>
- /// <param name="errorAction"></param>
- void QueryCusBankParamConfig(ulong accountId, Action<List<CusBankInfo>> successAction,
- Action<Data.ErrorEntity> errorAction);
- /// <summary>
- /// 查询银行信息(通用查询,使用MTP库)
- /// </summary>
- /// <param name="successAction">银行列表成功回应</param>
- /// <param name="errorAction">错误</param>
- void QueryCommonBankInfo(List<QueryCommonParam> CommonParams, Action<List<Banks>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 获取手机验证码
- /// </summary>
- /// <returns>错误码</returns>
- // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
- void BankGetIdentifyCode(IdentifyCodeReq bankInfo, Action<bool> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 获取银行账号余额
- /// </summary>
- /// <param name="bankInfo">签约信息</param>
- /// <param name="successAction">成功回应</param>
- /// <param name="errorAction">失败回应</param>
- void GetBankBalace(SigningBank bankInfo, Action<List<BankBalanceModel>> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 解绑银行卡
- /// </summary>
- /// <param name="bankInfo">银行信息</param>
- // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
- void BankUnBindBankCard(SigningBank bankInfo, Action<BankUnBindResult> successAction, Action<ErrorEntity> errorAction);
- /// <summary>
- /// 绑银行卡
- /// </summary>
- /// <param name="bankInfo">银行信息</param>
- // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
- void BankBindingBankCard(SigningBank bankInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
- }
- }
|