Inherits from NSObject
Declared in GAITransactionItem.h

Overview

A simple class to hold transaction item data.

Tasks

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