PriceAttribute

订单或订单项的价格属性。

JSON 表示法
{
  "type": enum (Type),
  "name": string,
  "id": string,
  "state": enum (State),
  "taxIncluded": boolean,

  // Union field spec can be only one of the following:
  "amount": {
    object (Money)
  },
  "amountMillipercentage": integer
  // End of list of possible types for union field spec.
}
字段
type

enum (Type)

必需:货币属性。

name

string

必需:用户显示的价格属性字符串。此信息由商家发送并本地化。

id

string

可选:此价格对应的订单项的 ID。

state

enum (State)

必需:价格状态:“估算”与“实际”。

taxIncluded

boolean

价格是否包含税费。

联合字段 spec。表示货币金额或毫百分比。spec 只能是下列其中一项:
amount

object (Money)

货币金额。

amountMillipercentage
(deprecated)

integer

百分比规范,精确到某个百分比的 1/1000。例如:8.750% 表示为 8750,负百分比表示折扣百分比。正在弃用此字段。当需要可靠的用例时,可以考虑重新添加代码。

币种

表示含有货币类型的金额。

JSON 表示法
{
  "currencyCode": string,
  "amountInMicros": string
}
字段
currencyCode

string

ISO 4217 中定义的由 3 个字母组成的货币代码。

amountInMicros

string (int64 format)

以微单位表示的金额。例如,对于 $1.99,此字段应设为 1990000。