-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPFProduct.h
More file actions
65 lines (49 loc) · 1.76 KB
/
PFProduct.h
File metadata and controls
65 lines (49 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// PFProduct.h
//
// Copyright 2011-present Parse Inc. All rights reserved.
//
#import <Parse/PFFile.h>
#import <Parse/PFNullability.h>
#import <Parse/PFObject.h>
#import <Parse/PFSubclassing.h>
PF_ASSUME_NONNULL_BEGIN
/*!
The `PFProduct` class represents an in-app purchase product on the Parse server.
By default, products can only be created via the Data Browser. Saving a `PFProduct` will result in error.
However, the products' metadata information can be queried and viewed.
This class is currently for iOS only.
*/
@interface PFProduct : PFObject<PFSubclassing>
///--------------------------------------
/// @name Product-specific Properties
///--------------------------------------
/*!
@abstract The product identifier of the product.
@discussion This should match the product identifier in iTunes Connect exactly.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *productIdentifier;
/*!
@abstract The icon of the product.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong) PFFile *icon;
/*!
@abstract The title of the product.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *title;
/*!
@abstract The subtitle of the product.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSString *subtitle;
/*!
@abstract The order in which the product information is displayed in <PFProductTableViewController>.
@discussion The product with a smaller order is displayed earlier in the <PFProductTableViewController>.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong) NSNumber *order;
/*!
@abstract The name of the associated download.
@discussion If there is no downloadable asset, it should be `nil`.
*/
@property (PF_NULLABLE_PROPERTY nonatomic, strong, readonly) NSString *downloadName;
@end
PF_ASSUME_NONNULL_END