PriceAttribute

订单或订单项的 price 属性。

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)

必需属性:money 属性的类型。

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。