@shipengine/connect-carrier-api 4.11.11 → 4.12.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.
@@ -5,6 +5,7 @@ import { Currency } from '../currency';
5
5
  import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
6
6
  import { ImporterOfRecord } from '../importer-records/importer-of-record';
7
7
  import { CustomsCharges } from './customs-charges';
8
+ import { EstimatedImportCharges } from './estimated-import-charges';
8
9
  /** @description Basic structure for a customs declaration */
9
10
  export declare class Customs {
10
11
  /** @description Indicates the type of contents associated with this shipment */
@@ -29,4 +30,6 @@ export declare class Customs {
29
30
  contents_explanation?: String;
30
31
  /**@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. */
31
32
  export_declaration_number?: String;
33
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
34
+ estimated_import_charges?: EstimatedImportCharges;
32
35
  }
@@ -25,6 +25,8 @@ class Customs {
25
25
  contents_explanation;
26
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
27
  export_declaration_number;
28
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
29
+ estimated_import_charges;
28
30
  }
29
31
  exports.Customs = Customs;
30
32
  //# sourceMappingURL=customs.js.map
@@ -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,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"}
1
+ {"version":3,"file":"customs.js","sourceRoot":"","sources":["../../../src/models/customs/customs.ts"],"names":[],"mappings":";;;AASA,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;IACnC,sNAAsN;IACtN,wBAAwB,CAA0B;CACnD;AAzBD,0BAyBC"}
@@ -0,0 +1,8 @@
1
+ import { Currency } from '../currency';
2
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
3
+ export declare class EstimatedImportCharges {
4
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
5
+ taxes?: Currency;
6
+ /** @description Estimated amount and currency of import duties. */
7
+ duties?: Currency;
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EstimatedImportCharges = void 0;
4
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
5
+ class EstimatedImportCharges {
6
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
7
+ taxes;
8
+ /** @description Estimated amount and currency of import duties. */
9
+ duties;
10
+ }
11
+ exports.EstimatedImportCharges = EstimatedImportCharges;
12
+ //# sourceMappingURL=estimated-import-charges.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimated-import-charges.js","sourceRoot":"","sources":["../../../src/models/customs/estimated-import-charges.ts"],"names":[],"mappings":";;;AAEA,mNAAmN;AACnN,MAAa,sBAAsB;IACjC,iIAAiI;IACjI,KAAK,CAAY;IACjB,mEAAmE;IACnE,MAAM,CAAY;CACnB;AALD,wDAKC"}
@@ -10,6 +10,7 @@ exports.TrackEventSchema = joi_1.default.object({
10
10
  event_datetime: joi_1.default.string().optional().empty().isoDate(),
11
11
  event_datetime_local: joi_1.default.string().optional().empty().isoDate(),
12
12
  event_code: joi_1.default.string().optional().empty(),
13
+ carrier_detail_code: joi_1.default.string().optional().empty(),
13
14
  description: joi_1.default.string().optional().empty(),
14
15
  city: joi_1.default.string().optional().empty(),
15
16
  state: joi_1.default.string().optional().empty(),
@@ -1 +1 @@
1
- {"version":3,"file":"track-event-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,uDAAkD;AAClD,yFAAmF;AACnF,uGAAgG;AAEnF,QAAA,gBAAgB,GAAG,aAAG,CAAC,MAAM,CAAC;IACzC,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IACzD,oBAAoB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IAC/D,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,E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EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACpD,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACtC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC5C,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACxC,MAAM,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACvC,GAAG,EAAE,+BAAa,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,gEAA6B,CAAC,QAAQ,EAAE;IACrD,kBAAkB,EAAE,6EAAmC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC"}
@@ -7,8 +7,10 @@ export declare class TrackEvent {
7
7
  event_datetime?: string;
8
8
  /** @description Most providers do not provide tracking events in UTC, and without time zone or geo information its hard to deduce. */
9
9
  event_datetime_local?: string;
10
- /** @description Carrier's specific event code */
10
+ /** @description If the carrier returns both a generic and a specific event code, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific event code. */
11
11
  event_code?: string;
12
+ /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
+ carrier_detail_code?: string;
12
14
  /** @description Description of the package status at this event */
13
15
  description?: string;
14
16
  /** @description City or Locality for this event */
@@ -7,8 +7,10 @@ class TrackEvent {
7
7
  event_datetime;
8
8
  /** @description Most providers do not provide tracking events in UTC, and without time zone or geo information its hard to deduce. */
9
9
  event_datetime_local;
10
- /** @description Carrier's specific event code */
10
+ /** @description If the carrier returns both a generic and a specific event code, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific event code. */
11
11
  event_code;
12
+ /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
+ carrier_detail_code;
12
14
  /** @description Description of the package status at this event */
13
15
  description;
14
16
  /** @description City or Locality for this event */
@@ -1 +1 @@
1
- {"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;AAIA,uDAAuD;AACvD,MAAa,UAAU;IACrB,yHAAyH;IACzH,cAAc,CAAU;IACxB,sIAAsI;IACtI,oBAAoB,CAAU;IAC9B,iDAAiD;IACjD,UAAU,CAAU;IACpB,mEAAmE;IACnE,WAAW,CAAU;IACrB,mDAAmD;IACnD,IAAI,CAAU;IACd,qCAAqC;IACrC,KAAK,CAAU;IACf,sCAAsC;IACtC,WAAW,CAAU;IACrB,0CAA0C;IAC1C,OAAO,CAAU;IACjB,sEAAsE;IACtE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,MAAM,CAAU;IAChB,yCAAyC;IACzC,GAAG,CAAW;IACd,iNAAiN;IACjN,WAAW,CAA2B;IACtC,+FAA+F;IAC/F,kBAAkB,CAAiC;CACpD;AA3BD,gCA2BC"}
1
+ {"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;AAIA,uDAAuD;AACvD,MAAa,UAAU;IACrB,yHAAyH;IACzH,cAAc,CAAU;IACxB,sIAAsI;IACtI,oBAAoB,CAAU;IAC9B,iQAAiQ;IACjQ,UAAU,CAAU;IACpB,kIAAkI;IAClI,mBAAmB,CAAU;IAC7B,mEAAmE;IACnE,WAAW,CAAU;IACrB,mDAAmD;IACnD,IAAI,CAAU;IACd,qCAAqC;IACrC,KAAK,CAAU;IACf,sCAAsC;IACtC,WAAW,CAAU;IACrB,0CAA0C;IAC1C,OAAO,CAAU;IACjB,sEAAsE;IACtE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,MAAM,CAAU;IAChB,yCAAyC;IACzC,GAAG,CAAW;IACd,iNAAiN;IACjN,WAAW,CAA2B;IACtC,+FAA+F;IAC/F,kBAAkB,CAAiC;CACpD;AA7BD,gCA6BC"}
@@ -14,6 +14,7 @@ exports.TrackingInfoSchema = joi_1.default.object({
14
14
  standardized_status_code: standardized_status_codes_schema_1.StandardizedStatusCodesSchema,
15
15
  standardized_status_detail_code: standardized_status_detail_codes_schema_1.StandardizedStatusDetailCodesSchema,
16
16
  carrier_status_code: joi_1.default.string().optional().empty(),
17
+ carrier_detail_code: joi_1.default.string().optional().empty(),
17
18
  carrier_status_description: joi_1.default.string().optional().empty(),
18
19
  shipped_datetime: joi_1.default.string().optional().empty().isoDate(),
19
20
  estimated_delivery_datetime: joi_1.default.string().optional().empty(),
@@ -1 +1 @@
1
- {"version":3,"file":"tracking-info-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/tracking-info-schema.ts"],"names":[],"mappings":";;;;AAAA,yFAAmF;AACnF,uGAAgG;AAChG,kEAA8D;AAC9D,qDAAiD;AACjD,6DAAwD;AACxD,sDAAsB;AAET,QAAA,kBAAkB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC3C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,eAAe,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAChD,wBAAwB,EAAE,gEAA6B;IACvD,+BAA+B,EAAE,6EAAmC;IACpE,mBAAmB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACpD,0BAA0B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC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AQ,EAAE,CAAC,KAAK,EAAE;IAC9C,MAAM,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,qCAAgB,CAAC;IACtD,gBAAgB,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAClD,qBAAqB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACtD,iBAAiB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CACnD,CAAC,CAAC,EAAE,CAAC,0BAA0B,EAAE,iCAAiC,CAAC,CAAC"}
@@ -13,8 +13,10 @@ export declare class TrackingInfo {
13
13
  standardized_status_code?: StandardizedStatusCodes;
14
14
  /** @description This represents the ShipEngine supported status detil codes for a shipment. */
15
15
  standardized_status_detail_code?: StandardizedStatusDetailCodes;
16
- /** @description The carrier specific status code of this shipment's tracking status. */
16
+ /** @description If the carrier returns both a generic and a specific tracking status code for the shipment, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific status code. */
17
17
  carrier_status_code?: string;
18
+ /** @description Optional field for the carrier's specific tracking status code when `carrier_status_code` is populated with a generic status code. */
19
+ carrier_detail_code?: string;
18
20
  /** @description The human readable description of this shipment's tracking status. */
19
21
  carrier_status_description?: string;
20
22
  /** @description When the package(s) in this shipment were turned over to the carrier. Formatted per https://tools.ietf.org/html/rfc3339. Must be in UTC. */
@@ -11,8 +11,10 @@ class TrackingInfo {
11
11
  standardized_status_code;
12
12
  /** @description This represents the ShipEngine supported status detil codes for a shipment. */
13
13
  standardized_status_detail_code;
14
- /** @description The carrier specific status code of this shipment's tracking status. */
14
+ /** @description If the carrier returns both a generic and a specific tracking status code for the shipment, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific status code. */
15
15
  carrier_status_code;
16
+ /** @description Optional field for the carrier's specific tracking status code when `carrier_status_code` is populated with a generic status code. */
17
+ carrier_detail_code;
16
18
  /** @description The human readable description of this shipment's tracking status. */
17
19
  carrier_status_description;
18
20
  /** @description When the package(s) in this shipment were turned over to the carrier. Formatted per https://tools.ietf.org/html/rfc3339. Must be in UTC. */
@@ -1 +1 @@
1
- {"version":3,"file":"tracking-info.js","sourceRoot":"","sources":["../../../src/models/tracking/tracking-info.ts"],"names":[],"mappings":";;;AAMA,4DAA4D;AAC5D,MAAa,YAAY;IACvB,kFAAkF;IAClF,YAAY,CAAU;IACtB,+EAA+E;IAC/E,eAAe,CAAU;IACzB,iNAAiN;IACjN,wBAAwB,CAA2B;IACnD,+FAA+F;IAC/F,+BAA+B,CAAiC;IAChE,wFAAwF;IACxF,mBAAmB,CAAU;IAC7B,sFAAsF;IACtF,0BAA0B,CAAU;IACpC,4JAA4J;IAC5J,gBAAgB,CAAU;IAC1B,wKAAwK;IACxK,2BAA2B,CAAU;IACrC,yJAAyJ;IACzJ,wBAAwB,CAAU;IAClC,0FAA0F;IAC1F,4BAA4B,CAAU;IACtC,0FAA0F;IAC1F,MAAM,CAAU;IAChB,8FAA8F;IAC9F,UAAU,CAAc;IACxB,yDAAyD;IACzD,OAAO,CAAW;IAClB,+CAA+C;IAC/C,SAAS,CAAU;IACnB,4EAA4E;IAC5E,aAAa,CAAU;IACvB,+DAA+D;IAC/D,MAAM,CAAgB;IACtB,4EAA4E;IAC5E,gBAAgB,CAAW;IAC3B,mGAAmG;IACnG,qBAAqB,CAAU;IAC/B,6FAA6F;IAC7F,iBAAiB,CAAU;CAC5B;AAvCD,oCAuCC"}
1
+ {"version":3,"file":"tracking-info.js","sourceRoot":"","sources":["../../../src/models/tracking/tracking-info.ts"],"names":[],"mappings":";;;AAMA,4DAA4D;AAC5D,MAAa,YAAY;IACvB,kFAAkF;IAClF,YAAY,CAAU;IACtB,+EAA+E;IAC/E,eAAe,CAAU;IACzB,iNAAiN;IACjN,wBAAwB,CAA2B;IACnD,+FAA+F;IAC/F,+BAA+B,CAAiC;IAChE,6RAA6R;IAC7R,mBAAmB,CAAU;IAC7B,sJAAsJ;IACtJ,mBAAmB,CAAU;IAC7B,sFAAsF;IACtF,0BAA0B,CAAU;IACpC,4JAA4J;IAC5J,gBAAgB,CAAU;IAC1B,wKAAwK;IACxK,2BAA2B,CAAU;IACrC,yJAAyJ;IACzJ,wBAAwB,CAAU;IAClC,0FAA0F;IAC1F,4BAA4B,CAAU;IACtC,0FAA0F;IAC1F,MAAM,CAAU;IAChB,8FAA8F;IAC9F,UAAU,CAAc;IACxB,yDAAyD;IACzD,OAAO,CAAW;IAClB,+CAA+C;IAC/C,SAAS,CAAU;IACnB,4EAA4E;IAC5E,aAAa,CAAU;IACvB,+DAA+D;IAC/D,MAAM,CAAgB;IACtB,4EAA4E;IAC5E,gBAAgB,CAAW;IAC3B,mGAAmG;IACnG,qBAAqB,CAAU;IAC/B,6FAA6F;IAC7F,iBAAiB,CAAU;CAC5B;AAzCD,oCAyCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.11.11",
3
+ "version": "4.12.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",
@@ -44,7 +44,7 @@
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "peerDependencies": {
47
- "@shipengine/connect-runtime": "^4.8.0",
47
+ "@shipengine/connect-runtime": "^4.9.1",
48
48
  "express": "^4.18.2",
49
49
  "winston": "^3.8.2"
50
50
  }
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.24.8"
6
+ "version": "1.25.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -554,7 +554,7 @@
554
554
  "examples": {
555
555
  "Delivered with Event History": {
556
556
  "summary": "Delivered with Event History",
557
- "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"DE","carrier_status_code":"11","carrier_status_description":"Delivered","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-08T21:15:00Z","event_datetime_local":"2021-08-08T16:15:00","event_code":"3","description":"Order Processed: Ready for UPS","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.31,"long":-97.74},"status_code":"AC"},{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"5","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-10T09:15:00Z","event_datetime_local":"2021-08-10T04:15:00","event_code":"6","description":"On Vehicle for Delivery","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T15:15:00Z","event_datetime_local":"2021-08-10T10:15:00","event_code":"21","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T21:15:00Z","event_datetime_local":"2021-08-10T16:15:00","event_code":"22","description":"First Attempt Made","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"AT"},{"event_datetime":"2021-08-11T03:15:00Z","event_datetime_local":"2021-08-10T22:15:00","event_code":"21","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"11","description":"Delivered","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"DE"}],"shipping_problem":false,"carrierEnum":0}}
557
+ "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"DE","carrier_status_code":"D","carrier_detail_code":"FS","carrier_status_description":"Delivered","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-08T21:15:00Z","event_datetime_local":"2021-08-08T16:15:00","event_code":"M","carrier_detail_code":"DP","description":"Order Processed: Ready for UPS","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.31,"long":-97.74},"status_code":"AC"},{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"I","carrier_detail_code":"MY","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-10T09:15:00Z","event_datetime_local":"2021-08-10T04:15:00","event_code":"I","carrier_detail_code":"DS","description":"On Vehicle for Delivery","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T15:15:00Z","event_datetime_local":"2021-08-10T10:15:00","event_code":"I","carrier_detail_code":"OF","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T21:15:00Z","event_datetime_local":"2021-08-10T16:15:00","event_code":"I","carrier_detail_code":"QS","description":"First Attempt Made","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"AT"},{"event_datetime":"2021-08-11T03:15:00Z","event_datetime_local":"2021-08-10T22:15:00","event_code":"I","carrier_detail_code":"OF","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"D","carrier_detail_code":"FS","description":"Delivered","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"DE"}],"shipping_problem":false,"carrierEnum":0}}
558
558
  },
559
559
  "Not Yet in System": {
560
560
  "summary": "Not Yet in System",
@@ -562,7 +562,7 @@
562
562
  },
563
563
  "Fatal Exception": {
564
564
  "summary": "Fatal Exception",
565
- "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"EX","carrier_status_code":"64","carrier_status_description":"Delivery Refused","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"5","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"59","description":"Delivery Refused","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"EX"}],"shipping_problem":false,"carrierEnum":0}}
565
+ "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"EX","carrier_status_code":"X","carrier_detail_code":"KR","carrier_status_description":"Delivery Refused","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"I","carrier_detail_code":"MY","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"X","carrier_detail_code":"KR","description":"Delivery Refused","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"EX"}],"shipping_problem":false,"carrierEnum":0}}
566
566
  }
567
567
  }
