@shipengine/connect-carrier-api 4.6.10 → 4.8.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.
Files changed (30) hide show
  1. package/lib/models/manifests/manifest-customs-schema.d.ts +2 -0
  2. package/lib/models/manifests/manifest-customs-schema.js +26 -0
  3. package/lib/models/manifests/manifest-customs-schema.js.map +1 -0
  4. package/lib/models/manifests/manifest-customs.d.ts +29 -0
  5. package/lib/models/manifests/manifest-customs.js +30 -0
  6. package/lib/models/manifests/manifest-customs.js.map +1 -0
  7. package/lib/models/manifests/manifest-request-shipment.d.ts +2 -0
  8. package/lib/models/manifests/manifest-request-shipment.js +1 -0
  9. package/lib/models/manifests/manifest-request-shipment.js.map +1 -1
  10. package/lib/models/pickup/shipped-package-schema.js +1 -0
  11. package/lib/models/pickup/shipped-package-schema.js.map +1 -1
  12. package/lib/models/pickup/shipped-package.d.ts +3 -0
  13. package/lib/models/pickup/shipped-package.js +2 -0
  14. package/lib/models/pickup/shipped-package.js.map +1 -1
  15. package/lib/models/pickup/shipped-products-schema.d.ts +2 -0
  16. package/lib/models/pickup/shipped-products-schema.js +22 -0
  17. package/lib/models/pickup/shipped-products-schema.js.map +1 -0
  18. package/lib/models/pickup/shipped-products.d.ts +29 -0
  19. package/lib/models/pickup/shipped-products.js +32 -0
  20. package/lib/models/pickup/shipped-products.js.map +1 -0
  21. package/package.json +1 -1
  22. package/spec.json +175 -1
  23. package/src/models/manifests/manifest-customs-schema.ts +22 -0
  24. package/src/models/manifests/manifest-customs.ts +35 -0
  25. package/src/models/manifests/manifest-request-shipment.ts +2 -0
  26. package/src/models/pickup/shipped-package-schema.ts +1 -0
  27. package/src/models/pickup/shipped-package.ts +3 -0
  28. package/src/models/pickup/shipped-products-schema.ts +18 -0
  29. package/src/models/pickup/shipped-products.ts +30 -0
  30. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const CustomsSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomsSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const customs_content_types_schema_1 = require("../customs/customs-content-types-schema");
