@shipengine/connect-carrier-api 4.10.3 → 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/advanced-options.d.ts +3 -0
- package/lib/models/advanced-options.js +2 -0
- package/lib/models/advanced-options.js.map +1 -1
- 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/lib/models/windsor-framework/movement_indicator.d.ts +6 -0
- package/lib/models/windsor-framework/movement_indicator.js +11 -0
- package/lib/models/windsor-framework/movement_indicator.js.map +1 -0
- package/lib/models/windsor-framework/windsor_framework_details.d.ts +5 -0
- package/lib/models/windsor-framework/windsor_framework_details.js +9 -0
- package/lib/models/windsor-framework/windsor_framework_details.js.map +1 -0
- package/package.json +1 -1
- package/spec.json +34 -3
- package/src/models/advanced-options.ts +3 -0
- 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/src/models/windsor-framework/movement_indicator.ts +6 -0
- package/src/models/windsor-framework/windsor_framework_details.ts +6 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CollectOnDelivery } from './collect-on-delivery';
|
|
2
2
|
import { Currency } from './currency';
|
|
3
3
|
import { DangerousGoodsContact } from './dangerous-good/dangerous-goods-contact';
|
|
4
|
+
import { WindsorFrameworkDetails } from './windsor-framework/windsor_framework_details';
|
|
4
5
|
/** @description Basic structure for shipping options */
|
|
5
6
|
export declare class AdvancedOptions {
|
|
6
7
|
/** @description Whether the shipment contains alcohol */
|
|
@@ -29,6 +30,8 @@ export declare class AdvancedOptions {
|
|
|
29
30
|
limited_quantity?: boolean;
|
|
30
31
|
/** @description Any other custom shipping options */
|
|
31
32
|
event_notification?: boolean;
|
|
33
|
+
/** @description Any other custom shipping options */
|
|
34
|
+
windsor_framework_details?: WindsorFrameworkDetails;
|
|
32
35
|
/** @description Indicates whether the recipient should be notified of events related to the shipment. */
|
|
33
36
|
[key: string]: any;
|
|
34
37
|
}
|
|
@@ -29,6 +29,8 @@ class AdvancedOptions {
|
|
|
29
29
|
limited_quantity;
|
|
30
30
|
/** @description Any other custom shipping options */
|
|
31
31
|
event_notification;
|
|
32
|
+
/** @description Any other custom shipping options */
|
|
33
|
+
windsor_framework_details;
|
|
32
34
|
}
|
|
33
35
|
exports.AdvancedOptions = AdvancedOptions;
|
|
34
36
|
//# sourceMappingURL=advanced-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"advanced-options.js","sourceRoot":"","sources":["../../src/models/advanced-options.ts"],"names":[],"mappings":";;;AAKA,wDAAwD;AACxD,MAAa,eAAe;IAC1B,yDAAyD;IACzD,gBAAgB,CAAW;IAC3B,iEAAiE;IACjE,UAAU,CAAW;IACrB,oEAAoE;IACpE,cAAc,CAAW;IACzB,8EAA8E;IAC9E,qBAAqB,CAAW;IAChC,6DAA6D;IAC7D,iBAAiB,CAAW;IAC5B,iGAAiG;IACjG,GAAG,CAAY;IACf,wFAAwF;IACxF,mBAAmB,CAAW;IAC9B,iGAAiG;IACjG,mBAAmB,CAAqB;IACxC,8IAA8I;IAC9I,mBAAmB,CAAW;IAC9B,iFAAiF;IACjF,eAAe,CAAW;IAC1B,2DAA2D;IAC3D,uBAAuB,CAAyB;IAChD,+HAA+H;IAC/H,gBAAgB,CAAW;IAC3B,qDAAqD;IACrD,kBAAkB,CAAW;IAC7B,qDAAqD;IACrD,yBAAyB,CAA2B;CAGrD;AA/BD,0CA+BC"}
|
|
@@ -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,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@@ -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,C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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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MovementIndicator = void 0;
|
|
4
|
+
var MovementIndicator;
|
|
5
|
+
(function (MovementIndicator) {
|
|
6
|
+
MovementIndicator["B2C"] = "b2c";
|
|
7
|
+
MovementIndicator["B2B"] = "b2b";
|
|
8
|
+
MovementIndicator["C2C"] = "c2c";
|
|
9
|
+
MovementIndicator["C2B"] = "c2b";
|
|
10
|
+
})(MovementIndicator || (exports.MovementIndicator = MovementIndicator = {}));
|
|
11
|
+
//# sourceMappingURL=movement_indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"movement_indicator.js","sourceRoot":"","sources":["../../../src/models/windsor-framework/movement_indicator.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,gCAAW,CAAA;IACX,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WindsorFrameworkDetails = void 0;
|
|
4
|
+
class WindsorFrameworkDetails {
|
|
5
|
+
not_at_risk;
|
|
6
|
+
movement_indicator;
|
|
7
|
+
}
|
|
8
|
+
exports.WindsorFrameworkDetails = WindsorFrameworkDetails;
|
|
9
|
+
//# sourceMappingURL=windsor_framework_details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windsor_framework_details.js","sourceRoot":"","sources":["../../../src/models/windsor-framework/windsor_framework_details.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAuB;IAClC,WAAW,CAAW;IACtB,kBAAkB,CAAqB;CACxC;AAHD,0DAGC"}
|
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,
|
|
@@ -5020,7 +5050,8 @@
|
|
|
5020
5050
|
},
|
|
5021
5051
|
"not_at_risk": {
|
|
5022
5052
|
"type": "boolean",
|
|
5023
|
-
"description": "Indicates whether the shipment is at risk of entering EU territory or eligible for green lane due to zero duty rate for UK origin shipment."
|
|
5053
|
+
"description": "Indicates whether the shipment is at risk of entering EU territory or eligible for green lane due to zero duty rate for UK origin shipment.",
|
|
5054
|
+
"nullable": true
|
|
5024
5055
|
}
|
|
5025
5056
|
},
|
|
5026
5057
|
"additionalProperties": false
|
|
@@ -5073,4 +5104,4 @@
|
|
|
5073
5104
|
"description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
|
|
5074
5105
|
}
|
|
5075
5106
|
]
|
|
5076
|
-
}
|
|
5107
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CollectOnDelivery } from './collect-on-delivery';
|
|
2
2
|
import { Currency } from './currency';
|
|
3
3
|
import { DangerousGoodsContact } from './dangerous-good/dangerous-goods-contact';
|
|
4
|
+
import { WindsorFrameworkDetails } from './windsor-framework/windsor_framework_details';
|
|
4
5
|
|
|
5
6
|
/** @description Basic structure for shipping options */
|
|
6
7
|
export class AdvancedOptions {
|
|
@@ -30,6 +31,8 @@ export class AdvancedOptions {
|
|
|
30
31
|
limited_quantity?: boolean;
|
|
31
32
|
/** @description Any other custom shipping options */
|
|
32
33
|
event_notification?: boolean;
|
|
34
|
+
/** @description Any other custom shipping options */
|
|
35
|
+
windsor_framework_details?: WindsorFrameworkDetails;
|
|
33
36
|
/** @description Indicates whether the recipient should be notified of events related to the shipment. */
|
|
34
37
|
[key: string]: any;
|
|
35
38
|
}
|
|
@@ -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
|
}
|