XYWalletAPIManager.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //
  2. // XYWalletAPIManager.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/7/28.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYWalletAPIManager : ZYLAPIManager
  11. /// 获取实名认证信息
  12. /// @param successHandler 请求成功
  13. /// @param failureHandler 请求失败
  14. - (NSNumber *)getAuthInfoSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  15. /// 上传身份证
  16. /// @param faceImg 身份证正面照
  17. /// @param nationImg 身份证反面照
  18. /// @param successHandler 请求成功
  19. /// @param failureHandler 请求失败
  20. - (NSNumber *)addIdWithFaceImg:(NSString *)faceImg nationImg:(NSString *)nationImg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  21. /// 获取卡号信息
  22. /// @param cardNo 卡号
  23. /// @param successHandler 请求成功
  24. /// @param failureHandler 请求失败
  25. - (NSNumber *)queryCardWithCardNo:(NSString *)cardNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  26. /// 银⾏卡四要素请求鉴权(下发短信验证码)
  27. /// @param cardNo 卡号
  28. /// @param mobile 开户预留手机号
  29. /// @param successHandler 请求成功
  30. /// @param failureHandler 请求失败
  31. - (NSNumber *)verifyCardWithCardNo:(NSString *)cardNo mobile:(NSString *)mobile successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  32. /// 银⾏卡四要素确认鉴权(上传短信验证码)
  33. /// @param cardNo 银⾏卡号
  34. /// @param mobile 开户预留⼿机号
  35. /// @param captcha 短信验证码
  36. /// @param ref 交易凭证
  37. /// @param successHandler 请求成功
  38. /// @param failureHandler 请求失败
  39. - (NSNumber *)verifyConfirmWithCardNo:(NSString *)cardNo mobile:(NSString *)mobile captcha:(NSString *)captcha ref:(NSString *)ref successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  40. /// 解绑银行卡
  41. /// @param cardNo 银⾏卡号
  42. /// @param successHandler 请求成功
  43. /// @param failureHandler 请求失败
  44. - (NSNumber *)unBindCardCardNo:(NSString *)cardNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  45. /// 获取银行卡列表
  46. /// @param successHandler 请求成功
  47. /// @param failureHandler 请求失败
  48. - (NSNumber *)getBankcardListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  49. /// 申请星尘转出
  50. /// @param amount 金额
  51. /// @param cardNo 卡号
  52. /// @param successHandler 请求成功
  53. /// @param failureHandler 请求失败
  54. - (NSNumber *)applyWithdrawByStarDustWithAmount:(NSString *)amount cardNo:(NSString *)cardNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  55. /// 申请粉钻转出
  56. /// @param amount 金额
  57. /// @param cardNo 卡号
  58. /// @param successHandler 请求成功
  59. /// @param failureHandler 请求失败
  60. - (NSNumber *)applyWithdrawByPink:(NSString *)amount cardNo:(NSString *)cardNo successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  61. /// 获粉钻提现金额选项
  62. /// @param successHandler 请求成功
  63. /// @param failureHandler 请求失败
  64. - (NSNumber *)getWithdrawPinkListSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  65. @end
  66. NS_ASSUME_NONNULL_END