@shipengine/connect-carrier-api 4.12.2 → 4.14.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 (54) hide show
  1. package/lib/app/metadata/carrier-attributes.d.ts +2 -1
  2. package/lib/app/metadata/carrier-attributes.js +1 -0
  3. package/lib/app/metadata/carrier-attributes.js.map +1 -1
  4. package/lib/app/metadata/enums.d.ts +2 -1
  5. package/lib/app/metadata/enums.js +1 -0
  6. package/lib/app/metadata/enums.js.map +1 -1
  7. package/lib/models/billing/billing-line-item.d.ts +3 -0
  8. package/lib/models/billing/billing-line-item.js +2 -0
  9. package/lib/models/billing/billing-line-item.js.map +1 -1
  10. package/lib/models/billing/index.d.ts +1 -0
  11. package/lib/models/billing/index.js +1 -0
  12. package/lib/models/billing/index.js.map +1 -1
  13. package/lib/models/billing/tax-details.d.ts +7 -0
  14. package/lib/models/billing/tax-details.js +11 -0
  15. package/lib/models/billing/tax-details.js.map +1 -0
  16. package/lib/models/taxes/index.d.ts +1 -0
  17. package/lib/models/taxes/index.js +1 -0
  18. package/lib/models/taxes/index.js.map +1 -1
  19. package/lib/models/taxes/tax-type.d.ts +3 -0
  20. package/lib/models/taxes/tax-type.js +8 -0
  21. package/lib/models/taxes/tax-type.js.map +1 -0
  22. package/lib/models/tracking/proof-of-delivery-format-schema.d.ts +2 -0
  23. package/lib/models/tracking/proof-of-delivery-format-schema.js +8 -0
  24. package/lib/models/tracking/proof-of-delivery-format-schema.js.map +1 -0
  25. package/lib/models/tracking/proof-of-delivery-format.d.ts +4 -0
  26. package/lib/models/tracking/proof-of-delivery-format.js +9 -0
  27. package/lib/models/tracking/proof-of-delivery-format.js.map +1 -0
  28. package/lib/models/tracking/proof-of-delivery-schema.d.ts +2 -0
  29. package/lib/models/tracking/proof-of-delivery-schema.js +11 -0
  30. package/lib/models/tracking/proof-of-delivery-schema.js.map +1 -0
  31. package/lib/models/tracking/proof-of-delivery.d.ts +8 -0
  32. package/lib/models/tracking/proof-of-delivery.js +12 -0
  33. package/lib/models/tracking/proof-of-delivery.js.map +1 -0
  34. package/lib/models/tracking/track-event-schema.js +2 -0
  35. package/lib/models/tracking/track-event-schema.js.map +1 -1
  36. package/lib/models/tracking/track-event.d.ts +3 -0
  37. package/lib/models/tracking/track-event.js +2 -0
  38. package/lib/models/tracking/track-event.js.map +1 -1
  39. package/package.json +1 -1
  40. package/spec.json +60 -2
  41. package/src/app/metadata/carrier-attributes.ts +1 -0
  42. package/src/app/metadata/enums.ts +1 -0
  43. package/src/models/billing/billing-line-item.ts +3 -0
  44. package/src/models/billing/index.ts +1 -0
  45. package/src/models/billing/tax-details.ts +8 -0
  46. package/src/models/taxes/index.ts +1 -0
  47. package/src/models/taxes/tax-type.ts +3 -0
  48. package/src/models/tracking/proof-of-delivery-format-schema.ts +6 -0
  49. package/src/models/tracking/proof-of-delivery-format.ts +4 -0
  50. package/src/models/tracking/proof-of-delivery-schema.ts +7 -0
  51. package/src/models/tracking/proof-of-delivery.ts +9 -0
  52. package/src/models/tracking/track-event-schema.ts +2 -0
  53. package/src/models/tracking/track-event.ts +3 -0
  54. package/tsconfig.tsbuildinfo +1 -1
