digicust_types 1.7.321 → 1.7.324
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/customs/addition-deduction.model.d.ts +12 -0
- package/lib/models/digicust/customs/addition-deduction.model.js +2 -0
- package/lib/models/digicust/customs/index.d.ts +1 -0
- package/lib/models/digicust/customs/index.js +1 -0
- package/lib/models/digicust/documents/document-types/document-types-helper.d.ts +8 -0
- package/lib/models/digicust/documents/document-types/document-types-helper.js +2 -0
- package/lib/models/digicust/documents/document-types/index.d.ts +1 -0
- package/lib/models/digicust/documents/document-types/index.js +1 -0
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +1 -0
- package/lib/models/digicust/line-item/line-item.model.d.ts +16 -24
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Currency } from "../measures";
|
|
2
|
+
export interface AdditionDeduction {
|
|
3
|
+
/** A1070 or LK or R */
|
|
4
|
+
type?: string;
|
|
5
|
+
amount?: number;
|
|
6
|
+
currency?: Currency;
|
|
7
|
+
/** absolutes */
|
|
8
|
+
percentage?: number;
|
|
9
|
+
freightCostsCalculationBasis?: number;
|
|
10
|
+
useIATAExchangeRate?: boolean;
|
|
11
|
+
exchangeRate?: number;
|
|
12
|
+
}
|
|
@@ -34,3 +34,4 @@ __exportStar(require("./port-type.enum"), exports);
|
|
|
34
34
|
__exportStar(require("./domesticFreightCosts.model"), exports);
|
|
35
35
|
__exportStar(require("./customs-duty.model"), exports);
|
|
36
36
|
__exportStar(require("./import-sales-tax.model"), exports);
|
|
37
|
+
__exportStar(require("./addition-deduction.model"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExportDeclaration } from "./export-declaration.model";
|
|
2
|
+
import { DeliveryNotesModel } from "./delivery-note.model";
|
|
3
|
+
import { InvoiceModel } from "./invoice.model";
|
|
4
|
+
import { PackingListModel } from "./packing-list.model";
|
|
5
|
+
import { WaybillModel } from "./waybill.model";
|
|
6
|
+
export declare type ProcessableDocumentTypes = InvoiceModel | PackingListModel | ExportDeclaration | WaybillModel | DeliveryNotesModel;
|
|
7
|
+
export declare type ProcessableDocumentTypesArray = InvoiceModel[] | PackingListModel[] | ExportDeclaration[] | WaybillModel[] | DeliveryNotesModel[];
|
|
8
|
+
export declare type ProcessableDocumentTypesValue = "invoice" | "packingList" | "exportDeclaration" | "waybill" | "deliveryNotes";
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./waybill.model"), exports);
|
|
|
21
21
|
__exportStar(require("./export-declaration.model"), exports);
|
|
22
22
|
__exportStar(require("./digicust-document.model"), exports);
|
|
23
23
|
__exportStar(require("./delivery-note.model"), exports);
|
|
24
|
+
__exportStar(require("./document-types-helper"), exports);
|
|
@@ -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 } 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 } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* Identifies line items (specific products) listed on a document
|
|
4
4
|
*/
|
|
@@ -9,36 +9,31 @@ export interface LineItemModel {
|
|
|
9
9
|
sourceDocumentIds?: string[];
|
|
10
10
|
caseId?: string;
|
|
11
11
|
isCondensed?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Invoice Line Items
|
|
14
|
-
*/
|
|
15
12
|
position?: Meta<string>;
|
|
16
13
|
code?: Meta<string>;
|
|
17
14
|
materialNumber?: Meta<string>;
|
|
18
15
|
orderNumber?: Meta<string>;
|
|
19
16
|
description?: Meta<string>;
|
|
20
|
-
|
|
17
|
+
customsTariffNumber?: CustomsTariffNumber;
|
|
18
|
+
documentDescription?: Meta<string>;
|
|
21
19
|
quantity?: Quantity;
|
|
22
20
|
unitOfMeasurement?: UnitOfMeasurement;
|
|
23
21
|
countryOfOrigin?: AddressModel;
|
|
24
|
-
itemValue?: Money;
|
|
25
22
|
amountUnit?: Meta<number>;
|
|
26
23
|
currency?: Meta<Currency>;
|
|
24
|
+
itemValue?: Money;
|
|
27
25
|
totalValue?: Money;
|
|
28
26
|
customsValue?: Money;
|
|
29
|
-
|
|
30
|
-
A1070?: string;
|
|
31
|
-
costs?: Money;
|
|
32
|
-
totalFreightCosts?: Money;
|
|
33
|
-
}[];
|
|
27
|
+
totalValueExcludingCharges?: Money;
|
|
34
28
|
discount?: Money;
|
|
35
29
|
discountUnit?: Meta<Currency | "%">;
|
|
30
|
+
customsValueAdditionDeduction?: AdditionDeduction[];
|
|
36
31
|
additionalChargesUnit?: Meta<Currency>;
|
|
32
|
+
weightUnit?: Meta<WeightUnit>;
|
|
37
33
|
netWeight?: Weight;
|
|
38
34
|
totalNetWeight?: Weight;
|
|
39
35
|
grossWeight?: Weight;
|
|
40
36
|
totalGrossWeight?: Weight;
|
|
41
|
-
weightUnit?: Meta<WeightUnit>;
|
|
42
37
|
orderedQuantity?: Quantity;
|
|
43
38
|
itemSize?: Meta<string>;
|
|
44
39
|
itemSpecialUnitMeasure?: Meta<number>;
|
|
@@ -56,16 +51,22 @@ export interface LineItemModel {
|
|
|
56
51
|
packingList?: Meta<string>;
|
|
57
52
|
reference?: Meta<string>;
|
|
58
53
|
CAS?: Meta<string>;
|
|
54
|
+
/** export declaration * */
|
|
55
|
+
packages?: Package[];
|
|
56
|
+
shipper?: CompanyModel;
|
|
57
|
+
preliminaryDocument?: Meta<string>;
|
|
58
|
+
customsProcedure?: Procedure;
|
|
59
|
+
exportingCountry?: AddressModel;
|
|
60
|
+
destinationCountry?: AddressModel;
|
|
61
|
+
documentTypes?: DocumentTypeCode[];
|
|
62
|
+
specialRemarks?: Meta<string>[];
|
|
59
63
|
invoiceNumber?: Meta<string>;
|
|
60
64
|
waybillNumber?: Meta<string>;
|
|
61
65
|
transitNumber?: Meta<string>;
|
|
62
66
|
box40?: Meta<string>;
|
|
63
67
|
guaranteeNumber?: Meta<string>;
|
|
64
68
|
billOfLading?: Meta<string>;
|
|
65
|
-
customsTariffNumber?: CustomsTariffNumber;
|
|
66
69
|
discountText?: string;
|
|
67
|
-
documentDescription?: Meta<string>;
|
|
68
|
-
totalValueExcludingCharges?: Money;
|
|
69
70
|
statisticalValue?: Money;
|
|
70
71
|
/** Customs Duty */
|
|
71
72
|
customsDuty?: CustomsDuty;
|
|
@@ -79,15 +80,6 @@ export interface LineItemModel {
|
|
|
79
80
|
documents?: DigicustDocumentModel[];
|
|
80
81
|
adjustments?: Adjustment[];
|
|
81
82
|
containers?: Container[];
|
|
82
|
-
/** export declaration * */
|
|
83
|
-
shipper?: CompanyModel;
|
|
84
|
-
exportingCountry?: AddressModel;
|
|
85
|
-
destinationCountry?: AddressModel;
|
|
86
|
-
customsProcedure?: Procedure;
|
|
87
|
-
documentTypes?: DocumentTypeCode[];
|
|
88
|
-
preliminaryDocument?: Meta<string>;
|
|
89
|
-
specialRemarks?: Meta<string>[];
|
|
90
|
-
packages?: Package[];
|
|
91
83
|
materialId?: string;
|
|
92
84
|
creationType?: MasterDataCreationType;
|
|
93
85
|
bbox?: Bbox;
|