@shipengine/connect-carrier-api 4.8.13 → 4.9.1
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/customs/customs-item.d.ts +1 -1
- package/lib/models/customs/customs-item.js +1 -1
- package/lib/models/customs/customs-item.js.map +1 -1
- package/lib/models/customs/customs-schema.js +1 -1
- package/lib/models/customs/customs.d.ts +1 -1
- package/lib/models/customs/customs.js +1 -1
- package/lib/models/customs/customs.js.map +1 -1
- package/lib/models/package.d.ts +1 -1
- package/lib/models/package.js +1 -1
- package/lib/models/package.js.map +1 -1
- package/lib/models/taxes/tax-identifier-type.d.ts +3 -1
- package/lib/models/taxes/tax-identifier-type.js +2 -0
- package/lib/models/taxes/tax-identifier-type.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +1 -93
- package/src/models/customs/customs-item.ts +1 -1
- package/src/models/customs/customs-schema.ts +1 -1
- package/src/models/customs/customs.ts +1 -1
- package/src/models/package.ts +1 -1
- package/src/models/taxes/tax-identifier-type.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Currency } from '../currency';
|
|
2
2
|
import { WeightDetails } from '../units';
|
|
3
|
-
/** @
|
|
3
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
4
4
|
export declare class CustomsItem {
|
|
5
5
|
/** @description A user specified free form string describing this customs item. If the field is absent the user has not specified a description */
|
|
6
6
|
description?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomsItem = void 0;
|
|
4
|
-
/** @
|
|
4
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
5
5
|
class CustomsItem {
|
|
6
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
7
|
description;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"customs-item.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item.ts"],"names":[],"mappings":";;;AAGA,0FAA0F;AAC1F,MAAa,WAAW;IACtB,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;CACnB;AAvBD,kCAuBC"}
|
|
@@ -13,7 +13,7 @@ const customs_charges_schema_1 = require("./customs-charges-schema");
|
|
|
13
13
|
exports.CustomsSchema = joi_1.default.object({
|
|
14
14
|
contents: customs_content_types_schema_1.CustomsContentTypesSchema.optional(),
|
|
15
15
|
non_delivery: customs_non_delivery_schema_1.CustomsNonDeliverySchema.optional(),
|
|
16
|
-
customs_items: joi_1.default.array().items(customs_item_schema_1.CustomsItemSchema).
|
|
16
|
+
customs_items: joi_1.default.array().items(customs_item_schema_1.CustomsItemSchema).optional(),
|
|
17
17
|
buyer_shipping_amount_paid: currency_schema_1.CurrencySchema.optional(),
|
|
18
18
|
duties_paid: currency_schema_1.CurrencySchema.optional(),
|
|
19
19
|
declaration: joi_1.default.string().optional(),
|
|
@@ -11,7 +11,7 @@ export declare class Customs {
|
|
|
11
11
|
contents?: CustomsContentTypes;
|
|
12
12
|
/** @description Indicates what the seller would like done in case of an issue with delivery */
|
|
13
13
|
non_delivery?: CustomsNonDelivery;
|
|
14
|
-
/** @
|
|
14
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
15
15
|
customs_items: CustomsItem[];
|
|
16
16
|
/** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
|
|
17
17
|
buyer_shipping_amount_paid?: Currency;
|
|
@@ -7,7 +7,7 @@ class Customs {
|
|
|
7
7
|
contents;
|
|
8
8
|
/** @description Indicates what the seller would like done in case of an issue with delivery */
|
|
9
9
|
non_delivery;
|
|
10
|
-
/** @
|
|
10
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
11
11
|
customs_items;
|
|
12
12
|
/** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
|
|
13
13
|
buyer_shipping_amount_paid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAQA,6DAA6D;AAC7D,MAAa,OAAO;IAClB,gFAAgF;IAChF,QAAQ,CAAuB;IAC/B,+FAA+F;IAC/F,YAAY,CAAsB;IAClC,
|
|
1
|
+
{"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AAQA,6DAA6D;AAC7D,MAAa,OAAO;IAClB,gFAAgF;IAChF,QAAQ,CAAuB;IAC/B,+FAA+F;IAC/F,YAAY,CAAsB;IAClC,0FAA0F;IAC1F,aAAa,CAAiB;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAY;IACtC,iJAAiJ;IACjJ,WAAW,CAAY;IACvB,gFAAgF;IAChF,WAAW,CAAU;IACrB,iGAAiG;IACjG,mBAAmB,CAAoB;IACvC,oGAAoG;IACpG,kBAAkB,CAAoB;IACtC,oDAAoD;IACpD,0BAA0B,CAAkB;IAC5C,sDAAsD;IACtD,oBAAoB,CAAU;IAC9B,sNAAsN;IACtN,yBAAyB,CAAU;CACpC;AAvBD,0BAuBC"}
|
package/lib/models/package.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class Package {
|
|
|
18
18
|
insured_value: Currency;
|
|
19
19
|
/** @description The message the seller requested to have on their label */
|
|
20
20
|
label_messages?: LabelMessage;
|
|
21
|
-
/** @
|
|
21
|
+
/** @deprecated For shipment-level information, the shipment `customs` object should be used, and for parcel-level items, the `packages.products` array should be used. */
|
|
22
22
|
customs?: Customs;
|
|
23
23
|
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
24
24
|
products?: Products[];
|
package/lib/models/package.js
CHANGED
|
@@ -15,7 +15,7 @@ class Package {
|
|
|
15
15
|
insured_value;
|
|
16
16
|
/** @description The message the seller requested to have on their label */
|
|
17
17
|
label_messages;
|
|
18
|
-
/** @
|
|
18
|
+
/** @deprecated For shipment-level information, the shipment `customs` object should be used, and for parcel-level items, the `packages.products` array should be used. */
|
|
19
19
|
customs;
|
|
20
20
|
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
21
21
|
products;
|
|
@@ -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,
|
|
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,0KAA0K;IAC1K,OAAO,CAAW;IAClB,oGAAoG;IACpG,QAAQ,CAAc;CACvB;AAjBD,0BAiBC"}
|
|
@@ -37,5 +37,7 @@ var TaxIdentifierType;
|
|
|
37
37
|
TaxIdentifierType["PASSPORT"] = "passport";
|
|
38
38
|
/** @description Australian Business Number*/
|
|
39
39
|
TaxIdentifierType["ABN"] = "abn";
|
|
40
|
+
/** @description Windsor Framework Number*/
|
|
41
|
+
TaxIdentifierType["UKIMS"] = "ukims";
|
|
40
42
|
})(TaxIdentifierType || (exports.TaxIdentifierType = TaxIdentifierType = {}));
|
|
41
43
|
//# sourceMappingURL=tax-identifier-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tax-identifier-type.js","sourceRoot":"","sources":["../../../src/models/taxes/tax-identifier-type.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,IAAY,
|
|
1
|
+
{"version":3,"file":"tax-identifier-type.js","sourceRoot":"","sources":["../../../src/models/taxes/tax-identifier-type.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,IAAY,iBAoCX;AApCD,WAAY,iBAAiB;IAC3B,8CAA8C;IAC9C,gCAAW,CAAA;IACX,mDAAmD;IACnD,gCAAW,CAAA;IACX,2CAA2C;IAC3C,gCAAW,CAAA;IACX,0DAA0D;IAC1D,gCAAW,CAAA;IACX,8EAA8E;IAC9E,kCAAa,CAAA;IACb;;;;;OAKG;IACH,kCAAa,CAAA;IACb;;OAEG;IACH,gCAAW,CAAA;IACX;;OAEG;IACH,kCAAa,CAAA;IACb,yDAAyD;IACzD,kCAAa,CAAA;IACb,uCAAuC;IACvC,gCAAW,CAAA;IACX,kCAAkC;IAClC,0CAAqB,CAAA;IACrB,6CAA6C;IAC7C,gCAAW,CAAA;IACX,2CAA2C;IAC3C,oCAAe,CAAA;AACjB,CAAC,EApCW,iBAAiB,iCAAjB,iBAAiB,QAoC5B"}
|
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.
|
|
6
|
+
"version": "1.23.0"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -1732,9 +1732,6 @@
|
|
|
1732
1732
|
"description": "This model represents the charges related with customs."
|
|
1733
1733
|
},
|
|
1734
1734
|
"Customs": {
|
|
1735
|
-
"required": [
|
|
1736
|
-
"customs_items"
|
|
1737
|
-
],
|
|
1738
1735
|
"type": "object",
|
|
1739
1736
|
"properties": {
|
|
1740
1737
|
"contents": {
|
|
@@ -1743,14 +1740,6 @@
|
|
|
1743
1740
|
"non_delivery": {
|
|
1744
1741
|
"$ref": "#/components/schemas/CustomsNonDelivery"
|
|
1745
1742
|
},
|
|
1746
|
-
"customs_items": {
|
|
1747
|
-
"type": "array",
|
|
1748
|
-
"items": {
|
|
1749
|
-
"$ref": "#/components/schemas/CustomsItem"
|
|
1750
|
-
},
|
|
1751
|
-
"description": "List of customs items to declare",
|
|
1752
|
-
"nullable": true
|
|
1753
|
-
},
|
|
1754
1743
|
"buyer_shipping_amount_paid": {
|
|
1755
1744
|
"required": [
|
|
1756
1745
|
"currency",
|
|
@@ -1830,84 +1819,6 @@
|
|
|
1830
1819
|
],
|
|
1831
1820
|
"type": "string"
|
|
1832
1821
|
},
|
|
1833
|
-
"CustomsItem": {
|
|
1834
|
-
"required": [
|
|
1835
|
-
"value"
|
|
1836
|
-
],
|
|
1837
|
-
"type": "object",
|
|
1838
|
-
"properties": {
|
|
1839
|
-
"description": {
|
|
1840
|
-
"type": "string",
|
|
1841
|
-
"description": "A user specified free form string describing this customs item. If the field is absent the user has\r\nnot specified a description.",
|
|
1842
|
-
"nullable": true
|
|
1843
|
-
},
|
|
1844
|
-
"quantity": {
|
|
1845
|
-
"type": "integer",
|
|
1846
|
-
"description": "The user specified count of items in this declaration. This value should be 1 or greater",
|
|
1847
|
-
"format": "int32"
|
|
1848
|
-
},
|
|
1849
|
-
"value": {
|
|
1850
|
-
"required": [
|
|
1851
|
-
"currency",
|
|
1852
|
-
"amount"
|
|
1853
|
-
],
|
|
1854
|
-
"type": "object",
|
|
1855
|
-
"properties": {
|
|
1856
|
-
"amount": {
|
|
1857
|
-
"type": "string",
|
|
1858
|
-
"description": "Decimal currency value, as a string."
|
|
1859
|
-
},
|
|
1860
|
-
"currency": {
|
|
1861
|
-
"type": "string",
|
|
1862
|
-
"description": "Alpha-3 currency code complying with ISO 4217."
|
|
1863
|
-
}
|
|
1864
|
-
},
|
|
1865
|
-
"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.",
|
|
1866
|
-
"nullable": true
|
|
1867
|
-
},
|
|
1868
|
-
"country_of_origin": {
|
|
1869
|
-
"type": "string",
|
|
1870
|
-
"description": "The user specified declared country of origin of this customs item.",
|
|
1871
|
-
"nullable": true
|
|
1872
|
-
},
|
|
1873
|
-
"harmonized_tariff_code": {
|
|
1874
|
-
"type": "string",
|
|
1875
|
-
"description": "The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information.",
|
|
1876
|
-
"nullable": true
|
|
1877
|
-
},
|
|
1878
|
-
"sku": {
|
|
1879
|
-
"type": "string",
|
|
1880
|
-
"description": "The user specified SKU of this customs item. This field is completely free form.",
|
|
1881
|
-
"nullable": true
|
|
1882
|
-
},
|
|
1883
|
-
"sku_description": {
|
|
1884
|
-
"type": "string",
|
|
1885
|
-
"description": "The user specified SKU description of this customs item. This field is completely free form.",
|
|
1886
|
-
"nullable": true
|
|
1887
|
-
},
|
|
1888
|
-
"item_weight": {
|
|
1889
|
-
"$ref": "#/components/schemas/WeightDetails"
|
|
1890
|
-
},
|
|
1891
|
-
"product_url": {
|
|
1892
|
-
"type": "string",
|
|
1893
|
-
"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.",
|
|
1894
|
-
"nullable": true
|
|
1895
|
-
},
|
|
1896
|
-
"vat_rate": {
|
|
1897
|
-
"type": "number",
|
|
1898
|
-
"description": "The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1.",
|
|
1899
|
-
"format": "double",
|
|
1900
|
-
"nullable": true
|
|
1901
|
-
},
|
|
1902
|
-
"mid_code": {
|
|
1903
|
-
"type": "string",
|
|
1904
|
-
"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.",
|
|
1905
|
-
"nullable": true
|
|
1906
|
-
}
|
|
1907
|
-
},
|
|
1908
|
-
"additionalProperties": false,
|
|
1909
|
-
"description": "This model represents the customs declaration for a single item."
|
|
1910
|
-
},
|
|
1911
1822
|
"CustomsNonDelivery": {
|
|
1912
1823
|
"enum": [
|
|
1913
1824
|
"return_to_sender",
|
|
@@ -3125,9 +3036,6 @@
|
|
|
3125
3036
|
"label_messages": {
|
|
3126
3037
|
"$ref": "#/components/schemas/LabelMessage"
|
|
3127
3038
|
},
|
|
3128
|
-
"customs": {
|
|
3129
|
-
"$ref": "#/components/schemas/Customs"
|
|
3130
|
-
},
|
|
3131
3039
|
"products": {
|
|
3132
3040
|
"type": "array",
|
|
3133
3041
|
"items": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Currency } from '../currency';
|
|
2
2
|
import { WeightDetails } from '../units';
|
|
3
3
|
|
|
4
|
-
/** @
|
|
4
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
5
5
|
export class CustomsItem {
|
|
6
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
7
|
description?: string;
|
|
@@ -10,7 +10,7 @@ import { CustomsChargesSchema } from './customs-charges-schema';
|
|
|
10
10
|
export const CustomsSchema = Joi.object({
|
|
11
11
|
contents: CustomsContentTypesSchema.optional(),
|
|
12
12
|
non_delivery: CustomsNonDeliverySchema.optional(),
|
|
13
|
-
customs_items: Joi.array().items(CustomsItemSchema).
|
|
13
|
+
customs_items: Joi.array().items(CustomsItemSchema).optional(),
|
|
14
14
|
buyer_shipping_amount_paid: CurrencySchema.optional(),
|
|
15
15
|
duties_paid: CurrencySchema.optional(),
|
|
16
16
|
declaration: Joi.string().optional(),
|
|
@@ -12,7 +12,7 @@ export class Customs {
|
|
|
12
12
|
contents?: CustomsContentTypes;
|
|
13
13
|
/** @description Indicates what the seller would like done in case of an issue with delivery */
|
|
14
14
|
non_delivery?: CustomsNonDelivery;
|
|
15
|
-
/** @
|
|
15
|
+
/** @deprecated This object has been deprecated, please use packages.products[] instead */
|
|
16
16
|
customs_items!: CustomsItem[];
|
|
17
17
|
/** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
|
|
18
18
|
buyer_shipping_amount_paid?: Currency;
|
package/src/models/package.ts
CHANGED
|
@@ -19,7 +19,7 @@ export class Package {
|
|
|
19
19
|
insured_value!: Currency;
|
|
20
20
|
/** @description The message the seller requested to have on their label */
|
|
21
21
|
label_messages?: LabelMessage;
|
|
22
|
-
/** @
|
|
22
|
+
/** @deprecated For shipment-level information, the shipment `customs` object should be used, and for parcel-level items, the `packages.products` array should be used. */
|
|
23
23
|
customs?: Customs;
|
|
24
24
|
/** @description List of products goods model associated with this package passed to the carrier. */
|
|
25
25
|
products?: Products[];
|