Type alias UpcEanExtensionBehavior

UpcEanExtensionBehavior: "REQUIRE_2" | "REQUIRE_5" | "REQUIRE_ANY" | "IGNORE" | "ALLOW_2" | "ALLOW_5" | "ALLOW_ANY"

Behavior when scanning UPC/EAN barcodes with EAN-2 or EAN-5 extensions.

  • REQUIRE_2: Only barcodes with a 2-digit extension are accepted.
  • REQUIRE_5: Only barcodes with a 5-digit extension are accepted.
  • REQUIRE_ANY: Only barcodes with either a 2-digit or a 5-digit extension are accepted.
  • IGNORE: Always ignore the extension.
  • ALLOW_2: Return detected 2-digit extension if present, but do not require it. Ignore the 5-digit extension.
  • ALLOW_5: Return detected 5-digit extension if present, but do not require it. Ignore the 2-digit extension.
  • ALLOW_ANY: Return any detected extension if present, but do not require it.

Generated using TypeDoc