XYPayAPIManager.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // XYPayAPIManager.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/23.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "ZYLAPIManager.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface XYPayAPIManager : ZYLAPIManager
  11. /// 获取金币充值项目
  12. /// @param successHandler 请求成功
  13. /// @param failureHandler 请求失败
  14. - (NSNumber *)getCoinRechargeItemsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  15. /// 创建金币充值订单
  16. /// @param itemId 要充值的项目Id
  17. /// @param successHandler 请求成功
  18. /// @param failureHandler 请求失败
  19. - (NSNumber *)addCoinRechargeOrderItemId:(NSString *)itemId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  20. /// 创建支付订单
  21. /// @param orderId 订单id
  22. /// @param successHandler 请求成功
  23. /// @param failureHandler 请求失败
  24. - (NSNumber *)addPayOrderWithOrderId:(NSString *)orderId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  25. /// 效验苹果支付订单
  26. /// @param orderId 订单id
  27. /// @param successHandler 请求成功
  28. /// @param failureHandler 请求失败
  29. - (NSNumber *)addPayOrderWithOrderId:(NSString *)orderId transactionId:(NSString *)transactionId receiptData:(NSString *)receiptData successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  30. /// 获取支付状态
  31. /// @param orderId 获取订单状态
  32. /// @param successHandler 请求成功
  33. /// @param failureHandler 请求失败
  34. - (NSNumber *)getPayStatusWithOrderId:(NSString *)orderId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  35. /// 加入主播粉丝团
  36. /// @param anchorUserId 主播id
  37. /// @param successHandler 请求成功
  38. /// @param failureHandler 请求失败
  39. - (NSNumber *)forJoinFansTeamWithAnchorUserId:(NSString *)anchorUserId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  40. @end
  41. NS_ASSUME_NONNULL_END