@shipengine/connect-carrier-api 4.10.4 → 4.11.0
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-schema.js +3 -0
- package/lib/models/customs/customs-item-schema.js.map +1 -1
- package/lib/models/customs/customs-item.d.ts +6 -0
- package/lib/models/customs/customs-item.js +6 -0
- package/lib/models/customs/customs-item.js.map +1 -1
- package/lib/models/pickup/shipped-products-schema.js +3 -0
- package/lib/models/pickup/shipped-products-schema.js.map +1 -1
- package/lib/models/pickup/shipped-products.d.ts +6 -0
- package/lib/models/pickup/shipped-products.js +6 -0
- package/lib/models/pickup/shipped-products.js.map +1 -1
- package/lib/models/products.d.ts +6 -0
- package/lib/models/products.js +6 -0
- package/lib/models/products.js.map +1 -1
- package/package.json +1 -1
- package/spec.json +31 -1
- package/src/models/customs/customs-item-schema.ts +3 -0
- package/src/models/customs/customs-item.ts +6 -0
- package/src/models/pickup/shipped-products-schema.ts +3 -0
- package/src/models/pickup/shipped-products.ts +6 -0
- package/src/models/products.ts +6 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -17,5 +17,8 @@ exports.CustomsItemSchema = joi_1.default.object({
|
|
|
17
17
|
product_url: joi_1.default.string().optional(),
|
|
18
18
|
vat_rate: joi_1.default.number().optional(),
|
|
19
19
|
mid_code: joi_1.default.string().optional(),
|
|
20
|
+
return_reason: joi_1.default.string().optional(),
|
|
21
|
+
brand_name: joi_1.default.string().optional(),
|
|
22
|
+
size: joi_1.default.string().optional(),
|
|
20
23
|
});
|
|
21
24
|
//# sourceMappingURL=customs-item-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customs-item-schema.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,wDAAoD;AACpD,0EAAqE;AAExD,QAAA,iBAAiB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,gCAAc,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"customs-item-schema.js","sourceRoot":"","sources":["../../../src/models/customs/customs-item-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,wDAAoD;AACpD,0EAAqE;AAExD,QAAA,iBAAiB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,gCAAc,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -24,4 +24,10 @@ export declare class CustomsItem {
|
|
|
24
24
|
vat_rate?: number;
|
|
25
25
|
/** @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. */
|
|
26
26
|
mid_code?: string;
|
|
27
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
28
|
+
return_reason?: string;
|
|
29
|
+
/** @description Name of the product brand. */
|
|
30
|
+
brand_name?: string;
|
|
31
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
32
|
+
size?: string;
|
|
27
33
|
}
|
|
@@ -25,6 +25,12 @@ class CustomsItem {
|
|
|
25
25
|
vat_rate;
|
|
26
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
27
|
mid_code;
|
|
28
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
29
|
+
return_reason;
|
|
30
|
+
/** @description Name of the product brand. */
|
|
31
|
+
brand_name;
|
|
32
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
33
|
+
size;
|
|
28
34
|
}
|
|
29
35
|
exports.CustomsItem = CustomsItem;
|
|
30
36
|
//# sourceMappingURL=customs-item.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;IAClB,oHAAoH;IACpH,aAAa,CAAU;IACvB,8CAA8C;IAC9C,UAAU,CAAU;IACpB,+EAA+E;IAC/E,IAAI,CAAU;CACf;AA7BD,kCA6BC"}
|
|
@@ -18,5 +18,8 @@ exports.ShippedProductsSchema = joi_1.default.object({
|
|
|
18
18
|
vat_rate: joi_1.default.number().optional(),
|
|
19
19
|
mid_code: joi_1.default.string().optional(),
|
|
20
20
|
dangerous_goods: joi_1.default.object().optional(),
|
|
21
|
+
return_reason: joi_1.default.string().optional(),
|
|
22
|
+
brand_name: joi_1.default.string().optional(),
|
|
23
|
+
size: joi_1.default.string().optional(),
|
|
21
24
|
});
|
|
22
25
|
//# sourceMappingURL=shipped-products-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipped-products-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAiE;AACjE,0EAAqE;AAExD,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,oCAAc,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"shipped-products-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAiE;AACjE,0EAAqE;AAExD,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,oCAAc,CAAC,QAAQ,EAAE;IAChC,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,sBAAsB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/C,GAAG,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -26,4 +26,10 @@ export declare class ShippedProducts {
|
|
|
26
26
|
mid_code?: string;
|
|
27
27
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
28
28
|
dangerous_goods?: DangerousGoods[];
|
|
29
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
30
|
+
return_reason?: string;
|
|
31
|
+
/** @description Name of the product brand. */
|
|
32
|
+
brand_name?: string;
|
|
33
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
34
|
+
size?: string;
|
|
29
35
|
}
|
|
@@ -27,6 +27,12 @@ class ShippedProducts {
|
|
|
27
27
|
mid_code;
|
|
28
28
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
29
|
dangerous_goods;
|
|
30
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
31
|
+
return_reason;
|
|
32
|
+
/** @description Name of the product brand. */
|
|
33
|
+
brand_name;
|
|
34
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
35
|
+
size;
|
|
30
36
|
}
|
|
31
37
|
exports.ShippedProducts = ShippedProducts;
|
|
32
38
|
//# sourceMappingURL=shipped-products.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipped-products.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products.ts"],"names":[],"mappings":";;;AAGA,wEAAwE;AACxE,MAAa,eAAe;IAC1B,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;
|
|
1
|
+
{"version":3,"file":"shipped-products.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-products.ts"],"names":[],"mappings":";;;AAGA,wEAAwE;AACxE,MAAa,eAAe;IAC1B,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;IACnC,oHAAoH;IACpH,aAAa,CAAU;IACvB,8CAA8C;IAC9C,UAAU,CAAU;IACpB,+EAA+E;IAC/E,IAAI,CAAU;CACf;AA/BD,0CA+BC"}
|
package/lib/models/products.d.ts
CHANGED
|
@@ -27,4 +27,10 @@ export declare class Products {
|
|
|
27
27
|
mid_code?: string;
|
|
28
28
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
29
|
dangerous_goods?: DangerousGoods[];
|
|
30
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
31
|
+
return_reason?: string;
|
|
32
|
+
/** @description Name of the product brand. */
|
|
33
|
+
brand_name?: string;
|
|
34
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
35
|
+
size?: string;
|
|
30
36
|
}
|
package/lib/models/products.js
CHANGED
|
@@ -27,6 +27,12 @@ class Products {
|
|
|
27
27
|
mid_code;
|
|
28
28
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
29
|
dangerous_goods;
|
|
30
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
31
|
+
return_reason;
|
|
32
|
+
/** @description Name of the product brand. */
|
|
33
|
+
brand_name;
|
|
34
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
35
|
+
size;
|
|
30
36
|
}
|
|
31
37
|
exports.Products = Products;
|
|
32
38
|
//# sourceMappingURL=products.js.map
|
|
@@ -1 +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;
|
|
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;IACnC,oHAAoH;IACpH,aAAa,CAAU;IACvB,8CAA8C;IAC9C,UAAU,CAAU;IACpB,+EAA+E;IAC/E,IAAI,CAAU;CACf;AA/BD,4BA+BC"}
|
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.24.1"
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
9
|
"/Register": {
|
|
@@ -3310,6 +3310,21 @@
|
|
|
3310
3310
|
},
|
|
3311
3311
|
"description": "List of dangerous Goods model associated with this package passed to the carrier.",
|
|
3312
3312
|
"nullable": true
|
|
3313
|
+
},
|
|
3314
|
+
"return_reason": {
|
|
3315
|
+
"type": "string",
|
|
3316
|
+
"description": "Relevant for return shipments only. Description of the reason why the product is being returned.",
|
|
3317
|
+
"nullable": true
|
|
3318
|
+
},
|
|
3319
|
+
"brand": {
|
|
3320
|
+
"type": "string",
|
|
3321
|
+
"description": "Name of the product brand.",
|
|
3322
|
+
"nullable": true
|
|
3323
|
+
},
|
|
3324
|
+
"size": {
|
|
3325
|
+
"type": "string",
|
|
3326
|
+
"description": "Size of the product (used only for clothes and shoes etc.).",
|
|
3327
|
+
"nullable": true
|
|
3313
3328
|
}
|
|
3314
3329
|
},
|
|
3315
3330
|
"additionalProperties": false,
|
|
@@ -4122,6 +4137,21 @@
|
|
|
4122
4137
|
},
|
|
4123
4138
|
"description": "List of dangerous Goods model associated with this package passed to the carrier.",
|
|
4124
4139
|
"nullable": true
|
|
4140
|
+
},
|
|
4141
|
+
"return_reason": {
|
|
4142
|
+
"type": "string",
|
|
4143
|
+
"description": "Relevant for return shipments only. Description of the reason why the product is being returned.",
|
|
4144
|
+
"nullable": true
|
|
4145
|
+
},
|
|
4146
|
+
"brand": {
|
|
4147
|
+
"type": "string",
|
|
4148
|
+
"description": "Name of the product brand.",
|
|
4149
|
+
"nullable": true
|
|
4150
|
+
},
|
|
4151
|
+
"size": {
|
|
4152
|
+
"type": "string",
|
|
4153
|
+
"description": "Size of the product (used only for clothes and shoes etc.).",
|
|
4154
|
+
"nullable": true
|
|
4125
4155
|
}
|
|
4126
4156
|
},
|
|
4127
4157
|
"additionalProperties": false,
|
|
@@ -14,4 +14,7 @@ export const CustomsItemSchema = Joi.object({
|
|
|
14
14
|
product_url: Joi.string().optional(),
|
|
15
15
|
vat_rate: Joi.number().optional(),
|
|
16
16
|
mid_code: Joi.string().optional(),
|
|
17
|
+
return_reason: Joi.string().optional(),
|
|
18
|
+
brand_name: Joi.string().optional(),
|
|
19
|
+
size: Joi.string().optional(),
|
|
17
20
|
});
|
|
@@ -25,4 +25,10 @@ export class CustomsItem {
|
|
|
25
25
|
vat_rate?: number;
|
|
26
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
27
|
mid_code?: string;
|
|
28
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
29
|
+
return_reason?: string;
|
|
30
|
+
/** @description Name of the product brand. */
|
|
31
|
+
brand_name?: string;
|
|
32
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
33
|
+
size?: string;
|
|
28
34
|
}
|
|
@@ -15,4 +15,7 @@ export const ShippedProductsSchema = Joi.object({
|
|
|
15
15
|
vat_rate: Joi.number().optional(),
|
|
16
16
|
mid_code: Joi.string().optional(),
|
|
17
17
|
dangerous_goods: Joi.object().optional(),
|
|
18
|
+
return_reason: Joi.string().optional(),
|
|
19
|
+
brand_name: Joi.string().optional(),
|
|
20
|
+
size: Joi.string().optional(),
|
|
18
21
|
});
|
|
@@ -27,4 +27,10 @@ export class ShippedProducts {
|
|
|
27
27
|
mid_code?: string;
|
|
28
28
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
29
29
|
dangerous_goods?: DangerousGoods[];
|
|
30
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
31
|
+
return_reason?: string;
|
|
32
|
+
/** @description Name of the product brand. */
|
|
33
|
+
brand_name?: string;
|
|
34
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
35
|
+
size?: string;
|
|
30
36
|
}
|
package/src/models/products.ts
CHANGED
|
@@ -28,4 +28,10 @@ export class Products {
|
|
|
28
28
|
mid_code?: string;
|
|
29
29
|
/** @description List of dangerous goods model associated with this package passed to the carrier. */
|
|
30
30
|
dangerous_goods?: DangerousGoods[];
|
|
31
|
+
/** @description Relevant for return shipments only. Description of the reason why the product is being returned. */
|
|
32
|
+
return_reason?: string;
|
|
33
|
+
/** @description Name of the product brand. */
|
|
34
|
+
brand_name?: string;
|
|
35
|
+
/** @description Size of the product (used only for clothes and shoes etc.). */
|
|
36
|
+
size?: string;
|
|
31
37
|
}
|