digicust_types 1.7.296 → 1.7.299
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/case/aggregated-case-data.model.d.ts +4 -0
- package/lib/models/digicust/documents/document-types/digicust-document.model.d.ts +1 -4
- package/lib/models/digicust/documents/document-types/digicust-document.model.js +0 -3
- package/lib/models/digicust/documents/invoice.model.d.ts +7 -1
- package/lib/models/digicust/line-item/line-item-match-result.d.ts +22 -6
- package/lib/models/digicust/line-item/line-item.model.d.ts +7 -0
- package/package.json +1 -1
- package/lib/models/digicust/documents/delivery-note.model.d.ts +0 -51
- package/lib/models/digicust/documents/delivery-note.model.js +0 -2
|
@@ -12,6 +12,8 @@ export interface AggregatedCaseDataModel {
|
|
|
12
12
|
countryOfOrigin?: AddressModel;
|
|
13
13
|
fromAddress?: AddressModel;
|
|
14
14
|
toAddress?: AddressModel;
|
|
15
|
+
pointOfEntry?: AddressModel;
|
|
16
|
+
pointOfExit?: AddressModel;
|
|
15
17
|
transitCountries?: AddressModel[];
|
|
16
18
|
arrivalDate?: DateTimeModel;
|
|
17
19
|
departureDate?: DateTimeModel;
|
|
@@ -75,6 +77,8 @@ export interface AggregatedCaseDataModel {
|
|
|
75
77
|
totalCustomsValue?: Money;
|
|
76
78
|
totalDiscount?: Money;
|
|
77
79
|
totalInsuranceCosts?: Money;
|
|
80
|
+
/** EUSt */
|
|
81
|
+
importSalesTax?: Money;
|
|
78
82
|
/** international freight costs */
|
|
79
83
|
freightCosts?: Money;
|
|
80
84
|
domesticFreightCosts?: Money;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DigicustDocumentType, DocumentCode, DocumentStatus, UserDocumentStatus, SubDocumentStatus, ClassificationStatus } from "..";
|
|
2
|
-
import { ProcessingModel,
|
|
2
|
+
import { ProcessingModel, AnalyzerMetadataModel, UploadedFileModel } from "../..";
|
|
3
3
|
import { RossumImportStatus } from "../../..";
|
|
4
4
|
/**
|
|
5
5
|
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
|
@@ -21,9 +21,6 @@ export interface DigicustDocumentModel {
|
|
|
21
21
|
isPseudonymized?: boolean;
|
|
22
22
|
processing?: ProcessingModel;
|
|
23
23
|
receivedAt?: Date;
|
|
24
|
-
code?: string;
|
|
25
|
-
reference?: string;
|
|
26
|
-
issueDate?: DateTimeModel;
|
|
27
24
|
isCondensed?: boolean;
|
|
28
25
|
[customField: string]: any;
|
|
29
26
|
analyzerMetadata?: AnalyzerMetadataModel;
|
|
@@ -17,9 +17,6 @@ var condenseDocument = function (document) {
|
|
|
17
17
|
classificationStatus: document.classificationStatus,
|
|
18
18
|
processing: document.processing,
|
|
19
19
|
isPseudonymized: document.isPseudonymized,
|
|
20
|
-
code: document.code,
|
|
21
|
-
reference: document.reference,
|
|
22
|
-
issueDate: document.issueDate,
|
|
23
20
|
analyzerMetadata: document.analyzerMetadata,
|
|
24
21
|
isCondensed: true,
|
|
25
22
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentLanguage } from ".";
|
|
2
2
|
import { DigicustDocumentModel, IncotermModel, InvoiceType, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness, CustomsTariffNumber } from "..";
|
|
3
3
|
import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../..";
|
|
4
4
|
import { LineItemContainingDocument } from "./line-item-containing-document";
|
|
5
|
+
export interface Distributions {
|
|
6
|
+
deliveryNote?: Meta<string>[];
|
|
7
|
+
buyerOrderNumber?: Meta<string>[];
|
|
8
|
+
hsCode?: Meta<string>[];
|
|
9
|
+
orderNumber?: Meta<string>[];
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* Identifies an invoice
|
|
7
13
|
*/
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
export interface LineItemMatchResult {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
matchesCodeNormalized?: boolean;
|
|
3
|
+
matchesCodeEmitted?: boolean;
|
|
4
|
+
matchesCodeWithOtherNormalized?: boolean;
|
|
5
|
+
matchesCodeWithOtherEmitted?: boolean;
|
|
6
|
+
matchesMaterialNumberNormalized?: boolean;
|
|
7
|
+
matchesMaterialNumberEmitted?: boolean;
|
|
8
|
+
matchesMaterialNumberWithOtherNormalized?: boolean;
|
|
9
|
+
matchesMaterialNumberWithOtherEmitted?: boolean;
|
|
10
|
+
matchesBuyerArticleNumberNormalized?: boolean;
|
|
11
|
+
matchesBuyerArticleNumberEmitted?: boolean;
|
|
12
|
+
matchesBuyerArticleNumberWithOtherNormalized?: boolean;
|
|
13
|
+
matchesBuyerArticleNumberWithOtherEmitted?: boolean;
|
|
14
|
+
matchesBuyerOrderNumberNormalized?: boolean;
|
|
15
|
+
matchesBuyerOrderNumberEmitted?: boolean;
|
|
16
|
+
matchesBuyerOrderNumberWithOtherNormalized?: boolean;
|
|
17
|
+
matchesBuyerOrderNumberWithOtherEmitted?: boolean;
|
|
18
|
+
matchesReferenceNormalized?: boolean;
|
|
19
|
+
matchesReferenceEmitted?: boolean;
|
|
20
|
+
matchesReferenceWithOtherNormalized?: boolean;
|
|
21
|
+
matchesReferenceWithOtherEmitted?: boolean;
|
|
22
|
+
matchesTotalValue?: boolean;
|
|
23
|
+
matchesQuantity?: boolean;
|
|
4
24
|
matchesPosition?: boolean;
|
|
5
|
-
matchesMaterialNumber?: boolean;
|
|
6
|
-
matchesBuyerOrderNumber?: boolean;
|
|
7
|
-
matchesBuyerArticleNumber?: boolean;
|
|
8
|
-
matchesShipper?: boolean;
|
|
9
25
|
}
|
|
@@ -24,6 +24,11 @@ export interface LineItemModel {
|
|
|
24
24
|
currency?: Meta<Currency>;
|
|
25
25
|
totalValue?: Money;
|
|
26
26
|
customsValue?: Money;
|
|
27
|
+
customsValueAdditionDeduction?: {
|
|
28
|
+
A1070?: string;
|
|
29
|
+
costs?: Money;
|
|
30
|
+
totalFreightCosts?: Money;
|
|
31
|
+
}[];
|
|
27
32
|
discount?: Money;
|
|
28
33
|
discountUnit?: Meta<Currency | "%">;
|
|
29
34
|
additionalChargesUnit?: Meta<Currency>;
|
|
@@ -60,6 +65,8 @@ export interface LineItemModel {
|
|
|
60
65
|
documentDescription?: Meta<string>;
|
|
61
66
|
totalValueExcludingCharges?: Money;
|
|
62
67
|
statisticalValue?: Money;
|
|
68
|
+
/** EUSt */
|
|
69
|
+
importSalesTax?: Money;
|
|
63
70
|
units?: {
|
|
64
71
|
number?: number;
|
|
65
72
|
type?: string;
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { DigicustDocumentModel, Distributions, DocumentLanguage, LineItemContainingDocument } from ".";
|
|
2
|
-
import { AddressModel, CompanyModel, Currency, CustomsTariffNumber, DateTimeModel, Dimensions, IncotermModel, LanguageModel, MeanOfTransportation, Meta, Money, Package, PackageType, TradePreference, TypeOfBusiness, Weight, WeightUnit } from "..";
|
|
3
|
-
export interface DeliveryNotesModel extends DigicustDocumentModel, LineItemContainingDocument {
|
|
4
|
-
shipper?: CompanyModel;
|
|
5
|
-
recipient?: CompanyModel;
|
|
6
|
-
consignee?: CompanyModel;
|
|
7
|
-
beneficiary?: CompanyModel;
|
|
8
|
-
language?: LanguageModel & Meta<DocumentLanguage>;
|
|
9
|
-
deliveryNote?: Meta<string>;
|
|
10
|
-
issueDate?: DateTimeModel;
|
|
11
|
-
invoiceNumber?: Meta<string>;
|
|
12
|
-
sellerOrderNumber?: Meta<string>;
|
|
13
|
-
buyerOrderNumber?: Meta<string>;
|
|
14
|
-
referenceNumber?: Meta<string>;
|
|
15
|
-
waybillNumber?: Meta<string>;
|
|
16
|
-
packingList?: Meta<string>;
|
|
17
|
-
meansOfTransportation?: MeanOfTransportation[];
|
|
18
|
-
typeOfBusiness?: TypeOfBusiness;
|
|
19
|
-
portOfExport?: Meta<string>;
|
|
20
|
-
portOfImport?: Meta<string>;
|
|
21
|
-
incoterm?: IncotermModel;
|
|
22
|
-
placeIncoterm?: AddressModel;
|
|
23
|
-
countryOfOrigin?: AddressModel;
|
|
24
|
-
generalHsCode?: CustomsTariffNumber;
|
|
25
|
-
generalGoodsDescription?: Meta<string>;
|
|
26
|
-
CAS?: Meta<string>;
|
|
27
|
-
dualUseApprovalNumber?: Meta<string>;
|
|
28
|
-
substanceCharacteristics?: Meta<string>;
|
|
29
|
-
intendedApplication?: Meta<string>;
|
|
30
|
-
tradePreference?: TradePreference;
|
|
31
|
-
preferenceInformation?: Meta<string>;
|
|
32
|
-
intrastatInformation?: Meta<string>;
|
|
33
|
-
weight?: Weight;
|
|
34
|
-
netWeight?: Weight;
|
|
35
|
-
weightUnit?: Meta<WeightUnit>;
|
|
36
|
-
typeOfPackage?: PackageType;
|
|
37
|
-
packageDimensions?: Dimensions;
|
|
38
|
-
numberOfShipments?: Meta<number>;
|
|
39
|
-
packages?: Package[];
|
|
40
|
-
totalValueExcludingCharges?: Money;
|
|
41
|
-
insuranceCosts?: Money;
|
|
42
|
-
packagingCosts?: Money;
|
|
43
|
-
discount?: Money;
|
|
44
|
-
licenseFee?: Money;
|
|
45
|
-
otherPayments?: Money;
|
|
46
|
-
shippingCost?: Money;
|
|
47
|
-
totalValue?: Money;
|
|
48
|
-
customsValue?: Money;
|
|
49
|
-
currency?: Meta<Currency>;
|
|
50
|
-
distributions?: Distributions;
|
|
51
|
-
}
|