123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // XYPayAPIManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2019/12/23.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYPayAPIManager : ZYLAPIManager
- /// 获取金币充值项目
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getCoinRechargeItemsSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 创建金币充值订单
- /// @param itemId 要充值的项目Id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addCoinRechargeOrderItemId:(NSString *)itemId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 创建支付订单
- /// @param orderId 订单id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addPayOrderWithOrderId:(NSString *)orderId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 效验苹果支付订单
- /// @param orderId 订单id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)addPayOrderWithOrderId:(NSString *)orderId transactionId:(NSString *)transactionId receiptData:(NSString *)receiptData successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取支付状态
- /// @param orderId 获取订单状态
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getPayStatusWithOrderId:(NSString *)orderId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 加入主播粉丝团
- /// @param anchorUserId 主播id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)forJoinFansTeamWithAnchorUserId:(NSString *)anchorUserId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|