@shipengine/connect-carrier-api 4.14.7 → 4.14.8

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 (38) hide show
  1. package/lib/models/addresses/address-base-schema.d.ts +2 -0
  2. package/lib/models/addresses/address-base-schema.js +23 -0
  3. package/lib/models/addresses/address-base-schema.js.map +1 -0
  4. package/lib/models/addresses/index.d.ts +1 -0
  5. package/lib/models/addresses/index.js +1 -0
  6. package/lib/models/addresses/index.js.map +1 -1
  7. package/lib/models/addresses/pudo-location-schema.d.ts +2 -0
  8. package/lib/models/addresses/pudo-location-schema.js +11 -0
  9. package/lib/models/addresses/pudo-location-schema.js.map +1 -0
  10. package/lib/models/customs/customs-charges.d.ts +2 -0
  11. package/lib/models/customs/customs-charges.js +2 -0
  12. package/lib/models/customs/customs-charges.js.map +1 -1
  13. package/lib/models/customs/customs.d.ts +4 -0
  14. package/lib/models/customs/customs.js +4 -0
  15. package/lib/models/customs/customs.js.map +1 -1
  16. package/lib/models/pickup/shipped-shipment.d.ts +2 -0
  17. package/lib/models/pickup/shipped-shipment.js +2 -0
  18. package/lib/models/pickup/shipped-shipment.js.map +1 -1
  19. package/lib/requests/create-label-request.d.ts +1 -0
  20. package/lib/requests/create-label-request.js +1 -0
  21. package/lib/requests/create-label-request.js.map +1 -1
  22. package/lib/responses/create-label-response-schema.js +3 -0
  23. package/lib/responses/create-label-response-schema.js.map +1 -1
  24. package/lib/responses/create-label-response.d.ts +3 -1
  25. package/lib/responses/create-label-response.js +2 -0
  26. package/lib/responses/create-label-response.js.map +1 -1
  27. package/package.json +1 -1
  28. package/spec.json +29 -2
  29. package/src/models/addresses/address-base-schema.ts +19 -0
  30. package/src/models/addresses/index.ts +1 -0
  31. package/src/models/addresses/pudo-location-schema.ts +7 -0
  32. package/src/models/customs/customs-charges.ts +2 -0
  33. package/src/models/customs/customs.ts +4 -0
  34. package/src/models/pickup/shipped-shipment.ts +2 -0
  35. package/src/requests/create-label-request.ts +1 -0
  36. package/src/responses/create-label-response-schema.ts +3 -0
  37. package/src/responses/create-label-response.ts +3 -0
  38. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const AddressBaseSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddressBaseSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ exports.AddressBaseSchema = joi_1.default.object({
7
+ name: joi_1.default.string().optional().empty(),
8
+ first_name: joi_1.default.string().optional().empty(),
9
+ last_name: joi_1.default.string().optional().empty(),
10
+ email: joi_1.default.string().email().optional().empty(),
11
+ phone_number: joi_1.default.string().optional().empty(),
12
+ company_name: joi_1.default.string().optional().empty(),
13
+ address_lines: joi_1.default.array().items(joi_1.default.string()).optional(),
14
+ city_locality: joi_1.default.string().optional().empty(),
15
+ state_province: joi_1.default.string().optional().empty(),
16
+ postal_code: joi_1.default.string().required(),
17
+ country_code: joi_1.default.string().required(),
18
+ address_residential_indicator: joi_1.default.string().optional().empty(),
19
+ is_eu: joi_1.default.boolean().optional(),
20
+ address_metadata: joi_1.default.object().optional().empty(),
21
+ instructions: joi_1.default.string().optional().empty(),
22
+ });
23
+ //# sourceMappingURL=address-base-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address-base-schema.js","sourceRoot":"","sources":["../../../src/models/addresses/address-base-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAET,QAAA,iBAAiB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACrC,UAAU,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC3C,SAAS,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC1C,KAAK,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzD,aAAa,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9C,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC/C,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,6BAA6B,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IAC9D,KAAK,EAAE,aAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,gBAAgB,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;IACjD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;CAC9C,CAAC,CAAC"}
@@ -4,3 +4,4 @@ export * from './ship-from';
4
4
  export * from './ship-from-display';
5
5
  export * from './ship-to';
6
6
  export * from './pudo-location';
7
+ export * from './pudo-location-schema';
@@ -7,4 +7,5 @@ tslib_1.__exportStar(require("./ship-from"), exports);
7
7
  tslib_1.__exportStar(require("./ship-from-display"), exports);
