Class NonGTINNumericIdentificationKeyValidator

Non-GTIN numeric identification key validator.

Hierarchy (view full)

Constructors

Accessors

  • get length(): number
  • Returns number

Methods

  • Pad an identification key on the left with zeroes for validation purposes. This is done to align an identification key with a position offset for any error message that may be thrown by the reference validator.

    Parameters

    • identificationKey: string

      Identification key.

    • validation: undefined | IdentificationKeyValidation

      Identification key validation parameters.

    Returns string

    Padded identification key.

  • Parameters

    Returns void

  • Validate the prefix within an identification key.

    Parameters

    • partialIdentificationKey: string

      Partial identification key.

    • OptionalpositionOffset: number

      Position offset within a larger string.

    Returns void