YMMECommercePrice class

This class contains the product price.

Instance methods

init(fiat:)

Initializes the instance of the YMMECommercePrice class.

init(fiat:internalComponents:)

Initializes the instance of the YMMECommercePrice class.

init(fiat:)

Initializes the instance of the YMMECommercePrice class.

init(fiat:internalComponents:)

Initializes the instance of the YMMECommercePrice class.

Properties

fiat

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

The cost of internal components (the amounts in the internal currency). Allowed size: Up to 30 elements.

fiat

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

The cost of internal components (the amounts in the internal currency). Allowed size: Up to 30 elements.

Method descriptions

init(fiat:)

init(fiat: YMMECommerceAmount)

Initializes the instance of the YMMECommercePrice class.

Parameters:
fiat

The cost in fiat money. The YMMECommerceAmount class instance.

fiat

The cost in fiat money. The YMMECommerceAmount class instance.

Returns:

The YMMECommercePrice class instance.

init(fiat:internalComponents:)

init(fiat: YMMECommerceAmount, internalComponents: [YMMECommerceAmount]?)

Initializes the instance of the YMMECommercePrice class.

Parameters:
fiat

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

The cost of internal components (the amounts in the internal currency). Allowed size: Up to 30 elements.

fiat

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

The cost of internal components (the amounts in the internal currency). Allowed size: Up to 30 elements.

Returns:

The YMMECommercePrice class instance.

Property descriptions

fiat

var fiat: YMMECommerceAmount { get }

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

var internalComponents: [YMMECommerceAmount]? { get }

The cost of internal components (the amounts in the internal currency). Allowed size: Up to 30 elements.