|
@@ -131,28 +131,28 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
@interface IAPReceiptTool: NSObject
|
|
|
|
|
|
// 是否在免费试用中
|
|
|
-+ (BOOL)isFreeTrailingWithModel:(IAPReceiptModel *)model withProductId:(NSString *)productId;
|
|
|
++ (BOOL)isFreeTrailingWithModel:(IAPReceiptModel * _Nullable)model withProductId:(NSString * _Nullable)productId;
|
|
|
|
|
|
// 是否为新用户
|
|
|
+ (BOOL)isNewUserWithModel:(IAPReceiptModel * _Nullable)model withGroupIdentifier:(NSString * _Nullable)groupIdentifier;
|
|
|
|
|
|
// 是否有享受过 推介优惠 [免费试用]
|
|
|
-+ (BOOL)hasFreeTrialWithModel:(IAPReceiptModel *)model withGroupIdentifier:(NSString *)groupIdentifier;
|
|
|
++ (BOOL)hasFreeTrialWithModel:(IAPReceiptModel * _Nullable)model withGroupIdentifier:(NSString * _Nullable)groupIdentifier;
|
|
|
|
|
|
// 是否有享受过 推介优惠
|
|
|
-+ (BOOL)hasIntroOfferWithModel:(IAPReceiptModel *)model withGroupIdentifier:(NSString *)groupIdentifier;
|
|
|
++ (BOOL)hasIntroOfferWithModel:(IAPReceiptModel * _Nullable)model withGroupIdentifier:(NSString * _Nullable)groupIdentifier;
|
|
|
|
|
|
// 获取订阅群组的所有票据
|
|
|
-+ (NSArray <IAPReceiptInfoModel *> *)fetchReceiptsWithModel:(IAPReceiptModel *)model withGroupIdentifier:(NSString *)groupIdentifier;
|
|
|
++ (NSArray <IAPReceiptInfoModel *> * _Nullable)fetchReceiptsWithModel:(IAPReceiptModel * _Nullable)model withGroupIdentifier:(NSString * _Nullable)groupIdentifier;
|
|
|
|
|
|
// 获取对应商品的最后的票据
|
|
|
-+ (IAPReceiptInfoModel *)fetchProductLastestReceiptsWithModel:(IAPReceiptModel *)model withProductId:(NSString *)productId;
|
|
|
++ (IAPReceiptInfoModel * _Nullable)fetchProductLastestReceiptsWithModel:(IAPReceiptModel * _Nullable)model withProductId:(NSString * _Nullable)productId;
|
|
|
|
|
|
// 获取对应商品的所有票据
|
|
|
-+ (NSArray <IAPReceiptInfoModel *> *)fetchProductReceiptsWithModel:(IAPReceiptModel *)model withProductId:(NSString *)productId;
|
|
|
++ (NSArray <IAPReceiptInfoModel *> * _Nullable)fetchProductReceiptsWithModel:(IAPReceiptModel * _Nullable)model withProductId:(NSString * _Nullable)productId;
|
|
|
|
|
|
// 获取所有的票据
|
|
|
-+ (NSArray <IAPReceiptInfoModel *> *)fetchReceiptsWithModel:(IAPReceiptModel *)model;
|
|
|
++ (NSArray <IAPReceiptInfoModel *> * _Nullable)fetchReceiptsWithModel:(IAPReceiptModel * _Nullable)model;
|
|
|
|
|
|
@end
|
|
|
|