IBankService.cs 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. using Muchinfo.MTPClient.Data;
  2. using Muchinfo.MTPClient.Data.Model.Account;
  3. using Muchinfo.MTPClient.Data.Model.Bank;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections.ObjectModel;
  7. namespace Muchinfo.MTPClient.IService
  8. {
  9. public interface IBankService
  10. {
  11. /// <summary>
  12. /// 进行银行解约申请
  13. /// </summary>
  14. /// <param name="bankInfo">银行信息</param>
  15. /// <param name="tradeAccount">交易账号</param>
  16. /// <returns>错误码</returns>
  17. // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
  18. void BankCaneclSign(SigningBank bankInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
  19. /// <summary>
  20. /// 签约银行申请
  21. /// </summary>
  22. /// <param name="signingBank">The signing bank.</param>
  23. /// <param name="tradeAccount">The trade account.</param>
  24. /// <returns>System.Int32.</returns>
  25. // int BankSign(SigningBank signingBank, TradeAccount tradeAccount, out BankSignResult bankSignResult);
  26. void BankSign(SigningBank signingBank, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
  27. /// <summary>
  28. /// 签约信息变更
  29. /// </summary>
  30. /// <param name="signingBank"></param>
  31. /// <param name="tradeAccount"></param>
  32. /// <returns></returns>
  33. //int SignUpdate(SigningBank signingBank, TradeAccount tradeAccount);
  34. void SignUpdate(SigningBank signingBank, Action<int> successAction, Action<ErrorEntity> errorAction);
  35. /// <summary>
  36. /// 客户签约银行信息查询
  37. /// </summary>
  38. /// <param name="tradeAccount"></param>
  39. /// <returns></returns>
  40. // ObservableCollection<SigningBank> QueryBankCustomerSign(TradeAccount tradeAccount);
  41. void QueryBankCustomerSign(string accountCode, Action<ObservableCollection<SigningBank>> successAction, Action<ErrorEntity> errorAction);
  42. /// <summary>
  43. /// 托管银行简要信息查询
  44. /// </summary>
  45. /// <param name="tradeAccount"></param>
  46. /// <returns></returns>
  47. // List<SigningBank> QueryCusBankInfo(TradeAccount tradeAccount);
  48. void QueryCusBankInfo(Action<List<SigningBank>> successAction, Action<ErrorEntity> errorAction);
  49. /// <summary>
  50. /// 银行信息查询
  51. /// </summary>
  52. /// <param name="tradeAccount"></param>
  53. /// <returns></returns>
  54. //List<Banks> GetBanks(TradeAccount tradeAccount);
  55. /// <summary>
  56. /// 查询银行信息
  57. /// </summary>
  58. /// <param name="tradeAccount"></param>
  59. /// <returns></returns>
  60. //List<Banks> QueryBankInfo(TradeAccount tradeAccount);
  61. void QueryBankInfo(Action<List<Banks>> successAction, Action<ErrorEntity> errorAction);
  62. /// <summary>
  63. /// 支行查询
  64. /// </summary>
  65. /// <param name="bankId"></param>
  66. /// <param name="tradeAccount"></param>
  67. /// <returns></returns>
  68. List<Branchs> GetBranchBanks(string bankId, string cityName, TradeAccount tradeAccount);
  69. /// <summary>
  70. /// 委托银行设置查询
  71. /// </summary>
  72. /// <param name="cusBankID"></param>
  73. /// <param name="tradeAccount"></param>
  74. /// <returns></returns>
  75. /// // SigningBank QueryBankParamConfig(string cusBankID, TradeAccount tradeAccount);
  76. void QueryBankParamConfig(string cusBankID, Action<List<SigningBank>> successAction, Action<ErrorEntity> errorAction);
  77. /// <summary>
  78. /// 获取省份
  79. /// </summary>
  80. /// <returns></returns>
  81. List<KeyValuePair<string, string>> GetProvinces(TradeAccount tradeAccount);
  82. /// <summary>
  83. /// 获取城市
  84. /// </summary>
  85. /// <returns></returns>
  86. List<string> GetCitys(string province, TradeAccount tradeAccount);
  87. /// <summary>
  88. /// 出入金查询
  89. /// </summary>
  90. /// <param name="tradeAccount"></param>
  91. /// <returns></returns>
  92. List<AmountQuery> QueryBankOutIn(DateTime startDate, DateTime endDate, TradeAccount tradeAccount);
  93. /// <summary>
  94. /// 出入金请求
  95. /// </summary>
  96. /// <param name="applyType"></param>
  97. /// <param name="tradeAccount">The trade account.</param>
  98. /// <param name="amount">申请金额</param>
  99. /// <returns>返回码:1为成功,其它为失败</returns>
  100. //int OutInMoney(Amount amount, TradeAccount tradeAccount, SigningBank bankAccountInfo, out BankSignResult bankSignResult);
  101. void OutInMoney(Amount amount, SigningBank bankAccountInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
  102. /// <summary>
  103. /// 签约银行密码确认
  104. /// </summary>
  105. /// <param name="signbPdw">提交参数</param>
  106. /// <param name="loginCode">登录账号</param>
  107. /// <returns></returns>
  108. // int SignBankPwd(SignBankPDW signbPdw, string loginCode);
  109. void SignBankPwd(SignBankPDW signbPdw, Action<int> successAction, Action<ErrorEntity> errorAction);
  110. /// <summary>
  111. /// 查询密码加密钥
  112. /// </summary>
  113. /// <param name="request">密钥请求参数</param>
  114. /// <param name="loginCode">登录账号</param>
  115. /// <returns></returns>
  116. // EncryptKey QueryEncryptKey(EncryptKeyRequest request, string loginCode);
  117. void QueryEncryptKey(EncryptKeyRequest request, Action<EncryptKey> successAction, Action<ErrorEntity> errorAction);
  118. /// <summary>
  119. /// 查询一级省列表
  120. /// </summary>
  121. /// <returns></returns>
  122. // List<Province> QueryProvinceInfo(TradeAccount tradeAccount);
  123. void QueryProvinceInfo(Action<List<Province>> successAction, Action<ErrorEntity> errorAction);
  124. /// <summary>
  125. /// 查询一级市列表
  126. /// </summary>
  127. /// <param name="provinceCode"></param>
  128. /// <returns></returns>
  129. //List<City> QueryCityInfo(string provinceCode, TradeAccount tradeAccount);
  130. void QueryCityInfo(string provinceCode, Action<List<City>> successAction, Action<ErrorEntity> errorAction);
  131. /// <summary>
  132. /// 出入金查询
  133. /// </summary>
  134. /// <param name="statement"></param>
  135. /// <param name="queryCommonParams"></param>
  136. /// <param name="successAction"></param>
  137. /// <param name="errorAction"></param>
  138. void QueryBankOutIn(string statement, List<QueryCommonParam> queryCommonParams, Action<List<AmountQuery>> successAction,
  139. Action<Data.ErrorEntity> errorAction);
  140. /// <summary>
  141. /// 查询账号所属会员账号信息
  142. /// </summary>
  143. /// <param name="accountId">交易员ID</param>
  144. /// <param name="successAction"></param>
  145. /// <param name="errorAction"></param>
  146. void QueryMemberAccountInfo(ulong accountId, Action<List<AreaAccount>> successAction,
  147. Action<Data.ErrorEntity> errorAction);
  148. /// <summary>
  149. /// 查询签约信息
  150. /// </summary>
  151. /// <param name="accountId"> ID</param>
  152. /// <param name="successAction"></param>
  153. /// <param name="errorAction"></param>
  154. void QueryBankCustomerSignInfo(ulong accountId, Action<List<SigningBank>> successAction,
  155. Action<Data.ErrorEntity> errorAction);
  156. /// <summary>
  157. /// 查询托管银行信息
  158. /// </summary>
  159. /// <param name="successAction"></param>
  160. /// <param name="errorAction"></param>
  161. void QueryCusBankParamConfig(ulong accountId, Action<List<CusBankInfo>> successAction,
  162. Action<Data.ErrorEntity> errorAction);
  163. /// <summary>
  164. /// 查询银行信息(通用查询,使用MTP库)
  165. /// </summary>
  166. /// <param name="successAction">银行列表成功回应</param>
  167. /// <param name="errorAction">错误</param>
  168. void QueryCommonBankInfo(List<QueryCommonParam> CommonParams, Action<List<Banks>> successAction, Action<ErrorEntity> errorAction);
  169. /// <summary>
  170. /// 获取手机验证码
  171. /// </summary>
  172. /// <returns>错误码</returns>
  173. // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
  174. void BankGetIdentifyCode(IdentifyCodeReq bankInfo, Action<bool> successAction, Action<ErrorEntity> errorAction);
  175. /// <summary>
  176. /// 获取银行账号余额
  177. /// </summary>
  178. /// <param name="bankInfo">签约信息</param>
  179. /// <param name="successAction">成功回应</param>
  180. /// <param name="errorAction">失败回应</param>
  181. void GetBankBalace(SigningBank bankInfo, Action<List<BankBalanceModel>> successAction, Action<ErrorEntity> errorAction);
  182. /// <summary>
  183. /// 解绑银行卡
  184. /// </summary>
  185. /// <param name="bankInfo">银行信息</param>
  186. // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
  187. void BankUnBindBankCard(SigningBank bankInfo, Action<BankUnBindResult> successAction, Action<ErrorEntity> errorAction);
  188. /// <summary>
  189. /// 绑银行卡
  190. /// </summary>
  191. /// <param name="bankInfo">银行信息</param>
  192. // int BankCaneclSign(SigningBank bankInfo, TradeAccount tradeAccount, out BankSignResult bankSignResult);
  193. void BankBindingBankCard(SigningBank bankInfo, Action<BankSignResult> successAction, Action<ErrorEntity> errorAction);
  194. }
  195. }