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.
- package/lib/models/common/address.model.d.ts +1 -0
- package/lib/models/common/dimensions-unit.enum.d.ts +3 -1
- package/lib/models/common/dimensions-unit.enum.js +2 -0
- package/lib/models/common/weight-unit.enum.d.ts +2 -1
- package/lib/models/common/weight-unit.enum.js +1 -0
- package/lib/models/digicust/invoice.model.d.ts +2 -2
- package/lib/models/digicust/line-item.model.d.ts +3 -3
- package/lib/models/digicust/package.model.d.ts +9 -3
- package/package.json +1 -1
|
@@ -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 = {}));
|
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<
|
|
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;
|