digicust_types 1.7.30 → 1.7.34
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/aggregated-case-data.model.d.ts +2 -2
- package/lib/models/digicust/aggregated-case-data.model.js +3 -1
- package/lib/models/digicust/incoterm.model.d.ts +25 -0
- package/lib/models/digicust/incoterm.model.js +21 -0
- package/lib/models/digicust/index.d.ts +1 -1
- package/lib/models/digicust/index.js +1 -1
- package/lib/models/digicust/invoice.model.d.ts +2 -2
- package/lib/models/digicust/mean-of-transportation.model.d.ts +1 -0
- package/lib/models/digicust/type-of-business.model.d.ts +2 -0
- package/lib/models/digicust/waybill.model.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from "../common/meta";
|
|
2
2
|
import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
|
|
3
|
-
import {
|
|
3
|
+
import { IncotermModel } from "./incoterm.model";
|
|
4
4
|
import { LineItemModel } from "./line-item.model";
|
|
5
5
|
import { WaybillType } from "./waybill.model";
|
|
6
6
|
import { CaseType } from "./case-type.enum";
|
|
@@ -51,7 +51,7 @@ export interface AggregatedCaseDataModel {
|
|
|
51
51
|
waybillNumber?: Meta<string>;
|
|
52
52
|
weight?: Weight;
|
|
53
53
|
netWeight?: Weight;
|
|
54
|
-
incoterm?:
|
|
54
|
+
incoterm?: IncotermModel;
|
|
55
55
|
placeIncoterm?: AddressModel;
|
|
56
56
|
costIntersection?: CostIntersection;
|
|
57
57
|
customsOffices?: CustomsOffice[];
|
|
@@ -17,7 +17,9 @@ var transit_item_model_1 = require("./transit-item.model");
|
|
|
17
17
|
var condenseAggregated = function (aggregated) {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
return aggregated
|
|
20
|
-
? __assign(__assign({}, aggregated), { items: (_a = aggregated.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return line_item_model_1.condenseLineItem(item); }), transitItems: (_b = aggregated.transitItems) === null || _b === void 0 ? void 0 : _b.map(function (item) {
|
|
20
|
+
? __assign(__assign({}, aggregated), { items: (_a = aggregated.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return line_item_model_1.condenseLineItem(item); }), transitItems: (_b = aggregated.transitItems) === null || _b === void 0 ? void 0 : _b.map(function (item) {
|
|
21
|
+
return transit_item_model_1.condenseTransitLineItem(item);
|
|
22
|
+
}) })
|
|
21
23
|
: null;
|
|
22
24
|
};
|
|
23
25
|
exports.condenseAggregated = condenseAggregated;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Incoterms give information on transport conditions in international trade
|
|
4
|
+
*/
|
|
5
|
+
export interface IncotermModel extends Meta<Incoterm> {
|
|
6
|
+
/** Incoterm written out */
|
|
7
|
+
text?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Incoterms give information on transport conditions in international trade
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Incoterm {
|
|
13
|
+
EXW = "EXW",
|
|
14
|
+
FAS = "FAS",
|
|
15
|
+
FCA = "FCA",
|
|
16
|
+
FOB = "FOB",
|
|
17
|
+
CFR = "CFR",
|
|
18
|
+
CIF = "CIF",
|
|
19
|
+
CIP = "CIP",
|
|
20
|
+
CPT = "CPT",
|
|
21
|
+
DAP = "DAP",
|
|
22
|
+
DPU = "DPU",
|
|
23
|
+
DAT = "DAT",
|
|
24
|
+
DDP = "DDP"
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Incoterm = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Incoterms give information on transport conditions in international trade
|
|
6
|
+
*/
|
|
7
|
+
var Incoterm;
|
|
8
|
+
(function (Incoterm) {
|
|
9
|
+
Incoterm["EXW"] = "EXW";
|
|
10
|
+
Incoterm["FAS"] = "FAS";
|
|
11
|
+
Incoterm["FCA"] = "FCA";
|
|
12
|
+
Incoterm["FOB"] = "FOB";
|
|
13
|
+
Incoterm["CFR"] = "CFR";
|
|
14
|
+
Incoterm["CIF"] = "CIF";
|
|
15
|
+
Incoterm["CIP"] = "CIP";
|
|
16
|
+
Incoterm["CPT"] = "CPT";
|
|
17
|
+
Incoterm["DAP"] = "DAP";
|
|
18
|
+
Incoterm["DPU"] = "DPU";
|
|
19
|
+
Incoterm["DAT"] = "DAT";
|
|
20
|
+
Incoterm["DDP"] = "DDP";
|
|
21
|
+
})(Incoterm = exports.Incoterm || (exports.Incoterm = {}));
|
|
@@ -18,7 +18,7 @@ export * from "./tax-details.model";
|
|
|
18
18
|
export * from "./uploaded-file.model";
|
|
19
19
|
export * from "./consignment-size.enum";
|
|
20
20
|
export * from "./special-measure.model";
|
|
21
|
-
export * from "./incoterm.
|
|
21
|
+
export * from "./incoterm.model";
|
|
22
22
|
export * from "./load-type.enum";
|
|
23
23
|
export * from "./adjustment.model";
|
|
24
24
|
export * from "./container.model";
|
|
@@ -33,7 +33,7 @@ __exportStar(require("./tax-details.model"), exports); // Information about VAT
|
|
|
33
33
|
__exportStar(require("./uploaded-file.model"), exports); // Uploaded files of customs documents
|
|
34
34
|
__exportStar(require("./consignment-size.enum"), exports); // Consignment size
|
|
35
35
|
__exportStar(require("./special-measure.model"), exports); // special measures
|
|
36
|
-
__exportStar(require("./incoterm.
|
|
36
|
+
__exportStar(require("./incoterm.model"), exports); // shipping conditions
|
|
37
37
|
__exportStar(require("./load-type.enum"), exports); // load type information
|
|
38
38
|
__exportStar(require("./adjustment.model"), exports); // classification
|
|
39
39
|
__exportStar(require("./container.model"), exports); // container
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddressModel, CompanyModel, Currency, Money, PackageType, Weight } from "../common";
|
|
2
|
-
import {
|
|
2
|
+
import { IncotermModel } from "./incoterm.model";
|
|
3
3
|
import { LineItemModel } from "./line-item.model";
|
|
4
4
|
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
5
5
|
import { Meta } from "../common/meta";
|
|
@@ -28,7 +28,7 @@ export interface InvoiceModel extends DigicustDocumentModel {
|
|
|
28
28
|
meansOfTransportation?: MeanOfTransportation[];
|
|
29
29
|
packageDimensions?: Meta<string>;
|
|
30
30
|
typeOfBusiness?: TypeOfBusiness;
|
|
31
|
-
incoterm?:
|
|
31
|
+
incoterm?: IncotermModel;
|
|
32
32
|
placeIncoterm?: AddressModel;
|
|
33
33
|
countryOfOrigin?: AddressModel;
|
|
34
34
|
CAS?: Meta<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
|
|
2
2
|
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
3
3
|
import { Meta } from "../common/meta";
|
|
4
|
-
import {
|
|
4
|
+
import { IncotermModel } from "./incoterm.model";
|
|
5
5
|
import { Package } from "./package.model";
|
|
6
6
|
/**
|
|
7
7
|
* Identifies a waybill document
|
|
@@ -22,7 +22,7 @@ export interface WaybillModel extends DigicustDocumentModel {
|
|
|
22
22
|
shippingCost?: Money;
|
|
23
23
|
otherPayments?: Money;
|
|
24
24
|
shippingDate?: DateTimeModel;
|
|
25
|
-
incoterm?:
|
|
25
|
+
incoterm?: IncotermModel;
|
|
26
26
|
placeIncoterm?: AddressModel;
|
|
27
27
|
invoiceNumber?: Meta<string>;
|
|
28
28
|
goodsDescription?: Meta<string>;
|