@emilgroup/discount-sdk 1.1.1-beta.2 → 1.2.1-beta.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.
- package/README.md +2 -2
- package/api/campaigns-api.ts +8 -8
- package/api/policy-vouchers-api.ts +21 -60
- package/dist/api/campaigns-api.d.ts +8 -8
- package/dist/api/campaigns-api.js +38 -91
- package/dist/api/default-api.js +5 -18
- package/dist/api/policy-vouchers-api.d.ts +12 -39
- package/dist/api/policy-vouchers-api.js +44 -103
- package/dist/api/vouchers-api.d.ts +3 -3
- package/dist/api/vouchers-api.js +17 -46
- package/dist/base.js +5 -5
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/package.json +3 -3
package/dist/api/default-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -107,14 +98,10 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
107
98
|
* @param {*} [options] Override http request option.
|
|
108
99
|
* @throws {RequiredError}
|
|
109
100
|
*/
|
|
110
|
-
check: function () {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
args_1[_i] = arguments[_i];
|
|
114
|
-
}
|
|
115
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
101
|
+
check: function (options) {
|
|
102
|
+
if (options === void 0) { options = {}; }
|
|
103
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
116
104
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
-
if (options === void 0) { options = {}; }
|
|
118
105
|
return __generator(this, function (_a) {
|
|
119
106
|
localVarPath = "/discountservice/health";
|
|
120
107
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -32,13 +32,12 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
|
|
|
32
32
|
/**
|
|
33
33
|
* This will charge the policy voucher.
|
|
34
34
|
* @summary Charges the policy voucher.
|
|
35
|
-
* @param {any} code Unique identifier for the object.
|
|
36
35
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
37
36
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
37
|
* @param {*} [options] Override http request option.
|
|
39
38
|
* @throws {RequiredError}
|
|
40
39
|
*/
|
|
41
|
-
chargePolicyVoucher: (
|
|
40
|
+
chargePolicyVoucher: (chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
41
|
/**
|
|
43
42
|
* This will check if the account is eligible for a specific voucher.
|
|
44
43
|
* @summary Checks the account eligibility.
|
|
@@ -75,7 +74,7 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
|
|
|
75
74
|
* @param {*} [options] Override http request option.
|
|
76
75
|
* @throws {RequiredError}
|
|
77
76
|
*/
|
|
78
|
-
getPolicyVoucher: (code: string, authorization?: string, expand?:
|
|
77
|
+
getPolicyVoucher: (code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
78
|
/**
|
|
80
79
|
* 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.
|
|
81
80
|
* @summary List policy vouchers
|
|
@@ -94,23 +93,21 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
|
|
|
94
93
|
/**
|
|
95
94
|
* This will redeem the policy voucher.
|
|
96
95
|
* @summary Redeems the policy voucher.
|
|
97
|
-
* @param {any} code Unique identifier for the object.
|
|
98
96
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
99
97
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
98
|
* @param {*} [options] Override http request option.
|
|
101
99
|
* @throws {RequiredError}
|
|
102
100
|
*/
|
|
103
|
-
redeemPolicyVoucher: (
|
|
101
|
+
redeemPolicyVoucher: (redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
104
102
|
/**
|
|
105
103
|
* This will withdraw the policy voucher.
|
|
106
104
|
* @summary Withdraws the policy voucher.
|
|
107
|
-
* @param {any} code Unique identifier for the object.
|
|
108
105
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
109
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
110
107
|
* @param {*} [options] Override http request option.
|
|
111
108
|
* @throws {RequiredError}
|
|
112
109
|
*/
|
|
113
|
-
withdrawPolicyVoucher: (
|
|
110
|
+
withdrawPolicyVoucher: (withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
111
|
};
|
|
115
112
|
/**
|
|
116
113
|
* PolicyVouchersApi - functional programming interface
|
|
@@ -120,13 +117,12 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
|
|
|
120
117
|
/**
|
|
121
118
|
* This will charge the policy voucher.
|
|
122
119
|
* @summary Charges the policy voucher.
|
|
123
|
-
* @param {any} code Unique identifier for the object.
|
|
124
120
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
125
121
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
126
122
|
* @param {*} [options] Override http request option.
|
|
127
123
|
* @throws {RequiredError}
|
|
128
124
|
*/
|
|
129
|
-
chargePolicyVoucher(
|
|
125
|
+
chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>>;
|
|
130
126
|
/**
|
|
131
127
|
* This will check if the account is eligible for a specific voucher.
|
|
132
128
|
* @summary Checks the account eligibility.
|
|
@@ -163,7 +159,7 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
|
|
|
163
159
|
* @param {*} [options] Override http request option.
|
|
164
160
|
* @throws {RequiredError}
|
|
165
161
|
*/
|
|
166
|
-
getPolicyVoucher(code: string, authorization?: string, expand?:
|
|
162
|
+
getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyVoucherResponseClass>>;
|
|
167
163
|
/**
|
|
168
164
|
* 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.
|
|
169
165
|
* @summary List policy vouchers
|
|
@@ -182,23 +178,21 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
|
|
|
182
178
|
/**
|
|
183
179
|
* This will redeem the policy voucher.
|
|
184
180
|
* @summary Redeems the policy voucher.
|
|
185
|
-
* @param {any} code Unique identifier for the object.
|
|
186
181
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
187
182
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
183
|
* @param {*} [options] Override http request option.
|
|
189
184
|
* @throws {RequiredError}
|
|
190
185
|
*/
|
|
191
|
-
redeemPolicyVoucher(
|
|
186
|
+
redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>>;
|
|
192
187
|
/**
|
|
193
188
|
* This will withdraw the policy voucher.
|
|
194
189
|
* @summary Withdraws the policy voucher.
|
|
195
|
-
* @param {any} code Unique identifier for the object.
|
|
196
190
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
197
191
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
198
192
|
* @param {*} [options] Override http request option.
|
|
199
193
|
* @throws {RequiredError}
|
|
200
194
|
*/
|
|
201
|
-
withdrawPolicyVoucher(
|
|
195
|
+
withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>>;
|
|
202
196
|
};
|
|
203
197
|
/**
|
|
204
198
|
* PolicyVouchersApi - factory interface
|
|
@@ -208,13 +202,12 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
|
|
|
208
202
|
/**
|
|
209
203
|
* This will charge the policy voucher.
|
|
210
204
|
* @summary Charges the policy voucher.
|
|
211
|
-
* @param {any} code Unique identifier for the object.
|
|
212
205
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
213
206
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
214
207
|
* @param {*} [options] Override http request option.
|
|
215
208
|
* @throws {RequiredError}
|
|
216
209
|
*/
|
|
217
|
-
chargePolicyVoucher(
|
|
210
|
+
chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass>;
|
|
218
211
|
/**
|
|
219
212
|
* This will check if the account is eligible for a specific voucher.
|
|
220
213
|
* @summary Checks the account eligibility.
|
|
@@ -251,7 +244,7 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
|
|
|
251
244
|
* @param {*} [options] Override http request option.
|
|
252
245
|
* @throws {RequiredError}
|
|
253
246
|
*/
|
|
254
|
-
getPolicyVoucher(code: string, authorization?: string, expand?:
|
|
247
|
+
getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: any): AxiosPromise<GetPolicyVoucherResponseClass>;
|
|
255
248
|
/**
|
|
256
249
|
* 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.
|
|
257
250
|
* @summary List policy vouchers
|
|
@@ -270,23 +263,21 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
|
|
|
270
263
|
/**
|
|
271
264
|
* This will redeem the policy voucher.
|
|
272
265
|
* @summary Redeems the policy voucher.
|
|
273
|
-
* @param {any} code Unique identifier for the object.
|
|
274
266
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
275
267
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
276
268
|
* @param {*} [options] Override http request option.
|
|
277
269
|
* @throws {RequiredError}
|
|
278
270
|
*/
|
|
279
|
-
redeemPolicyVoucher(
|
|
271
|
+
redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass>;
|
|
280
272
|
/**
|
|
281
273
|
* This will withdraw the policy voucher.
|
|
282
274
|
* @summary Withdraws the policy voucher.
|
|
283
|
-
* @param {any} code Unique identifier for the object.
|
|
284
275
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
285
276
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
286
277
|
* @param {*} [options] Override http request option.
|
|
287
278
|
* @throws {RequiredError}
|
|
288
279
|
*/
|
|
289
|
-
withdrawPolicyVoucher(
|
|
280
|
+
withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass>;
|
|
290
281
|
};
|
|
291
282
|
/**
|
|
292
283
|
* Request parameters for chargePolicyVoucher operation in PolicyVouchersApi.
|
|
@@ -294,12 +285,6 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
|
|
|
294
285
|
* @interface PolicyVouchersApiChargePolicyVoucherRequest
|
|
295
286
|
*/
|
|
296
287
|
export interface PolicyVouchersApiChargePolicyVoucherRequest {
|
|
297
|
-
/**
|
|
298
|
-
* Unique identifier for the object.
|
|
299
|
-
* @type {any}
|
|
300
|
-
* @memberof PolicyVouchersApiChargePolicyVoucher
|
|
301
|
-
*/
|
|
302
|
-
readonly code: any;
|
|
303
288
|
/**
|
|
304
289
|
*
|
|
305
290
|
* @type {ChargePolicyVoucherRequestDto}
|
|
@@ -456,12 +441,6 @@ export interface PolicyVouchersApiListPolicyVouchersRequest {
|
|
|
456
441
|
* @interface PolicyVouchersApiRedeemPolicyVoucherRequest
|
|
457
442
|
*/
|
|
458
443
|
export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
|
|
459
|
-
/**
|
|
460
|
-
* Unique identifier for the object.
|
|
461
|
-
* @type {any}
|
|
462
|
-
* @memberof PolicyVouchersApiRedeemPolicyVoucher
|
|
463
|
-
*/
|
|
464
|
-
readonly code: any;
|
|
465
444
|
/**
|
|
466
445
|
*
|
|
467
446
|
* @type {RedeemPolicyVoucherRequestDto}
|
|
@@ -481,12 +460,6 @@ export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
|
|
|
481
460
|
* @interface PolicyVouchersApiWithdrawPolicyVoucherRequest
|
|
482
461
|
*/
|
|
483
462
|
export interface PolicyVouchersApiWithdrawPolicyVoucherRequest {
|
|
484
|
-
/**
|
|
485
|
-
* Unique identifier for the object.
|
|
486
|
-
* @type {any}
|
|
487
|
-
* @memberof PolicyVouchersApiWithdrawPolicyVoucher
|
|
488
|
-
*/
|
|
489
|
-
readonly code: any;
|
|
490
463
|
/**
|
|
491
464
|
*
|
|
492
465
|
* @type {WithdrawPolicyVoucherRequestDto}
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -104,29 +95,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
104
95
|
/**
|
|
105
96
|
* This will charge the policy voucher.
|
|
106
97
|
* @summary Charges the policy voucher.
|
|
107
|
-
* @param {any} code Unique identifier for the object.
|
|
108
98
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
109
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
110
100
|
* @param {*} [options] Override http request option.
|
|
111
101
|
* @throws {RequiredError}
|
|
112
102
|
*/
|
|
113
|
-
chargePolicyVoucher: function (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
args_1[_i - 3] = arguments[_i];
|
|
117
|
-
}
|
|
118
|
-
return __awaiter(_this, __spreadArray([code_1, chargePolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, chargePolicyVoucherRequestDto, authorization, options) {
|
|
103
|
+
chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
119
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
120
|
-
if (options === void 0) { options = {}; }
|
|
121
107
|
return __generator(this, function (_a) {
|
|
122
108
|
switch (_a.label) {
|
|
123
109
|
case 0:
|
|
124
|
-
// verify required parameter 'code' is not null or undefined
|
|
125
|
-
(0, common_1.assertParamExists)('chargePolicyVoucher', 'code', code);
|
|
126
110
|
// verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
|
|
127
111
|
(0, common_1.assertParamExists)('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto);
|
|
128
|
-
localVarPath = "/discountservice/v1/policy-vouchers/charge"
|
|
129
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
112
|
+
localVarPath = "/discountservice/v1/policy-vouchers/charge";
|
|
130
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
131
114
|
if (configuration) {
|
|
132
115
|
baseOptions = configuration.baseOptions;
|
|
@@ -166,14 +149,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
166
149
|
* @param {*} [options] Override http request option.
|
|
167
150
|
* @throws {RequiredError}
|
|
168
151
|
*/
|
|
169
|
-
checkAccountEligibility: function (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
args_1[_i - 2] = arguments[_i];
|
|
173
|
-
}
|
|
174
|
-
return __awaiter(_this, __spreadArray([checkAccountEligibilityRequestDto_1, authorization_1], args_1, true), void 0, function (checkAccountEligibilityRequestDto, authorization, options) {
|
|
152
|
+
checkAccountEligibility: function (checkAccountEligibilityRequestDto, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
-
if (options === void 0) { options = {}; }
|
|
177
156
|
return __generator(this, function (_a) {
|
|
178
157
|
switch (_a.label) {
|
|
179
158
|
case 0:
|
|
@@ -219,14 +198,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
219
198
|
* @param {*} [options] Override http request option.
|
|
220
199
|
* @throws {RequiredError}
|
|
221
200
|
*/
|
|
222
|
-
createPolicyVoucher: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 2] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([createPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (createPolicyVoucherRequestDto, authorization, options) {
|
|
201
|
+
createPolicyVoucher: function (createPolicyVoucherRequestDto, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
205
|
return __generator(this, function (_a) {
|
|
231
206
|
switch (_a.label) {
|
|
232
207
|
case 0:
|
|
@@ -272,14 +247,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
272
247
|
* @param {*} [options] Override http request option.
|
|
273
248
|
* @throws {RequiredError}
|
|
274
249
|
*/
|
|
275
|
-
deletePolicyVoucher: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 2] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
250
|
+
deletePolicyVoucher: function (code, authorization, options) {
|
|
251
|
+
if (options === void 0) { options = {}; }
|
|
252
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
253
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
254
|
return __generator(this, function (_a) {
|
|
284
255
|
switch (_a.label) {
|
|
285
256
|
case 0:
|
|
@@ -325,14 +296,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
325
296
|
* @param {*} [options] Override http request option.
|
|
326
297
|
* @throws {RequiredError}
|
|
327
298
|
*/
|
|
328
|
-
getPolicyVoucher: function (
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
args_1[_i - 3] = arguments[_i];
|
|
332
|
-
}
|
|
333
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
299
|
+
getPolicyVoucher: function (code, authorization, expand, options) {
|
|
300
|
+
if (options === void 0) { options = {}; }
|
|
301
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
334
302
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
-
if (options === void 0) { options = {}; }
|
|
336
303
|
return __generator(this, function (_a) {
|
|
337
304
|
switch (_a.label) {
|
|
338
305
|
case 0:
|
|
@@ -386,14 +353,10 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
386
353
|
* @param {*} [options] Override http request option.
|
|
387
354
|
* @throws {RequiredError}
|
|
388
355
|
*/
|
|
389
|
-
listPolicyVouchers: function (
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
args_1[_i - 8] = arguments[_i];
|
|
393
|
-
}
|
|
394
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
356
|
+
listPolicyVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
357
|
+
if (options === void 0) { options = {}; }
|
|
358
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
395
359
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
396
|
-
if (options === void 0) { options = {}; }
|
|
397
360
|
return __generator(this, function (_a) {
|
|
398
361
|
switch (_a.label) {
|
|
399
362
|
case 0:
|
|
@@ -451,29 +414,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
451
414
|
/**
|
|
452
415
|
* This will redeem the policy voucher.
|
|
453
416
|
* @summary Redeems the policy voucher.
|
|
454
|
-
* @param {any} code Unique identifier for the object.
|
|
455
417
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
456
418
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
457
419
|
* @param {*} [options] Override http request option.
|
|
458
420
|
* @throws {RequiredError}
|
|
459
421
|
*/
|
|
460
|
-
redeemPolicyVoucher: function (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
args_1[_i - 3] = arguments[_i];
|
|
464
|
-
}
|
|
465
|
-
return __awaiter(_this, __spreadArray([code_1, redeemPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, redeemPolicyVoucherRequestDto, authorization, options) {
|
|
422
|
+
redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
|
|
423
|
+
if (options === void 0) { options = {}; }
|
|
424
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
466
425
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
467
|
-
if (options === void 0) { options = {}; }
|
|
468
426
|
return __generator(this, function (_a) {
|
|
469
427
|
switch (_a.label) {
|
|
470
428
|
case 0:
|
|
471
|
-
// verify required parameter 'code' is not null or undefined
|
|
472
|
-
(0, common_1.assertParamExists)('redeemPolicyVoucher', 'code', code);
|
|
473
429
|
// verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
|
|
474
430
|
(0, common_1.assertParamExists)('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto);
|
|
475
|
-
localVarPath = "/discountservice/v1/policy-vouchers/redeem"
|
|
476
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
431
|
+
localVarPath = "/discountservice/v1/policy-vouchers/redeem";
|
|
477
432
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
478
433
|
if (configuration) {
|
|
479
434
|
baseOptions = configuration.baseOptions;
|
|
@@ -508,29 +463,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
|
|
|
508
463
|
/**
|
|
509
464
|
* This will withdraw the policy voucher.
|
|
510
465
|
* @summary Withdraws the policy voucher.
|
|
511
|
-
* @param {any} code Unique identifier for the object.
|
|
512
466
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
513
467
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
514
468
|
* @param {*} [options] Override http request option.
|
|
515
469
|
* @throws {RequiredError}
|
|
516
470
|
*/
|
|
517
|
-
withdrawPolicyVoucher: function (
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
args_1[_i - 3] = arguments[_i];
|
|
521
|
-
}
|
|
522
|
-
return __awaiter(_this, __spreadArray([code_1, withdrawPolicyVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
471
|
+
withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
472
|
+
if (options === void 0) { options = {}; }
|
|
473
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
523
474
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
524
|
-
if (options === void 0) { options = {}; }
|
|
525
475
|
return __generator(this, function (_a) {
|
|
526
476
|
switch (_a.label) {
|
|
527
477
|
case 0:
|
|
528
|
-
// verify required parameter 'code' is not null or undefined
|
|
529
|
-
(0, common_1.assertParamExists)('withdrawPolicyVoucher', 'code', code);
|
|
530
478
|
// verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
|
|
531
479
|
(0, common_1.assertParamExists)('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto);
|
|
532
|
-
localVarPath = "/discountservice/v1/policy-vouchers/withdraw"
|
|
533
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
480
|
+
localVarPath = "/discountservice/v1/policy-vouchers/withdraw";
|
|
534
481
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
535
482
|
if (configuration) {
|
|
536
483
|
baseOptions = configuration.baseOptions;
|
|
@@ -575,18 +522,17 @@ var PolicyVouchersApiFp = function (configuration) {
|
|
|
575
522
|
/**
|
|
576
523
|
* This will charge the policy voucher.
|
|
577
524
|
* @summary Charges the policy voucher.
|
|
578
|
-
* @param {any} code Unique identifier for the object.
|
|
579
525
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
580
526
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
581
527
|
* @param {*} [options] Override http request option.
|
|
582
528
|
* @throws {RequiredError}
|
|
583
529
|
*/
|
|
584
|
-
chargePolicyVoucher: function (
|
|
530
|
+
chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
|
|
585
531
|
return __awaiter(this, void 0, void 0, function () {
|
|
586
532
|
var localVarAxiosArgs;
|
|
587
533
|
return __generator(this, function (_a) {
|
|
588
534
|
switch (_a.label) {
|
|
589
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(
|
|
535
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options)];
|
|
590
536
|
case 1:
|
|
591
537
|
localVarAxiosArgs = _a.sent();
|
|
592
538
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -709,18 +655,17 @@ var PolicyVouchersApiFp = function (configuration) {
|
|
|
709
655
|
/**
|
|
710
656
|
* This will redeem the policy voucher.
|
|
711
657
|
* @summary Redeems the policy voucher.
|
|
712
|
-
* @param {any} code Unique identifier for the object.
|
|
713
658
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
714
659
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
715
660
|
* @param {*} [options] Override http request option.
|
|
716
661
|
* @throws {RequiredError}
|
|
717
662
|
*/
|
|
718
|
-
redeemPolicyVoucher: function (
|
|
663
|
+
redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
|
|
719
664
|
return __awaiter(this, void 0, void 0, function () {
|
|
720
665
|
var localVarAxiosArgs;
|
|
721
666
|
return __generator(this, function (_a) {
|
|
722
667
|
switch (_a.label) {
|
|
723
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(
|
|
668
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options)];
|
|
724
669
|
case 1:
|
|
725
670
|
localVarAxiosArgs = _a.sent();
|
|
726
671
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -731,18 +676,17 @@ var PolicyVouchersApiFp = function (configuration) {
|
|
|
731
676
|
/**
|
|
732
677
|
* This will withdraw the policy voucher.
|
|
733
678
|
* @summary Withdraws the policy voucher.
|
|
734
|
-
* @param {any} code Unique identifier for the object.
|
|
735
679
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
736
680
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
737
681
|
* @param {*} [options] Override http request option.
|
|
738
682
|
* @throws {RequiredError}
|
|
739
683
|
*/
|
|
740
|
-
withdrawPolicyVoucher: function (
|
|
684
|
+
withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
741
685
|
return __awaiter(this, void 0, void 0, function () {
|
|
742
686
|
var localVarAxiosArgs;
|
|
743
687
|
return __generator(this, function (_a) {
|
|
744
688
|
switch (_a.label) {
|
|
745
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(
|
|
689
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options)];
|
|
746
690
|
case 1:
|
|
747
691
|
localVarAxiosArgs = _a.sent();
|
|
748
692
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -763,14 +707,13 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
|
|
|
763
707
|
/**
|
|
764
708
|
* This will charge the policy voucher.
|
|
765
709
|
* @summary Charges the policy voucher.
|
|
766
|
-
* @param {any} code Unique identifier for the object.
|
|
767
710
|
* @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
|
|
768
711
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
769
712
|
* @param {*} [options] Override http request option.
|
|
770
713
|
* @throws {RequiredError}
|
|
771
714
|
*/
|
|
772
|
-
chargePolicyVoucher: function (
|
|
773
|
-
return localVarFp.chargePolicyVoucher(
|
|
715
|
+
chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
|
|
716
|
+
return localVarFp.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
774
717
|
},
|
|
775
718
|
/**
|
|
776
719
|
* This will check if the account is eligible for a specific voucher.
|
|
@@ -837,26 +780,24 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
|
|
|
837
780
|
/**
|
|
838
781
|
* This will redeem the policy voucher.
|
|
839
782
|
* @summary Redeems the policy voucher.
|
|
840
|
-
* @param {any} code Unique identifier for the object.
|
|
841
783
|
* @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
|
|
842
784
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
843
785
|
* @param {*} [options] Override http request option.
|
|
844
786
|
* @throws {RequiredError}
|
|
845
787
|
*/
|
|
846
|
-
redeemPolicyVoucher: function (
|
|
847
|
-
return localVarFp.redeemPolicyVoucher(
|
|
788
|
+
redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
|
|
789
|
+
return localVarFp.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
848
790
|
},
|
|
849
791
|
/**
|
|
850
792
|
* This will withdraw the policy voucher.
|
|
851
793
|
* @summary Withdraws the policy voucher.
|
|
852
|
-
* @param {any} code Unique identifier for the object.
|
|
853
794
|
* @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
|
|
854
795
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
855
796
|
* @param {*} [options] Override http request option.
|
|
856
797
|
* @throws {RequiredError}
|
|
857
798
|
*/
|
|
858
|
-
withdrawPolicyVoucher: function (
|
|
859
|
-
return localVarFp.withdrawPolicyVoucher(
|
|
799
|
+
withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
|
|
800
|
+
return localVarFp.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
860
801
|
},
|
|
861
802
|
};
|
|
862
803
|
};
|
|
@@ -882,7 +823,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
882
823
|
*/
|
|
883
824
|
PolicyVouchersApi.prototype.chargePolicyVoucher = function (requestParameters, options) {
|
|
884
825
|
var _this = this;
|
|
885
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.
|
|
826
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
886
827
|
};
|
|
887
828
|
/**
|
|
888
829
|
* This will check if the account is eligible for a specific voucher.
|
|
@@ -955,7 +896,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
955
896
|
*/
|
|
956
897
|
PolicyVouchersApi.prototype.redeemPolicyVoucher = function (requestParameters, options) {
|
|
957
898
|
var _this = this;
|
|
958
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.
|
|
899
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
959
900
|
};
|
|
960
901
|
/**
|
|
961
902
|
* This will withdraw the policy voucher.
|
|
@@ -967,7 +908,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
|
|
|
967
908
|
*/
|
|
968
909
|
PolicyVouchersApi.prototype.withdrawPolicyVoucher = function (requestParameters, options) {
|
|
969
910
|
var _this = this;
|
|
970
|
-
return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.
|
|
911
|
+
return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
971
912
|
};
|
|
972
913
|
return PolicyVouchersApi;
|
|
973
914
|
}(base_1.BaseAPI));
|
|
@@ -50,7 +50,7 @@ export declare const VouchersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getVoucher: (code: string, authorization?: string, expand?:
|
|
53
|
+
getVoucher: (code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
* 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.
|
|
56
56
|
* @summary List Vouchers
|
|
@@ -109,7 +109,7 @@ export declare const VouchersApiFp: (configuration?: Configuration) => {
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getVoucher(code: string, authorization?: string, expand?:
|
|
112
|
+
getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVoucherResponseClass>>;
|
|
113
113
|
/**
|
|
114
114
|
* 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.
|
|
115
115
|
* @summary List Vouchers
|
|
@@ -168,7 +168,7 @@ export declare const VouchersApiFactory: (configuration?: Configuration, basePat
|
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
170
170
|
*/
|
|
171
|
-
getVoucher(code: string, authorization?: string, expand?:
|
|
171
|
+
getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: any): AxiosPromise<GetVoucherResponseClass>;
|
|
172
172
|
/**
|
|
173
173
|
* 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.
|
|
174
174
|
* @summary List Vouchers
|