JSON representation | |
---|---|
{ "kind": string, "type": enum ( |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
type |
The type of barcode. |
renderEncoding |
The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. |
value |
The value encoded in the barcode. |
alternateText |
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 |
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 |
CODE_39 |
|
code39 |
Legacy alias for |
CODE_128 |
|
code128 |
Legacy alias for |
CODABAR |
|
codabar |
Legacy alias for |
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 |
EAN_8 |
|
ean8 |
Legacy alias for |
EAN_13 |
|
ean13 |
Legacy alias for |
EAN13 |
Legacy alias for |
ITF_14 |
14 digit ITF code |
itf14 |
Legacy alias for |
PDF_417 |
|
pdf417 |
Legacy alias for |
PDF417 |
Legacy alias for |
QR_CODE |
|
qrCode |
Legacy alias for |
qrcode |
Legacy alias for |
UPC_A |
11 or 12 digit codes |
upcA |
Legacy alias for |
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 |
BarcodeRenderEncoding
Enums | |
---|---|
RENDER_ENCODING_UNSPECIFIED |
|
UTF_8 |
UTF_8 encoding for barcodes. This is only supported for barcode type qrCode. |