@emilgroup/discount-sdk-node 1.12.1-beta.19 → 1.12.1-beta.21
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/campaigns-api.ts +88 -33
- package/api/health-api.ts +1 -1
- package/api/policy-vouchers-api.ts +257 -24
- package/api/vouchers-api.ts +40 -15
- package/base.ts +74 -6
- package/common.ts +3 -2
- package/dist/api/campaigns-api.d.ts +11 -11
- package/dist/api/campaigns-api.js +153 -85
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/policy-vouchers-api.d.ts +118 -8
- package/dist/api/policy-vouchers-api.js +245 -62
- package/dist/api/vouchers-api.d.ts +5 -5
- package/dist/api/vouchers-api.js +67 -38
- package/dist/base.d.ts +8 -0
- package/dist/base.js +62 -4
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/charge-policy-voucher-response-class.d.ts +6 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/list-policy-voucher-transactions-response-class.d.ts +43 -0
- package/dist/models/list-policy-voucher-transactions-response-class.js +15 -0
- package/dist/models/policy-voucher-transaction-class.d.ts +6 -0
- package/models/charge-policy-voucher-response-class.ts +6 -0
- package/models/index.ts +1 -0
- package/models/list-policy-voucher-transactions-response-class.ts +49 -0
- package/models/policy-voucher-transaction-class.ts +6 -0
- package/package.json +2 -2
|
@@ -107,9 +107,10 @@ 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, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
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) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto);
|
|
@@ -124,13 +125,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
124
125
|
localVarQueryParameter = {};
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
128
132
|
case 1:
|
|
129
133
|
// authentication bearer required
|
|
130
134
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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);
|
|
134
141
|
}
|
|
135
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,9 +163,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
156
163
|
checkAccountEligibility: function (checkAccountEligibilityRequestDto, authorization, options) {
|
|
157
164
|
if (options === void 0) { options = {}; }
|
|
158
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
|
|
161
|
-
|
|
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) {
|
|
162
170
|
case 0:
|
|
163
171
|
// verify required parameter 'checkAccountEligibilityRequestDto' is not null or undefined
|
|
164
172
|
(0, common_1.assertParamExists)('checkAccountEligibility', 'checkAccountEligibilityRequestDto', checkAccountEligibilityRequestDto);
|
|
@@ -173,13 +181,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
173
181
|
localVarQueryParameter = {};
|
|
174
182
|
// authentication bearer required
|
|
175
183
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
177
188
|
case 1:
|
|
178
189
|
// authentication bearer required
|
|
179
190
|
// http bearer authentication required
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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);
|
|
183
197
|
}
|
|
184
198
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -205,9 +219,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
205
219
|
createPolicyVoucher: function (createPolicyVoucherRequestDto, authorization, options) {
|
|
206
220
|
if (options === void 0) { options = {}; }
|
|
207
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
-
|
|
210
|
-
|
|
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) {
|
|
211
226
|
case 0:
|
|
212
227
|
// verify required parameter 'createPolicyVoucherRequestDto' is not null or undefined
|
|
213
228
|
(0, common_1.assertParamExists)('createPolicyVoucher', 'createPolicyVoucherRequestDto', createPolicyVoucherRequestDto);
|
|
@@ -222,13 +237,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
222
237
|
localVarQueryParameter = {};
|
|
223
238
|
// authentication bearer required
|
|
224
239
|
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
226
244
|
case 1:
|
|
227
245
|
// authentication bearer required
|
|
228
246
|
// http bearer authentication required
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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);
|
|
232
253
|
}
|
|
233
254
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -254,9 +275,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
254
275
|
deletePolicyVoucher: function (code, authorization, options) {
|
|
255
276
|
if (options === void 0) { options = {}; }
|
|
256
277
|
return __awaiter(_this, void 0, void 0, function () {
|
|
257
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
|
-
|
|
259
|
-
|
|
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) {
|
|
260
282
|
case 0:
|
|
261
283
|
// verify required parameter 'code' is not null or undefined
|
|
262
284
|
(0, common_1.assertParamExists)('deletePolicyVoucher', 'code', code);
|
|
@@ -272,13 +294,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
272
294
|
localVarQueryParameter = {};
|
|
273
295
|
// authentication bearer required
|
|
274
296
|
// http bearer authentication required
|
|
275
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
276
301
|
case 1:
|
|
277
302
|
// authentication bearer required
|
|
278
303
|
// http bearer authentication required
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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);
|
|
282
310
|
}
|
|
283
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -303,9 +331,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
303
331
|
getPolicyVoucher: function (code, authorization, expand, options) {
|
|
304
332
|
if (options === void 0) { options = {}; }
|
|
305
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
307
|
-
|
|
308
|
-
|
|
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) {
|
|
309
338
|
case 0:
|
|
310
339
|
// verify required parameter 'code' is not null or undefined
|
|
311
340
|
(0, common_1.assertParamExists)('getPolicyVoucher', 'code', code);
|
|
@@ -325,12 +354,91 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
325
354
|
case 1:
|
|
326
355
|
// authentication bearer required
|
|
327
356
|
// http bearer authentication required
|
|
328
|
-
|
|
357
|
+
_b.sent();
|
|
329
358
|
if (expand !== undefined) {
|
|
330
359
|
localVarQueryParameter['expand'] = expand;
|
|
331
360
|
}
|
|
332
|
-
|
|
333
|
-
|
|
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);
|
|
366
|
+
}
|
|
367
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
368
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
369
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
370
|
+
return [2 /*return*/, {
|
|
371
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
372
|
+
options: localVarRequestOptions,
|
|
373
|
+
}];
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
},
|
|
378
|
+
/**
|
|
379
|
+
* Lists policy voucher transactions (charges, redemptions, withdrawals), e.g. filters=createdAt>=2026-10-01;createdAt<=2026-10-31
|
|
380
|
+
* @summary List policy voucher transactions
|
|
381
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
382
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
383
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
384
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
385
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: invoiceNumber, policyNumber</i>
|
|
386
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, invoiceNumber, policyNumber</i>
|
|
387
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
388
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
listPolicyVoucherTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
393
|
+
if (options === void 0) { options = {}; }
|
|
394
|
+
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) {
|
|
399
|
+
case 0:
|
|
400
|
+
localVarPath = "/discountservice/v1/policy-voucher-transactions";
|
|
401
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
402
|
+
if (configuration) {
|
|
403
|
+
baseOptions = configuration.baseOptions;
|
|
404
|
+
baseAccessToken = configuration.accessToken;
|
|
405
|
+
}
|
|
406
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
407
|
+
localVarHeaderParameter = {};
|
|
408
|
+
localVarQueryParameter = {};
|
|
409
|
+
// authentication bearer required
|
|
410
|
+
// http bearer authentication required
|
|
411
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
412
|
+
case 1:
|
|
413
|
+
// authentication bearer required
|
|
414
|
+
// http bearer authentication required
|
|
415
|
+
_b.sent();
|
|
416
|
+
if (pageSize !== undefined) {
|
|
417
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
418
|
+
}
|
|
419
|
+
if (pageToken !== undefined) {
|
|
420
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
421
|
+
}
|
|
422
|
+
if (filter !== undefined) {
|
|
423
|
+
localVarQueryParameter['filter'] = filter;
|
|
424
|
+
}
|
|
425
|
+
if (search !== undefined) {
|
|
426
|
+
localVarQueryParameter['search'] = search;
|
|
427
|
+
}
|
|
428
|
+
if (order !== undefined) {
|
|
429
|
+
localVarQueryParameter['order'] = order;
|
|
430
|
+
}
|
|
431
|
+
if (expand !== undefined) {
|
|
432
|
+
localVarQueryParameter['expand'] = expand;
|
|
433
|
+
}
|
|
434
|
+
if (filters !== undefined) {
|
|
435
|
+
localVarQueryParameter['filters'] = filters;
|
|
436
|
+
}
|
|
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);
|
|
334
442
|
}
|
|
335
443
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
336
444
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -360,9 +468,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
360
468
|
listPolicyVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
361
469
|
if (options === void 0) { options = {}; }
|
|
362
470
|
return __awaiter(_this, void 0, void 0, function () {
|
|
363
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
364
|
-
|
|
365
|
-
|
|
471
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
472
|
+
var _a;
|
|
473
|
+
return __generator(this, function (_b) {
|
|
474
|
+
switch (_b.label) {
|
|
366
475
|
case 0:
|
|
367
476
|
localVarPath = "/discountservice/v1/policy-vouchers";
|
|
368
477
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -379,7 +488,7 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
379
488
|
case 1:
|
|
380
489
|
// authentication bearer required
|
|
381
490
|
// http bearer authentication required
|
|
382
|
-
|
|
491
|
+
_b.sent();
|
|
383
492
|
if (pageSize !== undefined) {
|
|
384
493
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
385
494
|
}
|
|
@@ -401,8 +510,11 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
401
510
|
if (filters !== undefined) {
|
|
402
511
|
localVarQueryParameter['filters'] = filters;
|
|
403
512
|
}
|
|
404
|
-
|
|
405
|
-
|
|
513
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
514
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
515
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
516
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
517
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
406
518
|
}
|
|
407
519
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
408
520
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -426,9 +538,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
426
538
|
redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
|
|
427
539
|
if (options === void 0) { options = {}; }
|
|
428
540
|
return __awaiter(_this, void 0, void 0, function () {
|
|
429
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
430
|
-
|
|
431
|
-
|
|
541
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
542
|
+
var _a;
|
|
543
|
+
return __generator(this, function (_b) {
|
|
544
|
+
switch (_b.label) {
|
|
432
545
|
case 0:
|
|
433
546
|
// verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
|
|
434
547
|
(0, common_1.assertParamExists)('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto);
|
|
@@ -443,13 +556,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
443
556
|
localVarQueryParameter = {};
|
|
444
557
|
// authentication bearer required
|
|
445
558
|
// http bearer authentication required
|
|
446
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
559
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
560
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
561
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
562
|
+
];
|
|
447
563
|
case 1:
|
|
448
564
|
// authentication bearer required
|
|
449
565
|
// http bearer authentication required
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
566
|
+
_b.sent();
|
|
567
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
568
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
569
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
570
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
571
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
453
572
|
}
|
|
454
573
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
455
574
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -475,9 +594,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
475
594
|
withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
476
595
|
if (options === void 0) { options = {}; }
|
|
477
596
|
return __awaiter(_this, void 0, void 0, function () {
|
|
478
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
479
|
-
|
|
480
|
-
|
|
597
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
598
|
+
var _a;
|
|
599
|
+
return __generator(this, function (_b) {
|
|
600
|
+
switch (_b.label) {
|
|
481
601
|
case 0:
|
|
482
602
|
// verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
|
|
483
603
|
(0, common_1.assertParamExists)('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto);
|
|
@@ -492,13 +612,19 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
492
612
|
localVarQueryParameter = {};
|
|
493
613
|
// authentication bearer required
|
|
494
614
|
// http bearer authentication required
|
|
495
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
615
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
616
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
617
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
618
|
+
];
|
|
496
619
|
case 1:
|
|
497
620
|
// authentication bearer required
|
|
498
621
|
// http bearer authentication required
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
622
|
+
_b.sent();
|
|
623
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
624
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
625
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
626
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
627
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
502
628
|
}
|
|
503
629
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
504
630
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -629,6 +755,33 @@ var PolicyVouchersApiFp = function (configuration) {
|
|
|
629
755
|
});
|
|
630
756
|
});
|
|
631
757
|
},
|
|
758
|
+
/**
|
|
759
|
+
* Lists policy voucher transactions (charges, redemptions, withdrawals), e.g. filters=createdAt>=2026-10-01;createdAt<=2026-10-31
|
|
760
|
+
* @summary List policy voucher transactions
|
|
761
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
763
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
764
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
765
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: invoiceNumber, policyNumber</i>
|
|
766
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, invoiceNumber, policyNumber</i>
|
|
767
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
768
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
listPolicyVoucherTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
773
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
774
|
+
var localVarAxiosArgs;
|
|
775
|
+
return __generator(this, function (_a) {
|
|
776
|
+
switch (_a.label) {
|
|
777
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicyVoucherTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
778
|
+
case 1:
|
|
779
|
+
localVarAxiosArgs = _a.sent();
|
|
780
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
},
|
|
632
785
|
/**
|
|
633
786
|
* 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.
|
|
634
787
|
* @summary List policy vouchers
|
|
@@ -764,6 +917,23 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
|
|
|
764
917
|
getPolicyVoucher: function (code, authorization, expand, options) {
|
|
765
918
|
return localVarFp.getPolicyVoucher(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
766
919
|
},
|
|
920
|
+
/**
|
|
921
|
+
* Lists policy voucher transactions (charges, redemptions, withdrawals), e.g. filters=createdAt>=2026-10-01;createdAt<=2026-10-31
|
|
922
|
+
* @summary List policy voucher transactions
|
|
923
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
924
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
925
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
926
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
927
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: invoiceNumber, policyNumber</i>
|
|
928
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, invoiceNumber, policyNumber</i>
|
|
929
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
930
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyVoucherId, invoiceNumber, policyNumber, createdAt</i>
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
listPolicyVoucherTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
935
|
+
return localVarFp.listPolicyVoucherTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
936
|
+
},
|
|
767
937
|
/**
|
|
768
938
|
* 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.
|
|
769
939
|
* @summary List policy vouchers
|
|
@@ -827,7 +997,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
827
997
|
*/
|
|
828
998
|
PolicyVouchersApi.prototype.chargePolicyVoucher = function (requestParameters, options) {
|
|
829
999
|
var _this = this;
|
|
830
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1000
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
831
1001
|
};
|
|
832
1002
|
/**
|
|
833
1003
|
* This will check if the account is eligible for a specific voucher.
|
|
@@ -839,7 +1009,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
839
1009
|
*/
|
|
840
1010
|
PolicyVouchersApi.prototype.checkAccountEligibility = function (requestParameters, options) {
|
|
841
1011
|
var _this = this;
|
|
842
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1012
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).checkAccountEligibility(requestParameters.checkAccountEligibilityRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
843
1013
|
};
|
|
844
1014
|
/**
|
|
845
1015
|
* This will create an policy voucher.
|
|
@@ -851,7 +1021,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
851
1021
|
*/
|
|
852
1022
|
PolicyVouchersApi.prototype.createPolicyVoucher = function (requestParameters, options) {
|
|
853
1023
|
var _this = this;
|
|
854
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1024
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).createPolicyVoucher(requestParameters.createPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
855
1025
|
};
|
|
856
1026
|
/**
|
|
857
1027
|
* This will delete an policy voucher.
|
|
@@ -863,7 +1033,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
863
1033
|
*/
|
|
864
1034
|
PolicyVouchersApi.prototype.deletePolicyVoucher = function (requestParameters, options) {
|
|
865
1035
|
var _this = this;
|
|
866
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1036
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).deletePolicyVoucher(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
867
1037
|
};
|
|
868
1038
|
/**
|
|
869
1039
|
* This will get an policy voucher.
|
|
@@ -875,7 +1045,20 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
875
1045
|
*/
|
|
876
1046
|
PolicyVouchersApi.prototype.getPolicyVoucher = function (requestParameters, options) {
|
|
877
1047
|
var _this = this;
|
|
878
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).getPolicyVoucher(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1048
|
+
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); });
|
|
1049
|
+
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Lists policy voucher transactions (charges, redemptions, withdrawals), e.g. filters=createdAt>=2026-10-01;createdAt<=2026-10-31
|
|
1052
|
+
* @summary List policy voucher transactions
|
|
1053
|
+
* @param {PolicyVouchersApiListPolicyVoucherTransactionsRequest} requestParameters Request parameters.
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
* @memberof PolicyVouchersApi
|
|
1057
|
+
*/
|
|
1058
|
+
PolicyVouchersApi.prototype.listPolicyVoucherTransactions = function (requestParameters, options) {
|
|
1059
|
+
var _this = this;
|
|
1060
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1061
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).listPolicyVoucherTransactions(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); });
|
|
879
1062
|
};
|
|
880
1063
|
/**
|
|
881
1064
|
* 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.
|
|
@@ -888,7 +1071,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
888
1071
|
PolicyVouchersApi.prototype.listPolicyVouchers = function (requestParameters, options) {
|
|
889
1072
|
var _this = this;
|
|
890
1073
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
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); });
|
|
1074
|
+
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); });
|
|
892
1075
|
};
|
|
893
1076
|
/**
|
|
894
1077
|
* This will redeem the policy voucher.
|
|
@@ -900,7 +1083,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
900
1083
|
*/
|
|
901
1084
|
PolicyVouchersApi.prototype.redeemPolicyVoucher = function (requestParameters, options) {
|
|
902
1085
|
var _this = this;
|
|
903
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1086
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
904
1087
|
};
|
|
905
1088
|
/**
|
|
906
1089
|
* This will withdraw the policy voucher.
|
|
@@ -912,7 +1095,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
912
1095
|
*/
|
|
913
1096
|
PolicyVouchersApi.prototype.withdrawPolicyVoucher = function (requestParameters, options) {
|
|
914
1097
|
var _this = this;
|
|
915
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1098
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
916
1099
|
};
|
|
917
1100
|
return PolicyVouchersApi;
|
|
918
1101
|
}(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, {}>>;
|
|
356
|
+
createVoucher(requestParameters: VouchersApiCreateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateVoucherResponseClass, any, {}, 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, {}>>;
|
|
365
|
+
deleteVoucher(requestParameters: VouchersApiDeleteVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
|
|
374
|
+
getVoucher(requestParameters: VouchersApiGetVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetVoucherResponseClass, any, {}, 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, {}>>;
|
|
383
|
+
listVouchers(requestParameters?: VouchersApiListVouchersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListVouchersResponseClass, any, {}, 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, {}>>;
|
|
392
|
+
updateVoucher(requestParameters: VouchersApiUpdateVoucherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateVoucherResponseClass, any, {}, any>>;
|
|
393
393
|
}
|