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。