568
568
  }
@@ -1812,6 +1812,9 @@
1812
1812
  "type": "string",
1813
1813
  "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.",
1814
1814
  "nullable": true
1815
+ },
1816
+ "estimated_import_charges": {
1817
+ "$ref": "#/components/schemas/EstimatedImportCharges"
1815
1818
  }
1816
1819
  },
1817
1820
  "additionalProperties": false
@@ -2089,6 +2092,50 @@
2089
2092
  ],
2090
2093
  "type": "string"
2091
2094
  },
2095
+ "EstimatedImportCharges": {
2096
+ "type": "object",
2097
+ "properties": {
2098
+ "taxes": {
2099
+ "required": [
2100
+ "currency",
2101
+ "amount"
2102
+ ],
2103
+ "type": "object",
2104
+ "properties": {
2105
+ "amount": {
2106
+ "type": "string",
2107
+ "description": "Decimal currency value, as a string."
2108
+ },
2109
+ "currency": {
2110
+ "type": "string",
2111
+ "description": "Alpha-3 currency code complying with ISO 4217."
2112
+ }
2113
+ },
2114
+ "description": "Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST).",
2115
+ "nullable": true
2116
+ },
2117
+ "duties": {
2118
+ "required": [
2119
+ "currency",
2120
+ "amount"
2121
+ ],
2122
+ "type": "object",
2123
+ "properties": {
2124
+ "amount": {
2125
+ "type": "string",
2126
+ "description": "Decimal currency value, as a string."
2127
+ },
2128
+ "currency": {
2129
+ "type": "string",
2130
+ "description": "Alpha-3 currency code complying with ISO 4217."
2131
+ }
2132
+ },
2133
+ "description": "Estimated amount and currency of import duties.",
2134
+ "nullable": true
2135
+ }
2136
+ },
2137
+ "additionalProperties": false
2138
+ },
2092
2139
  "ExampleRegisterRequest": {
2093
2140
  "type": "object",
2094
2141
  "additionalProperties": false
@@ -3076,51 +3123,6 @@
3076
3123
  ],
