commit | author | age
|
dcdc07
|
1 |
// |
W |
2 |
// GhwSdkIapResult.h |
|
3 |
// GHWSdk |
|
4 |
// |
|
5 |
// Created by GHW-T-01 on 15/5/25. |
|
6 |
// Copyright (c) 2015年 Wuyx. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
/*! |
|
11 |
@discussion WAIapResult 支付结果类 |
|
12 |
- - - |
|
13 |
*/ |
|
14 |
@interface WAIapResult : NSObject |
|
15 |
/*! |
|
16 |
@abstract Only set if state is SKPaymentTransactionFailed |
|
17 |
|
|
18 |
Available downloads (SKDownload) for this transaction |
|
19 |
*/ |
|
20 |
@property(nonatomic) NSArray *downloads; |
|
21 |
/*! |
|
22 |
@abstract The date when the transaction was added to the server queue. Only valid if state is SKPaymentTransactionStatePurchased or SKPaymentTransactionStateRestored. |
|
23 |
*/ |
|
24 |
@property(nonatomic) NSDate *transactionDate; |
|
25 |
/*! |
|
26 |
@abstract The unique server-provided identifier. Only valid if state is SKPaymentTransactionStatePurchased or SKPaymentTransactionStateRestored. |
|
27 |
*/ |
|
28 |
@property(nonatomic) NSString *transactionIdentifier; |
|
29 |
/*! |
|
30 |
@abstract Only valid if state is SKPaymentTransactionStatePurchased. |
|
31 |
*/ |
|
32 |
@property(nonatomic) NSData *transactionReceipt; |
|
33 |
/*! |
|
34 |
@abstract Identifier agreed upon with the store. Required. |
|
35 |
*/ |
|
36 |
@property(nonatomic) NSString *productIdentifier; |
|
37 |
/*! |
|
38 |
@abstract Payment request data agreed upon with the store. Optional. |
|
39 |
*/ |
|
40 |
@property(nonatomic) NSData *requestData; |
|
41 |
/*! |
|
42 |
@abstract default: 1. Must be at least 1. |
|
43 |
*/ |
|
44 |
@property(nonatomic) NSInteger quantity; |
|
45 |
/*! |
|
46 |
@abstract 基准支付金额 |
|
47 |
*/ |
|
48 |
@property(nonatomic) NSString* defaultAmountMicro; |
|
49 |
/*! |
|
50 |
@abstract 基准支付币种 |
|
51 |
*/ |
|
52 |
@property(nonatomic) NSString* defaultCurrency; |
|
53 |
/*! |
|
54 |
@abstract 平台服务器自动生成的订单id |
|
55 |
*/ |
|
56 |
@property(nonatomic) NSString* orderId; |
|
57 |
/*! |
|
58 |
@abstract 支付结果 |
|
59 |
*/ |
|
60 |
@property(nonatomic) long resultCode; |
|
61 |
|
|
62 |
@end |