@vergelijkdirect/insurance-transmission-client 1.3.55 → 1.3.56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vergelijkdirect/insurance-transmission-client",
3
- "version": "1.3.55",
3
+ "version": "1.3.56",
4
4
  "description": "",
5
5
  "main": "./src/js/index.js",
6
6
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  import { RateInterface } from "../interfaces";
2
2
  import { Rate } from "./";
3
3
  export default class VoogdRate extends Rate implements RateInterface {
4
+ getAdditionalCoverages(data: any): Promise<any>;
4
5
  }
@@ -16,11 +16,15 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var _1 = require("./");
19
+ var factories_1 = require("../factories");
19
20
  var VoogdRate = /** @class */ (function (_super) {
20
21
  __extends(VoogdRate, _super);
21
22
  function VoogdRate() {
22
23
  return _super !== null && _super.apply(this, arguments) || this;
23
24
  }
25
+ VoogdRate.prototype.getAdditionalCoverages = function (data) {
26
+ return factories_1.ApiServiceFactory.get(this.insuranceCategory).getVoogdAdditionalCoverages(data);
27
+ };
24
28
  return VoogdRate;
25
29
  }(_1.Rate));
26
30
  exports.default = VoogdRate;
@@ -8,5 +8,6 @@ declare class BusinessCarService extends RateService implements CalculateRatesIn
8
8
  getRates(data: any): Promise<RateCollection>;
9
9
  getRiskAdditionalCoverages(data: any): Promise<AdditionalCoverageInterface[] | []>;
10
10
  getRollsAdditionalCoverages(data: any): Promise<AdditionalCoverageInterface[] | []>;
11
+ getVoogdAdditionalCoverages(data: any): Promise<AdditionalCoverageInterface[] | []>;
11
12
  }
12
13
  export default BusinessCarService;
@@ -97,6 +97,13 @@ var BusinessCarService = /** @class */ (function (_super) {
97
97
  });
98
98
  });
99
99
  };
100
+ BusinessCarService.prototype.getVoogdAdditionalCoverages = function (data) {
101
+ return __awaiter(this, void 0, void 0, function () {
102
+ return __generator(this, function (_a) {
103
+ return [2 /*return*/, this.client.getVoogdAdditionalCoverages(data)];
104
+ });
105
+ });
106
+ };
100
107
  return BusinessCarService;
101
108
  }(index_1.RateService));
102
109
  exports.default = BusinessCarService;