3077
3124
  "type": "string"
3078
3125
  },
3079
- "UnitOfMeasureEnum": {
3080
- "enum": [
3081
- "barrel",
3082
- "bundle",
3083
- "bag",
3084
- "bunch",
3085
- "box",
3086
- "bolt",
3087
- "butt",
3088
- "canister",
3089
- "centimeter",
3090
- "container",
3091
- "crate",
3092
- "case",
3093
- "carton",
3094
- "cylinder",
3095
- "dozen",
3096
- "each",
3097
- "envelope",
3098
- "feet",
3099
- "kilogram",
3100
- "kilograms",
3101
- "pound",
3102
- "pounds",
3103
- "liter",
3104
- "meter",
3105
- "number",
3106
- "packet",
3107
- "pallet",
3108
- "piece",
3109
- "pieces",
3110
- "proof_liters",
3111
- "package",
3112
- "pair",
3113
- "pairs",
3114
- "roll",
3115
- "set",
3116
- "square_meters",
3117
- "square_yards",
3118
- "tube",
3119
- "yard",
3120
- "other"
3121
- ],
3122
- "type": "string"
3123
- },
3124
3126
  "PaperlessDetails": {
3125
3127
  "type": "object",
3126
3128
  "properties": {
@@ -3477,7 +3479,6 @@
3477
3479
  },
3478
3480
  "guaranteed_delivery_days": {
3479
3481
  "type": "integer",
3480
- "description": "Guaranteed delivery days. The number of days it will take for the package to be delivered. <example>1</example>",
3481
3482
  "format": "int32",
3482
3483
  "nullable": true
3483
3484
  }
@@ -4432,14 +4433,14 @@
4432
4433
  },
