@shipengine/connect-carrier-api 4.1.5 → 4.1.7
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/insurance-providers.d.ts +3 -1
- package/lib/models/insurance-providers.js +2 -0
- package/lib/models/insurance-providers.js.map +1 -1
- package/lib/models/package.d.ts +3 -3
- package/lib/models/package.js +2 -2
- package/lib/models/package.js.map +1 -1
- package/lib/models/products.d.ts +30 -0
- package/lib/models/products.js +32 -0
- package/lib/models/products.js.map +1 -0
- package/package.json +1 -1
- package/spec.json +225 -98
- package/src/models/insurance-providers.ts +2 -0
- package/src/models/package.ts +3 -3
- package/src/models/products.ts +31 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -8,5 +8,7 @@ var InsuranceProviders;
|
|
|
8
8
|
InsuranceProviders["ShipStation"] = "ShipStation";
|
|
9
9
|
InsuranceProviders["Carrier"] = "Carrier";
|
|
10
10
|
InsuranceProviders["External"] = "External";
|
|
11
|
+
InsuranceProviders["XCover"] = "XCover";
|
|
12
|
+
InsuranceProviders["ParcelGuard"] = "ParcelGuard";
|
|
11
13
|
})(InsuranceProviders = exports.InsuranceProviders || (exports.InsuranceProviders = {}));
|
|
12
14
|
//# sourceMappingURL=insurance-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insurance-providers.js","sourceRoot":"","sources":["../../src/models/insurance-providers.ts"],"names":[],"mappings":";;;AAAA,0CAA0C;AAC1C,IAAY,
|
|
1
|
+
{"version":3,"file":"insurance-providers.js","sourceRoot":"","sources":["../../src/models/insurance-providers.ts"],"names":[],"mappings":";;;AAAA,0CAA0C;AAC1C,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,iDAA2B,CAAA;IAC3B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;IACjB,iDAA2B,CAAA;AAC7B,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
|
package/lib/models/package.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { WeightDetails } from './units/weight-details';
|
|
|
3
3
|
import { Currency } from './currency';
|
|
4
4
|
import { LabelMessage } from './labels/label-message';
|
|
5
5
|
import { Customs } from './customs';
|
|
6
|
-
import {
|
|
6
|
+
import { Products } from './products';
|
|
7
7
|
/** @description Basic structure for a package */
|
|
8
8
|
export declare class Package {
|
|
9
9
|
/** @description Package code defined for the carrier in ShipEngine. */
|
|
@@ -20,6 +20,6 @@ export declare class Package {
|
|
|
20
20
|
label_messages?: LabelMessage;
|
|
21
21
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
22
22
|
customs?: Customs;
|
|
23
|
-
/** @description List of
|
|
24
|
-
|
|
23
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
24
|
+
products?: Products[];
|
|
25
25
|
}
|
package/lib/models/package.js
CHANGED
|
@@ -17,8 +17,8 @@ class Package {
|
|
|
17
17
|
label_messages;
|
|
18
18
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
19
19
|
customs;
|
|
20
|
-
/** @description List of
|
|
21
|
-
|
|
20
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
21
|
+
products;
|
|
22
22
|
}
|
|
23
23
|
exports.Package = Package;
|
|
24
24
|
//# sourceMappingURL=package.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/models/package.ts"],"names":[],"mappings":";;;AAOA,iDAAiD;AACjD,MAAa,OAAO;IAClB,uEAAuE;IACvE,YAAY,CAAU;IACtB,sIAAsI;IACtI,mBAAmB,CAAU;IAC7B,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;IAClB,
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/models/package.ts"],"names":[],"mappings":";;;AAOA,iDAAiD;AACjD,MAAa,OAAO;IAClB,uEAAuE;IACvE,YAAY,CAAU;IACtB,sIAAsI;IACtI,mBAAmB,CAAU;IAC7B,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;IAClB,oGAAoG;IACpG,QAAQ,CAAc;CACvB;AAjBD,0BAiBC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WeightDetails } from './units/weight-details';
|
|
2
|
+
import { Currency } from './currency';
|
|
3
|
+
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
|
+
/** @description Basic structure for a product */
|
|
5
|
+
export declare class Products {
|
|
6
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
9
|
+
quantity?: number;
|
|
10
|
+
/** @description The user specified declared customs value of this customs item. Generally, this value needs to be greater than 0 to be accepted through customs */
|
|
11
|
+
value?: Currency;
|
|
12
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
13
|
+
country_of_origin?: string;
|
|
14
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
15
|
+
harmonized_tariff_code?: string;
|
|
16
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
17
|
+
sku?: string;
|
|
18
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
19
|
+
sku_description?: string;
|
|
20
|
+
/** @description Detailed information about the weight of this item */
|
|
21
|
+
item_weight?: WeightDetails;
|
|
22
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
23
|
+
product_url?: string;
|
|
24
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
25
|
+
vat_rate?: number;
|
|
26
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
27
|
+
mid_code?: string;
|
|
28
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
|
+
dangerous_goods?: DangerousGoods[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Products = void 0;
|
|
4
|
+
/** @description Basic structure for a product */
|
|
5
|
+
class Products {
|
|
6
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
7
|
+
description;
|
|
8
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
9
|
+
quantity;
|
|
10
|
+
/** @description The user specified declared customs value of this customs item. Generally, this value needs to be greater than 0 to be accepted through customs */
|
|
11
|
+
value;
|
|
12
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
13
|
+
country_of_origin;
|
|
14
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
15
|
+
harmonized_tariff_code;
|
|
16
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
17
|
+
sku;
|
|
18
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
19
|
+
sku_description;
|
|
20
|
+
/** @description Detailed information about the weight of this item */
|
|
21
|
+
item_weight;
|
|
22
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
23
|
+
product_url;
|
|
24
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
25
|
+
vat_rate;
|
|
26
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
27
|
+
mid_code;
|
|
28
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
|
+
dangerous_goods;
|
|
30
|
+
}
|
|
31
|
+
exports.Products = Products;
|
|
32
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/models/products.ts"],"names":[],"mappings":";;;AAIA,iDAAiD;AACjD,MAAa,QAAQ;IACnB,mJAAmJ;IACnJ,WAAW,CAAU;IACrB,4GAA4G;IAC5G,QAAQ,CAAU;IAClB,mKAAmK;IACnK,KAAK,CAAY;IACjB,sFAAsF;IACtF,iBAAiB,CAAU;IAC3B,8GAA8G;IAC9G,sBAAsB,CAAU;IAChC,oGAAoG;IACpG,GAAG,CAAU;IACb,gHAAgH;IAChH,eAAe,CAAU;IACzB,sEAAsE;IACtE,WAAW,CAAiB;IAC5B,0LAA0L;IAC1L,WAAW,CAAU;IACrB,oHAAoH;IACpH,QAAQ,CAAU;IAClB,yNAAyN;IACzN,QAAQ,CAAU;IAClB,qGAAqG;IACrG,eAAe,CAAoB;CACpC;AAzBD,4BAyBC"}
|
package/package.json
CHANGED
package/spec.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Shipping API",
|
|
5
5
|
"description": "This API specification describes the canonical ShipEngine Shipping API connector module.",
|
|
6
|
-
"version": "1.18.
|
|
6
|
+
"version": "1.18.5"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -1893,6 +1893,99 @@
|
|
|
1893
1893
|
"additionalProperties": false,
|
|
1894
1894
|
"description": "This model represents the amount of the dangerous goods."
|
|
1895
1895
|
},
|
|
1896
|
+
"DangerousGoods": {
|
|
1897
|
+
"type": "object",
|
|
1898
|
+
"properties": {
|
|
1899
|
+
"id_number": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "UN number to identify the dangerous goods.",
|
|
1902
|
+
"nullable": true
|
|
1903
|
+
},
|
|
1904
|
+
"shipping_name": {
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"description": "Trade description of the dangerous goods.",
|
|
1907
|
+
"nullable": true
|
|
1908
|
+
},
|
|
1909
|
+
"technical_name": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"description": "Recognized Technical or chemical name of dangerous goods.",
|
|
1912
|
+
"nullable": true
|
|
1913
|
+
},
|
|
1914
|
+
"product_class": {
|
|
1915
|
+
"type": "string",
|
|
1916
|
+
"description": "Dangerous goods product class based on regulation.",
|
|
1917
|
+
"nullable": true
|
|
1918
|
+
},
|
|
1919
|
+
"product_class_subsidiary": {
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"description": "A secondary of product class for substances presenting more than one particular hazard",
|
|
1922
|
+
"nullable": true
|
|
1923
|
+
},
|
|
1924
|
+
"packaging_group": {
|
|
1925
|
+
"$ref": "#/components/schemas/PackagingGroupEnum"
|
|
1926
|
+
},
|
|
1927
|
+
"dangerous_amount": {
|
|
1928
|
+
"$ref": "#/components/schemas/DangerousAmountDetails"
|
|
1929
|
+
},
|
|
1930
|
+
"quantity": {
|
|
1931
|
+
"type": "number",
|
|
1932
|
+
"description": "Quantity of dangerous goods.",
|
|
1933
|
+
"format": "double",
|
|
1934
|
+
"nullable": true
|
|
1935
|
+
},
|
|
1936
|
+
"packaging_instruction": {
|
|
1937
|
+
"type": "string",
|
|
1938
|
+
"description": "The specific standardized packaging instructions from the relevant regulatory agency that have been applied to the parcel/container.",
|
|
1939
|
+
"nullable": true
|
|
1940
|
+
},
|
|
1941
|
+
"packaging_instruction_section": {
|
|
1942
|
+
"$ref": "#/components/schemas/PackageInstructionSectionEnum"
|
|
1943
|
+
},
|
|
1944
|
+
"packaging_type": {
|
|
1945
|
+
"type": "string",
|
|
1946
|
+
"description": "The type of exterior packaging used to contain the dangerous good.",
|
|
1947
|
+
"nullable": true
|
|
1948
|
+
},
|
|
1949
|
+
"transport_mean": {
|
|
1950
|
+
"$ref": "#/components/schemas/TransportMeanEnum"
|
|
1951
|
+
},
|
|
1952
|
+
"transport_category": {
|
|
1953
|
+
"type": "string",
|
|
1954
|
+
"description": "Transport category assign to dangerous goods for the transport purpose.",
|
|
1955
|
+
"nullable": true
|
|
1956
|
+
},
|
|
1957
|
+
"regulation_authority": {
|
|
1958
|
+
"type": "string",
|
|
1959
|
+
"description": "Name of the regulatory authority.",
|
|
1960
|
+
"nullable": true
|
|
1961
|
+
},
|
|
1962
|
+
"regulation_level": {
|
|
1963
|
+
"$ref": "#/components/schemas/RegulationLevelEnum"
|
|
1964
|
+
},
|
|
1965
|
+
"radioactive": {
|
|
1966
|
+
"type": "boolean",
|
|
1967
|
+
"description": "Indication if the substance is radioactive.",
|
|
1968
|
+
"nullable": true
|
|
1969
|
+
},
|
|
1970
|
+
"reportable_quantity": {
|
|
1971
|
+
"type": "boolean",
|
|
1972
|
+
"description": "Indication if the substance needs to be reported to regulatory authority based on the quantity.",
|
|
1973
|
+
"nullable": true
|
|
1974
|
+
},
|
|
1975
|
+
"tunnel_code": {
|
|
1976
|
+
"type": "string",
|
|
1977
|
+
"description": "Defines which types of tunnels the shipment is allowed to go through",
|
|
1978
|
+
"nullable": true
|
|
1979
|
+
},
|
|
1980
|
+
"additional_description": {
|
|
1981
|
+
"type": "string",
|
|
1982
|
+
"description": "Provider additonal description regarding the dangerous goods. This is used as a placed holder to provider additional context and varies by carrier",
|
|
1983
|
+
"nullable": true
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
"additionalProperties": false,
|
|
1987
|
+
"description": "Dangerous Goods information passed to the carrier"
|
|
1988
|
+
},
|
|
1896
1989
|
"DimensionDetails": {
|
|
1897
1990
|
"type": "object",
|
|
1898
1991
|
"properties": {
|
|
@@ -2519,7 +2612,9 @@
|
|
|
2519
2612
|
"None",
|
|
2520
2613
|
"ShipStation",
|
|
2521
2614
|
"Carrier",
|
|
2522
|
-
"External"
|
|
2615
|
+
"External",
|
|
2616
|
+
"XCover",
|
|
2617
|
+
"ParcelGuard"
|
|
2523
2618
|
],
|
|
2524
2619
|
"type": "string"
|
|
2525
2620
|
},
|
|
@@ -2819,110 +2914,34 @@
|
|
|
2819
2914
|
"customs": {
|
|
2820
2915
|
"$ref": "#/components/schemas/Customs"
|
|
2821
2916
|
},
|
|
2822
|
-
"
|
|
2917
|
+
"products": {
|
|
2823
2918
|
"type": "array",
|
|
2824
2919
|
"items": {
|
|
2825
|
-
"$ref": "#/components/schemas/
|
|
2920
|
+
"$ref": "#/components/schemas/Products"
|
|
2826
2921
|
},
|
|
2827
|
-
"description": "List of
|
|
2922
|
+
"description": "List of products associated with this package.",
|
|
2828
2923
|
"nullable": true
|
|
2829
2924
|
}
|
|
2830
2925
|
},
|
|
2831
2926
|
"additionalProperties": false,
|
|
2832
2927
|
"description": "This model represents an individual package that is part of a shipment."
|
|
2833
2928
|
},
|
|
2834
|
-
"
|
|
2835
|
-
"
|
|
2836
|
-
|
|
2837
|
-
"
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
"
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
"nullable": true
|
|
2851
|
-
},
|
|
2852
|
-
"product_class": {
|
|
2853
|
-
"type": "string",
|
|
2854
|
-
"description": "Dangerous goods product class based on regulation.",
|
|
2855
|
-
"nullable": true
|
|
2856
|
-
},
|
|
2857
|
-
"product_class_subsidiary": {
|
|
2858
|
-
"type": "string",
|
|
2859
|
-
"description": "A secondary of product class for substances presenting more than one particular hazard.",
|
|
2860
|
-
"nullable": true
|
|
2861
|
-
},
|
|
2862
|
-
"packaging_group": {
|
|
2863
|
-
"$ref": "#/components/schemas/PackagingGroupTypes"
|
|
2864
|
-
},
|
|
2865
|
-
"dangerous_amount": {
|
|
2866
|
-
"$ref": "#/components/schemas/DangerousAmountDetails"
|
|
2867
|
-
},
|
|
2868
|
-
"quantity": {
|
|
2869
|
-
"type": "number",
|
|
2870
|
-
"description": "Quantity of dangerous goods.",
|
|
2871
|
-
"format": "double",
|
|
2872
|
-
"nullable": true
|
|
2873
|
-
},
|
|
2874
|
-
"packaging_instruction": {
|
|
2875
|
-
"type": "string",
|
|
2876
|
-
"description": "The specific standardized packaging instructions from the relevant regulatory agency that have been applied to the parcel/container.",
|
|
2877
|
-
"nullable": true
|
|
2878
|
-
},
|
|
2879
|
-
"packaging_instruction_section": {
|
|
2880
|
-
"$ref": "#/components/schemas/PackageInstructionSectionTypes"
|
|
2881
|
-
},
|
|
2882
|
-
"packaging_type": {
|
|
2883
|
-
"type": "string",
|
|
2884
|
-
"description": "The type of exterior packaging used to contain the dangerous good.",
|
|
2885
|
-
"nullable": true
|
|
2886
|
-
},
|
|
2887
|
-
"transport_mean": {
|
|
2888
|
-
"$ref": "#/components/schemas/TransportMeanTypes"
|
|
2889
|
-
},
|
|
2890
|
-
"transport_category": {
|
|
2891
|
-
"type": "string",
|
|
2892
|
-
"description": "Transport category assign to dangerous goods for the transport purpose.",
|
|
2893
|
-
"nullable": true
|
|
2894
|
-
},
|
|
2895
|
-
"regulation_authority": {
|
|
2896
|
-
"type": "string",
|
|
2897
|
-
"description": "Name of the regulatory authority.",
|
|
2898
|
-
"nullable": true
|
|
2899
|
-
},
|
|
2900
|
-
"regulation_level": {
|
|
2901
|
-
"$ref": "#/components/schemas/RegulationLevelTypes"
|
|
2902
|
-
},
|
|
2903
|
-
"radioactive": {
|
|
2904
|
-
"type": "boolean",
|
|
2905
|
-
"description": "Indication if the substance is radioactive.",
|
|
2906
|
-
"nullable": true
|
|
2907
|
-
},
|
|
2908
|
-
"reportable_quantity": {
|
|
2909
|
-
"type": "boolean",
|
|
2910
|
-
"description": "Indication if the substance needs to be reported to regulatory authority based on the quantity.",
|
|
2911
|
-
"nullable": true
|
|
2912
|
-
},
|
|
2913
|
-
"tunnel_code": {
|
|
2914
|
-
"type": "string",
|
|
2915
|
-
"description": "Defines which types of tunnels the shipment is allowed to go through.",
|
|
2916
|
-
"nullable": true
|
|
2917
|
-
},
|
|
2918
|
-
"additional_description": {
|
|
2919
|
-
"type": "string",
|
|
2920
|
-
"description": "Provider additonal description regarding the dangerous goods. This is used as a placed holder to provider additional context and varies by carrier.",
|
|
2921
|
-
"nullable": true
|
|
2922
|
-
}
|
|
2923
|
-
},
|
|
2924
|
-
"additionalProperties": false,
|
|
2925
|
-
"description": "This model represents an dangerous good information that is part of a package."
|
|
2929
|
+
"PackageInstructionSectionEnum": {
|
|
2930
|
+
"enum": [
|
|
2931
|
+
"section_1",
|
|
2932
|
+
"section_2",
|
|
2933
|
+
"section_1A",
|
|
2934
|
+
"section_1B"
|
|
2935
|
+
],
|
|
2936
|
+
"type": "string"
|
|
2937
|
+
},
|
|
2938
|
+
"PackagingGroupEnum": {
|
|
2939
|
+
"enum": [
|
|
2940
|
+
"i",
|
|
2941
|
+
"ii",
|
|
2942
|
+
"iii"
|
|
2943
|
+
],
|
|
2944
|
+
"type": "string"
|
|
2926
2945
|
},
|
|
2927
2946
|
"PickupConfirmation": {
|
|
2928
2947
|
"type": "object",
|
|
@@ -3072,6 +3091,92 @@
|
|
|
3072
3091
|
"additionalProperties": false,
|
|
3073
3092
|
"description": "This model represents a window of time a pickup could be made."
|
|
3074
3093
|
},
|
|
3094
|
+
"Products": {
|
|
3095
|
+
"required": [
|
|
3096
|
+
"value"
|
|
3097
|
+
],
|
|
3098
|
+
"type": "object",
|
|
3099
|
+
"properties": {
|
|
3100
|
+
"description": {
|
|
3101
|
+
"type": "string",
|
|
3102
|
+
"description": "A user specified free form string describing this customs item. If the field is absent the user has\r\nnot specified a description.",
|
|
3103
|
+
"nullable": true
|
|
3104
|
+
},
|
|
3105
|
+
"quantity": {
|
|
3106
|
+
"type": "integer",
|
|
3107
|
+
"description": "The user specified count of items in this declaration. This value should be 1 or greater",
|
|
3108
|
+
"format": "int32"
|
|
3109
|
+
},
|
|
3110
|
+
"value": {
|
|
3111
|
+
"required": [
|
|
3112
|
+
"currency",
|
|
3113
|
+
"amount"
|
|
3114
|
+
],
|
|
3115
|
+
"type": "object",
|
|
3116
|
+
"properties": {
|
|
3117
|
+
"amount": {
|
|
3118
|
+
"type": "string",
|
|
3119
|
+
"description": "Decimal currency value, as a string."
|
|
3120
|
+
},
|
|
3121
|
+
"currency": {
|
|
3122
|
+
"type": "string",
|
|
3123
|
+
"description": "Alpha-3 currency code complying with ISO 4217."
|
|
3124
|
+
}
|
|
3125
|
+
},
|
|
3126
|
+
"description": "The user specified declared customs value of this customs item. Generally, this value needs to be greater\r\nthan 0 to be accepted through customs.",
|
|
3127
|
+
"nullable": true
|
|
3128
|
+
},
|
|
3129
|
+
"country_of_origin": {
|
|
3130
|
+
"type": "string",
|
|
3131
|
+
"description": "The user specified declared country of origin of this customs item.",
|
|
3132
|
+
"nullable": true
|
|
3133
|
+
},
|
|
3134
|
+
"harmonized_tariff_code": {
|
|
3135
|
+
"type": "string",
|
|
3136
|
+
"description": "The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information.",
|
|
3137
|
+
"nullable": true
|
|
3138
|
+
},
|
|
3139
|
+
"sku": {
|
|
3140
|
+
"type": "string",
|
|
3141
|
+
"description": "The user specified SKU of this customs item. This field is completely free form.",
|
|
3142
|
+
"nullable": true
|
|
3143
|
+
},
|
|
3144
|
+
"sku_description": {
|
|
3145
|
+
"type": "string",
|
|
3146
|
+
"description": "The user specified SKU description of this customs item. This field is completely free form.",
|
|
3147
|
+
"nullable": true
|
|
3148
|
+
},
|
|
3149
|
+
"item_weight": {
|
|
3150
|
+
"$ref": "#/components/schemas/WeightDetails"
|
|
3151
|
+
},
|
|
3152
|
+
"product_url": {
|
|
3153
|
+
"type": "string",
|
|
3154
|
+
"description": "A link to the item being shipped on the seller's website, used by customs officials\r\nto visually compare the item in the package to the available photo on the website.",
|
|
3155
|
+
"nullable": true
|
|
3156
|
+
},
|
|
3157
|
+
"vat_rate": {
|
|
3158
|
+
"type": "number",
|
|
3159
|
+
"description": "The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1.",
|
|
3160
|
+
"format": "double",
|
|
3161
|
+
"nullable": true
|
|
3162
|
+
},
|
|
3163
|
+
"mid_code": {
|
|
3164
|
+
"type": "string",
|
|
3165
|
+
"description": "The Manufacturer Identification Code (MID). It is ussed as an alternative to the full\r\nname and address of a manufacturer, shipper or exporter and is always required for\r\nU.S. formal customs entries.",
|
|
3166
|
+
"nullable": true
|
|
3167
|
+
},
|
|
3168
|
+
"dangerous_goods": {
|
|
3169
|
+
"type": "array",
|
|
3170
|
+
"items": {
|
|
3171
|
+
"$ref": "#/components/schemas/DangerousGoods"
|
|
3172
|
+
},
|
|
3173
|
+
"description": "List of dangerous Goods model associated with this package passed to the carrier.",
|
|
3174
|
+
"nullable": true
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
"additionalProperties": false,
|
|
3178
|
+
"description": "This model represents the product information for a single item."
|
|
3179
|
+
},
|
|
3075
3180
|
"PudoLocation": {
|
|
3076
3181
|
"required": [
|
|
3077
3182
|
"postal_code",
|
|
@@ -3234,6 +3339,15 @@
|
|
|
3234
3339
|
"additionalProperties": false,
|
|
3235
3340
|
"description": "This model represents the successful response for a registration request."
|
|
3236
3341
|
},
|
|
3342
|
+
"RegulationLevelEnum": {
|
|
3343
|
+
"enum": [
|
|
3344
|
+
"lightly_regulated",
|
|
3345
|
+
"fully_regulated",
|
|
3346
|
+
"limited_quantities",
|
|
3347
|
+
"excepted_quantity"
|
|
3348
|
+
],
|
|
3349
|
+
"type": "string"
|
|
3350
|
+
},
|
|
3237
3351
|
"RelayPoint": {
|
|
3238
3352
|
"required": [
|
|
3239
3353
|
"opening_times",
|
|
@@ -3790,7 +3904,11 @@
|
|
|
3790
3904
|
"pccc",
|
|
3791
3905
|
"oss",
|
|
3792
3906
|
"passport",
|
|
3793
|
-
"abn"
|
|
3907
|
+
"abn",
|
|
3908
|
+
"nif",
|
|
3909
|
+
"inn",
|
|
3910
|
+
"cpf",
|
|
3911
|
+
"cnpj"
|
|
3794
3912
|
],
|
|
3795
3913
|
"type": "string",
|
|
3796
3914
|
"description": "Specifies the supported tax identification types."
|
|
@@ -4115,6 +4233,15 @@
|
|
|
4115
4233
|
"additionalProperties": false,
|
|
4116
4234
|
"description": "This model represents the successful response from a tracking request."
|
|
4117
4235
|
},
|
|
4236
|
+
"TransportMeanEnum": {
|
|
4237
|
+
"enum": [
|
|
4238
|
+
"ground",
|
|
4239
|
+
"water",
|
|
4240
|
+
"cargo_aircraft_only",
|
|
4241
|
+
"passenger_aircraft"
|
|
4242
|
+
],
|
|
4243
|
+
"type": "string"
|
|
4244
|
+
},
|
|
4118
4245
|
"UpdateMethods": {
|
|
4119
4246
|
"enum": [
|
|
4120
4247
|
"append",
|
package/src/models/package.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { WeightDetails } from './units/weight-details';
|
|
|
3
3
|
import { Currency } from './currency';
|
|
4
4
|
import { LabelMessage } from './labels/label-message';
|
|
5
5
|
import { Customs } from './customs';
|
|
6
|
-
import {
|
|
6
|
+
import { Products } from './products';
|
|
7
7
|
|
|
8
8
|
/** @description Basic structure for a package */
|
|
9
9
|
export class Package {
|
|
@@ -21,6 +21,6 @@ export class Package {
|
|
|
21
21
|
label_messages?: LabelMessage;
|
|
22
22
|
/** @description Basic structure for a customs declaration (Only available on international shipments) */
|
|
23
23
|
customs?: Customs;
|
|
24
|
-
/** @description List of
|
|
25
|
-
|
|
24
|
+
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
25
|
+
products?: Products[];
|
|
26
26
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WeightDetails } from './units/weight-details';
|
|
2
|
+
import { Currency } from './currency';
|
|
3
|
+
import { DangerousGoods } from './dangerous-good/dangerous-goods';
|
|
4
|
+
|
|
5
|
+
/** @description Basic structure for a product */
|
|
6
|
+
export class Products {
|
|
7
|
+
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** @description The user specified count of items in this declaration. This value should be 1 or greater */
|
|
10
|
+
quantity?: number;
|
|
11
|
+
/** @description The user specified declared customs value of this customs item. Generally, this value needs to be greater than 0 to be accepted through customs */
|
|
12
|
+
value?: Currency;
|
|
13
|
+
/** @description The user specified declared country of origin of this customs item */
|
|
14
|
+
country_of_origin?: string;
|
|
15
|
+
/** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
|
|
16
|
+
harmonized_tariff_code?: string;
|
|
17
|
+
/** @description The user specified SKU of this customs item. This field is completely free form. */
|
|
18
|
+
sku?: string;
|
|
19
|
+
/** @description The user specified SKU description of this customs item. This field is completely free form. */
|
|
20
|
+
sku_description?: string;
|
|
21
|
+
/** @description Detailed information about the weight of this item */
|
|
22
|
+
item_weight?: WeightDetails;
|
|
23
|
+
/** @description A link to the item being shipped on the seller's website, used by customs officials to visually compare the item in the package to the available photo on the website. */
|
|
24
|
+
product_url?: string;
|
|
25
|
+
/** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
|
|
26
|
+
vat_rate?: number;
|
|
27
|
+
/** @description The Manufacturer Identification Code (MID). It is ussed as an alternative to the full name and address of a manufacturer, shipper or exporter and is always required for U.S. formal customs entries. */
|
|
28
|
+
mid_code?: string;
|
|
29
|
+
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
30
|
+
dangerous_goods?: DangerousGoods[];
|
|
31
|
+
}
|