GAITransactionItem Class Reference
Inherits from | NSObject |
Declared in | GAITransactionItem.h |
Tasks
-
productCode
The item code, as a string.
property -
productName
The item name.
property -
productCategory
The item variation.
property -
priceMicros
The item price in micros (millionths of a currency unit).
property -
quantity
The item quantity.
property -
+ itemWithCode:name:category:priceMicros:quantity:
Create and initialize an item.
Properties
priceMicros
The item price in micros (millionths of a currency unit).
@property (nonatomic, assign) int64_t priceMicros
Declared In
GAITransactionItem.h
productCategory
The item variation.
@property (nonatomic, copy) NSString *productCategory
Declared In
GAITransactionItem.h
productCode
The item code, as a string.
@property (nonatomic, copy, readonly) NSString *productCode
Declared In
GAITransactionItem.h
productName
The item name.
@property (nonatomic, copy) NSString *productName
Declared In
GAITransactionItem.h
quantity
The item quantity.
@property (nonatomic, assign) NSInteger quantity
Declared In
GAITransactionItem.h
Class Methods
itemWithCode:name:category:priceMicros:quantity:
Create and initialize an item.
+ (GAITransactionItem *)itemWithCode:(NSString *)productCode name:(NSString *)productName category:(NSString *)productCategory priceMicros:(int64_t)priceMicros quantity:(NSInteger)quantity
Parameters
- productCode
The item product code; must not be
nil
or empty.
- productName
The item product name; must not be
nil
or empty.
- productCategory
The item product category; may be
nil
.
- priceMicros
The item price, in micros (millionths of a currency unit).
- quantity
The item quantity, as an NSInteger.
Return Value
The newly initialized item.
Declared In
GAITransactionItem.h