HIVE SDK for iOS

HIVEIAPV4.h
Go to the documentation of this file.
1 //
2 // HIVEIAPV4.h
3 // Hive_v2_source
4 //
5 // Created by Arkeo Lucid on 2017. 7. 25..
6 // Copyright © 2017년 COM2US. All rights reserved.
7 //
26 #import <Foundation/Foundation.h>
27 
28 @class HIVEResultAPI;
29 @class HIVEIAPV4;
30 @class HIVEIAPV4Product;
31 @class HIVEIAPV4Receipt;
32 
33 
34 // MARK: - HIVE IAP V4 Type
35 
40 typedef NS_ENUM(NSUInteger, HIVEIAPV4Type) {
41  kHIVEIAPV4TypeAppleAppStore = 1,
42  kHIVEIAPV4TypeGooglePlayStore,
43  kHIVEIAPV4TypeLebi,
44  kHIVEIAPV4TypeOneStore
45 };
46 
47 
48 // MARK: - HIVE IAP V4 Handler
49 
72 typedef void (^HIVEIAPV4MarketConnectHandler) (HIVEResultAPI *result, NSArray<NSNumber *> *marketIDs);
73 
96 typedef void (^HIVEIAPV4ProductInfoHandler) (HIVEResultAPI *result, NSArray<HIVEIAPV4Product *> *productInfoList, NSUInteger balance);
97 
123 typedef void (^HIVEIAPV4PurchaseHandler) (HIVEResultAPI *result, HIVEIAPV4Receipt *receipt);
124 
147 typedef void (^HIVEIAPV4RestoreHandler) (HIVEResultAPI *result, NSArray<HIVEIAPV4Receipt *> *receiptList);
148 
169 typedef void (^HIVEIAPV4TransactionFinishHandler) (HIVEResultAPI *result, NSString *marketPid);
170 
188 typedef void (^HIVEIAPV4TransactionMultiFinishHandler) (NSArray<HIVEResultAPI *> *resultList, NSArray<NSString *> *marketPidList);
189 
196 typedef void (^HIVEIAPV4CheckPromotePurchaseHandler) (HIVEResultAPI *result, NSString *marketPid);
197 
198 // MARK: - HIVEIAPV4
211 @interface HIVEIAPV4 : NSObject
212 
233 + (void)marketConnect:(HIVEIAPV4MarketConnectHandler)handler;
234 
253 + (void)getProductInfo:(HIVEIAPV4ProductInfoHandler)handler;
254 
270 + (void)getSubscriptionProductInfo:(HIVEIAPV4ProductInfoHandler)handler;
271 
272 
300 + (void)purchase:(NSString *)marketPid
301  additionalInfo:(NSString *)additionalInfo
302  handler:(HIVEIAPV4PurchaseHandler)handler;
303 
330 + (void)purchaseSubscriptionUpdate:(NSString *)marketPid oldMarketPid:(NSString *)oldMarketPid additionalInfo:(NSString *)additionalInfo handler:(HIVEIAPV4PurchaseHandler)handler;
331 
332 
355 + (void)restore:(HIVEIAPV4RestoreHandler)handler;
356 
376 + (void)restoreSubscription:(HIVEIAPV4RestoreHandler)handler;
377 
406 + (void)transactionFinish:(NSString *)marketPid
407  handler:(HIVEIAPV4TransactionFinishHandler)handler;
408 
436 + (void)transactionMultiFinish:(NSArray<NSString *> *)marketPidList
438 
452 + (void)checkPromotePurchase:(HIVEIAPV4CheckPromotePurchaseHandler)handler;
453 
454 
455 @end
456 
457 
458 // MARK: - HIVEIAPV4Product
459 
465 @interface HIVEIAPV4Product : NSObject
466 <NSCopying>
467 
468 @property (nonatomic, copy) NSString *marketPid;
469 @property (nonatomic, copy) NSString *currency;
470 @property (nonatomic) double price;
471 @property (nonatomic, copy) NSString *title;
472 @property (nonatomic, copy) NSString *displayPrice;
473 @property (nonatomic, copy) NSString *productDescription;
474 
475 - (NSString *)toJson;
476 
477 @end
478 
479 
480 // MARK: - HIVEIAPV4Receipt
481 
490 @interface HIVEIAPV4Receipt : NSObject
491 <NSCopying>
492 
493 @property (nonatomic) HIVEIAPV4Type type;
494 @property (nonatomic, copy) HIVEIAPV4Product *product;
495 @property (nonatomic, copy) NSString *hiveiapReceipt;
496 @property (nonatomic, copy) NSString *bypassInfo;
497 @property (nonatomic, copy) NSString *additionalInfo;
498 
499 
500 - (NSString *)toJson;
501 
502 @end
503 
504 
505 // MARK: HIVEIAPV4ReceiptApple
506 
513 @end
514 
515 
516 
HIVE IAP v4 결제 영수증 정보
Definition: HIVEIAPV4.h:490
void(^ HIVEIAPV4ProductInfoHandler)(HIVEResultAPI *result, NSArray< HIVEIAPV4Product *> *productInfoList, NSUInteger balance)
HIVE IAPV4 Product Information request callback.
Definition: HIVEIAPV4.h:96
void(^ HIVEIAPV4CheckPromotePurchaseHandler)(HIVEResultAPI *result, NSString *marketPid)
Apple AppStore Promote InApp Purchase 동작으로 MarketPID를 얻어오기 위한 결과 통지 ...
Definition: HIVEIAPV4.h:196
HIVE IAP v4 애플 결제 영수증 정보
Definition: HIVEIAPV4.h:512
HIVE IAP v4 상품 정보
Definition: HIVEIAPV4.h:465
void(^ HIVEIAPV4PurchaseHandler)(HIVEResultAPI *result, HIVEIAPV4Receipt *receipt)
Purchase request result callback The purchase of HIVE IAPV4 will require a marketPid registered in t...
Definition: HIVEIAPV4.h:123
void(^ HIVEIAPV4TransactionMultiFinishHandler)(NSArray< HIVEResultAPI *> *resultList, NSArray< NSString *> *marketPidList)
HIVE IAP v4 Multiple Transaction Finish request result callback
Definition: HIVEIAPV4.h:188
NSString * title
Item Title.
Definition: HIVEIAPV4.h:471
NSString * productDescription
Product Description.
Definition: HIVEIAPV4.h:473
NSString * displayPrice
Product price string (ex. $100.00)
Definition: HIVEIAPV4.h:472
double price
Product price.
Definition: HIVEIAPV4.h:470
HIVE IAP can minimize the development costs of the market-specific purchase process and collect purch...
Definition: HIVEIAPV4.h:211
void(^ HIVEIAPV4MarketConnectHandler)(HIVEResultAPI *result, NSArray< NSNumber *> *marketIDs)
HIVE IAPV4 Market information request result callback.
Definition: HIVEIAPV4.h:72
API 호출에 대한 결과를 담는 클래스
Definition: HIVEResultAPI.h:25
NSString * currency
Currency code (ex, KRW / USD)
Definition: HIVEIAPV4.h:469
void(^ HIVEIAPV4TransactionFinishHandler)(HIVEResultAPI *result, NSString *marketPid)
HIVE IAP v4 Transaction Finish request result callback
Definition: HIVEIAPV4.h:169
< NSCopying > NSString * marketPid
Unique product ID registered in Market.
Definition: HIVEIAPV4.h:468
void(^ HIVEIAPV4RestoreHandler)(HIVEResultAPI *result, NSArray< HIVEIAPV4Receipt *> *receiptList)
HIVE IAPV4 Restore request result callback It may happen that the item delivery fails due to various...
Definition: HIVEIAPV4.h:147
typedef NS_ENUM(NSUInteger, HIVEIAPV4Type)
결제 마켓 형태
Definition: HIVEIAPV4.h:40
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. Terms of Use Privacy Policy