@emilgroup/discount-sdk-node 1.12.1-beta.18 → 1.12.1-beta.19

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.
@@ -107,10 +107,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
107
107
  chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
111
- var _a;
112
- return __generator(this, function (_b) {
113
- switch (_b.label) {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
114
113
  case 0:
115
114
  // verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
116
115
  (0, common_1.assertParamExists)('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto);
@@ -125,19 +124,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
125
124
  localVarQueryParameter = {};
126
125
  // authentication bearer required
127
126
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
128
  case 1:
133
129
  // authentication bearer required
134
130
  // http bearer authentication required
135
- _b.sent();
136
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
137
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
138
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
139
- if (authorizationValue || authorizationKeepEmpty) {
140
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
141
134
  }
142
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
143
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -163,10 +156,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
163
156
  checkAccountEligibility: function (checkAccountEligibilityRequestDto, authorization, options) {
164
157
  if (options === void 0) { options = {}; }
165
158
  return __awaiter(_this, void 0, void 0, function () {
166
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
167
- var _a;
168
- return __generator(this, function (_b) {
169
- switch (_b.label) {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
170
162
  case 0:
171
163
  // verify required parameter 'checkAccountEligibilityRequestDto' is not null or undefined
172
164
  (0, common_1.assertParamExists)('checkAccountEligibility', 'checkAccountEligibilityRequestDto', checkAccountEligibilityRequestDto);
@@ -181,19 +173,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
181
173
  localVarQueryParameter = {};
182
174
  // authentication bearer required
183
175
  // http bearer authentication required
184
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
185
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
186
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
187
- ];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
188
177
  case 1:
189
178
  // authentication bearer required
190
179
  // http bearer authentication required
191
- _b.sent();
192
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
193
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
194
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
195
- if (authorizationValue || authorizationKeepEmpty) {
196
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
+ _a.sent();
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
183
  }
198
184
  localVarHeaderParameter['Content-Type'] = 'application/json';
199
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -219,10 +205,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
219
205
  createPolicyVoucher: function (createPolicyVoucherRequestDto, authorization, options) {
220
206
  if (options === void 0) { options = {}; }
221
207
  return __awaiter(_this, void 0, void 0, function () {
222
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
223
- var _a;
224
- return __generator(this, function (_b) {
225
- switch (_b.label) {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
226
211
  case 0:
227
212
  // verify required parameter 'createPolicyVoucherRequestDto' is not null or undefined
228
213
  (0, common_1.assertParamExists)('createPolicyVoucher', 'createPolicyVoucherRequestDto', createPolicyVoucherRequestDto);
@@ -237,19 +222,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
237
222
  localVarQueryParameter = {};
238
223
  // authentication bearer required
239
224
  // http bearer authentication required
240
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
241
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
242
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
243
- ];
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
244
226
  case 1:
245
227
  // authentication bearer required
246
228
  // http bearer authentication required
247
- _b.sent();
248
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
249
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
250
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
251
- if (authorizationValue || authorizationKeepEmpty) {
252
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
253
232
  }
254
233
  localVarHeaderParameter['Content-Type'] = 'application/json';
255
234
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -275,10 +254,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
275
254
  deletePolicyVoucher: function (code, authorization, options) {
276
255
  if (options === void 0) { options = {}; }
277
256
  return __awaiter(_this, void 0, void 0, function () {
278
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
279
- var _a;
280
- return __generator(this, function (_b) {
281
- switch (_b.label) {
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
+ return __generator(this, function (_a) {
259
+ switch (_a.label) {
282
260
  case 0:
283
261
  // verify required parameter 'code' is not null or undefined
284
262
  (0, common_1.assertParamExists)('deletePolicyVoucher', 'code', code);
@@ -294,19 +272,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
294
272
  localVarQueryParameter = {};
295
273
  // authentication bearer required
296
274
  // http bearer authentication required
297
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
298
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
299
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
300
- ];
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
301
276
  case 1:
302
277
  // authentication bearer required
303
278
  // http bearer authentication required
304
- _b.sent();
305
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
306
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
307
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
308
- if (authorizationValue || authorizationKeepEmpty) {
309
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
+ _a.sent();
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
282
  }
311
283
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
284
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,10 +303,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
331
303
  getPolicyVoucher: function (code, authorization, expand, options) {
332
304
  if (options === void 0) { options = {}; }
333
305
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
335
- var _a;
336
- return __generator(this, function (_b) {
337
- switch (_b.label) {
306
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
307
+ return __generator(this, function (_a) {
308
+ switch (_a.label) {
338
309
  case 0:
339
310
  // verify required parameter 'code' is not null or undefined
340
311
  (0, common_1.assertParamExists)('getPolicyVoucher', 'code', code);
@@ -354,15 +325,12 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
354
325
  case 1:
355
326
  // authentication bearer required
356
327
  // http bearer authentication required
357
- _b.sent();
328
+ _a.sent();
358
329
  if (expand !== undefined) {
359
330
  localVarQueryParameter['expand'] = expand;
360
331
  }
361
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
362
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
363
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
364
- if (authorizationValue || authorizationKeepEmpty) {
365
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
332
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
333
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
334
  }
367
335
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
368
336
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -392,10 +360,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
392
360
  listPolicyVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
393
361
  if (options === void 0) { options = {}; }
394
362
  return __awaiter(_this, void 0, void 0, function () {
395
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
396
- var _a;
397
- return __generator(this, function (_b) {
398
- switch (_b.label) {
363
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
364
+ return __generator(this, function (_a) {
365
+ switch (_a.label) {
399
366
  case 0:
400
367
  localVarPath = "/discountservice/v1/policy-vouchers";
401
368
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -412,7 +379,7 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
412
379
  case 1:
413
380
  // authentication bearer required
414
381
  // http bearer authentication required
415
- _b.sent();
382
+ _a.sent();
416
383
  if (pageSize !== undefined) {
417
384
  localVarQueryParameter['pageSize'] = pageSize;
418
385
  }
@@ -434,11 +401,8 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
434
401
  if (filters !== undefined) {
435
402
  localVarQueryParameter['filters'] = filters;
436
403
  }
437
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
438
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
439
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
440
- if (authorizationValue || authorizationKeepEmpty) {
441
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
404
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
442
406
  }
443
407
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
444
408
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -462,10 +426,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
462
426
  redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
463
427
  if (options === void 0) { options = {}; }
464
428
  return __awaiter(_this, void 0, void 0, function () {
465
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
466
- var _a;
467
- return __generator(this, function (_b) {
468
- switch (_b.label) {
429
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
430
+ return __generator(this, function (_a) {
431
+ switch (_a.label) {
469
432
  case 0:
470
433
  // verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
471
434
  (0, common_1.assertParamExists)('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto);
@@ -480,19 +443,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
480
443
  localVarQueryParameter = {};
481
444
  // authentication bearer required
482
445
  // http bearer authentication required
483
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
484
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
485
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
486
- ];
446
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
487
447
  case 1:
488
448
  // authentication bearer required
489
449
  // http bearer authentication required
490
- _b.sent();
491
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
492
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
493
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
494
- if (authorizationValue || authorizationKeepEmpty) {
495
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
450
+ _a.sent();
451
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
496
453
  }
497
454
  localVarHeaderParameter['Content-Type'] = 'application/json';
498
455
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -518,10 +475,9 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
518
475
  withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
519
476
  if (options === void 0) { options = {}; }
520
477
  return __awaiter(_this, void 0, void 0, function () {
521
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
522
- var _a;
523
- return __generator(this, function (_b) {
524
- switch (_b.label) {
478
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
479
+ return __generator(this, function (_a) {
480
+ switch (_a.label) {
525
481
  case 0:
526
482
  // verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
527
483
  (0, common_1.assertParamExists)('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto);
@@ -536,19 +492,13 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
536
492
  localVarQueryParameter = {};
537
493
  // authentication bearer required
538
494
  // http bearer authentication required
539
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
540
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
541
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
542
- ];
495
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
543
496
  case 1:
544
497
  // authentication bearer required
545
498
  // http bearer authentication required
546
- _b.sent();
547
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
548
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
549
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
550
- if (authorizationValue || authorizationKeepEmpty) {
551
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
499
+ _a.sent();
500
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
501
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
552
502
  }
553
503
  localVarHeaderParameter['Content-Type'] = 'application/json';
554
504
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -877,7 +827,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
877
827
  */
878
828
  PolicyVouchersApi.prototype.chargePolicyVoucher = function (requestParameters, options) {
879
829
  var _this = this;
880
- return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
830
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
881
831
  };
882
832
  /**
883
833
  * This will check if the account is eligible for a specific voucher.
@@ -889,7 +839,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
889
839
  */
890
840
  PolicyVouchersApi.prototype.checkAccountEligibility = function (requestParameters, options) {
891
841
  var _this = this;
892
- return (0, exports.PolicyVouchersApiFp)(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
842
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
893
843
  };
894
844
  /**
895
845
  * This will create an policy voucher.
@@ -901,7 +851,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
901
851
  */
902
852
  PolicyVouchersApi.prototype.createPolicyVoucher = function (requestParameters, options) {
903
853
  var _this = this;
904
- return (0, exports.PolicyVouchersApiFp)(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
854
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
905
855
  };
906
856
  /**
907
857
  * This will delete an policy voucher.
@@ -913,7 +863,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
913
863
  */
914
864
  PolicyVouchersApi.prototype.deletePolicyVoucher = function (requestParameters, options) {
915
865
  var _this = this;
916
- return (0, exports.PolicyVouchersApiFp)(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
866
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
917
867
  };
918
868
  /**
919
869
  * This will get an policy voucher.
@@ -925,7 +875,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
925
875
  */
926
876
  PolicyVouchersApi.prototype.getPolicyVoucher = function (requestParameters, options) {
927
877
  var _this = this;
928
- return (0, exports.PolicyVouchersApiFp)(this.configuration).getPolicyVoucher(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
878
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).getPolicyVoucher(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
929
879
  };
930
880
  /**
931
881
  * Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -938,7 +888,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
938
888
  PolicyVouchersApi.prototype.listPolicyVouchers = function (requestParameters, options) {
939
889
  var _this = this;
940
890
  if (requestParameters === void 0) { requestParameters = {}; }
941
- return (0, exports.PolicyVouchersApiFp)(this.configuration).listPolicyVouchers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
891
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).listPolicyVouchers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
942
892
  };
943
893
  /**
944
894
  * This will redeem the policy voucher.
@@ -950,7 +900,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
950
900
  */
951
901
  PolicyVouchersApi.prototype.redeemPolicyVoucher = function (requestParameters, options) {
952
902
  var _this = this;
953
- return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
903
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
954
904
  };
955
905
  /**
956
906
  * This will withdraw the policy voucher.
@@ -962,7 +912,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
962
912
  */
963
913
  PolicyVouchersApi.prototype.withdrawPolicyVoucher = function (requestParameters, options) {
964
914
  var _this = this;
965
- return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
915
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
966
916
  };
967
917
  return PolicyVouchersApi;
968
918
  }(base_1.BaseAPI));
@@ -353,7 +353,7 @@ export declare class VouchersApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof VouchersApi
355
355
  */
356
- createVoucher(requestParameters: VouchersApiCreateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateVoucherResponseClass, any, {}, any>>;
356
+ createVoucher(requestParameters: VouchersApiCreateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateVoucherResponseClass, any, {}>>;
357
357
  /**
358
358
  * This will delete a voucher.
359
359
  * @summary Delete the Voucher
@@ -362,7 +362,7 @@ export declare class VouchersApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof VouchersApi
364
364
  */
365
- deleteVoucher(requestParameters: VouchersApiDeleteVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
365
+ deleteVoucher(requestParameters: VouchersApiDeleteVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
366
366
  /**
367
367
  * This will get a voucher.
368
368
  * @summary Retrieve the Voucher
@@ -371,7 +371,7 @@ export declare class VouchersApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof VouchersApi
373
373
  */
374
- getVoucher(requestParameters: VouchersApiGetVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetVoucherResponseClass, any, {}, any>>;
374
+ getVoucher(requestParameters: VouchersApiGetVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetVoucherResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
377
377
  * @summary List Vouchers
@@ -380,7 +380,7 @@ export declare class VouchersApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof VouchersApi
382
382
  */
383
- listVouchers(requestParameters?: VouchersApiListVouchersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListVouchersResponseClass, any, {}, any>>;
383
+ listVouchers(requestParameters?: VouchersApiListVouchersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListVouchersResponseClass, any, {}>>;
384
384
  /**
385
385
  * This will update a voucher.
386
386
  * @summary Update the Voucher
@@ -389,5 +389,5 @@ export declare class VouchersApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof VouchersApi
391
391
  */
392
- updateVoucher(requestParameters: VouchersApiUpdateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateVoucherResponseClass, any, {}, any>>;
392
+ updateVoucher(requestParameters: VouchersApiUpdateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateVoucherResponseClass, any, {}>>;
393
393
  }