8
8
  tslib_1.__exportStar(require("./ship-to"), exports);
9
9
  tslib_1.__exportStar(require("./pudo-location"), exports);
10
+ tslib_1.__exportStar(require("./pudo-location-schema"), exports);
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/addresses/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,0EAAgD;AAChD,sDAA4B;AAC5B,8DAAoC;AACpC,oDAA0B;AAC1B,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/addresses/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,0EAAgD;AAChD,sDAA4B;AAC5B,8DAAoC;AACpC,oDAA0B;AAC1B,0DAAgC;AAChC,iEAAuC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const PudoLocationSchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PudoLocationSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const address_base_schema_1 = require("./address-base-schema");
7
+ exports.PudoLocationSchema = address_base_schema_1.AddressBaseSchema.keys({
8
+ carrier_code: joi_1.default.string().optional(),
9
+ location_id: joi_1.default.string().optional(),
10
+ });
11
+ //# sourceMappingURL=pudo-location-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pudo-location-schema.js","sourceRoot":"","sources":["../../../src/models/addresses/pudo-location-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,+DAA0D;AAE7C,QAAA,kBAAkB,GAAG,uCAAiB,CAAC,IAAI,CAAC;IACvD,YAAY,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
@@ -14,4 +14,6 @@ export declare class CustomsCharges {
14
14
  discount?: Currency;
15
15
  /**@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. */
16
16
  estimated_import_charges?: EstimatedImportCharges;
17
+ /** @description : The invoice number to be used in the customs.*/
18
+ invoice_number?: string;
17
19
  }
@@ -15,6 +15,8 @@ class CustomsCharges {
15
15
  discount;
16
16
  /**@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. */
17
17
  estimated_import_charges;
18
+ /** @description : The invoice number to be used in the customs.*/
19
+ invoice_number;
18
20
  }
19
21
  exports.CustomsCharges = CustomsCharges;
20
22
  //# sourceMappingURL=customs-charges.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customs-charges.js","sourceRoot":"","sources":["../../../src/models/customs/customs-charges.ts"],"names":[],"mappings":";;;AAGA,2EAA2E;AAC3E,MAAa,cAAc;IACzB,+DAA+D;IAC/D,cAAc,CAAY;IAC1B,6DAA6D;IAC7D,YAAY,CAAY;IACxB,8EAA8E;IAC9E,wBAAwB,CAAU;IAClC,iEAAiE;IACjE,gBAAgB,CAAY;IAC5B,yDAAyD;IACzD,QAAQ,CAAY;IACpB,sNAAsN;IACtN,wBAAwB,CAA0B;CACnD;AAbD,wCAaC"}
1
+ {"version":3,"file":"customs-charges.js","sourceRoot":"","sources":["../../../src/models/customs/customs-charges.ts"],"names":[],"mappings":";;;AAGA,2EAA2E;AAC3E,MAAa,cAAc;IACzB,+DAA+D;IAC/D,cAAc,CAAY;IAC1B,6DAA6D;IAC7D,YAAY,CAAY;IACxB,8EAA8E;IAC9E,wBAAwB,CAAU;IAClC,iEAAiE;IACjE,gBAAgB,CAAY;IAC5B,yDAAyD;IACzD,QAAQ,CAAY;IACpB,sNAAsN;IACtN,wBAAwB,CAA0B;IAClD,kEAAkE;IAClE,cAAc,CAAU;CACzB;AAfD,wCAeC"}
@@ -29,4 +29,8 @@ export declare class Customs {
29
29
  contents_explanation?: String;
30
30
  /**@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
31
  export_declaration_number?: String;
32
+ /**@description: The license number to be used in the customs. */
33
+ license_number?: String;
34
+ /**@description: The certificate number to be used in the customs. */
35
+ certificate_number?: String;
32
36
  }
@@ -25,6 +25,10 @@ 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: The license number to be used in the customs. */
29
+ license_number;
30
+ /**@description: The certificate number to be used in the customs. */
31
+ certificate_number;
28
32
  }
29
33
  exports.Customs = Customs;
30
34
  //# 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":";;;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;IACnC,mEAAmE;IACnE,cAAc,CAAU;IACxB,uEAAuE;IACvE,kBAAkB,CAAU;CAC7B;AA3BD,0BA2BC"}
@@ -18,6 +18,8 @@ export declare class ShippedShipment extends Label {
18
18
  advanced_options?: AdvancedOptions;
19
19
  /** @description Add pick-up location detail*/
20
20
  pickup_location?: PudoLocation;
21
+ /** @description Add drop-off location detail*/
22
+ dropoff_location?: PudoLocation;
21
23
  }