4433
4434
  "start_window": {
4434
4435
  "type": "string",
4435
- "description": "The start of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with local offset)",
4436
+ "description": "The start of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format,with offset)",
4436
4437
  "format": "date-time",
4437
4438
  "nullable": true,
4438
4439
  "example": "2021-08-20T14:38:36.859237-05:00"
4439
4440
  },
4440
4441
  "end_window": {
4441
4442
  "type": "string",
4442
- "description": "The end of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with local offset)",
4443
+ "description": "The end of the window when the pickup could be made relative to the time_zone_iana. (ISO 8601 format, with offset)",
4443
4444
  "format": "date-time",
4444
4445
  "nullable": true,
4445
4446
  "example": "2021-08-20T18:38:36.859237-05:00"
@@ -4463,7 +4464,12 @@
4463
4464
  },
4464
4465
  "event_code": {
4465
4466
  "type": "string",
4466
- "description": "Carrier's specific event code",
4467
+ "description": "If the carrier returns both a generic and a specific event code, this field should contain the generic value while CarrierApi.Common.Models.Tracking.TrackEvent.CarrierDetailCode should contain the specific value. Otherwise, this field contains the carrier's specific event code.",
4468
+ "nullable": true
4469
+ },
4470
+ "carrier_detail_code": {
4471
+ "type": "string",
4472
+ "description": "Optional field for the carrier's specific event code when CarrierApi.Common.Models.Tracking.TrackEvent.EventCode is populated with a generic event code.",
4467
4473
  "nullable": true
4468
4474
  },
