digicust_types 1.8.513 → 1.8.514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +2 -2
- package/lib/models/digicust/execution-strategy/material-enrichment-merge-config.d.ts +5 -0
- package/lib/models/digicust/execution-strategy/material-enrichment-merge-config.js +2 -0
- package/lib/models/digicust/execution-strategy/merge-line-item-mode.enum.d.ts +2 -1
- package/lib/models/digicust/execution-strategy/merge-line-item-mode.enum.js +3 -1
- package/lib/models/digicust/line-item/line-item.model.d.ts +4 -2
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { CustomsTariffNumberNormalizationSettings, DigicustDocumentType, Event,
|
|
2
2
|
import { UserInputTemplate } from "../userInputTemplate";
|
3
3
|
import { Submission } from "./sftp-config.model";
|
4
4
|
import { UploadWidget } from "./uploadWidget";
|
5
|
-
import {
|
5
|
+
import { MaterialEnrichmentMergeConfig } from "./material-enrichment-merge-config";
|
6
6
|
/**
|
7
7
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
8
8
|
*/
|
@@ -157,7 +157,6 @@ export interface ExecutionStrategy {
|
|
157
157
|
removeStakeholderContactInformation?: {
|
158
158
|
active?: boolean;
|
159
159
|
};
|
160
|
-
mergeLineItemMode?: MergeLineItemModeEnum;
|
161
160
|
ignoreLineItemsFromInvoice?: boolean;
|
162
161
|
ignoreLineItemsFromTransitDeclaration?: boolean;
|
163
162
|
ignoreLineItemsWithoutInvoice?: boolean;
|
@@ -511,6 +510,7 @@ export interface ExecutionStrategy {
|
|
511
510
|
disableMaterialNumberMatching?: boolean;
|
512
511
|
sendMasterDataTariffNumberOnly?: boolean;
|
513
512
|
sendMasterDataDescriptionOnly?: boolean;
|
513
|
+
materialEnrichmentMergeConfig?: MaterialEnrichmentMergeConfig;
|
514
514
|
tariffNumberMatchingConfiguration?: {
|
515
515
|
stakeholderFilters?: ("shipper" | "consignee" | "recipient" | "beneficiary" | "applicant" | "declarant" | "importer" | "exporter" | "buyer" | "agent" | "broker" | "carrier" | "warehouse" | "obligater")[];
|
516
516
|
matchShipperCountry?: boolean;
|
@@ -2,7 +2,8 @@ export declare enum MergeLineItemModeEnum {
|
|
2
2
|
standard = "standard",
|
3
3
|
extended = "extended",
|
4
4
|
pickInvoiceItems = "pickInvoiceItems",
|
5
|
-
|
5
|
+
pickPackingListItems = "pickPackingListItems",
|
6
|
+
mergeMultiplePackingLists = "mergeMultiplePackingLists",
|
6
7
|
pickDeliveryNoteItems = "pickDeliveryNoteItems",
|
7
8
|
pickExportDeclarationItems = "pickExportDeclarationItems"
|
8
9
|
}
|
@@ -10,7 +10,9 @@ var MergeLineItemModeEnum;
|
|
10
10
|
// Pick only invoice items without merging, if any invoice items exist (else fallback to "standard" behavior)
|
11
11
|
MergeLineItemModeEnum["pickInvoiceItems"] = "pickInvoiceItems";
|
12
12
|
// Pick only packagelist items without merging, if any packinglists exist (else fallback to "standard" behavior)
|
13
|
-
MergeLineItemModeEnum["
|
13
|
+
MergeLineItemModeEnum["pickPackingListItems"] = "pickPackingListItems";
|
14
|
+
// Merge only multiple packinglist's items with each other, picking the first packingList as the base-line for the others
|
15
|
+
MergeLineItemModeEnum["mergeMultiplePackingLists"] = "mergeMultiplePackingLists";
|
14
16
|
// Pick only deliverynote items without merging, if any deliverynotes exist (else fallback to "standard" behavior)
|
15
17
|
MergeLineItemModeEnum["pickDeliveryNoteItems"] = "pickDeliveryNoteItems";
|
16
18
|
// Pick only exportDeclaration/turkishExportDeclaration items without merging, if any deliverynotes exist (else fallback to "standard" behavior)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Adjustment, Container, DigicustDocumentModel, DocumentTypeCode, MatchingMetadataModel, MaterialMatchInput, MaterialMatchResult, Package, PreferenceState, Procedure, AddressModel, CompanyModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, Weight, WeightUnit, Bbox, UnitOfMeasurement, MasterDataCreationType, CustomsDuty, ImportSalesTax, AdditionDeduction, Translatable, TypeOfBusiness, CountrySpecificLineItem, DateTimeModel, PackageType, VOC } from "..";
|
1
|
+
import { Adjustment, Container, DigicustDocumentModel, DocumentTypeCode, MatchingMetadataModel, MaterialMatchInput, MaterialMatchResult, Package, PreferenceState, Procedure, AddressModel, CompanyModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, Weight, WeightUnit, Bbox, UnitOfMeasurement, MasterDataCreationType, CustomsDuty, ImportSalesTax, AdditionDeduction, Translatable, TypeOfBusiness, CountrySpecificLineItem, DateTimeModel, PackageType, VOC, MaterialMatchByTariffNumberInput } from "..";
|
2
2
|
import { ItemFraudDetectionDetails } from "../fraud/item-fraud-detection";
|
3
3
|
import { LineItemDescriptionModel } from "./line-item-description.model";
|
4
4
|
/**
|
@@ -105,6 +105,7 @@ export interface LineItemModel {
|
|
105
105
|
containers?: Container[];
|
106
106
|
chassisNumber?: Meta<string>;
|
107
107
|
materialId?: string;
|
108
|
+
secondaryMaterialId?: string;
|
108
109
|
creationType?: MasterDataCreationType;
|
109
110
|
materialMatchingType?: "materialNumber" | "tariffNumber";
|
110
111
|
bbox?: Bbox;
|
@@ -112,7 +113,8 @@ export interface LineItemModel {
|
|
112
113
|
dangerousGoods?: {
|
113
114
|
UNNumber?: Meta<string>;
|
114
115
|
}[];
|
115
|
-
matchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult>;
|
116
|
+
matchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult> | MatchingMetadataModel<MaterialMatchByTariffNumberInput, MaterialMatchResult>;
|
117
|
+
secondaryMatchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult> | MatchingMetadataModel<MaterialMatchByTariffNumberInput, MaterialMatchResult>;
|
116
118
|
countrySpecific?: CountrySpecificLineItem;
|
117
119
|
beforeNormalization?: {
|
118
120
|
totalNetWeight?: Weight;
|