22
24
  export declare class PickupShipment extends ShippedShipment {
23
25
  }
@@ -16,6 +16,8 @@ class ShippedShipment extends label_1.Label {
16
16
  advanced_options;
17
17
  /** @description Add pick-up location detail*/
18
18
  pickup_location;
19
+ /** @description Add drop-off location detail*/
20
+ dropoff_location;
19
21
  }
20
22
  exports.ShippedShipment = ShippedShipment;
21
23
  class PickupShipment extends ShippedShipment {
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-shipment.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-shipment.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAO3C,wEAAwE;AACxE,MAAa,eAAgB,SAAQ,aAAK;IACxC,oEAAoE;IACpE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,2DAA2D;IAC3D,YAAY,CAAU;IACtB,sEAAsE;IACtE,QAAQ,CAAoB;IAC5B,qFAAqF;IACrF,gBAAgB,CAAmB;IACnC,8CAA8C;IAC9C,eAAe,CAAgB;CAChC;AAbD,0CAaC;AAED,MAAa,cAAe,SAAQ,eAAe;CAAG;AAAtD,wCAAsD"}
1
+ {"version":3,"file":"shipped-shipment.js","sourceRoot":"","sources":["../../../src/models/pickup/shipped-shipment.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAO3C,wEAAwE;AACxE,MAAa,eAAgB,SAAQ,aAAK;IACxC,oEAAoE;IACpE,OAAO,CAAU;IACjB,8EAA8E;IAC9E,uBAAuB,CAAgB;IACvC,2DAA2D;IAC3D,YAAY,CAAU;IACtB,sEAAsE;IACtE,QAAQ,CAAoB;IAC5B,qFAAqF;IACrF,gBAAgB,CAAmB;IACnC,8CAA8C;IAC9C,eAAe,CAAgB;IAC/B,+CAA+C;IAC/C,gBAAgB,CAAgB;CACjC;AAfD,0CAeC;AAED,MAAa,cAAe,SAAQ,eAAe;CAAG;AAAtD,wCAAsD"}
@@ -17,6 +17,7 @@ export declare class CreateLabelRequest extends BaseRequest {
17
17
  packages: Package[];
18
18
  ship_to: ShipTo;
19
19
  ship_from: ShipFrom;
20
+ dropoff_location?: PudoLocation;
20
21
  pickup_location?: PudoLocation;
21
22
  relay_points?: RelayPointDetails;
22
23
  ship_from_display?: ShipFromDisplay;
@@ -19,6 +19,7 @@ class CreateLabelRequest extends base_request_1.BaseRequest {
19
19
  packages;
20
20
  ship_to;
21
21
  ship_from;
22
+ dropoff_location;
22
23
  pickup_location;
23
24
  relay_points;
24
25
  ship_from_display;
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-request.js","sourceRoot":"","sources":["../../src/requests/create-label-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAsB7C,mEAAmE;AACnE,MAAa,kBAAmB,SAAQ,0BAAW;IACjD,YAAY,CAAU;IACtB,aAAa,CAAU;IACvB,YAAY,CAAqB;IACjC,YAAY,CAAkB;IAC9B,YAAY,CAAgB;IAC5B,qDAAqD;IACrD,aAAa,CAAW;IACxB,2FAA2F;IAC3F,gBAAgB,CAAmB;IACnC,kBAAkB,CAAsB;IACxC,oDAAoD;IACpD,eAAe,CAAW;IAC1B,QAAQ,CAAa;IACrB,OAAO,CAAU;IACjB,SAAS,CAAY;IACrB,eAAe,CAAgB;IAC/B,YAAY,CAAqB;IACjC,iBAAiB,CAAmB;IACpC,mEAAmE;IACnE,QAAQ,CAAW;IACnB,yDAAyD;IACzD,aAAa,CAAW;IACxB,SAAS,CAAU;IACnB,cAAc,CAAsB;IACpC,wBAAwB,CAA0B;IAClD,WAAW,CAAc;IACzB,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0DAA0D;IAC1D,eAAe,CAAU;IACzB,oGAAoG;IACpG,eAAe,CAAmB;IAClC,OAAO,CAAW;IAClB,kJAAkJ;IAClJ,gBAAgB,CAAU;CAC3B;AApCD,gDAoCC"}
1
+ {"version":3,"file":"create-label-request.js","sourceRoot":"","sources":["../../src/requests/create-label-request.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAsB7C,mEAAmE;AACnE,MAAa,kBAAmB,SAAQ,0BAAW;IACjD,YAAY,CAAU;IACtB,aAAa,CAAU;IACvB,YAAY,CAAqB;IACjC,YAAY,CAAkB;IAC9B,YAAY,CAAgB;IAC5B,qDAAqD;IACrD,aAAa,CAAW;IACxB,2FAA2F;IAC3F,gBAAgB,CAAmB;IACnC,kBAAkB,CAAsB;IACxC,oDAAoD;IACpD,eAAe,CAAW;IAC1B,QAAQ,CAAa;IACrB,OAAO,CAAU;IACjB,SAAS,CAAY;IACrB,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;IAC/B,YAAY,CAAqB;IACjC,iBAAiB,CAAmB;IACpC,mEAAmE;IACnE,QAAQ,CAAW;IACnB,yDAAyD;IACzD,aAAa,CAAW;IACxB,SAAS,CAAU;IACnB,cAAc,CAAsB;IACpC,wBAAwB,CAA0B;IAClD,WAAW,CAAc;IACzB,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0DAA0D;IAC1D,eAAe,CAAU;IACzB,oGAAoG;IACpG,eAAe,CAAmB;IAClC,OAAO,CAAW;IAClB,kJAAkJ;IAClJ,gBAAgB,CAAU;CAC3B;AArCD,gDAqCC"}
@@ -13,6 +13,7 @@ const label_package_schema_1 = require("../models/labels/label-package-schema");
13
13
  const relay_point_details_schema_1 = require("../models/relay-points/relay-point-details-schema");
14
14
  const time_window_schema_1 = require("../models/time-window-schema");
15
15
  const paperless_details_schema_1 = require("../models/labels/paperless-details-schema");
16
+ const pudo_location_schema_1 = require("../models/addresses/pudo-location-schema");
16
17
  exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.keys({
17
18
  transaction_id: joi_1.default.string().required(),
18
19
  label_download: label_download_schema_1.LabelDownloadSchema.optional(),
@@ -30,5 +31,7 @@ exports.CreateLabelResponseSchema = base_response_schema_1.BaseResponseSchema.ke
30
31
  carrier_pickup_window: time_window_schema_1.TimeWindowSchema.optional(),
31
32
  delivery_window: time_window_schema_1.TimeWindowSchema.optional(),
32
33
  relay_points: relay_point_details_schema_1.RelayPointDetailsSchema.optional(),
34
+ dropoff_location: pudo_location_schema_1.PudoLocationSchema.optional(),
35
+ pickup_location: pudo_location_schema_1.PudoLocationSchema.optional(),
33
36
  });
34
37
  //# sourceMappingURL=create-label-response-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response-schema.js","sourceRoot":"","sources":["../../src/responses/create-label-response-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,iEAA4D;AAC5D,yFAAmF;AACnF,yEAAqE;AACrE,mEAA+D;AAC/D,gFAA2E;AAC3E,kFAA6E;AAC7E,gFAA2E;AAC3E,kGAA4F;AAC5F,qEAAgE;AAChE,wFAAmF;AAEtE,QAAA,yBAAyB,GAAG,yCAAkB,CAAC,IAAI,CAAC;IAC/D,cAAc,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,2CAAmB,CAAC,QAAQ,EAAE;IAC9C,aAAa,EAAE,yCAAkB,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAA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QAAQ,EAAE;IAC/C,eAAe,EAAE,yCAAkB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { BaseResponse } from './base-response';
2
- import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails } from '../models';
2
+ import { LabelDownload, FormDownload, Document, BillingLineItem, LabelPackage, Identifier, TimeWindow, RelayPointDetails, PaperlessDetails, PudoLocation } from '../models';
3
3
  /** @description Basic structure for a response to create a label */
4
4
  export declare class CreateLabelResponse extends BaseResponse {
5
5
  transaction_id: string;
@@ -20,4 +20,6 @@ export declare class CreateLabelResponse extends BaseResponse {
20
20
  /** @description The delivery window is the time designated when the carrier will drop off the package to the recipient */
21
21
  delivery_window?: TimeWindow;
22
22
  relay_points?: RelayPointDetails;
23
+ dropoff_location?: PudoLocation;
24
+ pickup_location?: PudoLocation;
23
25
  }
@@ -22,6 +22,8 @@ class CreateLabelResponse extends base_response_1.BaseResponse {
22
22
  /** @description The delivery window is the time designated when the carrier will drop off the package to the recipient */
23
23
  delivery_window;
24
24
  relay_points;
25
+ dropoff_location;
26
+ pickup_location;
25
27
  }
26
28
  exports.CreateLabelResponse = CreateLabelResponse;
27
29
  //# sourceMappingURL=create-label-response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAa/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;CAClC;AAnBD,kDAmBC"}
1
+ {"version":3,"file":"create-label-response.js","sourceRoot":"","sources":["../../src/responses/create-label-response.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAc/C,oEAAoE;AACpE,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,cAAc,CAAU;IACxB,cAAc,CAAiB;IAC/B,aAAa,CAAgB;IAC7B,iBAAiB,CAAoB;IACrC,SAAS,CAAc;IACvB,QAAQ,CAAkB;IAC1B,kBAAkB,CAAqB;IACvC,eAAe,CAAU;IACzB,YAAY,CAAU;IACtB,SAAS,CAAW;IACpB,uBAAuB,CAAgB;IACvC,2BAA2B,CAAU;IACrC,yBAAyB,CAAU;IACnC,wIAAwI;IACxI,qBAAqB,CAAc;IACnC,0HAA0H;IAC1H,eAAe,CAAc;IAC7B,YAAY,CAAqB;IACjC,gBAAgB,CAAgB;IAChC,eAAe,CAAgB;CAChC;AArBD,kDAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.14.7",
3
+ "version": "4.14.8",
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.27.5"
6
+ "version": "1.27.7"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -1340,6 +1340,9 @@
1340
1340
  "pickup_location": {
1341
1341
  "$ref": "#/components/schemas/PudoLocation"
1342
1342
  },
1343
+ "dropoff_location": {
1344
+ "$ref": "#/components/schemas/PudoLocation"
1345
+ },
1343
1346
  "relay_points": {
1344
1347
  "$ref": "#/components/schemas/RelayPointDetails"
1345
1348
  },
@@ -1478,6 +1481,12 @@
1478
1481
  "relay_points": {
1479
1482
  "$ref": "#/components/schemas/RelayPointDetails"
1480
1483
  },
1484
+ "pickup_location": {
1485
+ "$ref": "#/components/schemas/PudoLocation"
1486
+ },
1487
+ "dropoff_location": {
1488
+ "$ref": "#/components/schemas/PudoLocation"
1489
+ },
1481
1490
  "paperless_details": {
1482
1491
  "$ref": "#/components/schemas/PaperlessDetails"
1483
1492
  }
@@ -1752,6 +1761,11 @@
1752
1761
  },
1753
1762
  "estimated_import_charges": {
1754
1763
  "$ref": "#/components/schemas/EstimatedImportCharges"
1764
+ },
1765
+ "invoice_number": {
1766
+ "type": "string",
1767
+ "description": "The invoice number to be used in the customs.",
1768
+ "nullable": true
1755
1769
  }
1756
1770
  },
1757
1771
  "additionalProperties": false,
@@ -1830,6 +1844,16 @@
1830
1844
  "type": "string",
1831
1845
  "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.",
1832
1846
  "nullable": true
1847
+ },
1848
+ "license_number": {
1849
+ "type": "string",
1850
+ "description": "The license number to be used in the customs.",
1851
+ "nullable": true
1852
+ },
1853
+ "certificate_number": {
1854
+ "type": "string",
1855
+ "description": "The certificate number to be used in the customs.",
1856
+ "nullable": true
1833
1857
  }
1834
1858
  },
1835
1859
  "additionalProperties": false
@@ -4280,6 +4304,9 @@
4280
4304
  },
4281
4305
  "pickup_location": {
4282
4306
  "$ref": "#/components/schemas/PudoLocation"
4307
+ },
4308
+ "dropoff_location": {
4309
+ "$ref": "#/components/schemas/PudoLocation"
4283
4310
  }
4284
4311
  },
4285
4312
  "additionalProperties": false,
@@ -5303,4 +5330,4 @@
5303
5330
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
5304
5331
  }