7
+ const customs_non_delivery_schema_1 = require("../customs/customs-non-delivery-schema");
8
+ const customs_item_schema_1 = require("../customs/customs-item-schema");
9
+ const connect_carrier_api_1 = require("@shipengine/connect-carrier-api");
10
+ const terms_of_trade_code_schema_1 = require("../inconterms/terms-of-trade-code-schema");
11
+ const importer_of_record_schema_1 = require("../importer-records/importer-of-record-schema");
12
+ const customs_charges_schema_1 = require("../customs/customs-charges-schema");
13
+ exports.CustomsSchema = joi_1.default.object({
14
+ contents: customs_content_types_schema_1.CustomsContentTypesSchema.optional(),
15
+ non_delivery: customs_non_delivery_schema_1.CustomsNonDeliverySchema.optional(),
16
+ customs_items: joi_1.default.array().items(customs_item_schema_1.CustomsItemSchema).required(),
17
+ buyer_shipping_amount_paid: connect_carrier_api_1.CurrencySchema.optional(),
18
+ duties_paid: connect_carrier_api_1.CurrencySchema.optional(),
19
+ declaration: joi_1.default.string().optional(),
20
+ terms_of_trade_code: terms_of_trade_code_schema_1.TermsOfTradeCodeSchema.optional(),
21
+ importer_of_record: importer_of_record_schema_1.ImporterOfRecordSchema.optional(),
22
+ invoice_additional_details: customs_charges_schema_1.CustomsChargesSchema.optional(),
23
+ contents_explanation: joi_1.default.string().optional(),
24
+ export_declaration_number: joi_1.default.string().optional(),
25
+ });
26
+ //# sourceMappingURL=manifest-customs-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-customs-schema.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-customs-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,0FAAoF;AACpF,wFAAkF;AAClF,wEAAmE;AACnE,yEAAiE;AACjE,yFAAkF;AAClF,6FAAuF;AACvF,8EAAyE;AAE5D,QAAA,aAAa,GAAG,aAAG,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,wDAAyB,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,sDAAwB,CAAC,QAAQ,EAAE;IACjD,aAAa,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,uCAAiB,CAAC,CAAC,QAAQ,EAAE;IAC9D,0BAA0B,EAAE,oCAAc,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,oCAAc,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,mBAAmB,EAAE,mDAAsB,CAAC,QAAQ,EAAE;IACtD,kBAAkB,EAAE,kDAAsB,CAAC,QAAQ,EAAE;IACrD,0BAA0B,EAAE,6CAAoB,CAAC,QAAQ,EAAE;IAC3D,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,yBAAyB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Currency, CustomsContentTypes, CustomsItem, CustomsNonDelivery } from '@shipengine/connect-carrier-api';
2
+ import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
3
+ import { ImporterOfRecord } from '../importer-records/importer-of-record';
4
+ import { CustomsCharges } from '../customs/customs-charges';
5
+ /** @description Basic structure for a customs declaration for manifest */
6
+ export declare class ManifestCustoms {
7
+ /** @description Indicates the type of contents associated with this shipment */
8
+ contents?: CustomsContentTypes;
9
+ /** @description Indicates what the seller would like done in case of an issue with delivery */
10
+ non_delivery?: CustomsNonDelivery;
11
+ /** @description A list of customs items to declare */
12
+ customs_items: CustomsItem[];
13
+ /** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
14
+ buyer_shipping_amount_paid?: Currency;
15
+ /** @description The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill_duties_to_sender) shipments. */
16
+ duties_paid?: Currency;
17
+ /** @description Declaration statement to be placed on the commercial invoice */
18
+ declaration?: string;
19
+ /** @description Incoterms specify who is responsible for paying for and managing the shipment*/
20
+ terms_of_trade_code?: TermsOfTradeCode;
21
+ /** @description The owner or purchaser of the products being imported into a destination country.*/
22
+ importer_of_record?: ImporterOfRecord;
23
+ /** @description The charges related with customs.*/
24
+ invoice_additional_details?: CustomsCharges;
25
+ /**@description: text explanation for the content */
26
+ contents_explanation?: string;
27
+ /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
28
+ export_declaration_number?: string;
29
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManifestCustoms = void 0;
4
+ /** @description Basic structure for a customs declaration for manifest */
5
+ class ManifestCustoms {
6
+ /** @description Indicates the type of contents associated with this shipment */
7
+ contents;
8
+ /** @description Indicates what the seller would like done in case of an issue with delivery */
9
+ non_delivery;
10
+ /** @description A list of customs items to declare */
11
+ customs_items;
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
+ buyer_shipping_amount_paid;
14
+ /** @description The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill_duties_to_sender) shipments. */
15
+ duties_paid;
16
+ /** @description Declaration statement to be placed on the commercial invoice */
17
+ declaration;
18
+ /** @description Incoterms specify who is responsible for paying for and managing the shipment*/
19
+ terms_of_trade_code;
20
+ /** @description The owner or purchaser of the products being imported into a destination country.*/
21
+ importer_of_record;
22
+ /** @description The charges related with customs.*/
23
+ invoice_additional_details;
24
+ /**@description: text explanation for the content */
25
+ contents_explanation;
26
+ /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
27
+ export_declaration_number;
28
+ }
29
+ exports.ManifestCustoms = ManifestCustoms;
30
+ //# sourceMappingURL=manifest-customs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-customs.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-customs.ts"],"names":[],"mappings":";;;AAUA,0EAA0E;AAC1E,MAAa,eAAe;IAC1B,gFAAgF;IAChF,QAAQ,CAAuB;IAC/B,+FAA+F;IAC/F,YAAY,CAAsB;IAClC,sDAAsD;IACtD,aAAa,CAAiB;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAY;IACtC,iJAAiJ;IACjJ,WAAW,CAAY;IACvB,gFAAgF;IAChF,WAAW,CAAU;IACrB,gGAAgG;IAChG,mBAAmB,CAAoB;IACvC,oGAAoG;IACpG,kBAAkB,CAAoB;IACtC,oDAAoD;IACpD,0BAA0B,CAAkB;IAC5C,oDAAoD;IACpD,oBAAoB,CAAU;IAC9B,oNAAoN;IACpN,yBAAyB,CAAU;CACpC;AAvBD,0CAuBC"}
@@ -1,6 +1,8 @@
1
1
  import { ShippedShipment } from '../pickup/shipped-shipment';
2
+ import { ManifestCustoms } from './manifest-customs';
2
3
  export declare class ManifestRequestShipment extends ShippedShipment {
3
4
  manifest_request_shipment_id: string;
4
5
  ship_datetime?: string;
5
6
  reference?: string;
7
+ manifest_customs?: ManifestCustoms;
6
8
  }
@@ -6,6 +6,7 @@ class ManifestRequestShipment extends shipped_shipment_1.ShippedShipment {
6
6
  manifest_request_shipment_id;
7
7
  ship_datetime;
8
8
  reference;
9
+ manifest_customs;
9
10
  }
10
11
  exports.ManifestRequestShipment = ManifestRequestShipment;
11
12
  //# sourceMappingURL=manifest-request-shipment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-request-shipment.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-request-shipment.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,MAAa,uBAAwB,SAAQ,kCAAe;IAC1D,4BAA4B,CAAU;IACtC,aAAa,CAAU;IACvB,SAAS,CAAU;CACpB;AAJD,0DAIC"}
1
+ {"version":3,"file":"manifest-request-shipment.js","sourceRoot":"","sources":["../../../src/models/manifests/manifest-request-shipment.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,MAAa,uBAAwB,SAAQ,kCAAe;IAC1D,4BAA4B,CAAU;IACtC,aAAa,CAAU;IACvB,SAAS,CAAU;IACnB,gBAAgB,CAAmB;CACpC;AALD,0DAKC"}
@@ -22,5 +22,6 @@ exports.ShippedPackageSchema = joi_1.default.object({
22
22
  insured_value: currency_schema_1.CurrencySchema.required(),
23
23
  label_messages: label_message_schema_1.LabelMessageSchema.optional(),
24
24
  customs: customs_schema_1.CustomsSchema.optional(),
25
+ shipped_products: joi_1.default.array().items(identifier_schema_1.IdentifierSchema).optional(),
25
26
  });
26
27
  //# sourceMappingURL=shipped-package-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-package-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-package-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAwD;AACxD,oCAA4C;AAC5C,wDAAoD;AACpD,gFAA2E;AAC3E,0EAAqE;AACrE,yEAAoE;AACpE,8DAA0D;AAE7C,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC,CAAC,QAAQ,EAAE;IACvE,iBAAiB,EAAE,iDAAsB,CAAC,QAAQ,EAAE;IACpD,cAAc,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,gCAAc,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,8BAAa,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
1
+ {"version":3,"file":"shipped-package-schema.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-package-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,4DAAwD;AACxD,oCAA4C;AAC5C,wDAAoD;AACpD,gFAA2E;AAC3E,0EAAqE;AACrE,yEAAoE;AACpE,8DAA0D;AAE7C,QAAA,oBAAoB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,uBAAuB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC,CAAC,QAAQ,EAAE;IACvE,iBAAiB,EAAE,iDAAsB,CAAC,QAAQ,EAAE;IACpD,cAAc,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,gCAAc,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,8BAAa,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,oCAAgB,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC"}
@@ -5,6 +5,7 @@ import { Dimensions } from '../units/dimensions';
5
5
  import { Currency } from '../currency';
6
6
  import { LabelMessage } from '../labels/label-message';
7
7
  import { Customs } from '../customs';
8
+ import { ShippedProducts } from './shipped-products';
8
9
  /** @description Basic structure for a package that has been shipped */
9
10
  export declare class ShippedPackage {
10
11
  /** @description The carrier tracking number associated with this package */
@@ -29,4 +30,6 @@ export declare class ShippedPackage {
29
30
  label_messages?: LabelMessage;
30
31
  /** @description Basic structure for a customs declaration (Only available on international shipments) */
31
32
  customs?: Customs;
33
+ /** @description List of products associated with this package. */
34
+ shipped_products?: ShippedProducts[];
32
35
  }
@@ -25,6 +25,8 @@ class ShippedPackage {
25
25
  label_messages;
26
26
  /** @description Basic structure for a customs declaration (Only available on international shipments) */
27
27
  customs;
28
+ /** @description List of products associated with this package. */
29
+ shipped_products;
28
30
  }
29
31
  exports.ShippedPackage = ShippedPackage;
30
32
  //# sourceMappingURL=shipped-package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-package.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-package.ts"],"names":[],"mappings":";;;AAQA,uEAAuE;AACvE,MAAa,cAAc;IACzB,4EAA4E;IAC5E,eAAe,CAAU;IACzB,yEAAyE;IACzE,YAAY,CAAU;IACtB,wEAAwE;IACxE,uBAAuB,CAAgB;IACvC,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,6DAA6D;IAC7D,YAAY,CAAU;IACtB,0DAA0D;IAC1D,MAAM,CAAU;IAChB,6DAA6D;IAC7D,UAAU,CAAc;IACxB,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;CACnB;AAvBD,wCAuBC"}
1
+ {"version":3,"file":"shipped-package.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-package.ts"],"names":[],"mappings":";;;AASA,uEAAuE;AACvE,MAAa,cAAc;IACzB,4EAA4E;IAC5E,eAAe,CAAU;IACzB,yEAAyE;IACzE,YAAY,CAAU;IACtB,wEAAwE;IACxE,uBAAuB,CAAgB;IACvC,+DAA+D;IAC/D,iBAAiB,CAAoB;IACrC,2DAA2D;IAC3D,cAAc,CAAiB;IAC/B,6DAA6D;IAC7D,YAAY,CAAU;IACtB,0DAA0D;IAC1D,MAAM,CAAU;IAChB,6DAA6D;IAC7D,UAAU,CAAc;IACxB,sDAAsD;IACtD,aAAa,CAAY;IACzB,2EAA2E;IAC3E,cAAc,CAAgB;IAC9B,yGAAyG;IACzG,OAAO,CAAW;IAClB,kEAAkE;IAClE,gBAAgB,CAAqB;CACtC;AAzBD,wCAyBC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const ShippedProductsSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShippedProductsSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const connect_carrier_api_1 = require("@shipengine/connect-carrier-api");
7
+ const weight_details_schema_1 = require("../units/weight-details-schema");
8
+ exports.ShippedProductsSchema = joi_1.default.object({
9
+ description: joi_1.default.string().optional(),
10
+ quantity: joi_1.default.number().optional(),
11
+ value: connect_carrier_api_1.CurrencySchema.optional(),
12
+ country_of_origin: joi_1.default.string().optional(),
13
+ harmonized_tariff_code: joi_1.default.string().optional(),
14
+ sku: joi_1.default.string().optional(),
15
+ sku_description: joi_1.default.string().optional(),
16
+ item_weight: weight_details_schema_1.WeightDetailsSchema.optional(),
17
+ product_url: joi_1.default.string().optional(),
18
+ vat_rate: joi_1.default.number().optional(),
19
+ mid_code: joi_1.default.string().optional(),
20
+ dangerous_goods: joi_1.default.object().optional(),
21
+ });
22
+ //# sourceMappingURL=shipped-products-schema.js.map
@@ -0,0 +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;CACzC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Currency, WeightDetails } from '@shipengine/connect-carrier-api';
2
+ import { DangerousGoods } from '../dangerous-good/dangerous-goods';
3
+ /** @description Basic structure for a product from a shipped shipment*/
4
+ export declare class ShippedProducts {
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
+ description?: string;
7
+ /** @description The user specified count of items in this declaration. This value should be 1 or greater */
8
+ quantity?: number;
9
+ /** @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 */
10
+ value?: Currency;
11
+ /** @description The user specified declared country of origin of this customs item */
12
+ country_of_origin?: string;
13
+ /** @description The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information */
14
+ harmonized_tariff_code?: string;
15
+ /** @description The user specified SKU of this customs item. This field is completely free form. */
16
+ sku?: string;
17
+ /** @description The user specified SKU description of this customs item. This field is completely free form. */
18
+ sku_description?: string;
19
+ /** @description Detailed information about the weight of this item */
20
+ item_weight?: WeightDetails;
21
+ /** @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. */
22
+ product_url?: string;
23
+ /** @description The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1. */
24
+ vat_rate?: number;
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
+ mid_code?: string;
27
+ /** @description List of dangerous goods model associated with this package passed to the carrier. */
28
+ dangerous_goods?: DangerousGoods[];
29
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShippedProducts = void 0;
4
+ /** @description Basic structure for a product from a shipped shipment*/
5
+ class ShippedProducts {
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.ShippedProducts = ShippedProducts;
32
+ //# sourceMappingURL=shipped-products.js.map
@@ -0,0 +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;CACpC;AAzBD,0CAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.6.10",
3
+ "version": "4.8.0",
4
4
  "description": "This is the typescript/javascript definitions for carrier api",
5
5
  "homepage": "https://connect.shipengine.com",
6
6
  "main": "./lib/index.js",
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.20.2"
6
+ "version": "1.22.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -2812,6 +2812,83 @@
2812
2812
  "additionalProperties": false,
2813
2813
  "description": "This model represents a single manifest created with a shipping provider."
2814
2814
  },
2815
+ "ManifestCustoms": {
2816
+ "type": "object",
2817
+ "properties": {
2818
+ "contents": {
2819
+ "$ref": "#/components/schemas/CustomsContentTypes"
2820
+ },
2821
+ "non_delivery": {
2822
+ "$ref": "#/components/schemas/CustomsNonDelivery"
2823
+ },
2824
+ "buyer_shipping_amount_paid": {
2825
+ "required": [
2826
+ "currency",
2827
+ "amount"
2828
+ ],
2829
+ "type": "object",
2830
+ "properties": {
2831
+ "amount": {
2832
+ "type": "string",
2833
+ "description": "Decimal currency value, as a string."
2834
+ },
2835
+ "currency": {
2836
+ "type": "string",
2837
+ "description": "Alpha-3 currency code complying with ISO 4217."
2838
+ }
2839
+ },
2840
+ "description": "Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed\r\nto the shipper.",
2841
+ "nullable": true
2842
+ },
2843
+ "duties_paid": {
2844
+ "required": [
2845
+ "currency",
2846
+ "amount"
2847
+ ],
2848
+ "type": "object",
2849
+ "properties": {
2850
+ "amount": {
2851
+ "type": "string",
2852
+ "description": "Decimal currency value, as a string."
2853
+ },
2854
+ "currency": {
2855
+ "type": "string",
2856
+ "description": "Alpha-3 currency code complying with ISO 4217."
2857
+ }
2858
+ },
2859
+ "description": "The amount of duties paid by the shipper, if any. This is generally only necessary for DDP\r\n(bill_duties_to_sender) shipments.",
2860
+ "nullable": true
2861
+ },
2862
+ "bill_duties_to": {
2863
+ "$ref": "#/components/schemas/BillTo"
2864
+ },
2865
+ "declaration": {
2866
+ "type": "string",
2867
+ "description": "Declaration statement to be placed on the commercial invoice",
2868
+ "nullable": true
2869
+ },
2870
+ "terms_of_trade_code": {
2871
+ "$ref": "#/components/schemas/TermsOfTradeCode"
2872
+ },
2873
+ "importer_of_record": {
2874
+ "$ref": "#/components/schemas/ImporterOfRecord"
2875
+ },
2876
+ "invoice_additional_details": {
2877
+ "$ref": "#/components/schemas/CustomCharges"
2878
+ },
2879
+ "contents_explanation": {
2880
+ "type": "string",
2881
+ "description": "Text explanation for the content",
2882
+ "nullable": true
2883
+ },
2884
+ "export_declaration_number": {
2885
+ "type": "string",
2886
+ "description": "An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them.",
2887
+ "nullable": true
2888
+ }
2889
+ },
2890
+ "additionalProperties": false
2891
+ },
2815
2892
  "ManifestError": {
2816
2893
  "type": "object",
2817
2894
  "properties": {
@@ -2854,6 +2931,9 @@
2854
2931
  "type": "string",
2855
2932
  "description": "Shipment reference number.",
2856
2933
  "nullable": true
2934
+ },
2935
+ "customs": {
2936
+ "$ref": "#/components/schemas/ManifestCustoms"
2857
2937
  }
2858
2938
  },
2859
2939
  "additionalProperties": false
@@ -3965,11 +4045,105 @@
3965
4045
  },
3966
4046
  "description": "The insured value of this package.",
3967
4047
  "nullable": true
4048
+ },
4049
+ "products": {
4050
+ "type": "array",
4051
+ "items": {
4052
+ "$ref": "#/components/schemas/ShippedProducts"
4053
+ },
4054
+ "description": "List of products associated with this package.",
4055
+ "nullable": true
3968
4056
  }
3969
4057
  },
