@merchi/sdk 1.42.26 → 1.42.28

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.
@@ -1,5 +1,6 @@
1
1
  export declare enum DiscountType {
2
2
  VOLUMETRIC = 0,
3
3
  CODE = 1,
4
- FREE_SHIPPING = 2
4
+ FREE_SHIPPING = 2,
5
+ FULL_DISCOUNT = 3
5
6
  }
@@ -3,4 +3,5 @@ export var DiscountType;
3
3
  DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
4
4
  DiscountType[DiscountType["CODE"] = 1] = "CODE";
5
5
  DiscountType[DiscountType["FREE_SHIPPING"] = 2] = "FREE_SHIPPING";
6
+ DiscountType[DiscountType["FULL_DISCOUNT"] = 3] = "FULL_DISCOUNT";
6
7
  })(DiscountType || (DiscountType = {}));
@@ -1,5 +1,6 @@
1
1
  export declare enum ShipmentService {
2
2
  SENDLE = 1,
3
3
  AUSTRALIA_POST = 2,
4
- STARTRACK = 3
4
+ STARTRACK = 3,
5
+ DHL_EXPRESS = 4
5
6
  }
@@ -3,4 +3,5 @@ export var ShipmentService;
3
3
  ShipmentService[ShipmentService["SENDLE"] = 1] = "SENDLE";
4
4
  ShipmentService[ShipmentService["AUSTRALIA_POST"] = 2] = "AUSTRALIA_POST";
5
5
  ShipmentService[ShipmentService["STARTRACK"] = 3] = "STARTRACK";
6
+ ShipmentService[ShipmentService["DHL_EXPRESS"] = 4] = "DHL_EXPRESS";
6
7
  })(ShipmentService || (ShipmentService = {}));
@@ -2,3 +2,6 @@ import { ShipmentService } from './shipment_services.js';
2
2
  test('dhl exists', function () {
3
3
  expect(ShipmentService.SENDLE).toBe(1);
4
4
  });
5
+ test('dhl express service id', function () {
6
+ expect(ShipmentService.DHL_EXPRESS).toBe(4);
7
+ });
@@ -56,6 +56,7 @@ export declare class Company extends Entity {
56
56
  startrackSandbox?: boolean;
57
57
  dhlApiKey?: string;
58
58
  dhlApiSecret?: string;
59
+ dhlAccountNumber?: string;
59
60
  dhlTrackingSandbox?: boolean;
60
61
  dhlTrackingExpress?: boolean;
61
62
  fedexApiKey?: string;
@@ -212,6 +212,10 @@ var Company = /** @class */ (function (_super) {
212
212
  Company.property({ type: String }),
213
213
  __metadata("design:type", String)
214
214
  ], Company.prototype, "dhlApiSecret", void 0);
215
+ __decorate([
216
+ Company.property({ type: String }),
217
+ __metadata("design:type", String)
218
+ ], Company.prototype, "dhlAccountNumber", void 0);
215
219
  __decorate([
216
220
  Company.property(),
217
221
  __metadata("design:type", Boolean)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merchi/sdk",
3
- "version": "1.42.26",
3
+ "version": "1.42.28",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -2,4 +2,5 @@ export enum DiscountType {
2
2
  VOLUMETRIC = 0,
3
3
  CODE = 1,
4
4
  FREE_SHIPPING = 2,
5
+ FULL_DISCOUNT = 3,
5
6
  }
@@ -3,3 +3,7 @@ import { ShipmentService } from './shipment_services.js';
3
3
  test('dhl exists', () => {
4
4
  expect(ShipmentService.SENDLE).toBe(1);
5
5
  });
6
+
7
+ test('dhl express service id', () => {
8
+ expect(ShipmentService.DHL_EXPRESS).toBe(4);
9
+ });
@@ -2,4 +2,5 @@ export enum ShipmentService {
2
2
  SENDLE = 1,
3
3
  AUSTRALIA_POST = 2,
4
4
  STARTRACK = 3,
5
+ DHL_EXPRESS = 4,
5
6
  }
@@ -126,6 +126,9 @@ export class Company extends Entity {
126
126
  @Company.property({type: String})
127
127
  public dhlApiSecret?: string;
128
128
 
129
+ @Company.property({type: String})
130
+ public dhlAccountNumber?: string;
131
+
129
132
  @Company.property()
130
133
  public dhlTrackingSandbox?: boolean;
131
134