ECommercePrice class

This class contains the product price.

Instance methods

init(fiat:)

Initializes the instance of the ECommercePrice class.

init(fiat:internalComponents:)

Initializes the instance of the ECommercePrice class.

Properties

fiat

The cost in fiat money. The ECommerceAmount 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: ECommerceAmount)

Initializes the instance of the ECommercePrice class.

Parameters:

fiat

The cost in fiat money. The ECommerceAmount class instance.

Returns:

The ECommercePrice class instance.

init(fiat:internalComponents:)

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

Initializes the instance of the ECommercePrice class.

Parameters:

fiat

The cost in fiat money. The ECommerceAmount class instance.

internalComponents

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

Returns:

The ECommercePrice class instance.

Property descriptions

fiat

var fiat: ECommerceAmount { get }

The cost in fiat money. The ECommerceAmount class instance.

internalComponents

var internalComponents: [ECommerceAmount]? { get }

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