Barcode

JSON 表示法
{
  "kind": string,
  "type": enum (BarcodeType),
  "renderEncoding": enum (BarcodeRenderEncoding),
  "value": string,
  "alternateText": string,
  "showCodeText": {
    object (LocalizedString)
  }
}
欄位
kind
(deprecated)

string

識別資源的種類。值:固定字串 "walletobjects#barcode"

type

enum (BarcodeType)

條碼類型。

renderEncoding

enum (BarcodeRenderEncoding)

條碼的轉譯編碼。如有指定,則會以指定的編碼轉譯條碼。如未指定,則由 Google 選擇最已知的編碼。

value

string

條碼中的編碼值。

alternateText

string

選用文字,會覆寫條碼下方顯示的預設文字。這個欄位旨在提供使用者能夠理解的條碼值對應內容,條碼無法掃描時即可使用。

showCodeText

object (LocalizedString)

執行點選動作後隱藏條碼時顯示的選填文字。如果票證啟用智慧感應功能,就會發生這種情形。如未指定,則由 Google 選擇預設值。