AMAECommercePrice class

This class contains the product price.

Instance methods

-initWithFiat:

Initializes the instance of the AMAECommercePrice class.

-initWithFiat:internalComponents:

Initializes the instance of the AMAECommercePrice class.

Properties

fiat

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

Initializes the instance of the AMAECommercePrice class.

Parameters:

fiat

The cost in fiat money. The AMAECommerceAmount class instance.

Returns:

The AMAECommercePrice class instance.

-initWithFiat:internalComponents:

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

Initializes the instance of the AMAECommercePrice class.

Parameters:

fiat

The cost in fiat money. The AMAECommerceAmount class instance.

internalComponents

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

Returns:

The AMAECommercePrice class instance.

Property descriptions

fiat

(nonatomic, strong, readonly) AMAECommerceAmount *fiat;

The cost in fiat money. The AMAECommerceAmount class instance.

internalComponents

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

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