@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.4
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 -35
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +17 -21
- package/api/bank-transaction-api.ts +3 -205
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -42
- package/api/payment-reminders-api.ts +9 -13
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +26 -28
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -3
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +13 -15
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +4 -114
- package/dist/api/bank-transaction-api.js +1 -185
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +28 -32
- package/dist/api/payment-methods-api.js +29 -25
- package/dist/api/payment-reminders-api.d.ts +13 -15
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +22 -25
- package/dist/api/payments-api.js +17 -13
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -2
- package/dist/api.js +1 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -34
- package/dist/models/index.js +0 -34
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -34
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/api/refunds-api.ts +0 -474
- package/dist/api/refunds-api.d.ts +0 -269
- package/dist/api/refunds-api.js +0 -447
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-request-dto.d.ts +0 -24
- package/dist/models/create-refund-request-dto.js +0 -15
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-request-dto.ts +0 -30
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -194,54 +194,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
-
/**
|
|
198
|
-
* Links a bank transaction with an invoice
|
|
199
|
-
* @summary Link Bank Transaction
|
|
200
|
-
* @param {string} code Code of the bank transaction to link
|
|
201
|
-
* @param {string} [authorization] Bearer Token
|
|
202
|
-
* @param {*} [options] Override http request option.
|
|
203
|
-
* @throws {RequiredError}
|
|
204
|
-
*/
|
|
205
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
206
|
-
if (options === void 0) { options = {}; }
|
|
207
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
-
return __generator(this, function (_a) {
|
|
210
|
-
switch (_a.label) {
|
|
211
|
-
case 0:
|
|
212
|
-
// verify required parameter 'code' is not null or undefined
|
|
213
|
-
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
214
|
-
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
|
|
215
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
216
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
-
if (configuration) {
|
|
218
|
-
baseOptions = configuration.baseOptions;
|
|
219
|
-
baseAccessToken = configuration.accessToken;
|
|
220
|
-
}
|
|
221
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
222
|
-
localVarHeaderParameter = {};
|
|
223
|
-
localVarQueryParameter = {};
|
|
224
|
-
// authentication bearer required
|
|
225
|
-
// http bearer authentication required
|
|
226
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
227
|
-
case 1:
|
|
228
|
-
// authentication bearer required
|
|
229
|
-
// http bearer authentication required
|
|
230
|
-
_a.sent();
|
|
231
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
|
-
}
|
|
234
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
-
return [2 /*return*/, {
|
|
238
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
-
options: localVarRequestOptions,
|
|
240
|
-
}];
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
},
|
|
245
197
|
/**
|
|
246
198
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
247
199
|
* @summary List bank transactions
|
|
@@ -314,54 +266,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
314
266
|
});
|
|
315
267
|
});
|
|
316
268
|
},
|
|
317
|
-
/**
|
|
318
|
-
* Unlinks an already linked bank transaction
|
|
319
|
-
* @summary Unlink Bank Transaction
|
|
320
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
321
|
-
* @param {string} [authorization] Bearer Token
|
|
322
|
-
* @param {*} [options] Override http request option.
|
|
323
|
-
* @throws {RequiredError}
|
|
324
|
-
*/
|
|
325
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
326
|
-
if (options === void 0) { options = {}; }
|
|
327
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
-
return __generator(this, function (_a) {
|
|
330
|
-
switch (_a.label) {
|
|
331
|
-
case 0:
|
|
332
|
-
// verify required parameter 'code' is not null or undefined
|
|
333
|
-
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
334
|
-
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
335
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
|
-
if (configuration) {
|
|
338
|
-
baseOptions = configuration.baseOptions;
|
|
339
|
-
baseAccessToken = configuration.accessToken;
|
|
340
|
-
}
|
|
341
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
342
|
-
localVarHeaderParameter = {};
|
|
343
|
-
localVarQueryParameter = {};
|
|
344
|
-
// authentication bearer required
|
|
345
|
-
// http bearer authentication required
|
|
346
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
347
|
-
case 1:
|
|
348
|
-
// authentication bearer required
|
|
349
|
-
// http bearer authentication required
|
|
350
|
-
_a.sent();
|
|
351
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
352
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
|
-
}
|
|
354
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
-
return [2 /*return*/, {
|
|
358
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
-
options: localVarRequestOptions,
|
|
360
|
-
}];
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
|
-
},
|
|
365
269
|
};
|
|
366
270
|
};
|
|
367
271
|
exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
|
|
@@ -415,27 +319,6 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
415
319
|
});
|
|
416
320
|
});
|
|
417
321
|
},
|
|
418
|
-
/**
|
|
419
|
-
* Links a bank transaction with an invoice
|
|
420
|
-
* @summary Link Bank Transaction
|
|
421
|
-
* @param {string} code Code of the bank transaction to link
|
|
422
|
-
* @param {string} [authorization] Bearer Token
|
|
423
|
-
* @param {*} [options] Override http request option.
|
|
424
|
-
* @throws {RequiredError}
|
|
425
|
-
*/
|
|
426
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
427
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
428
|
-
var localVarAxiosArgs;
|
|
429
|
-
return __generator(this, function (_a) {
|
|
430
|
-
switch (_a.label) {
|
|
431
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
|
|
432
|
-
case 1:
|
|
433
|
-
localVarAxiosArgs = _a.sent();
|
|
434
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
});
|
|
438
|
-
},
|
|
439
322
|
/**
|
|
440
323
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
441
324
|
* @summary List bank transactions
|
|
@@ -463,27 +346,6 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
463
346
|
});
|
|
464
347
|
});
|
|
465
348
|
},
|
|
466
|
-
/**
|
|
467
|
-
* Unlinks an already linked bank transaction
|
|
468
|
-
* @summary Unlink Bank Transaction
|
|
469
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
470
|
-
* @param {string} [authorization] Bearer Token
|
|
471
|
-
* @param {*} [options] Override http request option.
|
|
472
|
-
* @throws {RequiredError}
|
|
473
|
-
*/
|
|
474
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
475
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
-
var localVarAxiosArgs;
|
|
477
|
-
return __generator(this, function (_a) {
|
|
478
|
-
switch (_a.label) {
|
|
479
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
480
|
-
case 1:
|
|
481
|
-
localVarAxiosArgs = _a.sent();
|
|
482
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
});
|
|
486
|
-
},
|
|
487
349
|
};
|
|
488
350
|
};
|
|
489
351
|
exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
@@ -517,17 +379,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
517
379
|
importBankTransactions: function (authorization, file, options) {
|
|
518
380
|
return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
|
|
519
381
|
},
|
|
520
|
-
/**
|
|
521
|
-
* Links a bank transaction with an invoice
|
|
522
|
-
* @summary Link Bank Transaction
|
|
523
|
-
* @param {string} code Code of the bank transaction to link
|
|
524
|
-
* @param {string} [authorization] Bearer Token
|
|
525
|
-
* @param {*} [options] Override http request option.
|
|
526
|
-
* @throws {RequiredError}
|
|
527
|
-
*/
|
|
528
|
-
linkBankTransaction: function (code, authorization, options) {
|
|
529
|
-
return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
530
|
-
},
|
|
531
382
|
/**
|
|
532
383
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
533
384
|
* @summary List bank transactions
|
|
@@ -545,17 +396,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
545
396
|
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
546
397
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
547
398
|
},
|
|
548
|
-
/**
|
|
549
|
-
* Unlinks an already linked bank transaction
|
|
550
|
-
* @summary Unlink Bank Transaction
|
|
551
|
-
* @param {string} code Code of the bank transaction to unlink
|
|
552
|
-
* @param {string} [authorization] Bearer Token
|
|
553
|
-
* @param {*} [options] Override http request option.
|
|
554
|
-
* @throws {RequiredError}
|
|
555
|
-
*/
|
|
556
|
-
unlinkBankTransaction: function (code, authorization, options) {
|
|
557
|
-
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
|
-
},
|
|
559
399
|
};
|
|
560
400
|
};
|
|
561
401
|
exports.BankTransactionApiFactory = BankTransactionApiFactory;
|
|
@@ -595,18 +435,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
595
435
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
596
436
|
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
597
437
|
};
|
|
598
|
-
/**
|
|
599
|
-
* Links a bank transaction with an invoice
|
|
600
|
-
* @summary Link Bank Transaction
|
|
601
|
-
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
602
|
-
* @param {*} [options] Override http request option.
|
|
603
|
-
* @throws {RequiredError}
|
|
604
|
-
* @memberof BankTransactionApi
|
|
605
|
-
*/
|
|
606
|
-
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
607
|
-
var _this = this;
|
|
608
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
|
-
};
|
|
610
438
|
/**
|
|
611
439
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
612
440
|
* @summary List bank transactions
|
|
@@ -620,18 +448,6 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
620
448
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
621
449
|
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(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); });
|
|
622
450
|
};
|
|
623
|
-
/**
|
|
624
|
-
* Unlinks an already linked bank transaction
|
|
625
|
-
* @summary Unlink Bank Transaction
|
|
626
|
-
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
627
|
-
* @param {*} [options] Override http request option.
|
|
628
|
-
* @throws {RequiredError}
|
|
629
|
-
* @memberof BankTransactionApi
|
|
630
|
-
*/
|
|
631
|
-
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
632
|
-
var _this = this;
|
|
633
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
|
-
};
|
|
635
451
|
return BankTransactionApi;
|
|
636
452
|
}(base_1.BaseAPI));
|
|
637
453
|
exports.BankTransactionApi = BankTransactionApi;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/api/default-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: z
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreatePaymentMethodResponseClass } from '../models';
|
|
16
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
17
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
18
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
19
15
|
/**
|
|
20
16
|
* PaymentMethodsApi - axios parameter creator
|
|
21
17
|
* @export
|
|
@@ -24,12 +20,12 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
24
20
|
/**
|
|
25
21
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
26
22
|
* @summary Create the payment-method
|
|
27
|
-
* @param {
|
|
23
|
+
* @param {object} body
|
|
28
24
|
* @param {string} [authorization] Bearer Token
|
|
29
25
|
* @param {*} [options] Override http request option.
|
|
30
26
|
* @throws {RequiredError}
|
|
31
27
|
*/
|
|
32
|
-
createPaymentMethod: (
|
|
28
|
+
createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
29
|
/**
|
|
34
30
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
35
31
|
* @summary Delete a payment method
|
|
@@ -43,13 +39,13 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
43
39
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
44
40
|
* @summary Retrieve a payment method
|
|
45
41
|
* @param {string} code Unique identifier for the object.
|
|
42
|
+
* @param {string} expand Fields to expand response by
|
|
43
|
+
* @param {string} expand2 Fields to expand response by
|
|
46
44
|
* @param {string} [authorization] Bearer Token
|
|
47
|
-
* @param {string} [expand] Fields to expand response by
|
|
48
|
-
* @param {string} [expand2] Fields to expand response by
|
|
49
45
|
* @param {*} [options] Override http request option.
|
|
50
46
|
* @throws {RequiredError}
|
|
51
47
|
*/
|
|
52
|
-
getPaymentMethod: (code: string,
|
|
48
|
+
getPaymentMethod: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
49
|
/**
|
|
54
50
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
55
51
|
* @summary List payment methods
|
|
@@ -74,12 +70,12 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
74
70
|
/**
|
|
75
71
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
76
72
|
* @summary Create the payment-method
|
|
77
|
-
* @param {
|
|
73
|
+
* @param {object} body
|
|
78
74
|
* @param {string} [authorization] Bearer Token
|
|
79
75
|
* @param {*} [options] Override http request option.
|
|
80
76
|
* @throws {RequiredError}
|
|
81
77
|
*/
|
|
82
|
-
createPaymentMethod(
|
|
78
|
+
createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
83
79
|
/**
|
|
84
80
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
85
81
|
* @summary Delete a payment method
|
|
@@ -93,13 +89,13 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
93
89
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
94
90
|
* @summary Retrieve a payment method
|
|
95
91
|
* @param {string} code Unique identifier for the object.
|
|
92
|
+
* @param {string} expand Fields to expand response by
|
|
93
|
+
* @param {string} expand2 Fields to expand response by
|
|
96
94
|
* @param {string} [authorization] Bearer Token
|
|
97
|
-
* @param {string} [expand] Fields to expand response by
|
|
98
|
-
* @param {string} [expand2] Fields to expand response by
|
|
99
95
|
* @param {*} [options] Override http request option.
|
|
100
96
|
* @throws {RequiredError}
|
|
101
97
|
*/
|
|
102
|
-
getPaymentMethod(code: string,
|
|
98
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
103
99
|
/**
|
|
104
100
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
105
101
|
* @summary List payment methods
|
|
@@ -114,7 +110,7 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
114
110
|
* @param {*} [options] Override http request option.
|
|
115
111
|
* @throws {RequiredError}
|
|
116
112
|
*/
|
|
117
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
113
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
118
114
|
};
|
|
119
115
|
/**
|
|
120
116
|
* PaymentMethodsApi - factory interface
|
|
@@ -124,12 +120,12 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
124
120
|
/**
|
|
125
121
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
126
122
|
* @summary Create the payment-method
|
|
127
|
-
* @param {
|
|
123
|
+
* @param {object} body
|
|
128
124
|
* @param {string} [authorization] Bearer Token
|
|
129
125
|
* @param {*} [options] Override http request option.
|
|
130
126
|
* @throws {RequiredError}
|
|
131
127
|
*/
|
|
132
|
-
createPaymentMethod(
|
|
128
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
133
129
|
/**
|
|
134
130
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
135
131
|
* @summary Delete a payment method
|
|
@@ -143,13 +139,13 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
143
139
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
144
140
|
* @summary Retrieve a payment method
|
|
145
141
|
* @param {string} code Unique identifier for the object.
|
|
142
|
+
* @param {string} expand Fields to expand response by
|
|
143
|
+
* @param {string} expand2 Fields to expand response by
|
|
146
144
|
* @param {string} [authorization] Bearer Token
|
|
147
|
-
* @param {string} [expand] Fields to expand response by
|
|
148
|
-
* @param {string} [expand2] Fields to expand response by
|
|
149
145
|
* @param {*} [options] Override http request option.
|
|
150
146
|
* @throws {RequiredError}
|
|
151
147
|
*/
|
|
152
|
-
getPaymentMethod(code: string,
|
|
148
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
153
149
|
/**
|
|
154
150
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
155
151
|
* @summary List payment methods
|
|
@@ -164,7 +160,7 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
164
160
|
* @param {*} [options] Override http request option.
|
|
165
161
|
* @throws {RequiredError}
|
|
166
162
|
*/
|
|
167
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
163
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
|
|
168
164
|
};
|
|
169
165
|
/**
|
|
170
166
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -174,10 +170,10 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
174
170
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
175
171
|
/**
|
|
176
172
|
*
|
|
177
|
-
* @type {
|
|
173
|
+
* @type {object}
|
|
178
174
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
179
175
|
*/
|
|
180
|
-
readonly
|
|
176
|
+
readonly body: object;
|
|
181
177
|
/**
|
|
182
178
|
* Bearer Token
|
|
183
179
|
* @type {string}
|
|
@@ -217,23 +213,23 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
217
213
|
*/
|
|
218
214
|
readonly code: string;
|
|
219
215
|
/**
|
|
220
|
-
*
|
|
216
|
+
* Fields to expand response by
|
|
221
217
|
* @type {string}
|
|
222
218
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
223
219
|
*/
|
|
224
|
-
readonly
|
|
220
|
+
readonly expand: string;
|
|
225
221
|
/**
|
|
226
222
|
* Fields to expand response by
|
|
227
223
|
* @type {string}
|
|
228
224
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
229
225
|
*/
|
|
230
|
-
readonly
|
|
226
|
+
readonly expand2: string;
|
|
231
227
|
/**
|
|
232
|
-
*
|
|
228
|
+
* Bearer Token
|
|
233
229
|
* @type {string}
|
|
234
230
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
235
231
|
*/
|
|
236
|
-
readonly
|
|
232
|
+
readonly authorization?: string;
|
|
237
233
|
}
|
|
238
234
|
/**
|
|
239
235
|
* Request parameters for listPaymentMethods operation in PaymentMethodsApi.
|
|
@@ -305,7 +301,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
305
301
|
* @throws {RequiredError}
|
|
306
302
|
* @memberof PaymentMethodsApi
|
|
307
303
|
*/
|
|
308
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
304
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
309
305
|
/**
|
|
310
306
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
311
307
|
* @summary Delete a payment method
|
|
@@ -323,7 +319,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
323
319
|
* @throws {RequiredError}
|
|
324
320
|
* @memberof PaymentMethodsApi
|
|
325
321
|
*/
|
|
326
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
322
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
327
323
|
/**
|
|
328
324
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
329
325
|
* @summary List payment methods
|
|
@@ -332,5 +328,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
332
328
|
* @throws {RequiredError}
|
|
333
329
|
* @memberof PaymentMethodsApi
|
|
334
330
|
*/
|
|
335
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
331
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
336
332
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -95,20 +95,20 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
97
97
|
* @summary Create the payment-method
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
createPaymentMethod: function (
|
|
103
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('createPaymentMethod', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPaymentMethod', 'body', body);
|
|
112
112
|
localVarPath = "/paymentservice/v1/payment-methods";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -195,13 +195,13 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
195
195
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
196
196
|
* @summary Retrieve a payment method
|
|
197
197
|
* @param {string} code Unique identifier for the object.
|
|
198
|
+
* @param {string} expand Fields to expand response by
|
|
199
|
+
* @param {string} expand2 Fields to expand response by
|
|
198
200
|
* @param {string} [authorization] Bearer Token
|
|
199
|
-
* @param {string} [expand] Fields to expand response by
|
|
200
|
-
* @param {string} [expand2] Fields to expand response by
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
getPaymentMethod: function (code,
|
|
204
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
205
205
|
if (options === void 0) { options = {}; }
|
|
206
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -210,6 +210,10 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
case 0:
|
|
211
211
|
// verify required parameter 'code' is not null or undefined
|
|
212
212
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
213
|
+
// verify required parameter 'expand' is not null or undefined
|
|
214
|
+
(0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
|
|
215
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('getPaymentMethod', 'expand2', expand2);
|
|
213
217
|
localVarPath = "/paymentservice/v1/payment-methods/{code}";
|
|
214
218
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
219
|
if (configuration) {
|
|
@@ -334,17 +338,17 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
334
338
|
/**
|
|
335
339
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
336
340
|
* @summary Create the payment-method
|
|
337
|
-
* @param {
|
|
341
|
+
* @param {object} body
|
|
338
342
|
* @param {string} [authorization] Bearer Token
|
|
339
343
|
* @param {*} [options] Override http request option.
|
|
340
344
|
* @throws {RequiredError}
|
|
341
345
|
*/
|
|
342
|
-
createPaymentMethod: function (
|
|
346
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
343
347
|
return __awaiter(this, void 0, void 0, function () {
|
|
344
348
|
var localVarAxiosArgs;
|
|
345
349
|
return __generator(this, function (_a) {
|
|
346
350
|
switch (_a.label) {
|
|
347
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(
|
|
351
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(body, authorization, options)];
|
|
348
352
|
case 1:
|
|
349
353
|
localVarAxiosArgs = _a.sent();
|
|
350
354
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -377,18 +381,18 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
377
381
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
378
382
|
* @summary Retrieve a payment method
|
|
379
383
|
* @param {string} code Unique identifier for the object.
|
|
384
|
+
* @param {string} expand Fields to expand response by
|
|
385
|
+
* @param {string} expand2 Fields to expand response by
|
|
380
386
|
* @param {string} [authorization] Bearer Token
|
|
381
|
-
* @param {string} [expand] Fields to expand response by
|
|
382
|
-
* @param {string} [expand2] Fields to expand response by
|
|
383
387
|
* @param {*} [options] Override http request option.
|
|
384
388
|
* @throws {RequiredError}
|
|
385
389
|
*/
|
|
386
|
-
getPaymentMethod: function (code,
|
|
390
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
387
391
|
return __awaiter(this, void 0, void 0, function () {
|
|
388
392
|
var localVarAxiosArgs;
|
|
389
393
|
return __generator(this, function (_a) {
|
|
390
394
|
switch (_a.label) {
|
|
391
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code,
|
|
395
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options)];
|
|
392
396
|
case 1:
|
|
393
397
|
localVarAxiosArgs = _a.sent();
|
|
394
398
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -436,13 +440,13 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
436
440
|
/**
|
|
437
441
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
438
442
|
* @summary Create the payment-method
|
|
439
|
-
* @param {
|
|
443
|
+
* @param {object} body
|
|
440
444
|
* @param {string} [authorization] Bearer Token
|
|
441
445
|
* @param {*} [options] Override http request option.
|
|
442
446
|
* @throws {RequiredError}
|
|
443
447
|
*/
|
|
444
|
-
createPaymentMethod: function (
|
|
445
|
-
return localVarFp.createPaymentMethod(
|
|
448
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
449
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
446
450
|
},
|
|
447
451
|
/**
|
|
448
452
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
@@ -459,14 +463,14 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
459
463
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
460
464
|
* @summary Retrieve a payment method
|
|
461
465
|
* @param {string} code Unique identifier for the object.
|
|
466
|
+
* @param {string} expand Fields to expand response by
|
|
467
|
+
* @param {string} expand2 Fields to expand response by
|
|
462
468
|
* @param {string} [authorization] Bearer Token
|
|
463
|
-
* @param {string} [expand] Fields to expand response by
|
|
464
|
-
* @param {string} [expand2] Fields to expand response by
|
|
465
469
|
* @param {*} [options] Override http request option.
|
|
466
470
|
* @throws {RequiredError}
|
|
467
471
|
*/
|
|
468
|
-
getPaymentMethod: function (code,
|
|
469
|
-
return localVarFp.getPaymentMethod(code,
|
|
472
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
473
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
470
474
|
},
|
|
471
475
|
/**
|
|
472
476
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -509,7 +513,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
509
513
|
*/
|
|
510
514
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
511
515
|
var _this = this;
|
|
512
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.
|
|
516
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
513
517
|
};
|
|
514
518
|
/**
|
|
515
519
|
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
@@ -533,7 +537,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
533
537
|
*/
|
|
534
538
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
535
539
|
var _this = this;
|
|
536
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
540
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
537
541
|
};
|
|
538
542
|
/**
|
|
539
543
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|