Price

已弃用:请改用 V3 Proto。按顺序显示价格。

JSON 表示法
{
  "type": enum (PriceType),
  "amount": {
    object (Money)
  }
}
字段
type

enum (PriceType)

价格类型。必填。

amount

object (Money)

货币金额。必填。

币种

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

JSON 表示法
{
  "currencyCode": string,
  "units": string,
  "nanos": integer
}
字段
currencyCode

string

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

units

string (int64 format)

金额的整数单位。例如,如果 currencyCode"USD",则 1 单位就是一美元。

nanos

integer

金额的纳米 (10^-9) 单位数。这个值必须在 -999999999(含)和 +999999999(含)之间。如果 units 是正数,则 nanos 必须是正数或零。如果 units 为零,nanos 可以是正数、零或负数。如果 units 为负数,则 nanos 必须为负数或零。例如,$-1.75 表示为 units=-1 和 nanos=-750,000,000。