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 选择默认值。