@@ -5,6 +5,7 @@ export declare enum CarrierAttributeEnum {
5
5
  Consolidator = "Consolidator",
6
6
  Regional = "Regional",
7
7
  RequiresInboundWebhook = "RequiresInboundWebhook",
8
- DetailedStatuses = "DetailedStatuses"
8
+ DetailedStatuses = "DetailedStatuses",
9
+ ProofOfDelivery = "ProofOfDelivery"
9
10
  }
10
11
  export declare const CarrierAttributeEnumSchema: Joi.StringSchema;
@@ -11,6 +11,7 @@ var CarrierAttributeEnum;
11
11
  CarrierAttributeEnum["Regional"] = "Regional";
12
12
  CarrierAttributeEnum["RequiresInboundWebhook"] = "RequiresInboundWebhook";
13
13
  CarrierAttributeEnum["DetailedStatuses"] = "DetailedStatuses";
14
+ CarrierAttributeEnum["ProofOfDelivery"] = "ProofOfDelivery";
14
15
  })(CarrierAttributeEnum || (exports.CarrierAttributeEnum = CarrierAttributeEnum = {}));
15
16
  exports.CarrierAttributeEnumSchema = joi_1.default.string().valid(...Object.values(CarrierAttributeEnum));
16
17
  //# sourceMappingURL=carrier-attributes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,2DAAmC,CAAA;IACnC,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,6CAAqB,CAAA;IACrB,yEAAiD,CAAA;IACjD,6DAAqC,CAAA;AACvC,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B;AAEY,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,CAAC"}
1
+ {"version":3,"file":"carrier-attributes.js","sourceRoot":"","sources":["../../../src/app/metadata/carrier-attributes.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AAEtB,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,2DAAmC,CAAA;IACnC,6DAAqC,CAAA;IACrC,qDAA6B,CAAA;IAC7B,6CAAqB,CAAA;IACrB,yEAAiD,CAAA;IACjD,6DAAqC,CAAA;IACrC,2DAAmC,CAAA;AACrC,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B;AAEY,QAAA,0BAA0B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC1D,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,CAAC"}
@@ -4,7 +4,8 @@ export declare enum CarrierAttribute {
4
4
  Consolidator = "Consolidator",
5
5
  Regional = "Regional",
6
6
  RequiresInboundWebhook = "RequiresInboundWebhook",
7
- DetailedStatuses = "DetailedStatuses"
7
+ DetailedStatuses = "DetailedStatuses",
8
+ ProofOfDelivery = "ProofOfDelivery"
8
9
  }
9
10
  export declare enum ShippingServiceAttribute {
10
11
  Returns = "Returns",
@@ -9,6 +9,7 @@ var CarrierAttribute;
9
9
  CarrierAttribute["Regional"] = "Regional";
10
10
  CarrierAttribute["RequiresInboundWebhook"] = "RequiresInboundWebhook";
11
11
  CarrierAttribute["DetailedStatuses"] = "DetailedStatuses";
12
+ CarrierAttribute["ProofOfDelivery"] = "ProofOfDelivery";
12
13
  })(CarrierAttribute || (exports.CarrierAttribute = CarrierAttribute = {}));
13
14
  var ShippingServiceAttribute;
