Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Barcode

import type { Barcode } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";
interface Barcode {
alternateText?: string;
kind?: string;
renderEncoding?: "RENDER_ENCODING_UNSPECIFIED" | "UTF_8";
showCodeText?: LocalizedString;
type?:
| "BARCODE_TYPE_UNSPECIFIED"
| "AZTEC"
| "aztec"
| "CODE_39"
| "code39"
| "CODE_128"
| "code128"
| "CODABAR"
| "codabar"
| "DATA_MATRIX"
| "dataMatrix"
| "EAN_8"
| "ean8"
| "EAN_13"
| "ean13"
| "EAN13"
| "ITF_14"
| "itf14"
| "PDF_417"
| "pdf417"
| "PDF417"
| "QR_CODE"
| "qrCode"
| "qrcode"
| "UPC_A"
| "upcA"
| "TEXT_ONLY"
| "textOnly";
value?: string;
}

§Properties

§
alternateText?: string
[src]

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.

§
kind?: string
[src]

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

§
renderEncoding?: "RENDER_ENCODING_UNSPECIFIED" | "UTF_8"
[src]

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

§
showCodeText?: LocalizedString
[src]

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.

§
type?: "BARCODE_TYPE_UNSPECIFIED" | "AZTEC" | "aztec" | "CODE_39" | "code39" | "CODE_128" | "code128" | "CODABAR" | "codabar" | "DATA_MATRIX" | "dataMatrix" | "EAN_8" | "ean8" | "EAN_13" | "ean13" | "EAN13" | "ITF_14" | "itf14" | "PDF_417" | "pdf417" | "PDF417" | "QR_CODE" | "qrCode" | "qrcode" | "UPC_A" | "upcA" | "TEXT_ONLY" | "textOnly"
[src]

The type of barcode.

§
value?: string
[src]

The value encoded in the barcode.