3970
4058
  "additionalProperties": false,
3971
4059
  "description": "This is the model for a package that has had a label generated for it"
3972
4060
  },
4061
+ "ShippedProducts": {
4062
+ "required": [
4063
+ "value"
4064
+ ],
4065
+ "type": "object",
4066
+ "properties": {
4067
+ "description": {
4068
+ "type": "string",
4069
+ "description": "A user specified free form string describing this customs item. If the field is absent the user has\r\nnot specified a description.",
4070
+ "nullable": true
4071
+ },
4072
+ "quantity": {
4073
+ "type": "integer",
4074
+ "description": "The user specified count of items in this declaration. This value should be 1 or greater",
4075
+ "format": "int32"
4076
+ },
4077
+ "value": {
4078
+ "required": [
4079
+ "currency",
4080
+ "amount"
4081
+ ],
4082
+ "type": "object",
4083
+ "properties": {
4084
+ "amount": {
4085
+ "type": "string",
4086
+ "description": "Decimal currency value, as a string."
4087
+ },
4088
+ "currency": {
4089
+ "type": "string",
4090
+ "description": "Alpha-3 currency code complying with ISO 4217."
4091
+ }
4092
+ },
4093
+ "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.",
4094
+ "nullable": true
4095
+ },
4096
+ "country_of_origin": {
4097
+ "type": "string",
4098
+ "description": "The user specified declared country of origin of this customs item.",
4099
+ "nullable": true
4100
+ },
4101
+ "harmonized_tariff_code": {
4102
+ "type": "string",
4103
+ "description": "The user specified Harmonized Tariff Code. See https://hts.usitc.gov/ for more information.",
4104
+ "nullable": true
4105
+ },
4106
+ "sku": {
4107
+ "type": "string",
4108
+ "description": "The user specified SKU of this customs item. This field is completely free form.",
4109
+ "nullable": true
4110
+ },
4111
+ "sku_description": {
4112
+ "type": "string",
4113
+ "description": "The user specified SKU description of this customs item. This field is completely free form.",
4114
+ "nullable": true
4115
+ },
4116
+ "item_weight": {
4117
+ "$ref": "#/components/schemas/WeightDetails"
4118
+ },
4119
+ "product_url": {
4120
+ "type": "string",
4121
+ "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.",
4122
+ "nullable": true
4123
+ },
4124
+ "vat_rate": {
4125
+ "type": "number",
4126
+ "description": "The VAT rate applicable to the item being shipped, expressed as a decimal value between 0 and 1.",
4127
+ "format": "double",
4128
+ "nullable": true
4129
+ },
4130
+ "mid_code": {
4131
+ "type": "string",
4132
+ "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.",
4133
+ "nullable": true
4134
+ },
4135
+ "dangerous_goods": {
4136
+ "type": "array",
4137
+ "items": {
4138
+ "$ref": "#/components/schemas/DangerousGoods"
4139
+ },
4140
+ "description": "List of dangerous Goods model associated with this package passed to the carrier.",
4141
+ "nullable": true
4142
+ }
4143
+ },
4144
+ "additionalProperties": false,
4145
+ "description": "This model represents the product of a package that has had a label generated for it"
4146
+ },
3973
4147
  "ShippedShipment": {
3974
4148
  "type": "object",
3975
4149
  "properties": {
@@ -0,0 +1,22 @@
1
+ import Joi from 'joi';
2
+ import { CustomsContentTypesSchema } from '../customs/customs-content-types-schema';
3
+ import { CustomsNonDeliverySchema } from '../customs/customs-non-delivery-schema';
4
+ import { CustomsItemSchema } from '../customs/customs-item-schema';
5
+ import { CurrencySchema } from '@shipengine/connect-carrier-api';
6
+ import { TermsOfTradeCodeSchema } from '../inconterms/terms-of-trade-code-schema';
7
+ import { ImporterOfRecordSchema } from '../importer-records/importer-of-record-schema';
8
+ import { CustomsChargesSchema } from '../customs/customs-charges-schema';
9
+
10
+ export const CustomsSchema = Joi.object({
11
+ contents: CustomsContentTypesSchema.optional(),
12
+ non_delivery: CustomsNonDeliverySchema.optional(),
13
+ customs_items: Joi.array().items(CustomsItemSchema).required(),
14
+ buyer_shipping_amount_paid: CurrencySchema.optional(),
15
+ duties_paid: CurrencySchema.optional(),
16
+ declaration: Joi.string().optional(),
17
+ terms_of_trade_code: TermsOfTradeCodeSchema.optional(),
18
+ importer_of_record: ImporterOfRecordSchema.optional(),
19
+ invoice_additional_details: CustomsChargesSchema.optional(),
20
+ contents_explanation: Joi.string().optional(),
21
+ export_declaration_number: Joi.string().optional(),
22
+ });
@@ -0,0 +1,35 @@
1
+ import {
2
+ Currency,
3
+ CustomsContentTypes,
4
+ CustomsItem,
5
+ CustomsNonDelivery,
6
+ } from '@shipengine/connect-carrier-api';
7
+ import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
8
+ import { ImporterOfRecord } from '../importer-records/importer-of-record';
9
+ import { CustomsCharges } from '../customs/customs-charges';
10
+
11
+ /** @description Basic structure for a customs declaration for manifest */
12
+ export class ManifestCustoms {
13
+ /** @description Indicates the type of contents associated with this shipment */
14
+ contents?: CustomsContentTypes;
15
+ /** @description Indicates what the seller would like done in case of an issue with delivery */
16
+ non_delivery?: CustomsNonDelivery;
17
+ /** @description A list of customs items to declare */
18
+ customs_items!: CustomsItem[];
19
+ /** @description Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper. */
20
+ buyer_shipping_amount_paid?: Currency;
21
+ /** @description The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill_duties_to_sender) shipments. */
22
+ duties_paid?: Currency;
23
+ /** @description Declaration statement to be placed on the commercial invoice */
24
+ declaration?: string;
25
+ /** @description Incoterms specify who is responsible for paying for and managing the shipment*/
26
+ terms_of_trade_code?: TermsOfTradeCode;
27
+ /** @description The owner or purchaser of the products being imported into a destination country.*/
28
+ importer_of_record?: ImporterOfRecord;
29
+ /** @description The charges related with customs.*/
30
+ invoice_additional_details?: CustomsCharges;
31
+ /**@description: text explanation for the content */
32
+ contents_explanation?: string;
33
+ /**@description: An EDN is a number which is nine alphanumeric characters long and issued by the Australian Customs (Australian Border Force) in exchange for the information that an exporter shares with them. */
34
+ export_declaration_number?: string;
35
+ }
@@ -1,7 +1,9 @@
1
1
  import { ShippedShipment } from '../pickup/shipped-shipment';
2
+ import { ManifestCustoms } from './manifest-customs';
2
3
 
3
4
  export class ManifestRequestShipment extends ShippedShipment {
4
5
  manifest_request_shipment_id!: string;
5
6
  ship_datetime?: string;
6
7
  reference?: string;
8
+ manifest_customs?: ManifestCustoms;
7
9
  }
@@ -19,4 +19,5 @@ export const ShippedPackageSchema = Joi.object({
19
19
  insured_value: CurrencySchema.required(),
20
20
  label_messages: LabelMessageSchema.optional(),
21
21
  customs: CustomsSchema.optional(),
22
+ shipped_products: Joi.array().items(IdentifierSchema).optional(),
22
23
  });
@@ -5,6 +5,7 @@ import { Dimensions } from '../units/dimensions';
5
5
  import { Currency } from '../currency';
6
6
  import { LabelMessage } from '../labels/label-message';
7
7
  import { Customs } from '../customs';
8
+ import { ShippedProducts } from './shipped-products';
8
9
 
9
10
  /** @description Basic structure for a package that has been shipped */
10
11
  export class ShippedPackage {
@@ -30,4 +31,6 @@ export class ShippedPackage {
30
31
  label_messages?: LabelMessage;
31
32
  /** @description Basic structure for a customs declaration (Only available on international shipments) */
32
33
  customs?: Customs;
34
+ /** @description List of products associated with this package. */
35
+ shipped_products?: ShippedProducts[];
33
36
  }
@@ -0,0 +1,18 @@
1
+ import Joi from 'joi';
2
+ import { CurrencySchema } from '@shipengine/connect-carrier-api';
3
+ import { WeightDetailsSchema } from '../units/weight-details-schema';
4
+
5
+ export const ShippedProductsSchema = Joi.object({
6
+ description: Joi.string().optional(),
7
+ quantity: Joi.number().optional(),
8
+ value: CurrencySchema.optional(),
9
+ country_of_origin: Joi.string().optional(),
10
+ harmonized_tariff_code: Joi.string().optional(),
11
+ sku: Joi.string().optional(),
12
+ sku_description: Joi.string().optional(),
13
+ item_weight: WeightDetailsSchema.optional(),
14
+ product_url: Joi.string().optional(),
15
+ vat_rate: Joi.number().optional(),
16
+ mid_code: Joi.string().optional(),
17
+ dangerous_goods: Joi.object().optional(),
18
+ });
@@ -0,0 +1,30 @@
1
+ import { Currency, WeightDetails } from '@shipengine/connect-carrier-api';
2
+ import { DangerousGoods } from '../dangerous-good/dangerous-goods';
3
+
4
+ /** @description Basic structure for a product from a shipped shipment*/
5
+ export class ShippedProducts {
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
+ }