4469
4475
  "description": {
@@ -4570,7 +4576,12 @@
4570
4576
  },
4571
4577
  "carrier_status_code": {
4572
4578
  "type": "string",
4573
- "description": "The carrier specific status code of this shipment's tracking status.",
4579
+ "description": "If the carrier returns both a generic and a specific tracking status code for the shipment, this field should contain the generic value while CarrierApi.Common.Models.Tracking.TrackingInfo.CarrierDetailCode should contain the specific value. Otherwise, this field contains the carrier's specific status code.",
4580
+ "nullable": true
4581
+ },
4582
+ "carrier_detail_code": {
4583
+ "type": "string",
4584
+ "description": "Optional field for the carrier's specific tracking status code when CarrierApi.Common.Models.Tracking.TrackingInfo.CarrierStatusCode is populated with a generic status code.",
4574
4585
  "nullable": true
4575
4586
  },
4576
4587
  "carrier_status_description": {
@@ -4707,6 +4718,51 @@
4707
4718
  ],
4708
4719
  "type": "string"
4709
4720
  },
4721
+ "UnitOfMeasureEnum": {
4722
+ "enum": [
4723
+ "barrel",
4724
+ "bundle",
4725
+ "bag",
4726
+ "bunch",
4727
+ "box",
4728
+ "bolt",
4729
+ "butt",
4730
+ "canister",
4731
+ "centimeter",
4732
+ "container",
4733
+ "crate",
4734
+ "case",
4735
+ "carton",
4736
+ "cylinder",
4737
+ "dozen",
4738
+ "each",
4739
+ "envelope",
4740
+ "feet",
4741
+ "kilogram",
4742
+ "kilograms",
4743
+ "pound",
4744
+ "pounds",
4745
+ "liter",
4746
+ "meter",
4747
+ "number",
4748
+ "packet",
4749
+ "pallet",
4750
+ "piece",
4751
+ "pieces",
4752
+ "proof_liters",
4753
+ "package",
4754
+ "pair",
4755
+ "pairs",
4756
+ "roll",
4757
+ "set",
4758
+ "square_meters",
4759
+ "square_yards",
4760
+ "tube",
4761
+ "yard",
4762
+ "other"
4763
+ ],
4764
+ "type": "string"
4765
+ },
4710
4766
  "UpdateMethods": {
4711
4767
  "enum": [
4712
4768
  "append",
@@ -5139,4 +5195,4 @@
5139
5195
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5140
5196
  }
5141
5197
  ]
