@emilgroup/payment-sdk 1.22.1-beta.82 → 1.22.1-beta.83
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 +0 -8
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +18 -48
- package/api/bank-orders-api.ts +15 -40
- package/api/bank-transaction-api.ts +26 -181
- package/api/billing-addresses-api.ts +15 -40
- package/api/credit-allocation-api.ts +9 -24
- package/api/exceeding-credits-api.ts +6 -240
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +3 -8
- package/api/payment-methods-api.ts +9 -24
- package/api/payment-receipts-api.ts +15 -40
- package/api/payment-reminders-api.ts +12 -32
- package/api/payment-requests-api.ts +27 -52
- package/api/payment-setup-api.ts +6 -16
- package/api/payments-api.ts +16 -46
- package/api/payout-methods-api.ts +18 -48
- package/api/policy-payment-methods-api.ts +9 -24
- package/api/refunds-api.ts +9 -24
- package/api/tenant-bank-account-api.ts +15 -40
- package/api/webhooks-api.ts +2 -2
- package/base.ts +43 -239
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +46 -82
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +38 -67
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +52 -194
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +39 -71
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +23 -41
- package/dist/api/exceeding-credits-api.d.ts +2 -116
- package/dist/api/exceeding-credits-api.js +15 -226
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +8 -15
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +38 -67
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +31 -56
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +47 -76
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +16 -30
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +34 -62
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +46 -82
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +23 -41
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +22 -37
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +38 -67
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/bank-transaction-class.d.ts +0 -7
- package/dist/models/bank-transaction-entity.d.ts +0 -7
- package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +0 -6
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/exceeding-credit-class.d.ts +2 -25
- package/dist/models/exceeding-credit-class.js +1 -5
- package/dist/models/exceeding-credit-entity.d.ts +2 -31
- package/dist/models/exceeding-credit-entity.js +1 -5
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +1 -13
- package/dist/models/payment-request-class.d.ts +6 -13
- package/dist/models/payment-request-class.js +0 -1
- package/dist/models/shared-transaction-class.d.ts +0 -6
- package/dist/models/transaction-entity.d.ts +0 -6
- package/models/bank-transaction-class.ts +0 -7
- package/models/bank-transaction-entity.ts +0 -7
- package/models/bank-transaction-invoice-entity.ts +0 -24
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +0 -6
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/exceeding-credit-class.ts +2 -26
- package/models/exceeding-credit-entity.ts +2 -32
- package/models/index.ts +0 -8
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +1 -13
- package/models/payment-request-class.ts +6 -13
- package/models/shared-transaction-class.ts +0 -6
- package/models/transaction-entity.ts +0 -6
- package/package.json +2 -2
- package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
- package/dist/models/create-exceeding-credit-request-dto.js +0 -15
- package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
- package/dist/models/create-exceeding-credit-response-class.js +0 -15
- package/dist/models/create-return-premium-credits-request-dto.d.ts +0 -24
- package/dist/models/create-return-premium-credits-request-dto.js +0 -15
- package/dist/models/create-return-premium-credits-response-class.d.ts +0 -25
- package/dist/models/create-return-premium-credits-response-class.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
- package/dist/models/payment-receipt-entity.d.ts +0 -139
- package/dist/models/payment-receipt-entity.js +0 -20
- package/dist/models/payment-request-entity.d.ts +0 -223
- package/dist/models/payment-request-entity.js +0 -39
- package/models/create-exceeding-credit-request-dto.ts +0 -54
- package/models/create-exceeding-credit-response-class.ts +0 -31
- package/models/create-return-premium-credits-request-dto.ts +0 -30
- package/models/create-return-premium-credits-response-class.ts +0 -31
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
- package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
- package/models/payment-receipt-entity.ts +0 -148
- package/models/payment-request-entity.ts +0 -233
|
@@ -92,118 +92,6 @@ var base_1 = require("../base");
|
|
|
92
92
|
var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
-
/**
|
|
96
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
97
|
-
* @summary Create the exceeding credit
|
|
98
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
99
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
-
var _a;
|
|
108
|
-
return __generator(this, function (_b) {
|
|
109
|
-
switch (_b.label) {
|
|
110
|
-
case 0:
|
|
111
|
-
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
112
|
-
(0, common_1.assertParamExists)('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto);
|
|
113
|
-
localVarPath = "/paymentservice/v1/exceeding-credits";
|
|
114
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
-
if (configuration) {
|
|
116
|
-
baseOptions = configuration.baseOptions;
|
|
117
|
-
baseAccessToken = configuration.accessToken;
|
|
118
|
-
}
|
|
119
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
-
localVarHeaderParameter = {};
|
|
121
|
-
localVarQueryParameter = {};
|
|
122
|
-
// authentication bearer required
|
|
123
|
-
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
128
|
-
case 1:
|
|
129
|
-
// authentication bearer required
|
|
130
|
-
// http bearer authentication required
|
|
131
|
-
_b.sent();
|
|
132
|
-
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
-
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
|
-
}
|
|
138
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExceedingCreditRequestDto, localVarRequestOptions, configuration);
|
|
143
|
-
return [2 /*return*/, {
|
|
144
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
-
options: localVarRequestOptions,
|
|
146
|
-
}];
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
153
|
-
* @summary Create the return-premium credits
|
|
154
|
-
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
155
|
-
* @param {string} [authorization] Bearer Token
|
|
156
|
-
* @param {*} [options] Override http request option.
|
|
157
|
-
* @throws {RequiredError}
|
|
158
|
-
*/
|
|
159
|
-
createReturnPremiumCredits: function (createReturnPremiumCreditsRequestDto, authorization, options) {
|
|
160
|
-
if (options === void 0) { options = {}; }
|
|
161
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
-
var _a;
|
|
164
|
-
return __generator(this, function (_b) {
|
|
165
|
-
switch (_b.label) {
|
|
166
|
-
case 0:
|
|
167
|
-
// verify required parameter 'createReturnPremiumCreditsRequestDto' is not null or undefined
|
|
168
|
-
(0, common_1.assertParamExists)('createReturnPremiumCredits', 'createReturnPremiumCreditsRequestDto', createReturnPremiumCreditsRequestDto);
|
|
169
|
-
localVarPath = "/paymentservice/v1/exceeding-credits/return-premium";
|
|
170
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
|
-
if (configuration) {
|
|
172
|
-
baseOptions = configuration.baseOptions;
|
|
173
|
-
baseAccessToken = configuration.accessToken;
|
|
174
|
-
}
|
|
175
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
176
|
-
localVarHeaderParameter = {};
|
|
177
|
-
localVarQueryParameter = {};
|
|
178
|
-
// authentication bearer required
|
|
179
|
-
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
183
|
-
];
|
|
184
|
-
case 1:
|
|
185
|
-
// authentication bearer required
|
|
186
|
-
// http bearer authentication required
|
|
187
|
-
_b.sent();
|
|
188
|
-
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
-
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
191
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
192
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
193
|
-
}
|
|
194
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
195
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReturnPremiumCreditsRequestDto, localVarRequestOptions, configuration);
|
|
199
|
-
return [2 /*return*/, {
|
|
200
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
201
|
-
options: localVarRequestOptions,
|
|
202
|
-
}];
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
},
|
|
207
95
|
/**
|
|
208
96
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
209
97
|
* @summary Retrieve the exceeding credit
|
|
@@ -215,10 +103,9 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
215
103
|
getExceedingCredit: function (code, authorization, options) {
|
|
216
104
|
if (options === void 0) { options = {}; }
|
|
217
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
218
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
222
109
|
case 0:
|
|
223
110
|
// verify required parameter 'code' is not null or undefined
|
|
224
111
|
(0, common_1.assertParamExists)('getExceedingCredit', 'code', code);
|
|
@@ -234,19 +121,13 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
234
121
|
localVarQueryParameter = {};
|
|
235
122
|
// authentication bearer required
|
|
236
123
|
// http bearer authentication required
|
|
237
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
238
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
239
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
240
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
241
125
|
case 1:
|
|
242
126
|
// authentication bearer required
|
|
243
127
|
// http bearer authentication required
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
248
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
250
131
|
}
|
|
251
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
252
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -276,10 +157,9 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
276
157
|
listExceedingCredits: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
277
158
|
if (options === void 0) { options = {}; }
|
|
278
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
279
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
switch (_b.label) {
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
283
163
|
case 0:
|
|
284
164
|
localVarPath = "/paymentservice/v1/exceeding-credits";
|
|
285
165
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -296,7 +176,7 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
296
176
|
case 1:
|
|
297
177
|
// authentication bearer required
|
|
298
178
|
// http bearer authentication required
|
|
299
|
-
|
|
179
|
+
_a.sent();
|
|
300
180
|
if (pageSize !== undefined) {
|
|
301
181
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
302
182
|
}
|
|
@@ -318,11 +198,8 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
318
198
|
if (filters !== undefined) {
|
|
319
199
|
localVarQueryParameter['filters'] = filters;
|
|
320
200
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
324
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
325
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
201
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
202
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
326
203
|
}
|
|
327
204
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
328
205
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -345,48 +222,6 @@ exports.ExceedingCreditsApiAxiosParamCreator = ExceedingCreditsApiAxiosParamCrea
|
|
|
345
222
|
var ExceedingCreditsApiFp = function (configuration) {
|
|
346
223
|
var localVarAxiosParamCreator = (0, exports.ExceedingCreditsApiAxiosParamCreator)(configuration);
|
|
347
224
|
return {
|
|
348
|
-
/**
|
|
349
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
350
|
-
* @summary Create the exceeding credit
|
|
351
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
352
|
-
* @param {string} [authorization] Bearer Token
|
|
353
|
-
* @param {*} [options] Override http request option.
|
|
354
|
-
* @throws {RequiredError}
|
|
355
|
-
*/
|
|
356
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
357
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
-
var localVarAxiosArgs;
|
|
359
|
-
return __generator(this, function (_a) {
|
|
360
|
-
switch (_a.label) {
|
|
361
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options)];
|
|
362
|
-
case 1:
|
|
363
|
-
localVarAxiosArgs = _a.sent();
|
|
364
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
371
|
-
* @summary Create the return-premium credits
|
|
372
|
-
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
373
|
-
* @param {string} [authorization] Bearer Token
|
|
374
|
-
* @param {*} [options] Override http request option.
|
|
375
|
-
* @throws {RequiredError}
|
|
376
|
-
*/
|
|
377
|
-
createReturnPremiumCredits: function (createReturnPremiumCreditsRequestDto, authorization, options) {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var localVarAxiosArgs;
|
|
380
|
-
return __generator(this, function (_a) {
|
|
381
|
-
switch (_a.label) {
|
|
382
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createReturnPremiumCredits(createReturnPremiumCreditsRequestDto, authorization, options)];
|
|
383
|
-
case 1:
|
|
384
|
-
localVarAxiosArgs = _a.sent();
|
|
385
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
},
|
|
390
225
|
/**
|
|
391
226
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
392
227
|
* @summary Retrieve the exceeding credit
|
|
@@ -445,28 +280,6 @@ exports.ExceedingCreditsApiFp = ExceedingCreditsApiFp;
|
|
|
445
280
|
var ExceedingCreditsApiFactory = function (configuration, basePath, axios) {
|
|
446
281
|
var localVarFp = (0, exports.ExceedingCreditsApiFp)(configuration);
|
|
447
282
|
return {
|
|
448
|
-
/**
|
|
449
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
450
|
-
* @summary Create the exceeding credit
|
|
451
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
452
|
-
* @param {string} [authorization] Bearer Token
|
|
453
|
-
* @param {*} [options] Override http request option.
|
|
454
|
-
* @throws {RequiredError}
|
|
455
|
-
*/
|
|
456
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
457
|
-
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
458
|
-
},
|
|
459
|
-
/**
|
|
460
|
-
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
461
|
-
* @summary Create the return-premium credits
|
|
462
|
-
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
463
|
-
* @param {string} [authorization] Bearer Token
|
|
464
|
-
* @param {*} [options] Override http request option.
|
|
465
|
-
* @throws {RequiredError}
|
|
466
|
-
*/
|
|
467
|
-
createReturnPremiumCredits: function (createReturnPremiumCreditsRequestDto, authorization, options) {
|
|
468
|
-
return localVarFp.createReturnPremiumCredits(createReturnPremiumCreditsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
469
|
-
},
|
|
470
283
|
/**
|
|
471
284
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
472
285
|
* @summary Retrieve the exceeding credit
|
|
@@ -509,30 +322,6 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
509
322
|
function ExceedingCreditsApi() {
|
|
510
323
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
511
324
|
}
|
|
512
|
-
/**
|
|
513
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
514
|
-
* @summary Create the exceeding credit
|
|
515
|
-
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
516
|
-
* @param {*} [options] Override http request option.
|
|
517
|
-
* @throws {RequiredError}
|
|
518
|
-
* @memberof ExceedingCreditsApi
|
|
519
|
-
*/
|
|
520
|
-
ExceedingCreditsApi.prototype.createExceedingCredit = function (requestParameters, options) {
|
|
521
|
-
var _this = this;
|
|
522
|
-
return (0, exports.ExceedingCreditsApiFp)(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
526
|
-
* @summary Create the return-premium credits
|
|
527
|
-
* @param {ExceedingCreditsApiCreateReturnPremiumCreditsRequest} requestParameters Request parameters.
|
|
528
|
-
* @param {*} [options] Override http request option.
|
|
529
|
-
* @throws {RequiredError}
|
|
530
|
-
* @memberof ExceedingCreditsApi
|
|
531
|
-
*/
|
|
532
|
-
ExceedingCreditsApi.prototype.createReturnPremiumCredits = function (requestParameters, options) {
|
|
533
|
-
var _this = this;
|
|
534
|
-
return (0, exports.ExceedingCreditsApiFp)(this.configuration).createReturnPremiumCredits(requestParameters.createReturnPremiumCreditsRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
535
|
-
};
|
|
536
325
|
/**
|
|
537
326
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
538
327
|
* @summary Retrieve the exceeding credit
|
|
@@ -543,7 +332,7 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
543
332
|
*/
|
|
544
333
|
ExceedingCreditsApi.prototype.getExceedingCredit = function (requestParameters, options) {
|
|
545
334
|
var _this = this;
|
|
546
|
-
return (0, exports.ExceedingCreditsApiFp)(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization,
|
|
335
|
+
return (0, exports.ExceedingCreditsApiFp)(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
547
336
|
};
|
|
548
337
|
/**
|
|
549
338
|
* Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -556,7 +345,7 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
556
345
|
ExceedingCreditsApi.prototype.listExceedingCredits = function (requestParameters, options) {
|
|
557
346
|
var _this = this;
|
|
558
347
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
559
|
-
return (0, exports.ExceedingCreditsApiFp)(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
348
|
+
return (0, exports.ExceedingCreditsApiFp)(this.configuration).listExceedingCredits(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); });
|
|
560
349
|
};
|
|
561
350
|
return ExceedingCreditsApi;
|
|
562
351
|
}(base_1.BaseAPI));
|
|
@@ -66,5 +66,5 @@ export declare class HealthCheckApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthCheckApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
|
@@ -193,7 +193,7 @@ var HealthCheckApi = /** @class */ (function (_super) {
|
|
|
193
193
|
*/
|
|
194
194
|
HealthCheckApi.prototype.check = function (options) {
|
|
195
195
|
var _this = this;
|
|
196
|
-
return (0, exports.HealthCheckApiFp)(this.configuration).check(
|
|
196
|
+
return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
197
197
|
};
|
|
198
198
|
return HealthCheckApi;
|
|
199
199
|
}(base_1.BaseAPI));
|
|
@@ -93,5 +93,5 @@ export declare class IBANValidatorApi extends BaseAPI {
|
|
|
93
93
|
* @throws {RequiredError}
|
|
94
94
|
* @memberof IBANValidatorApi
|
|
95
95
|
*/
|
|
96
|
-
validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}
|
|
96
|
+
validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}>>;
|
|
97
97
|
}
|
|
@@ -103,10 +103,9 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
validateIban: function (validateIbanRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'validateIbanRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('validateIban', 'validateIbanRequestDto', validateIbanRequestDto);
|
|
@@ -121,19 +120,13 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -224,7 +217,7 @@ var IBANValidatorApi = /** @class */ (function (_super) {
|
|
|
224
217
|
*/
|
|
225
218
|
IBANValidatorApi.prototype.validateIban = function (requestParameters, options) {
|
|
226
219
|
var _this = this;
|
|
227
|
-
return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization,
|
|
220
|
+
return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
228
221
|
};
|
|
229
222
|
return IBANValidatorApi;
|
|
230
223
|
}(base_1.BaseAPI));
|
|
@@ -241,7 +241,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
241
241
|
* @throws {RequiredError}
|
|
242
242
|
* @memberof PaymentMethodsApi
|
|
243
243
|
*/
|
|
244
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}
|
|
244
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}>>;
|
|
245
245
|
/**
|
|
246
246
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information. **Required Permissions** \"payment-management.payments.view\"
|
|
247
247
|
* @summary Retrieve the payment method
|
|
@@ -250,7 +250,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof PaymentMethodsApi
|
|
252
252
|
*/
|
|
253
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}
|
|
253
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}>>;
|
|
254
254
|
/**
|
|
255
255
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
256
256
|
* @summary List payment methods
|
|
@@ -259,5 +259,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof PaymentMethodsApi
|
|
261
261
|
*/
|
|
262
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}
|
|
262
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}>>;
|
|
263
263
|
}
|
|
@@ -103,10 +103,9 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto);
|
|
@@ -121,19 +120,13 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,10 +152,9 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
159
152
|
getPaymentMethod: function (code, authorization, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
@@ -178,19 +170,13 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
178
170
|
localVarQueryParameter = {};
|
|
179
171
|
// authentication bearer required
|
|
180
172
|
// http bearer authentication required
|
|
181
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
185
174
|
case 1:
|
|
186
175
|
// authentication bearer required
|
|
187
176
|
// http bearer authentication required
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
180
|
}
|
|
195
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -220,10 +206,9 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
220
206
|
listPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
221
207
|
if (options === void 0) { options = {}; }
|
|
222
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
223
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
switch (_b.label) {
|
|
209
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
227
212
|
case 0:
|
|
228
213
|
localVarPath = "/paymentservice/v1/payment-methods";
|
|
229
214
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -240,7 +225,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
240
225
|
case 1:
|
|
241
226
|
// authentication bearer required
|
|
242
227
|
// http bearer authentication required
|
|
243
|
-
|
|
228
|
+
_a.sent();
|
|
244
229
|
if (pageSize !== undefined) {
|
|
245
230
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
246
231
|
}
|
|
@@ -262,11 +247,8 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
262
247
|
if (filters !== undefined) {
|
|
263
248
|
localVarQueryParameter['filters'] = filters;
|
|
264
249
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
268
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
269
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
270
252
|
}
|
|
271
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
272
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -431,7 +413,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
431
413
|
*/
|
|
432
414
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
433
415
|
var _this = this;
|
|
434
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization,
|
|
416
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
435
417
|
};
|
|
436
418
|
/**
|
|
437
419
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -443,7 +425,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
443
425
|
*/
|
|
444
426
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
445
427
|
var _this = this;
|
|
446
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization,
|
|
428
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
447
429
|
};
|
|
448
430
|
/**
|
|
449
431
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -456,7 +438,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
456
438
|
PaymentMethodsApi.prototype.listPaymentMethods = function (requestParameters, options) {
|
|
457
439
|
var _this = this;
|
|
458
440
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
459
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
441
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(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); });
|
|
460
442
|
};
|
|
461
443
|
return PaymentMethodsApi;
|
|
462
444
|
}(base_1.BaseAPI));
|
|
@@ -343,7 +343,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
343
343
|
* @throws {RequiredError}
|
|
344
344
|
* @memberof PaymentReceiptsApi
|
|
345
345
|
*/
|
|
346
|
-
createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReceiptResponseClass, any, {}
|
|
346
|
+
createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReceiptResponseClass, any, {}>>;
|
|
347
347
|
/**
|
|
348
348
|
* This will delete payment receipt. **Required Permissions** \"payment-management.payments.delete\"
|
|
349
349
|
* @summary Delete the payment receipt
|
|
@@ -352,7 +352,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
352
352
|
* @throws {RequiredError}
|
|
353
353
|
* @memberof PaymentReceiptsApi
|
|
354
354
|
*/
|
|
355
|
-
deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}
|
|
355
|
+
deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
356
356
|
/**
|
|
357
357
|
* This will get payment receipt. **Required Permissions** \"payment-management.payments.view\"
|
|
358
358
|
* @summary Retrieve the payment receipt
|
|
@@ -361,7 +361,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
* @memberof PaymentReceiptsApi
|
|
363
363
|
*/
|
|
364
|
-
getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReceiptResponseClass, any, {}
|
|
364
|
+
getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReceiptResponseClass, any, {}>>;
|
|
365
365
|
/**
|
|
366
366
|
* Retrieves a list of paymentreceipts. **Required Permissions** \"payment-management.payments.view\"
|
|
367
367
|
* @summary List payment receipts
|
|
@@ -370,7 +370,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
370
370
|
* @throws {RequiredError}
|
|
371
371
|
* @memberof PaymentReceiptsApi
|
|
372
372
|
*/
|
|
373
|
-
listPaymentReceipts(requestParameters?: PaymentReceiptsApiListPaymentReceiptsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentReceiptsResponseClass, any, {}
|
|
373
|
+
listPaymentReceipts(requestParameters?: PaymentReceiptsApiListPaymentReceiptsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentReceiptsResponseClass, any, {}>>;
|
|
374
374
|
/**
|
|
375
375
|
* This will update payment receipt. **Required Permissions** \"payment-management.payments.update\"
|
|
376
376
|
* @summary Update the payment receipt
|
|
@@ -379,5 +379,5 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
379
379
|
* @throws {RequiredError}
|
|
380
380
|
* @memberof PaymentReceiptsApi
|
|
381
381
|
*/
|
|
382
|
-
updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePaymentReceiptResponseClass, any, {}
|
|
382
|
+
updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePaymentReceiptResponseClass, any, {}>>;
|
|
383
383
|
}
|