BankAdapter.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2016/3/24 15:55:51
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data;
  16. using Muchinfo.MTPClient.Data.Model.Account;
  17. using Muchinfo.MTPClient.Data.Model.Bank;
  18. using System.Collections.ObjectModel;
  19. using tas;
  20. using ApplySecretKeyRsp = Bank.ApplySecretKeyRsp;
  21. using BankCancelSignRsp = Bank.BankCancelSignRsp;
  22. using BankDepositReq = Bank.BankDepositReq;
  23. using BankDepositRsp = Bank.BankDepositRsp;
  24. using BankWithDrawReq = Bank.BankWithDrawReq;
  25. using BankWithDrawRsp = Bank.BankWithDrawRsp;
  26. using SignBankPwdInRsp = Bank.SignBankPwdInRsp;
  27. using SignUpdateRsp = Bank.SignUpdateRsp;
  28. namespace Muchinfo.MTPClient.Adapter.Abstract
  29. {
  30. public abstract class BankAdapter
  31. {
  32. public abstract ResponeEntity<List<Data.Model.Bank.City>> ToLocalCityInfo(object obj);
  33. public abstract byte[] ToRequestQueryCity(string provinceCode);
  34. public abstract ResponeEntity<List<Data.Model.Bank.Province>> ToLocalProvinceInfo(object obj);
  35. public abstract byte[] ToRequestQueryProvince();
  36. #region 银行相关
  37. public abstract byte[] ToBankCancelSignReq(SigningBank bankInfo );
  38. public abstract BankCancelSignRsp FromBankCancelSignRsp(object obj);
  39. public abstract byte[] ToBankSignReq(tas.BankSignReq request);
  40. public abstract tas.BankSignRsp FromBankSignRsp(object obj);
  41. //public abstract byte[] ToSignUpdateReq(tas.SignUpdateReq request);
  42. public abstract SignUpdateRsp FromSignUpdateRsp(object obj);
  43. public abstract byte[] ToApplySecretKeyReq(EncryptKeyRequest request);
  44. public abstract ApplySecretKeyRsp FromApplySecretKeyResponse(object obj);
  45. public abstract byte[] ToSignBankPwdReq(SignBankPDW request);
  46. public abstract SignBankPwdInRsp FromSignBankPwdInRsp(object obj);
  47. public abstract BankSignResult FromSignBankPwdInRspToBankSignResult(BankDepositRsp obj);
  48. public abstract BankSignResult FromBankSignRspToBankSignResult(tas.BankSignRsp result);
  49. public abstract byte[] ToBankWithDrawReq(BankWithDrawReq request);
  50. public abstract BankWithDrawRsp FromBankWithDrawRsp(object obj);
  51. public abstract byte[] ToBankDepositReq(BankDepositReq request);
  52. public abstract BankDepositRsp FromBankDepositRsp(object obj);
  53. public abstract byte[] ToIdentifyCodeReq(IdentifyCodeReq req);
  54. public abstract Bank.BankGetIdentifyCodeRsp FromIdentifyCodeReq(object obj);
  55. public abstract byte[] ToBankRebindCardReq(SigningBank bankRebind);
  56. /// <summary>
  57. /// 解绑
  58. /// </summary>
  59. /// <param name="bankunbind"></param>
  60. /// <returns></returns>
  61. public abstract byte[] ToBankUnBindCardReq(SigningBank bankunbind);
  62. /// <summary>
  63. /// 绑定返回
  64. /// </summary>
  65. /// <param name="obj"></param>
  66. /// <returns></returns>
  67. public abstract ResponeEntity<BankSignResult> ToBankReBindCardRsp(object obj);
  68. /// <summary>
  69. /// 解绑返回
  70. /// </summary>
  71. /// <param name="obj"></param>
  72. /// <returns></returns>
  73. public abstract ResponeEntity<BankUnBindResult> ToBankUnBindCardRsp(object obj);
  74. #endregion
  75. #region 子账户余额
  76. /// <summary>
  77. /// /查询银行余额
  78. /// </summary>
  79. /// <param name="bankInfo"></param>
  80. /// <returns></returns>
  81. public abstract byte[] ToBankSubBalanceReq(SigningBank bankInfo);
  82. /// <summary>
  83. /// 查询银行余额
  84. /// </summary>
  85. /// <param name="obj"></param>
  86. /// <returns></returns>
  87. public abstract ResponeEntity<List<BankBalanceModel>> FromoBankSubBalanceRsp(object obj);
  88. #endregion
  89. }
  90. }