//
//  P101XPHelper.h
//  Created by Domasevich Mikhail on 2021/03/15.
//

#ifndef P101XPHelper_h
#define P101XPHelper_h

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

#import <P101XP/P101XP-Swift.h>

@interface P101XPHelper : NSObject
+ (NSError *)createErrorWithMessage:(NSString *)message;
+ (NSString *)jsonStringFrom:(NSDictionary *)dictionary;
+ (void)logWithPrefix:(NSString *)prefix withMessage:(NSString *)message withError:(NSError *)error;
+ (void)logWithPrefix:(NSString *)prefix withMessage:(NSString *)message;
+ (void)logWithPrefix:(NSString *)prefix withError:(NSError *)error;
+ (void)logWithPrefix:(NSString *)prefix;
+ (void)logWithMessage:(NSString *)message;
+ (void)logWithError:(NSError *)error;
+ (void)logWithErrorMessage:(NSString *)message;
+ (NSMutableDictionary *)tokenToDict:(P101XPToken *)token;
+ (NSMutableDictionary *)accountToDict:(P101XPAccountData *)account;
+ (NSMutableDictionary *)productToDict:(P101XPProduct *)product;

@end

#endif /* P101XPHelper_h */
