YMMECommerceAmount class
This class contains cost information, such as quantity and units.
Instance methods
init(unit:value:) | Initializes the instance of the |
init(unit:value:) | Initializes the instance of the |
Properties
Method descriptions
init(unit:value:)
init(unit: String, value: NSDecimalNumber)
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. |
value | Quantity. |
unit | The unit. For example: USD or RUB. Acceptable value: Up to 20 characters. |
value | Quantity. |
Returns:
The YMMECommerceAmount
class instance.
Property descriptions
unit
var unit: String { get }
The unit. For example: USD or RUB. Acceptable value: Up to 20 characters.
Use ISO 4217 format.
value
var value: NSDecimalNumber { get }
Quantity.