Package-level declarations

GS1 element strings: Application Identifiers, validation, parsing and building messages, check digits and GS1 Digital Link URIs.

Types

Link copied to clipboard

One part of an AI's data field, e.g. the 14 digits of a GTIN.

Link copied to clipboard

A GS1 Application Identifier, as defined by the GS1 Barcode Syntax Dictionary.

Link copied to clipboard
object Gs1Ai

Codes of every GS1 Application Identifier known to the library.

Link copied to clipboard

Character sets used by GS1 AI data.

Link copied to clipboard

GS1 mod-10 check digit, shared by GTIN-8/12/13/14, SSCC, GLN and other numeric GS1 keys.

Link copied to clipboard

GS1 Digital Link URIs: GS1 data as a web address, e.g. https://id.gs1.org/01/09501101020917/10/ABC123?17=261231.

Link copied to clipboard

An AI and its validated data field.

Link copied to clipboard
class Gs1Error

A validation failure.

Link copied to clipboard

Why GS1 data was rejected.

Link copied to clipboard

Thrown when GS1 data cannot be built or parsed.

Link copied to clipboard

Validated GS1 data ready to be encoded in a GS1-128 or GS1 DataMatrix symbol.

Link copied to clipboard
Link copied to clipboard

Order in which element strings are encoded.

Link copied to clipboard
sealed interface Gs1Token

What a GS1 symbol carries: FNC1 function characters and runs of data characters.

Functions

Link copied to clipboard
fun Gs1Message.Companion.build(order: Gs1Order = Gs1Order.OPTIMIZED, block: Gs1MessageBuilder.() -> Unit): Gs1Message

Builds a Gs1Message with named functions:

Link copied to clipboard
fun Gs1Message.toDigitalLinkUri(domain: String = Gs1DigitalLink.CANONICAL_DOMAIN): String

The GS1 Digital Link URI of this message. See Gs1DigitalLink.toUri.