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.
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "../common/meta";
2
2
  import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
3
- import { Incoterm } from "./incoterm.enum";
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?: Meta<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) { return transit_item_model_1.condenseTransitLineItem(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.enum";
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.enum"), exports); // shipping conditions
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 { Incoterm } from "./incoterm.enum";
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?: Meta<Incoterm>;
31
+ incoterm?: IncotermModel;
32
32
  placeIncoterm?: AddressModel;
33
33
  countryOfOrigin?: AddressModel;
34
34
  CAS?: Meta<string>;
@@ -6,6 +6,7 @@ export interface MeanOfTransportation extends Meta<MeanOfTransportationMode> {
6
6
  NC_21000?: string;
7
7
  DE_A1990?: string;
8
8
  DE_A1140?: string;
9
+ licensePlate?: string;
9
10
  name?: string;
10
11
  type?: MeanOfTransportationType;
11
12
  /** ISO Code of nationality of the mean */
@@ -6,4 +6,6 @@ import { TypeOfBusinessType } from "./type-of-business.enum";
6
6
  export interface TypeOfBusiness extends Meta<TypeOfBusinessType> {
7
7
  /** Code Austria */
8
8
  NC_25000?: string;
9
+ /** German Code */
10
+ DE_A1150?: string;
9
11
  }
@@ -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 { Incoterm } from "./incoterm.enum";
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?: Meta<Incoterm>;
25
+ incoterm?: IncotermModel;
26
26
  placeIncoterm?: AddressModel;
27
27
  invoiceNumber?: Meta<string>;
28
28
  goodsDescription?: Meta<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.30",
3
+ "version": "1.7.34",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",