YMMECommercePrice class

This class contains the product price.

Instance methods

-initWithFiat:

Initializes the instance of the YMMECommercePrice class.

-initWithFiat:internalComponents:

Initializes the instance of the YMMECommercePrice class.

-initWithFiat:

Initializes the instance of the YMMECommercePrice class.

-initWithFiat: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

-initWithFiat:

- (instancetype)initWithFiat:(YMMECommerceAmount *)fiat

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.

-initWithFiat:internalComponents:

- (instancetype)initWithFiat:(YMMECommerceAmount *)fiat
          internalComponents:(nullable NSArray<YMMECommerceAmount *> *)internalComponents;

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

(nonatomic, strong, readonly) YMMECommerceAmount *fiat;

The cost in fiat money. The YMMECommerceAmount class instance.

internalComponents

(nonatomic, copy, readonly, nullable) NSArray<YMMECommerceAmount *> *internalComponents

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