AMAECommercePrice 类

此类包含产品价格。

Instance methods

-initWithFiat:

初始化 AMAECommercePrice 类的实例.

-initWithFiat:internalComponents:

初始化 AMAECommercePrice 类的实例.

Properties

fiat

以法定货币计算的成本。 The AMAECommerceAmount 类实例。

internalComponents

内部组件的成本(内部货币金额)。 允许的大小:最多30个元素。

Method descriptions

-initWithFiat:

- (instancetype)initWithFiat:(AMAECommerceAmount *)fiat

初始化 AMAECommercePrice 类的实例.

参数:

fiat

以法定货币计算的成本。 The AMAECommerceAmount 类实例。

返回:

The AMAECommercePrice 类实例。

-initWithFiat:internalComponents:

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

初始化 AMAECommercePrice 类的实例。

参数:

法兰克

法币的成本。 The AMAECommerceAmount 类实例。

internalComponents

内部组件的成本(内部货币金额)。 允许的大小:最多30个元素。

返回:

The AMAECommercePrice 类实例。

Property descriptions

fiat

(nonatomic, strong, readonly) AMAECommerceAmount *fiat;

法币的成本。 The AMAECommerceAmount 类实例。

internalComponents

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

内部组件的成本(内部货币中的金额)。 允许的大小:最多30个元素。