AMAECommerceAmount class

This class contains cost information, such as quantity and units.

Instance methods

-initWithUnit:value:

Initializes the instance of the AMAECommerceAmount class for sending information about purchases.

Properties

unit

The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.

value

Quantity.

Method descriptions

-initWithUnit:value:

- (instancetype)initWithUnit:(NSString *)unit value:(NSDecimalNumber *)value

Initializes the instance of the AMAECommerceAmount class for sending information about purchases.

Parameters:

unit

The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.

Use ISO 4217 format.

value

Quantity.

Returns:

The AMAECommerceAmount class instance.

Property descriptions

unit

(nonatomic, copy, readonly) NSString *unit

The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.

Note

Use ISO 4217 format.

value

(nonatomic, strong, readonly) NSDecimalNumber *value

Quantity.