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)

金額,以微量為單位。舉例來說,這個欄位應設為 1990000 的價格為 $1.99。