YMMECommerceAmount class

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

Instance methods

-initWithUnit:value:

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

-initWithUnit:value:

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

Properties

unit
The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.
Note. Use ISO 4217 format.
value

Quantity.

unit
The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.
Note. Use ISO 4217 format.
value

Quantity.

Method descriptions

-initWithUnit:value:

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

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

Parameters:
unit
The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.
Note. Use ISO 4217 format.
value

Quantity.

unit
The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.
Note. Use ISO 4217 format.
value

Quantity.

Returns:

The YMMECommerceAmount 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.