5305
5332
  ]
5306
- }
5333
+ }
@@ -0,0 +1,19 @@
1
+ import Joi from 'joi';
2
+
3
+ export const AddressBaseSchema = Joi.object({
4
+ name: Joi.string().optional().empty(),
5
+ first_name: Joi.string().optional().empty(),
6
+ last_name: Joi.string().optional().empty(),
7
+ email: Joi.string().email().optional().empty(),
8
+ phone_number: Joi.string().optional().empty(),
9
+ company_name: Joi.string().optional().empty(),
10
+ address_lines: Joi.array().items(Joi.string()).optional(),
11
+ city_locality: Joi.string().optional().empty(),
12
+ state_province: Joi.string().optional().empty(),
13
+ postal_code: Joi.string().required(),
14
+ country_code: Joi.string().required(),
15
+ address_residential_indicator: Joi.string().optional().empty(),
16
+ is_eu: Joi.boolean().optional(),
17
+ address_metadata: Joi.object().optional().empty(),
18
+ instructions: Joi.string().optional().empty(),
19
+ });
@@ -4,3 +4,4 @@ export * from './ship-from';
4
4
  export * from './ship-from-display';
5
5
  export * from './ship-to';
6
6
  export * from './pudo-location';
7
+ export * from './pudo-location-schema';
@@ -0,0 +1,7 @@
1
+ import Joi from 'joi';
2
+ import { AddressBaseSchema } from './address-base-schema';
3
+
4
+ export const PudoLocationSchema = AddressBaseSchema.keys({
5
+ carrier_code: Joi.string().optional(),
6
+ location_id: Joi.string().optional(),
7
+ });
@@ -15,4 +15,6 @@ export class CustomsCharges {
15
15
  discount?: Currency;
16
16
  /**@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. */
17
17
  estimated_import_charges?: EstimatedImportCharges;
18
+ /** @description : The invoice number to be used in the customs.*/
19
+ invoice_number?: string;
18
20
  }
