YMMECommerceAmount class
This class contains cost information, such as quantity and units.
Instance methods
-initWithUnit:value: | Initializes the instance of the |
-initWithUnit:value: | Initializes the instance of the |
Properties
Method descriptions
-initWithUnit:value:
- (instancetype)initWithUnit:(NSString *)unit value:(NSDecimalNumber *)value
Initializes the instance of the YMMECommerceAmount
class for sending information about purchases.
Parameters:
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.