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 單位為 1 美元。

nanos

integer

金額的十億分之一 (10^-9) 單位數量。這個值必須介於 -999,999,999 和 +999,999,999 (含) 之間。如果 units 為正數,nanos 必須為正數或零。如果 units 為零,nanos 可以是正數、零或負數。如果 units 為負數,nanos 必須為負數或零。舉例來說,$-1.75 的表示法為 units=-1,nanos=-750,000,000。