digicust_types 1.7.470 → 1.7.472
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/cache/cache.model.d.ts +37 -0
- package/lib/models/digicust/cache/cache.model.js +2 -0
- package/lib/models/digicust/cache/index.d.ts +1 -0
- package/lib/models/digicust/cache/index.js +17 -0
- package/lib/models/digicust/case/aggregated-case-data.model.d.ts +9 -3
- package/lib/models/digicust/case/case-submission-transaction.d.ts +1 -0
- package/lib/models/digicust/case/case.model.d.ts +1 -0
- package/lib/models/digicust/company/company.model.d.ts +2 -0
- package/lib/models/digicust/customer/customer.model.d.ts +1 -0
- package/lib/models/digicust/customs/buyerSellerRelationship.model.d.ts +9 -0
- package/lib/models/digicust/customs/buyerSellerRelationship.model.js +12 -0
- package/lib/models/digicust/customs/index.d.ts +1 -0
- package/lib/models/digicust/customs/index.js +1 -0
- package/lib/models/digicust/customs/tariff-number/customs-tariff-number.model.d.ts +8 -1
- package/lib/models/digicust/documents/digicust-document-type.enum.d.ts +1 -0
- package/lib/models/digicust/documents/digicust-document-type.enum.js +1 -0
- package/lib/models/digicust/documents/document-types/digicust-document.model.d.ts +2 -1
- package/lib/models/digicust/documents/document-types/email-document.model.d.ts +2 -0
- package/lib/models/digicust/documents/document-types/eur1.model.d.ts +10 -0
- package/lib/models/digicust/documents/document-types/eur1.model.js +2 -0
- package/lib/models/digicust/documents/document-types/index.d.ts +2 -0
- package/lib/models/digicust/documents/document-types/index.js +2 -0
- package/lib/models/digicust/documents/document-types/transit-declaration.model.d.ts +24 -0
- package/lib/models/digicust/documents/document-types/transit-declaration.model.js +2 -0
- package/lib/models/digicust/documents/document-types/user-input.model.d.ts +5 -1
- package/lib/models/digicust/documents/waybill-type.model.d.ts +1 -0
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +35 -3
- package/lib/models/digicust/fraud/item-fraud-detection.d.ts +6 -0
- package/lib/models/digicust/fraud/item-fraud-detection.js +2 -0
- package/lib/models/digicust/frontend/filter.enum.d.ts +2 -1
- package/lib/models/digicust/frontend/filter.enum.js +1 -0
- package/lib/models/digicust/index.d.ts +1 -0
- package/lib/models/digicust/index.js +1 -0
- package/lib/models/digicust/line-item/line-item.model.d.ts +2 -0
- package/lib/models/digicust/masterdata/material.model.d.ts +53 -0
- package/lib/models/digicust/settings/customsTariffNumberNormalizationSettings.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AddressModel } from "../measures";
|
|
2
|
+
import { EORI, VATNumber } from "../customs";
|
|
3
|
+
export interface CacheModel {
|
|
4
|
+
id?: string;
|
|
5
|
+
service?: "google-maps-geolocation" | "openai-gpt" | "amazon-maps" | "ec-eori-validation" | "ec-vat-validation";
|
|
6
|
+
/** The query sent to the service to retrieve a certain output. This is the 'cache key'.
|
|
7
|
+
* If query is an object, then JSON.stringify it.
|
|
8
|
+
*/
|
|
9
|
+
query?: string;
|
|
10
|
+
/** The output of the service */
|
|
11
|
+
value?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface GoogleMapsGeolocationCacheModel extends CacheModel {
|
|
14
|
+
service?: "google-maps-geolocation";
|
|
15
|
+
query?: string;
|
|
16
|
+
value?: AddressModel;
|
|
17
|
+
}
|
|
18
|
+
export interface OpenAiGpt extends CacheModel {
|
|
19
|
+
service?: "openai-gpt";
|
|
20
|
+
query?: string;
|
|
21
|
+
value?: object;
|
|
22
|
+
}
|
|
23
|
+
export interface AmazonMaps extends CacheModel {
|
|
24
|
+
service?: "amazon-maps";
|
|
25
|
+
query?: string;
|
|
26
|
+
value?: AddressModel;
|
|
27
|
+
}
|
|
28
|
+
export interface EcEoriValidation extends CacheModel {
|
|
29
|
+
service?: "ec-eori-validation";
|
|
30
|
+
query?: string;
|
|
31
|
+
value?: EORI;
|
|
32
|
+
}
|
|
33
|
+
export interface EcVatValidation extends CacheModel {
|
|
34
|
+
service?: "ec-vat-validation";
|
|
35
|
+
query?: string;
|
|
36
|
+
value?: VATNumber;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./cache.model";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cache.model"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Procedure, LoadType, Adjustment, Container, WaybillTypeModel, IncotermModel, CostIntersection, TradePreference, CustomsOffice, MeanOfTransportation, TypeOfBusiness, CaseType, LineItemModel, Package, Meta, AddressModel, DateTimeModel, CompanyModel, Currency, WeightUnit, Weight, Money, TransitItemModel, ConstellationOfParticipantsModel, Port, PreliminaryDocument, DeclarationType } from "..";
|
|
1
|
+
import { Procedure, LoadType, Adjustment, Container, WaybillTypeModel, IncotermModel, CostIntersection, TradePreference, CustomsOffice, MeanOfTransportation, TypeOfBusiness, CaseType, LineItemModel, Package, Meta, AddressModel, DateTimeModel, CompanyModel, Currency, WeightUnit, Weight, Money, TransitItemModel, ConstellationOfParticipantsModel, Port, PreliminaryDocument, DeclarationType, PersonModel } from "..";
|
|
2
|
+
import { BuyerSellerRelationship } from "../customs/buyerSellerRelationship.model";
|
|
2
3
|
import { DomesticFreightCosts } from "../customs/domesticFreightCosts.model";
|
|
3
4
|
/**
|
|
4
5
|
* Used to store aggregated information of a case
|
|
@@ -6,8 +7,10 @@ import { DomesticFreightCosts } from "../customs/domesticFreightCosts.model";
|
|
|
6
7
|
export interface AggregatedCaseDataModel {
|
|
7
8
|
procedure?: Procedure;
|
|
8
9
|
declarationType?: Meta<DeclarationType>;
|
|
10
|
+
summary?: Meta<string>;
|
|
9
11
|
/** commercial reference number, usually assigned by the trader */
|
|
10
12
|
referenceNumber?: Meta<string>;
|
|
13
|
+
responsiblePerson?: PersonModel;
|
|
11
14
|
mrnNumber?: Meta<string>;
|
|
12
15
|
/** Load Type, e.g. full container load */
|
|
13
16
|
loadType?: Meta<LoadType>;
|
|
@@ -17,6 +20,7 @@ export interface AggregatedCaseDataModel {
|
|
|
17
20
|
pointOfEntry?: AddressModel;
|
|
18
21
|
pointOfExit?: AddressModel;
|
|
19
22
|
transitCountries?: AddressModel[];
|
|
23
|
+
route?: Meta<string[]>;
|
|
20
24
|
arrivalDate?: DateTimeModel;
|
|
21
25
|
departureDate?: DateTimeModel;
|
|
22
26
|
issueDate?: DateTimeModel;
|
|
@@ -38,6 +42,7 @@ export interface AggregatedCaseDataModel {
|
|
|
38
42
|
warehouse?: CompanyModel;
|
|
39
43
|
obligater?: CompanyModel;
|
|
40
44
|
constellationOfParticipants?: ConstellationOfParticipantsModel;
|
|
45
|
+
buyerSellerRelation?: BuyerSellerRelationship;
|
|
41
46
|
/** adjustments to statistical/duty/VAT value */
|
|
42
47
|
adjustments?: Adjustment[];
|
|
43
48
|
containers?: Container[];
|
|
@@ -53,6 +58,7 @@ export interface AggregatedCaseDataModel {
|
|
|
53
58
|
tradePreference?: TradePreference;
|
|
54
59
|
customsOffices?: CustomsOffice[];
|
|
55
60
|
meansOfTransportation?: MeanOfTransportation[];
|
|
61
|
+
placeOfLoading?: AddressModel;
|
|
56
62
|
portOfExport?: Port;
|
|
57
63
|
portOfImport?: Port;
|
|
58
64
|
typeofBusiness?: TypeOfBusiness;
|
|
@@ -67,7 +73,6 @@ export interface AggregatedCaseDataModel {
|
|
|
67
73
|
trailerLicensePlate?: Meta<string>;
|
|
68
74
|
destinationCustomOffice?: Meta<string>;
|
|
69
75
|
departureCustomOffice?: Meta<string>;
|
|
70
|
-
loadingPlace?: Meta<string>;
|
|
71
76
|
transitItems?: TransitItemModel[];
|
|
72
77
|
totalValueExcludingCharges?: Money;
|
|
73
78
|
totalValueWithoutTax?: Money;
|
|
@@ -82,8 +87,9 @@ export interface AggregatedCaseDataModel {
|
|
|
82
87
|
guaranteeValue?: Money;
|
|
83
88
|
/** EUSt */
|
|
84
89
|
importSalesTax?: Money;
|
|
85
|
-
/** international freight costs */
|
|
86
90
|
freightCosts?: Money;
|
|
91
|
+
/** international freight costs */
|
|
92
|
+
internationalFreightCosts?: Money;
|
|
87
93
|
domesticFreightCosts?: DomesticFreightCosts;
|
|
88
94
|
insuranceCosts?: Money;
|
|
89
95
|
domesticInsuranceCosts?: DomesticFreightCosts;
|
|
@@ -14,6 +14,7 @@ export interface CaseSubmissionTransaction {
|
|
|
14
14
|
/** Specifies which type of transaction it is (e.g. 'QuittungEingangsverarbeitung') */
|
|
15
15
|
transactionType?: string;
|
|
16
16
|
content?: any;
|
|
17
|
+
return?: any;
|
|
17
18
|
xml?: string;
|
|
18
19
|
}
|
|
19
20
|
export declare enum CaseSubmissionProcedure {
|
|
@@ -11,6 +11,7 @@ export interface CompanyModel extends Meta<string> {
|
|
|
11
11
|
EORI?: EORI;
|
|
12
12
|
VAT?: VATNumber;
|
|
13
13
|
intrastatVAT?: VATNumber;
|
|
14
|
+
flags?: ("billable" | "using" | "archived")[];
|
|
14
15
|
TIN?: Meta<string>;
|
|
15
16
|
securityNumber?: Meta<string>;
|
|
16
17
|
inputTaxDeduction?: Meta<boolean>;
|
|
@@ -30,6 +31,7 @@ export interface CompanyModel extends Meta<string> {
|
|
|
30
31
|
/** Gestellungsfrist (in hours) */
|
|
31
32
|
submissionDeadlineInterval?: number;
|
|
32
33
|
stakeholderId?: string;
|
|
34
|
+
companyBeforeMatching?: CompanyModel;
|
|
33
35
|
creationType?: MasterDataCreationType;
|
|
34
36
|
matchingMetadata?: MatchingMetadataModel<StakeholderMatchInput, StakeholderMatchResult>;
|
|
35
37
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta } from "../meta";
|
|
2
|
+
export interface BuyerSellerRelationship extends Meta<BuyerSellerRelationshipMode> {
|
|
3
|
+
DE_A1760?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare enum BuyerSellerRelationshipMode {
|
|
6
|
+
NotConnected = "notConnected",
|
|
7
|
+
ConnectedNoInfluence = "connectedNoInfluence",
|
|
8
|
+
ConnectedInfluence = "connectedInfluence"
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuyerSellerRelationshipMode = void 0;
|
|
4
|
+
var BuyerSellerRelationshipMode;
|
|
5
|
+
(function (BuyerSellerRelationshipMode) {
|
|
6
|
+
/* Seller and buyer are not connected */
|
|
7
|
+
BuyerSellerRelationshipMode["NotConnected"] = "notConnected";
|
|
8
|
+
/* Seller and buyer are connected, but the connection has not influenced the prices */
|
|
9
|
+
BuyerSellerRelationshipMode["ConnectedNoInfluence"] = "connectedNoInfluence";
|
|
10
|
+
/* Seller and buyer are connected, the connection has influenced the price */
|
|
11
|
+
BuyerSellerRelationshipMode["ConnectedInfluence"] = "connectedInfluence";
|
|
12
|
+
})(BuyerSellerRelationshipMode = exports.BuyerSellerRelationshipMode || (exports.BuyerSellerRelationshipMode = {}));
|
|
@@ -38,3 +38,4 @@ __exportStar(require("./addition-deduction.model"), exports);
|
|
|
38
38
|
__exportStar(require("./declaration-type.enum"), exports);
|
|
39
39
|
__exportStar(require("./representative-constellation.enum"), exports);
|
|
40
40
|
__exportStar(require("./vat-number.model"), exports);
|
|
41
|
+
__exportStar(require("./buyerSellerRelationship.model"), exports);
|
|
@@ -3,7 +3,8 @@ export interface CustomsTariffNumber extends Meta<string> {
|
|
|
3
3
|
hsCode?: Meta<string>;
|
|
4
4
|
additionalCodes?: Meta<string>[];
|
|
5
5
|
hsCodeInvoice?: Meta<string>;
|
|
6
|
-
customsDescription?:
|
|
6
|
+
customsDescription?: string;
|
|
7
|
+
reason?: string;
|
|
7
8
|
tradeZone?: {
|
|
8
9
|
[key: string]: {
|
|
9
10
|
code?: ClassificationCode;
|
|
@@ -14,6 +15,12 @@ export interface CustomsTariffNumber extends Meta<string> {
|
|
|
14
15
|
};
|
|
15
16
|
};
|
|
16
17
|
};
|
|
18
|
+
/** Checks if the tariff classification is likely to be valid */
|
|
19
|
+
complianceCheck?: {
|
|
20
|
+
/** Value between 1 (very confident) to 0 (no confidence) */
|
|
21
|
+
validityConfidence?: number;
|
|
22
|
+
reason?: string;
|
|
23
|
+
};
|
|
17
24
|
classifier?: {
|
|
18
25
|
default?: HsCodeModel;
|
|
19
26
|
};
|
|
@@ -27,5 +27,6 @@ var DigicustDocumentType;
|
|
|
27
27
|
DigicustDocumentType["TariffClassificationInput"] = "tariffClassificationInput";
|
|
28
28
|
DigicustDocumentType["TemporaryStorage"] = "TemporaryStorage";
|
|
29
29
|
DigicustDocumentType["ATR"] = "ATR";
|
|
30
|
+
DigicustDocumentType["EUR1"] = "EUR1";
|
|
30
31
|
DigicustDocumentType["UserInput"] = "UserInput";
|
|
31
32
|
})(DigicustDocumentType = exports.DigicustDocumentType || (exports.DigicustDocumentType = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DigicustDocumentType, DocumentCode, DocumentStatus, UserDocumentStatus, SubDocumentStatus, ClassificationStatus } from "..";
|
|
2
|
-
import { ProcessingModel, DateTimeModel, AnalyzerMetadataModel, UploadedFileModel } from "../..";
|
|
2
|
+
import { ProcessingModel, DateTimeModel, AnalyzerMetadataModel, UploadedFileModel, Meta } from "../..";
|
|
3
3
|
import { RossumImportStatus } from "../../..";
|
|
4
4
|
/**
|
|
5
5
|
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
|
@@ -14,6 +14,7 @@ export interface DigicustDocumentModel {
|
|
|
14
14
|
fileName?: string;
|
|
15
15
|
documentType?: DigicustDocumentType;
|
|
16
16
|
documentCode?: DocumentCode;
|
|
17
|
+
documentReference?: Meta<string>;
|
|
17
18
|
documentStatus?: DocumentStatus;
|
|
18
19
|
userDocumentStatus?: UserDocumentStatus;
|
|
19
20
|
subDocumentStatus?: SubDocumentStatus;
|
|
@@ -20,6 +20,8 @@ export interface EmailDocument extends DigicustDocumentModel {
|
|
|
20
20
|
meanOfTransportation?: MeanOfTransportation;
|
|
21
21
|
incoterm?: Meta<Incoterm>;
|
|
22
22
|
placeIncoterm?: AddressModel;
|
|
23
|
+
route?: Meta<string[]>;
|
|
24
|
+
placeOfLoading?: AddressModel;
|
|
23
25
|
pointOfEntry?: AddressModel;
|
|
24
26
|
weight?: Weight;
|
|
25
27
|
weightUnit?: Meta<WeightUnit>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Weight } from "../../measures";
|
|
2
|
+
import { Meta } from "../../meta";
|
|
3
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
4
|
+
/**
|
|
5
|
+
* Identifies an EUR1 document
|
|
6
|
+
*/
|
|
7
|
+
export interface EUR1Document extends DigicustDocumentModel {
|
|
8
|
+
EUR1Number?: Meta<string>;
|
|
9
|
+
totalGrossWeight?: Weight;
|
|
10
|
+
}
|
|
@@ -26,3 +26,5 @@ __exportStar(require("./temporary-storage.model"), exports);
|
|
|
26
26
|
__exportStar(require("./turkish-export-declaration.model"), exports);
|
|
27
27
|
__exportStar(require("./atr.model"), exports);
|
|
28
28
|
__exportStar(require("./user-input.model"), exports);
|
|
29
|
+
__exportStar(require("./eur1.model"), exports);
|
|
30
|
+
__exportStar(require("./transit-declaration.model"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
2
|
+
import { DocumentCode, LineItemContainingDocument } from "..";
|
|
3
|
+
import { CompanyModel, CustomsOffice, AddressModel, Meta, Weight, MeanOfTransportation, Package, DateTimeModel } from "../..";
|
|
4
|
+
/**
|
|
5
|
+
* Identifies an Export Declaration
|
|
6
|
+
*/
|
|
7
|
+
export interface TransitDeclaration extends DigicustDocumentModel, LineItemContainingDocument {
|
|
8
|
+
shipper?: CompanyModel;
|
|
9
|
+
recipient?: CompanyModel;
|
|
10
|
+
exitCustomsOffice?: CustomsOffice;
|
|
11
|
+
exitDeclarationIssueDate?: DateTimeModel;
|
|
12
|
+
mrnNumber?: Meta<string>;
|
|
13
|
+
declarationType?: TransitDeclarationType;
|
|
14
|
+
packages?: Package[];
|
|
15
|
+
numPackages?: Meta<number>;
|
|
16
|
+
referenceNumber?: Meta<string>;
|
|
17
|
+
exportingCountry?: AddressModel;
|
|
18
|
+
destinationCountry?: AddressModel;
|
|
19
|
+
meansOfTransportation?: MeanOfTransportation[];
|
|
20
|
+
totalGrossWeight?: Weight;
|
|
21
|
+
}
|
|
22
|
+
export interface TransitDeclarationType extends Meta<"T1" | "T2"> {
|
|
23
|
+
documentCode?: DocumentCode;
|
|
24
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AggregatedCaseDataModel } from "../../case";
|
|
2
|
+
import { ValidationError } from "../../errors.model";
|
|
3
|
+
import { ExecutionStrategy } from "../../execution-strategy";
|
|
2
4
|
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
3
5
|
/**
|
|
4
6
|
* Identifies user input as a document
|
|
5
7
|
*/
|
|
6
8
|
export interface UserInput extends DigicustDocumentModel {
|
|
7
|
-
priority?: "beforeNormalization" | "afterNormalization" | "replace";
|
|
9
|
+
priority?: "beforeNormalization" | "fallback" | "afterNormalization" | "replace";
|
|
8
10
|
annotatedAggregated?: AggregatedCaseDataModel;
|
|
11
|
+
annotatedExecutionStrategy?: ExecutionStrategy;
|
|
12
|
+
customValidationMessages?: ValidationError[];
|
|
9
13
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { DigicustDocumentType, Event, ProcedureMode, CustomsTariffNumberNormalizationSettings, Rule } from "..";
|
|
1
|
+
import { DigicustDocumentType, Event, ProcedureMode, CustomsTariffNumberNormalizationSettings, Rule, StakeholderModel, PackageType } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
|
4
4
|
*/
|
|
5
5
|
export interface ExecutionStrategy {
|
|
6
6
|
id?: string;
|
|
7
7
|
alias?: string;
|
|
8
|
+
flags?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
8
11
|
moduleId?: string;
|
|
9
12
|
customerId?: string;
|
|
10
13
|
projectId?: string;
|
|
@@ -52,6 +55,7 @@ export interface ExecutionStrategy {
|
|
|
52
55
|
/** Determines how to deal with additional costs like shipping costs, packing, ... */
|
|
53
56
|
additionalCostsStrategy?: "addToFirstItem" | "splitToAllItems";
|
|
54
57
|
allowDateInOrderNumber?: boolean;
|
|
58
|
+
eliminateArticleNumberFromDescription?: boolean;
|
|
55
59
|
/** Determines whether or not data from incoming emails are extracted and normalized.
|
|
56
60
|
* @default false */
|
|
57
61
|
normalizeEmailDocuments?: boolean;
|
|
@@ -62,10 +66,16 @@ export interface ExecutionStrategy {
|
|
|
62
66
|
destinationLanguage?: string;
|
|
63
67
|
};
|
|
64
68
|
customsTariffNumberNormalizationSettings?: CustomsTariffNumberNormalizationSettings;
|
|
65
|
-
guaranteeValueStrategy?: "headerFromInvoices" | "lineItems";
|
|
69
|
+
guaranteeValueStrategy?: "headerFromInvoices" | "headerFromInvoiceHeader" | "lineItems";
|
|
70
|
+
guaranteeValueCalculation?: "includeVAT19%" | "excludeVAT";
|
|
71
|
+
waybillCodePreference?: "singleCode" | "seperateCodes";
|
|
72
|
+
/** Between 0 and 1 */
|
|
73
|
+
foreignFreightCostRate?: number;
|
|
74
|
+
enforcePackageType?: PackageType;
|
|
66
75
|
};
|
|
67
76
|
dataValidation?: {
|
|
68
77
|
active?: boolean;
|
|
78
|
+
fraudDetection?: boolean;
|
|
69
79
|
};
|
|
70
80
|
hsClassification?: {
|
|
71
81
|
active?: boolean;
|
|
@@ -77,7 +87,17 @@ export interface ExecutionStrategy {
|
|
|
77
87
|
};
|
|
78
88
|
dataIntegration?: {
|
|
79
89
|
active?: boolean;
|
|
80
|
-
requireUserInput?:
|
|
90
|
+
requireUserInput?: "false" | "true" | "masterDataOrUserInput";
|
|
91
|
+
};
|
|
92
|
+
matchingEngine?: {
|
|
93
|
+
materialMatching?: {
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
disableTariffNumberMatching?: boolean;
|
|
96
|
+
disableMaterialNumberMatching?: boolean;
|
|
97
|
+
tariffNumberMatchingConfiguration?: {
|
|
98
|
+
stakeholderFilters?: ("shipper" | "consignee" | "recipient" | "beneficiary" | "applicant" | "declarant" | "importer" | "exporter" | "buyer" | "agent" | "broker" | "carrier" | "warehouse" | "obligater")[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
81
101
|
};
|
|
82
102
|
pseudonymization?: {
|
|
83
103
|
active?: boolean;
|
|
@@ -99,6 +119,12 @@ export interface ExecutionStrategy {
|
|
|
99
119
|
division?: string;
|
|
100
120
|
noDocumentsOnHead?: boolean;
|
|
101
121
|
packagesOnFirstLineItemOnly?: boolean;
|
|
122
|
+
aggregateItems?: boolean;
|
|
123
|
+
template?: string;
|
|
124
|
+
ignoreDV1?: boolean;
|
|
125
|
+
ignoreToAddress?: boolean;
|
|
126
|
+
/** Anmelder ist Empfanger */
|
|
127
|
+
enforceImportDeclarantIsRecipient?: boolean;
|
|
102
128
|
};
|
|
103
129
|
} | {
|
|
104
130
|
active?: boolean;
|
|
@@ -121,10 +147,16 @@ export interface ExecutionStrategy {
|
|
|
121
147
|
"user-name"?: string;
|
|
122
148
|
password?: string;
|
|
123
149
|
endpoint?: string;
|
|
150
|
+
template?: string;
|
|
124
151
|
};
|
|
125
152
|
};
|
|
126
153
|
events: Event[];
|
|
127
154
|
rules: Rule[];
|
|
128
155
|
automated?: boolean;
|
|
156
|
+
customs?: {
|
|
157
|
+
GRN?: string;
|
|
158
|
+
GRNAccessCode?: string;
|
|
159
|
+
declarantRepresentative?: StakeholderModel;
|
|
160
|
+
};
|
|
129
161
|
}
|
|
130
162
|
export declare const condenseExecutionStrategy: (strategy?: ExecutionStrategy) => ExecutionStrategy | null;
|
|
@@ -9,4 +9,5 @@ var FilterCondition;
|
|
|
9
9
|
FilterCondition["startsWith"] = "startsWith";
|
|
10
10
|
FilterCondition["endsWith"] = "endsWith";
|
|
11
11
|
FilterCondition["contains"] = "contains";
|
|
12
|
+
FilterCondition["isUserEdited"] = "isUserEdited";
|
|
12
13
|
})(FilterCondition = exports.FilterCondition || (exports.FilterCondition = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
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 } from "..";
|
|
2
|
+
import { ItemFraudDetectionDetails } from "../fraud/item-fraud-detection";
|
|
2
3
|
/**
|
|
3
4
|
* Identifies line items (specific products) listed on a document
|
|
4
5
|
*/
|
|
@@ -84,6 +85,7 @@ export interface LineItemModel {
|
|
|
84
85
|
materialId?: string;
|
|
85
86
|
creationType?: MasterDataCreationType;
|
|
86
87
|
bbox?: Bbox;
|
|
88
|
+
fraudDetection?: ItemFraudDetectionDetails;
|
|
87
89
|
matchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult>;
|
|
88
90
|
}
|
|
89
91
|
export declare const condenseLineItem: (lineItem?: LineItemModel) => LineItemModel | null;
|
|
@@ -39,6 +39,7 @@ export interface MaterialModel {
|
|
|
39
39
|
customerId?: string;
|
|
40
40
|
projectId?: string;
|
|
41
41
|
creationType?: MasterDataCreationType;
|
|
42
|
+
matchingType?: "materialNumber" | "tariffNumber";
|
|
42
43
|
description?: Workflow<string>;
|
|
43
44
|
documentDescription?: Workflow<string>;
|
|
44
45
|
materialNumber?: Workflow<string>;
|
|
@@ -61,6 +62,58 @@ export interface MaterialModel {
|
|
|
61
62
|
*/
|
|
62
63
|
shipper?: string;
|
|
63
64
|
shipperId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Owning recipient, if any. Used for matching by tariff number.
|
|
67
|
+
*/
|
|
68
|
+
recipientId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Owning consignee, if any. Used for matching by tariff number.
|
|
71
|
+
*/
|
|
72
|
+
consigneeId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Owning beneficiary, if any. Used for matching by tariff number.
|
|
75
|
+
*/
|
|
76
|
+
beneficiaryId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Owning applicant, if any. Used for matching by tariff number.
|
|
79
|
+
*/
|
|
80
|
+
applicantId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Owning declarant, if any. Used for matching by tariff number.
|
|
83
|
+
*/
|
|
84
|
+
declarantId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Owning exporter, if any. Used for matching by tariff number.
|
|
87
|
+
*/
|
|
88
|
+
importerId?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Owning exporter, if any. Used for matching by tariff number.
|
|
91
|
+
*/
|
|
92
|
+
exporterId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Owning buyer, if any. Used for matching by tariff number.
|
|
95
|
+
*/
|
|
96
|
+
buyerId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Owning agent, if any. Used for matching by tariff number.
|
|
99
|
+
*/
|
|
100
|
+
agentId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Owning broker, if any. Used for matching by tariff number.
|
|
103
|
+
*/
|
|
104
|
+
brokerId?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Owning carrier, if any. Used for matching by tariff number.
|
|
107
|
+
*/
|
|
108
|
+
carrierId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Owning warehouse, if any. Used for matching by tariff number.
|
|
111
|
+
*/
|
|
112
|
+
warehouseId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Owning obligater, if any. Used for matching by tariff number.
|
|
115
|
+
*/
|
|
116
|
+
obligaterId?: string;
|
|
64
117
|
/**
|
|
65
118
|
* Different materialNumbers might be applied for different recipients.
|
|
66
119
|
* The recipientId refers to a stakeholder.
|
|
@@ -8,6 +8,12 @@ export interface CustomsTariffNumberNormalizationSettings {
|
|
|
8
8
|
ignoreCustomsTariffNumbersFromInvoice?: boolean;
|
|
9
9
|
/** Specifies whether to take the the first valid digits and consier fallback sub-chapters */
|
|
10
10
|
autoFixTariffNumbers?: boolean;
|
|
11
|
+
complianceCheck?: {
|
|
12
|
+
active?: boolean;
|
|
13
|
+
};
|
|
14
|
+
tariffClassification?: {
|
|
15
|
+
active?: boolean;
|
|
16
|
+
};
|
|
11
17
|
/** Specifies whether to take the tariff number description for item description */
|
|
12
18
|
useAsItemDescription?: boolean;
|
|
13
19
|
}
|