@@ -30,4 +30,8 @@ export class Customs {
30
30
  contents_explanation?: String;
31
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. */
32
32
  export_declaration_number?: String;
33
+ /**@description: The license number to be used in the customs. */
34
+ license_number?: String;
35
+ /**@description: The certificate number to be used in the customs. */
36
+ certificate_number?: String;
33
37
  }
@@ -19,6 +19,8 @@ export class ShippedShipment extends Label {
19
19
  advanced_options?: AdvancedOptions;
20
20
  /** @description Add pick-up location detail*/
21
21
  pickup_location?: PudoLocation;
22
+ /** @description Add drop-off location detail*/
23
+ dropoff_location?: PudoLocation;
22
24
  }
23
25
 
24
26
  export class PickupShipment extends ShippedShipment {}
@@ -37,6 +37,7 @@ export class CreateLabelRequest extends BaseRequest {
37
37
  packages!: Package[];
38
38
  ship_to!: ShipTo;
39
39
  ship_from!: ShipFrom;
40
+ dropoff_location?: PudoLocation;
40
41
  pickup_location?: PudoLocation;
41
42
  relay_points?: RelayPointDetails;
42
43
  ship_from_display?: ShipFromDisplay;
@@ -9,6 +9,7 @@ import { LabelPackageSchema } from '../models/labels/label-package-schema';
9
9
  import { RelayPointDetailsSchema } from '../models/relay-points/relay-point-details-schema';
10
10
  import { TimeWindowSchema } from '../models/time-window-schema';
11
11
  import { PaperlessDetailsSchema } from '../models/labels/paperless-details-schema';
12
+ import { PudoLocationSchema } from '../models/addresses/pudo-location-schema';
12
13
 
13
14
  export const CreateLabelResponseSchema = BaseResponseSchema.keys({
14
15
  transaction_id: Joi.string().required(),
@@ -27,4 +28,6 @@ export const CreateLabelResponseSchema = BaseResponseSchema.keys({
27
28
  carrier_pickup_window: TimeWindowSchema.optional(),
28
29
  delivery_window: TimeWindowSchema.optional(),
29
30
  relay_points: RelayPointDetailsSchema.optional(),
31
+ dropoff_location: PudoLocationSchema.optional(),
32
+ pickup_location: PudoLocationSchema.optional(),
30
33
  });
@@ -9,6 +9,7 @@ import {
9
9
  TimeWindow,
10
10
  RelayPointDetails,
11
11
  PaperlessDetails,
12
+ PudoLocation,
12
13
  } from '../models';
13
14
 
14
15
  /** @description Basic structure for a response to create a label */
@@ -31,4 +32,6 @@ export class CreateLabelResponse extends BaseResponse {
31
32
  /** @description The delivery window is the time designated when the carrier will drop off the package to the recipient */
32
33
  delivery_window?: TimeWindow;
33
34
  relay_points?: RelayPointDetails;
35
+ dropoff_location?: PudoLocation;
36
+ pickup_location?: PudoLocation;
34
37
  }