Barcode

JSON representation
{
  "kind": string,
  "type": enum (BarcodeType),
  "renderEncoding": enum (BarcodeRenderEncoding),
  "value": string,
  "alternateText": string,
  "showCodeText": {
    object (LocalizedString)
  }
}
Fields
kind
(deprecated)

string

Identifies what kind of resource this is. Value: the fixed string "walletobjects#barcode".

type

enum (BarcodeType)

The type of barcode.

renderEncoding

enum (BarcodeRenderEncoding)

The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google.

value

string

The value encoded in the barcode.

alternateText

string

An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned.

showCodeText

object (LocalizedString)

Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google.

BarcodeType

Enums
BARCODE_TYPE_UNSPECIFIED
AZTEC
aztec

Legacy alias for AZTEC. Deprecated.

CODE_39
code39

Legacy alias for CODE_39. Deprecated.

CODE_128
code128

Legacy alias for CODE_128. Deprecated.

CODABAR
codabar

Legacy alias for CODABAR. Deprecated.

DATA_MATRIX A 2D matrix barcode consisting of black and white. Cells or modules are arranged in either a square or rectangle.
dataMatrix

Legacy alias for DATA_MATRIX. Deprecated.

EAN_8
ean8

Legacy alias for EAN_8. Deprecated.

EAN_13
ean13

Legacy alias for EAN_13. Deprecated.

EAN13

Legacy alias for EAN_13. Deprecated.

ITF_14 14 digit ITF code
itf14

Legacy alias for ITF_14. Deprecated.

PDF_417
pdf417

Legacy alias for PDF_417. Deprecated.

PDF417

Legacy alias for PDF_417. Deprecated.

QR_CODE
qrCode

Legacy alias for QR_CODE. Deprecated.

qrcode

Legacy alias for QR_CODE. Deprecated.

UPC_A 11 or 12 digit codes
upcA

Legacy alias for UPC_A. Deprecated.

TEXT_ONLY Renders the field as a text field. The alternateText field may not be used with a barcode of type textOnly.
textOnly

Legacy alias for TEXT_ONLY. Deprecated.

BarcodeRenderEncoding

Enums
RENDER_ENCODING_UNSPECIFIED
UTF_8 UTF_8 encoding for barcodes. This is only supported for barcode type qrCode.