14
15
  (function (ShippingServiceAttribute) {
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/app/metadata/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,uDAAmC,CAAA;IACnC,yDAAqC,CAAA;IACrC,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,qEAAiD,CAAA;IACjD,yDAAqC,CAAA;AACvC,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED,IAAY,wBAcX;AAdD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,yDAA6B,CAAA;IAC7B,iDAAqB,CAAA;IACrB,uEAA2C,CAAA;IAC3C,iFAAqD,CAAA;IACrD,+DAAmC,CAAA;IACnC,iEAAqC,CAAA;IACrC,6DAAiC,CAAA;IACjC,uCAAW,CAAA;IACX,6DAAiC,CAAA;IACjC,2EAA+C,CAAA;IAC/C,6DAAiC,CAAA;IACjC,6EAAiD,CAAA;AACnD,CAAC,EAdW,wBAAwB,wCAAxB,wBAAwB,QAcnC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,YASX;AATD,WAAY,YAAY;IACtB,2CAA2B,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B,CAAA;IACvB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,YASX;AATD,WAAY,YAAY;IACtB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;IAC3B,+CAA+B,CAAA;IAC/B,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;IAC3B,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,2CAA2B,CAAA;IAC3B,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,6CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
@@ -1,5 +1,6 @@
1
1
  import { BillingCategories } from './billing-categories';
2
2
  import { Currency } from '../currency';
3
+ import { TaxDetails } from './tax-details';
3
4
  /** @description Basic structure of each charge or line item */
4
5
  export declare class BillingLineItem {
5
6
  /** A generalized category for what type of billing line item this is */
@@ -14,4 +15,6 @@ export declare class BillingLineItem {
14
15
  amount: Currency;
15
16
  /** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
16
17
  provider_billed_amount?: Currency;
18
+ /** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
19
+ tax_details?: TaxDetails;
17
20
  }
@@ -15,6 +15,8 @@ class BillingLineItem {
15
15
  amount;
16
16
  /** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
17
17
  provider_billed_amount;
18
+ /** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
19
+ tax_details;
18
20
  }
19
21
  exports.BillingLineItem = BillingLineItem;
20
22
  //# sourceMappingURL=billing-line-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;AAGA,+DAA+D;AAC/D,MAAa,eAAe;IAC1B,wEAAwE;IACxE,gBAAgB,CAAqB;IACrC,+JAA+J;IAC/J,mBAAmB,CAAU;IAC7B,8DAA8D;IAC9D,oBAAoB,CAAU;IAC9B,6MAA6M;IAC7M,IAAI,CAAU;IACd,oFAAoF;IACpF,MAAM,CAAY;IAClB,oIAAoI;IACpI,sBAAsB,CAAY;CACnC;AAbD,0CAaC"}
1
+ {"version":3,"file":"billing-line-item.js","sourceRoot":"","sources":["../../../src/models/billing/billing-line-item.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,MAAa,eAAe;IAC1B,wEAAwE;IACxE,gBAAgB,CAAqB;IACrC,+JAA+J;IAC/J,mBAAmB,CAAU;IAC7B,8DAA8D;IAC9D,oBAAoB,CAAU;IAC9B,6MAA6M;IAC7M,IAAI,CAAU;IACd,oFAAoF;IACpF,MAAM,CAAY;IAClB,oIAAoI;IACpI,sBAAsB,CAAY;IAClC,8JAA8J;IAC9J,WAAW,CAAc;CAC1B;AAfD,0CAeC"}
@@ -3,3 +3,4 @@ export * from './billing-categories-schema';
3
3
  export * from './billing-line-item';
4
4
  export * from './billing-line-item-schema';
5
5
  export * from './billing-to-party';
6
+ export * from './tax-details';
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./billing-categories-schema"), exports);
6
6
  tslib_1.__exportStar(require("./billing-line-item"), exports);
7
7
  tslib_1.__exportStar(require("./billing-line-item-schema"), exports);
8
8
  tslib_1.__exportStar(require("./billing-to-party"), exports);
9
+ tslib_1.__exportStar(require("./tax-details"), exports);
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/billing/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,sEAA4C;AAC5C,8DAAoC;AACpC,qEAA2C;AAC3C,6DAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/billing/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,sEAA4C;AAC5C,8DAAoC;AACpC,qEAA2C;AAC3C,6DAAmC;AACnC,wDAA8B"}
@@ -0,0 +1,7 @@
1
+ import { TaxType } from '../taxes';
2
+ export declare class TaxDetails {
3
+ tax_type?: TaxType;
4
+ tax_code?: string;
5
+ /** @description Tax percentage, e.g. 20, 23.7 */
6
+ tax_percentage?: number;
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxDetails = void 0;
4
+ class TaxDetails {
5
+ tax_type;
6
+ tax_code;
7
+ /** @description Tax percentage, e.g. 20, 23.7 */
8
+ tax_percentage;
9
+ }
10
+ exports.TaxDetails = TaxDetails;
11
+ //# sourceMappingURL=tax-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tax-details.js","sourceRoot":"","sources":["../../../src/models/billing/tax-details.ts"],"names":[],"mappings":";;;AAEA,MAAa,UAAU;IACrB,QAAQ,CAAW;IACnB,QAAQ,CAAU;IAClB,iDAAiD;IACjD,cAAc,CAAU;CACzB;AALD,gCAKC"}
@@ -1,2 +1,3 @@
1
1
  export * from './tax-identifier-type';
2
2
  export * from './tax-identifier';
3
+ export * from './tax-type';
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./tax-identifier-type"), exports);
5
5
  tslib_1.__exportStar(require("./tax-identifier"), exports);
6
+ tslib_1.__exportStar(require("./tax-type"), exports);
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/taxes/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,2DAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/taxes/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC;AACtC,2DAAiC;AACjC,qDAA2B"}
@@ -0,0 +1,3 @@
1
+ export declare enum TaxType {
2
+ VAT = "vat"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaxType = void 0;
4
+ var TaxType;
5
+ (function (TaxType) {
6
+ TaxType["VAT"] = "vat";
7
+ })(TaxType || (exports.TaxType = TaxType = {}));
8
+ //# sourceMappingURL=tax-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tax-type.js","sourceRoot":"","sources":["../../../src/models/taxes/tax-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,sBAAW,CAAA;AACb,CAAC,EAFW,OAAO,uBAAP,OAAO,QAElB"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const ProofOfDeliveryFormatSchema: Joi.StringSchema;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliveryFormatSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const proof_of_delivery_format_1 = require("./proof-of-delivery-format");
7
+ exports.ProofOfDeliveryFormatSchema = joi_1.default.string().valid(...Object.values(proof_of_delivery_format_1.ProofOfDeliveryFormat));
8
+ //# sourceMappingURL=proof-of-delivery-format-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-format-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-format-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,yEAAmE;AAEtD,QAAA,2BAA2B,GAAG,aAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAC3D,GAAG,MAAM,CAAC,MAAM,CAAC,gDAAqB,CAAC,CACxC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ProofOfDeliveryFormat {
2
+ Pdf = "PDF",
3
+ Png = "PNG"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliveryFormat = void 0;
4
+ var ProofOfDeliveryFormat;
5
+ (function (ProofOfDeliveryFormat) {
6
+ ProofOfDeliveryFormat["Pdf"] = "PDF";
7
+ ProofOfDeliveryFormat["Png"] = "PNG";
8
+ })(ProofOfDeliveryFormat || (exports.ProofOfDeliveryFormat = ProofOfDeliveryFormat = {}));
9
+ //# sourceMappingURL=proof-of-delivery-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-format.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-format.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,oCAAW,CAAA;AACb,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -0,0 +1,2 @@
1
+ import Joi from 'joi';
2
+ export declare const ProofOfDeliverySchema: Joi.ObjectSchema<any>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDeliverySchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const joi_1 = tslib_1.__importDefault(require("joi"));
6
+ const proof_of_delivery_format_schema_1 = require("./proof-of-delivery-format-schema");
7
+ exports.ProofOfDeliverySchema = joi_1.default.object({
8
+ data: joi_1.default.string().required(),
9
+ format: proof_of_delivery_format_schema_1.ProofOfDeliveryFormatSchema.required(),
10
+ });
11
+ //# sourceMappingURL=proof-of-delivery-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery-schema.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery-schema.ts"],"names":[],"mappings":";;;;AAAA,sDAAsB;AACtB,uFAAgF;AAEnE,QAAA,qBAAqB,GAAG,aAAG,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,6DAA2B,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
2
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
3
+ export declare class ProofOfDelivery {
4
+ /** @description Base64 encoded data for the proof of delivery. */
5
+ data: string;
6
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
7
+ format: ProofOfDeliveryFormat;
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProofOfDelivery = void 0;
4
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
5
+ class ProofOfDelivery {
6
+ /** @description Base64 encoded data for the proof of delivery. */
7
+ data;
8
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
9
+ format;
10
+ }
11
+ exports.ProofOfDelivery = ProofOfDelivery;
12
+ //# sourceMappingURL=proof-of-delivery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof-of-delivery.js","sourceRoot":"","sources":["../../../src/models/tracking/proof-of-delivery.ts"],"names":[],"mappings":";;;AAEA,iRAAiR;AACjR,MAAa,eAAe;IAC1B,kEAAkE;IAClE,IAAI,CAAU;IACd,4EAA4E;IAC5E,MAAM,CAAyB;CAChC;AALD,0CAKC"}
@@ -6,11 +6,13 @@ const joi_1 = tslib_1.__importDefault(require("joi"));
6
6
  const lat_long_schema_1 = require("./lat-long-schema");
7
7
  const standardized_status_codes_schema_1 = require("./standardized-status-codes-schema");
8
8
  const standardized_status_detail_codes_schema_1 = require("./standardized-status-detail-codes-schema");
9
+ const proof_of_delivery_schema_1 = require("./proof-of-delivery-schema");
9
10
  exports.TrackEventSchema = joi_1.default.object({
10
11
  event_datetime: joi_1.default.string().optional().empty().isoDate(),
11
12
  event_datetime_local: joi_1.default.string().optional().empty().isoDate(),
12
13
  event_code: joi_1.default.string().optional().empty(),
13
14
  carrier_detail_code: joi_1.default.string().optional().empty(),
15
+ proof_of_delivery: proof_of_delivery_schema_1.ProofOfDeliverySchema.optional(),
14
16
  description: joi_1.default.string().optional().empty(),
15
17
  city: joi_1.default.string().optional().empty(),
16
18
  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,EAAE,CAAC,KAAK,EAAE;IAC3C,mBAAmB,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,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,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"}
@@ -1,6 +1,7 @@
1
1
  import { LatLong } from './lat-long';
2
2
  import { StandardizedStatusCodes } from './standardized-status-codes';
3
3
  import { StandardizedStatusDetailCodes } from './standardized-status-detail-codes';
4
+ import { ProofOfDelivery } from './proof-of-delivery';
4
5
  /** @description Basic structure for tracking events */
5
6
  export declare class TrackEvent {
6
7
  /** @description When this tracking event occurred. Formatted per https://tools.ietf.org/html/rfc3339. Must be in UTC. */
@@ -11,6 +12,8 @@ export declare class TrackEvent {
11
12
  event_code?: string;
12
13
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
14
  carrier_detail_code?: string;
15
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
16
+ proof_of_delivery?: ProofOfDelivery;
14
17
  /** @description Description of the package status at this event */
15
18
  description?: string;
16
19
  /** @description City or Locality for this event */
@@ -11,6 +11,8 @@ class TrackEvent {
11
11
  event_code;
12
12
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
13
13
  carrier_detail_code;
14
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
15
+ proof_of_delivery;
14
16
  /** @description Description of the package status at this event */
15
17
  description;
16
18
  /** @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,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"}
1
+ {"version":3,"file":"track-event.js","sourceRoot":"","sources":["../../../src/models/tracking/track-event.ts"],"names":[],"mappings":";;;AAKA,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,iRAAiR;IACjR,iBAAiB,CAAmB;IACpC,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;AA/BD,gCA+BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-carrier-api",
3
- "version": "4.12.2",
3
+ "version": "4.14.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.25.2"
6
+ "version": "1.27.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -1005,7 +1005,7 @@
1005
1005
  },
1006
1006
  "memo": {
1007
1007
  "type": "string",
1008
- "description": "Maximum length of 250 characters. This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters.",
1008
+ "description": "This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters.",
1009
1009
  "nullable": true
1010
1010
  },
1011
1011
  "amount": {
@@ -1026,6 +1026,9 @@
1026
1026
  },
1027
1027
  "description": "Total amount of the line item to be billed to the end customer.",
1028
1028
  "nullable": true
1029
+ },
1030
+ "tax_details": {
1031
+ "$ref": "#/components/schemas/TaxDetails"
1029
1032
  }
1030
1033
  },
1031
1034
  "additionalProperties": false
@@ -4353,6 +4356,52 @@
4353
4356
  "type": "string",
4354
4357
  "description": "This represents the ShipEngine supported detail codes for a shipment."
4355
4358
  },
4359
+ "ProofOfDelivery": {
4360
+ "required": [
4361
+ "data",
4362
+ "format"
4363
+ ],
4364
+ "type": "object",
4365
+ "properties": {
4366
+ "data": {
4367
+ "type": "string",
4368
+ "description": "Base64 encoded data for the proof of delivery.",
4369
+ "nullable": true
4370
+ },
4371
+ "format": {
4372
+ "$ref": "#/components/schemas/ProofOfDeliveryFormat"
4373
+ }
4374
+ },
4375
+ "additionalProperties": false,
4376
+ "description": "An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc."
4377
+ },
4378
+ "ProofOfDeliveryFormat": {
4379
+ "enum": [
4380
+ "PDF",
4381
+ "PNG"
4382
+ ],
4383
+ "type": "string",
4384
+ "description": "The format the document is in.\r\nPdf - PDF\r\nPng - PNG"
4385
+ },
4386
+ "TaxDetails": {
4387
+ "type": "object",
4388
+ "properties": {
4389
+ "tax_type": {
4390
+ "$ref": "#/components/schemas/TaxType"
4391
+ },
4392
+ "tax_code": {
4393
+ "type": "string",
4394
+ "nullable": true
4395
+ },
4396
+ "tax_percentage": {
4397
+ "type": "number",
4398
+ "description": "Tax percentage, e.g. 20, 23.7",
4399
+ "format": "double",
4400
+ "nullable": true
4401
+ }
4402
+ },
4403
+ "additionalProperties": false
4404
+ },
4356
4405
  "TaxIdentificationType": {
4357
4406
  "enum": [
4358
4407
  "tin",
@@ -4401,6 +4450,12 @@
4401
4450
  "additionalProperties": false,
4402
4451
  "description": "Entity representing a Tax Identification number, type, and country of registration."
4403
4452
  },
4453
+ "TaxType": {
4454
+ "enum": [
4455
+ "vat"
4456
+ ],
4457
+ "type": "string"
4458
+ },
4404
4459
  "TermsOfTradeCode": {
4405
4460
  "enum": [
4406
4461
  "exw",
@@ -4514,6 +4569,9 @@
4514
4569
  },
4515
4570
  "status_detail_code": {
4516
4571
  "$ref": "#/components/schemas/StandardizedStatusDetailCodes"
4572
+ },
4573
+ "proof_of_delivery": {
4574
+ "$ref": "#/components/schemas/ProofOfDelivery"
4517
4575
  }
4518
4576
  },
4519
4577
  "additionalProperties": false,
@@ -7,6 +7,7 @@ export enum CarrierAttributeEnum {
7
7
  Regional = 'Regional',
8
8
  RequiresInboundWebhook = 'RequiresInboundWebhook',
9
9
  DetailedStatuses = 'DetailedStatuses',
10
+ ProofOfDelivery = 'ProofOfDelivery',
10
11
  }
11
12
 
12
13
  export const CarrierAttributeEnumSchema = Joi.string().valid(
@@ -5,6 +5,7 @@ export enum CarrierAttribute {
5
5
  Regional = 'Regional',
6
6
  RequiresInboundWebhook = 'RequiresInboundWebhook',
7
7
  DetailedStatuses = 'DetailedStatuses',
8
+ ProofOfDelivery = 'ProofOfDelivery',
8
9
  }
9
10
 
10
11
  export enum ShippingServiceAttribute {
@@ -1,5 +1,6 @@
1
1
  import { BillingCategories } from './billing-categories';
2
2
  import { Currency } from '../currency';
3
+ import { TaxDetails } from './tax-details';
3
4
 
4
5
  /** @description Basic structure of each charge or line item */
5
6
  export class BillingLineItem {
@@ -15,4 +16,6 @@ export class BillingLineItem {
15
16
  amount!: Currency;
16
17
  /** @description Total amount of the line item billed by the provider. This should only be populated if it differs from 'amount' **/
17
18
  provider_billed_amount?: Currency;
19
+ /** @description Optional field. This field is applicable only to items that represent tax charge. It contains details about the tax, e.g. type (VAT), etc. */
20
+ tax_details?: TaxDetails;
18
21
  }
@@ -3,3 +3,4 @@ export * from './billing-categories-schema';
3
3
  export * from './billing-line-item';
4
4
  export * from './billing-line-item-schema';
5
5
  export * from './billing-to-party';
6
+ export * from './tax-details';
@@ -0,0 +1,8 @@
1
+ import { TaxType } from '../taxes';
2
+
3
+ export class TaxDetails {
4
+ tax_type?: TaxType;
5
+ tax_code?: string;
6
+ /** @description Tax percentage, e.g. 20, 23.7 */
7
+ tax_percentage?: number;
8
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './tax-identifier-type';
2
2
  export * from './tax-identifier';
3
+ export * from './tax-type';
@@ -0,0 +1,3 @@
1
+ export enum TaxType {
2
+ VAT = 'vat',
3
+ }
@@ -0,0 +1,6 @@
1
+ import Joi from 'joi';
2
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
3
+
4
+ export const ProofOfDeliveryFormatSchema = Joi.string().valid(
5
+ ...Object.values(ProofOfDeliveryFormat),
6
+ );
@@ -0,0 +1,4 @@
1
+ export enum ProofOfDeliveryFormat {
2
+ Pdf = 'PDF',
3
+ Png = 'PNG',
4
+ }
@@ -0,0 +1,7 @@
1
+ import Joi from 'joi';
2
+ import { ProofOfDeliveryFormatSchema } from './proof-of-delivery-format-schema';
3
+
4
+ export const ProofOfDeliverySchema = Joi.object({
5
+ data: Joi.string().required(),
6
+ format: ProofOfDeliveryFormatSchema.required(),
7
+ });
@@ -0,0 +1,9 @@
1
+ import { ProofOfDeliveryFormat } from './proof-of-delivery-format';
2
+
3
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
4
+ export class ProofOfDelivery {
5
+ /** @description Base64 encoded data for the proof of delivery. */
6
+ data!: string;
7
+ /** @description The format the document is in.\r\nPdf - PDF\r\nPng - PNG */
8
+ format!: ProofOfDeliveryFormat;
9
+ }
@@ -2,12 +2,14 @@ import Joi from 'joi';
2
2
  import { LatLongSchema } from './lat-long-schema';
3
3
  import { StandardizedStatusCodesSchema } from './standardized-status-codes-schema';
4
4
  import { StandardizedStatusDetailCodesSchema } from './standardized-status-detail-codes-schema';
5
+ import { ProofOfDeliverySchema } from './proof-of-delivery-schema';
5
6
 
6
7
  export const TrackEventSchema = Joi.object({
7
8
  event_datetime: Joi.string().optional().empty().isoDate(),
8
9
  event_datetime_local: Joi.string().optional().empty().isoDate(),
9
10
  event_code: Joi.string().optional().empty(),
10
11
  carrier_detail_code: Joi.string().optional().empty(),
12
+ proof_of_delivery: ProofOfDeliverySchema.optional(),
11
13
  description: Joi.string().optional().empty(),
12
14
  city: Joi.string().optional().empty(),
13
15
  state: Joi.string().optional().empty(),
@@ -1,6 +1,7 @@
1
1
  import { LatLong } from './lat-long';
2
2
  import { StandardizedStatusCodes } from './standardized-status-codes';
3
3
  import { StandardizedStatusDetailCodes } from './standardized-status-detail-codes';
4
+ import { ProofOfDelivery } from './proof-of-delivery';
4
5
 
5
6
  /** @description Basic structure for tracking events */
6
7
  export class TrackEvent {
@@ -12,6 +13,8 @@ export class TrackEvent {
12
13
  event_code?: string;
13
14
  /** @description Optional field for the carrier's specific event code when `event_code` is populated with a generic event code. */
14
15
  carrier_detail_code?: string;
16
+ /** @description An image captured at the time of delivery, serving as evidence that the shipment was successfully delivered to the recipient. It can be used to capture things like recipient's signature, location of delivery, condition of the package upon delivery, etc. */
17
+ proof_of_delivery?: ProofOfDelivery;
15
18
  /** @description Description of the package status at this event */
16
19
  description?: string;
17
20
  /** @description City or Locality for this event */