digicust_types 1.7.112 → 1.7.116

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.
@@ -17,5 +17,6 @@ export interface AddressModel extends Meta<any> {
17
17
  country?: string;
18
18
  alpha2Code?: string;
19
19
  isEU?: boolean;
20
+ treatyMemberships?: Array<string>;
20
21
  }
21
22
  export declare const condenseAddress: (address: AddressModel) => AddressModel;
@@ -1,5 +1,7 @@
1
1
  export declare enum DimensionsUnit {
2
2
  centimeter = "cm",
3
3
  meter = "m",
4
- feet = "ft"
4
+ feet = "ft",
5
+ decimeter = "dm",
6
+ milimeter = "mm"
5
7
  }
@@ -6,4 +6,6 @@ var DimensionsUnit;
6
6
  DimensionsUnit["centimeter"] = "cm";
7
7
  DimensionsUnit["meter"] = "m";
8
8
  DimensionsUnit["feet"] = "ft";
9
+ DimensionsUnit["decimeter"] = "dm";
10
+ DimensionsUnit["milimeter"] = "mm";
9
11
  })(DimensionsUnit = exports.DimensionsUnit || (exports.DimensionsUnit = {}));
@@ -5,5 +5,6 @@ export declare enum WeightUnit {
5
5
  milligram = "mg",
6
6
  gram = "g",
7
7
  decagram = "dag",
8
- ton = "t"
8
+ ton = "t",
9
+ microgram = "\u00B5g"
9
10
  }
@@ -10,4 +10,5 @@ var WeightUnit;
10
10
  WeightUnit["gram"] = "g";
11
11
  WeightUnit["decagram"] = "dag";
12
12
  WeightUnit["ton"] = "t";
13
+ WeightUnit["microgram"] = "\u00B5g";
13
14
  })(WeightUnit = exports.WeightUnit || (exports.WeightUnit = {}));
@@ -1,5 +1,5 @@
1
1
  import { DigicustDocumentModel, IncotermModel, InvoiceType, LineItemModel, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from ".";
2
- import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight } from "..";
2
+ import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "..";
3
3
  /**
4
4
  * Identifies an invoice
5
5
  */
@@ -31,7 +31,7 @@ export interface InvoiceModel extends DigicustDocumentModel {
31
31
  typeOfPackage?: PackageType;
32
32
  weight?: Weight;
33
33
  netWeight?: Weight;
34
- weightUnit?: Meta<string>;
34
+ weightUnit?: Meta<WeightUnit>;
35
35
  packageDimensions?: Dimensions;
36
36
  numberOfShipments?: Meta<number>;
37
37
  packages?: Package[];
@@ -1,5 +1,5 @@
1
1
  import { Adjustment, Container, DigicustDocumentModel, PreferenceState, Procedure } from ".";
2
- import { AddressModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, UOM, Weight } from "..";
2
+ import { AddressModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, UOM, Weight, WeightUnit } from "..";
3
3
  import { Bbox } from "../common/bbox.model";
4
4
  /**
5
5
  * Identifies line items (specific products) listed on a document
@@ -32,7 +32,7 @@ export interface LineItemModel {
32
32
  itemValue?: Money;
33
33
  totalValue?: Money;
34
34
  customsValue?: Money;
35
- amountUnit?: Meta<Number>;
35
+ amountUnit?: Meta<number>;
36
36
  discount?: Money;
37
37
  discountUnit?: Meta<Currency>;
38
38
  currency: Meta<Currency>;
@@ -40,7 +40,7 @@ export interface LineItemModel {
40
40
  totalNetWeight?: Weight;
41
41
  grossWeight?: Weight;
42
42
  totalGrossWeight?: Weight;
43
- weightUnit?: Meta<Currency>;
43
+ weightUnit?: Meta<WeightUnit>;
44
44
  itemSize?: Meta<string>;
45
45
  buyerArticleNumber?: Meta<string>;
46
46
  buyerOrderNumber?: Meta<string>;
@@ -1,12 +1,18 @@
1
- import { Dimensions, Meta, Weight } from "../common";
1
+ import { Dimensions, Meta, Weight, WeightUnit } from "../common";
2
2
  export interface Package extends Meta<any> {
3
3
  weight?: Weight;
4
4
  netWeight?: Weight;
5
- weightUnit?: Meta<string>;
5
+ weightUnit?: Meta<WeightUnit>;
6
6
  dimensions?: Dimensions;
7
7
  type?: Meta<string>;
8
- marks?: Meta<string>;
9
8
  amount?: Meta<number>;
9
+ weight2?: Weight;
10
+ netWeight2?: Weight;
11
+ weightUnit2?: Meta<WeightUnit>;
12
+ dimensions2?: Dimensions;
13
+ type2?: Meta<string>;
14
+ amount2?: Meta<number>;
15
+ marks?: Meta<string>;
10
16
  ATB?: {
11
17
  ATBnr?: string;
12
18
  position?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.112",
3
+ "version": "1.7.116",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",