Interface CustomsTariffNumberNormalizationSettings

Settings for the extraction and normalization of customs tariff numbers

interface CustomsTariffNumberNormalizationSettings {
    autoFixTariffNumbers?: boolean;
    combineWithOriginalItemDescription?: boolean;
    combinedMaxDescriptionLength?: number;
    complianceCheck?: {
        active?: boolean;
    };
    considerCustomsTariffNumberFromInvoiceHead?: boolean;
    customsTariffNumberLength?: number;
    disableLineItemDescriptionShortening?: boolean;
    hideOriginalItemDescription?: boolean;
    ignoreCustomsTariffNumbersFromInvoice?: boolean;
    itemDescriptionSource?: "description" | "altDescription";
    mapForeignTariffNumberAlpha2Code?: string;
    preferMasterDataDescription?: boolean;
    tariffClassification?: {
        active?: boolean;
        mode?: ClassificationTypes;
    };
    useAsItemDescription?: boolean;
}

Properties

autoFixTariffNumbers?: boolean

Specifies whether to take the the first valid digits and consier fallback sub-chapters

combineWithOriginalItemDescription?: boolean

Specifies whether to combine the original item description with the tariff number description. Only applicable if useAsItemDescription is true.

combinedMaxDescriptionLength?: number

Specifies the maximum length of the combined item description (prefix + tariff number description + suffix). If not set, defaults to 238 characters.

complianceCheck?: {
    active?: boolean;
}

Type declaration

  • Optional active?: boolean
considerCustomsTariffNumberFromInvoiceHead?: boolean

Specifies whether to consider customs tariff number from invoice head/the general customs tariff number

customsTariffNumberLength?: number

Specifies the length in which customs tariff numbers are considered. E.g. 6 would consider only the first 6 digits.

disableLineItemDescriptionShortening?: boolean

Specifies whether to shorten the line item description if it is longer than 4 words.

hideOriginalItemDescription?: boolean
ignoreCustomsTariffNumbersFromInvoice?: boolean

Specifies whether to ignore customs tariff numbers from invoices. E.g. true would not consider extracted customs tariff numbers

itemDescriptionSource?: "description" | "altDescription"

With german tariff numbers, this usually means EZT=description and zolltarifnummern.de=altDescription

mapForeignTariffNumberAlpha2Code?: string

Contains the alpha2Code key of the country to consider for the foreign tariff number when looking up customs-law material data. Description in UI: "Map to foreign tariff number for country"

preferMasterDataDescription?: boolean
tariffClassification?: {
    active?: boolean;
    mode?: ClassificationTypes;
}

Type declaration

useAsItemDescription?: boolean

Specifies whether to take the tariff number description for item description