5142
- }
5198
+ }
@@ -5,6 +5,7 @@ import { Currency } from '../currency';
5
5
  import { TermsOfTradeCode } from '../inconterms/terms-of-trade-code';
6
6
  import { ImporterOfRecord } from '../importer-records/importer-of-record';
7
7
  import { CustomsCharges } from './customs-charges';
8
+ import { EstimatedImportCharges } from './estimated-import-charges';
8
9
 
9
10
  /** @description Basic structure for a customs declaration */
10
11
  export class Customs {
@@ -30,4 +31,6 @@ export class Customs {
30
31
  contents_explanation?: String;
31
32
  /**@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. */
32
33
  export_declaration_number?: String;
34
+ /**@description: Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
35
+ estimated_import_charges?: EstimatedImportCharges;
33
36
  }
@@ -0,0 +1,9 @@
1
+ import { Currency } from '../currency';
2
+
3
+ /** @description Estimated charges related to importing goods, such as customs duties, taxes, and other import-related fees. Depending on carrier, if provided they will be displayed on the Commercial Invoice. */
4
+ export class EstimatedImportCharges {
5
+ /** @description Estimated amount and currency of import taxes, such as Value-Added Tax (VAT) or Goods and Services Tax (GST). */
6
+ taxes?: Currency;
7
+ /** @description Estimated amount and currency of import duties. */
8
+ duties?: Currency;
9
+ }
@@ -7,6 +7,7 @@ export const TrackEventSchema = Joi.object({
7
7
  event_datetime: Joi.string().optional().empty().isoDate(),
8
8
  event_datetime_local: Joi.string().optional().empty().isoDate(),
9
9
  event_code: Joi.string().optional().empty(),
10
+ carrier_detail_code: Joi.string().optional().empty(),
10
11
  description: Joi.string().optional().empty(),
11
12
  city: Joi.string().optional().empty(),
12
13
  state: Joi.string().optional().empty(),
@@ -8,8 +8,10 @@ export class TrackEvent {
8
8
  event_datetime?: string;
9
9
  /** @description Most providers do not provide tracking events in UTC, and without time zone or geo information its hard to deduce. */
10
10
  event_datetime_local?: string;
11
- /** @description Carrier's specific event code */
11
+ /** @description If the carrier returns both a generic and a specific event code, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific event code. */
12
12
  event_code?: string;
13
+ /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
14
+ carrier_detail_code?: string;
13
15
  /** @description Description of the package status at this event */
14
16
  description?: string;
15
17
  /** @description City or Locality for this event */
@@ -11,6 +11,7 @@ export const TrackingInfoSchema = Joi.object({
11
11
  standardized_status_code: StandardizedStatusCodesSchema,
12
12
  standardized_status_detail_code: StandardizedStatusDetailCodesSchema,
13
13
  carrier_status_code: Joi.string().optional().empty(),
14
+ carrier_detail_code: Joi.string().optional().empty(),
14
15
  carrier_status_description: Joi.string().optional().empty(),
15
16
  shipped_datetime: Joi.string().optional().empty().isoDate(),
16
17
  estimated_delivery_datetime: Joi.string().optional().empty(),
@@ -14,8 +14,10 @@ export class TrackingInfo {
14
14
  standardized_status_code?: StandardizedStatusCodes;
15
15
  /** @description This represents the ShipEngine supported status detil codes for a shipment. */
16
16
  standardized_status_detail_code?: StandardizedStatusDetailCodes;
17
- /** @description The carrier specific status code of this shipment's tracking status. */
17
+ /** @description If the carrier returns both a generic and a specific tracking status code for the shipment, this field should contain the generic value while `carrier_detail_code` should contain the specific value. Otherwise, this field contains the carrier's specific status code. */
18
18
  carrier_status_code?: string;
19
+ /** @description Optional field for the carrier's specific tracking status code when `carrier_status_code` is populated with a generic status code. */
20
+ carrier_detail_code?: string;
19
21
  /** @description The human readable description of this shipment's tracking status. */
20
22
  carrier_status_description?: string;
21
23
  /** @description When the package(s) in this shipment were turned over to the carrier. Formatted per https://tools.ietf.org/html/rfc3339. Must be in UTC. */