@emilgroup/payment-sdk 1.4.1-beta.9 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +55 -5
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +508 -88
- package/api/bank-transaction-api.ts +97 -117
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/payment-methods-api.ts +83 -256
- package/api/payment-reminders-api.ts +71 -105
- package/api/payment-setup-api.ts +53 -37
- package/api/payments-api.ts +80 -137
- package/api/refunds-api.ts +78 -112
- package/api/tenant-bank-account-api.ts +96 -118
- package/api/webhooks-api.ts +17 -13
- package/api.ts +3 -3
- package/base.ts +22 -10
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +298 -71
- package/dist/api/bank-accounts-api.js +432 -62
- package/dist/api/bank-transaction-api.d.ts +85 -100
- package/dist/api/bank-transaction-api.js +63 -74
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +31 -27
- package/dist/api/payment-methods-api.d.ts +66 -162
- package/dist/api/payment-methods-api.js +60 -190
- package/dist/api/payment-reminders-api.d.ts +66 -89
- package/dist/api/payment-reminders-api.js +44 -62
- package/dist/api/payment-setup-api.d.ts +39 -27
- package/dist/api/payment-setup-api.js +41 -33
- package/dist/api/payments-api.d.ts +70 -103
- package/dist/api/payments-api.js +55 -85
- package/dist/api/refunds-api.d.ts +68 -83
- package/dist/api/refunds-api.js +58 -68
- package/dist/api/tenant-bank-account-api.d.ts +90 -105
- package/dist/api/tenant-bank-account-api.js +63 -75
- package/dist/api/webhooks-api.d.ts +17 -13
- package/dist/api/webhooks-api.js +15 -11
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +6 -3
- package/dist/base.js +31 -22
- 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-account-class-without-expand-properties.d.ts +84 -0
- package/dist/models/{bank-transaction-response-class.js → bank-account-class-without-expand-properties.js} +1 -1
- package/dist/models/bank-account-class.d.ts +91 -0
- package/dist/models/{transaction-class.js → bank-account-class.js} +1 -1
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +126 -0
- package/dist/models/{get-request-dto.js → bank-transaction-class-without-expand-properties.js} +1 -1
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class.d.ts} +41 -29
- package/dist/models/{tenant-bank-account-response-class.js → bank-transaction-class.js} +1 -1
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +77 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +32 -0
- package/dist/models/create-bank-account-request-dto.d.ts +42 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-bank-account-response-class.d.ts +25 -0
- package/dist/models/create-bank-account-response-class.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- 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-reminder-response-class.d.ts +25 -0
- package/dist/models/create-payment-reminder-response-class.js +15 -0
- 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-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.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/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/create-tenant-bank-account-response-class.js +15 -0
- 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/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +102 -0
- package/dist/models/deactivated-payment-reminder-class.js +15 -0
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +4 -4
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/get-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/import-bank-transactions-response-class.js +15 -0
- package/dist/models/index.d.ts +54 -4
- package/dist/models/index.js +54 -4
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- 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/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/link-bank-transactions-response-class.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +6 -6
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +3 -3
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/list-tenant-bank-account-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +108 -0
- package/dist/models/payment-class-without-expand-properties.js +15 -0
- package/dist/models/payment-class.d.ts +115 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +78 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +102 -0
- package/dist/models/payment-reminder-class.js +15 -0
- package/dist/models/primary-bank-account-response-class.d.ts +54 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +18 -4
- package/dist/models/refund-class.js +3 -2
- package/dist/models/refund-item-class.d.ts +114 -0
- package/dist/models/refund-item-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/shared-transaction-class.d.ts +72 -0
- package/dist/models/shared-transaction-class.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +23 -11
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +85 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +2 -2
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/unlink-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/unlink-bank-transactions-response-class.js +15 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +108 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-tenant-bank-account-response-class.js +15 -0
- 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 +9 -2
- package/dist/models/validate-pspconfig-request-dto.js +8 -1
- package/index.ts +1 -1
- package/models/bank-account-class-without-expand-properties.ts +90 -0
- package/models/bank-account-class.ts +97 -0
- package/models/bank-transaction-class-without-expand-properties.ts +132 -0
- package/models/{bank-transaction-response-class.ts → bank-transaction-class.ts} +41 -29
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +86 -0
- package/models/create-bank-account-request-dto.ts +48 -0
- package/models/create-bank-account-response-class.ts +31 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-reminder-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/deactivated-payment-reminder-class.ts +108 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +4 -4
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +5 -5
- package/models/import-bank-transactions-response-class.ts +31 -0
- package/models/index.ts +54 -4
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +50 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +1 -1
- package/models/link-bank-transactions-response-class.ts +31 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +6 -6
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +3 -3
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +114 -0
- package/models/payment-class.ts +121 -0
- package/models/payment-method-class.ts +84 -0
- package/models/payment-reminder-class.ts +108 -0
- package/models/primary-bank-account-response-class.ts +60 -0
- package/models/refund-class.ts +19 -5
- package/models/refund-item-class.ts +120 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/shared-transaction-class.ts +78 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +23 -11
- package/models/tenant-bank-account-class.ts +91 -0
- package/models/unlink-bank-transaction-request-dto-rest.ts +2 -2
- package/models/unlink-bank-transactions-response-class.ts +31 -0
- package/models/unlinked-bank-transaction-response-class.ts +114 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +12 -2
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/transaction-class.d.ts +0 -54
- package/models/get-request-dto.ts +0 -36
- package/models/transaction-class.ts +0 -60
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
9
|
* Contact: kontakt@emil.de
|
|
@@ -93,11 +93,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Retrieves the details of the
|
|
97
|
-
* @summary Retrieve the
|
|
96
|
+
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
|
|
97
|
+
* @summary Retrieve the bank transaction
|
|
98
98
|
* @param {string} code
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
|
-
* @param {string} [expand] Expand the
|
|
100
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
*/
|
|
@@ -145,20 +145,22 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
},
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* This will import bank transactions from a swift MT940 file
|
|
149
149
|
* @summary Create the bank transactions
|
|
150
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
150
151
|
* @param {string} [authorization] Bearer Token
|
|
151
|
-
* @param {any} [file]
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
155
|
-
importBankTransactions: function (
|
|
155
|
+
importBankTransactions: function (file, authorization, options) {
|
|
156
156
|
if (options === void 0) { options = {}; }
|
|
157
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
159
159
|
return __generator(this, function (_a) {
|
|
160
160
|
switch (_a.label) {
|
|
161
161
|
case 0:
|
|
162
|
+
// verify required parameter 'file' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('importBankTransactions', 'file', file);
|
|
162
164
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/import";
|
|
163
165
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
166
|
if (configuration) {
|
|
@@ -196,7 +198,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
196
198
|
},
|
|
197
199
|
/**
|
|
198
200
|
* Links a bank transaction with an invoice
|
|
199
|
-
* @summary Link
|
|
201
|
+
* @summary Link bank transaction
|
|
200
202
|
* @param {string} code Code of the bank transaction to link
|
|
201
203
|
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
202
204
|
* @param {string} [authorization] Bearer Token
|
|
@@ -248,20 +250,18 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
248
250
|
});
|
|
249
251
|
},
|
|
250
252
|
/**
|
|
251
|
-
* Returns a list of bank transactions you have previously created.
|
|
253
|
+
* 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.
|
|
252
254
|
* @summary List bank transactions
|
|
253
255
|
* @param {string} [authorization] Bearer Token
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {
|
|
256
|
-
* @param {
|
|
257
|
-
* @param {
|
|
258
|
-
* @param {
|
|
259
|
-
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
260
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
256
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
257
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
258
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
259
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
|
|
260
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
listBankTransactions: function (authorization,
|
|
264
|
+
listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
|
|
265
265
|
if (options === void 0) { options = {}; }
|
|
266
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
267
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -284,15 +284,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
284
284
|
// authentication bearer required
|
|
285
285
|
// http bearer authentication required
|
|
286
286
|
_a.sent();
|
|
287
|
-
if (pageSize !== undefined) {
|
|
288
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
|
-
}
|
|
290
|
-
if (pageToken !== undefined) {
|
|
291
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
292
|
-
}
|
|
293
287
|
if (filter !== undefined) {
|
|
294
288
|
localVarQueryParameter['filter'] = filter;
|
|
295
289
|
}
|
|
290
|
+
if (filters !== undefined) {
|
|
291
|
+
localVarQueryParameter['filters'] = filters;
|
|
292
|
+
}
|
|
296
293
|
if (search !== undefined) {
|
|
297
294
|
localVarQueryParameter['search'] = search;
|
|
298
295
|
}
|
|
@@ -302,9 +299,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
302
299
|
if (expand !== undefined) {
|
|
303
300
|
localVarQueryParameter['expand'] = expand;
|
|
304
301
|
}
|
|
305
|
-
if (filters !== undefined) {
|
|
306
|
-
localVarQueryParameter['filters'] = filters;
|
|
307
|
-
}
|
|
308
302
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
303
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
310
304
|
}
|
|
@@ -321,7 +315,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
321
315
|
},
|
|
322
316
|
/**
|
|
323
317
|
* Unlinks an already linked bank transaction
|
|
324
|
-
* @summary Unlink
|
|
318
|
+
* @summary Unlink bank transaction
|
|
325
319
|
* @param {string} code Code of the bank transaction to unlink
|
|
326
320
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
327
321
|
* @param {string} [authorization] Bearer Token
|
|
@@ -383,11 +377,11 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
383
377
|
var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
|
|
384
378
|
return {
|
|
385
379
|
/**
|
|
386
|
-
* Retrieves the details of the
|
|
387
|
-
* @summary Retrieve the
|
|
380
|
+
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
|
|
381
|
+
* @summary Retrieve the bank transaction
|
|
388
382
|
* @param {string} code
|
|
389
383
|
* @param {string} [authorization] Bearer Token
|
|
390
|
-
* @param {string} [expand] Expand the
|
|
384
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
391
385
|
* @param {*} [options] Override http request option.
|
|
392
386
|
* @throws {RequiredError}
|
|
393
387
|
*/
|
|
@@ -405,19 +399,19 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
405
399
|
});
|
|
406
400
|
},
|
|
407
401
|
/**
|
|
408
|
-
*
|
|
402
|
+
* This will import bank transactions from a swift MT940 file
|
|
409
403
|
* @summary Create the bank transactions
|
|
404
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
410
405
|
* @param {string} [authorization] Bearer Token
|
|
411
|
-
* @param {any} [file]
|
|
412
406
|
* @param {*} [options] Override http request option.
|
|
413
407
|
* @throws {RequiredError}
|
|
414
408
|
*/
|
|
415
|
-
importBankTransactions: function (
|
|
409
|
+
importBankTransactions: function (file, authorization, options) {
|
|
416
410
|
return __awaiter(this, void 0, void 0, function () {
|
|
417
411
|
var localVarAxiosArgs;
|
|
418
412
|
return __generator(this, function (_a) {
|
|
419
413
|
switch (_a.label) {
|
|
420
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.importBankTransactions(
|
|
414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.importBankTransactions(file, authorization, options)];
|
|
421
415
|
case 1:
|
|
422
416
|
localVarAxiosArgs = _a.sent();
|
|
423
417
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -427,7 +421,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
427
421
|
},
|
|
428
422
|
/**
|
|
429
423
|
* Links a bank transaction with an invoice
|
|
430
|
-
* @summary Link
|
|
424
|
+
* @summary Link bank transaction
|
|
431
425
|
* @param {string} code Code of the bank transaction to link
|
|
432
426
|
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
433
427
|
* @param {string} [authorization] Bearer Token
|
|
@@ -448,25 +442,23 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
448
442
|
});
|
|
449
443
|
},
|
|
450
444
|
/**
|
|
451
|
-
* Returns a list of bank transactions you have previously created.
|
|
445
|
+
* 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.
|
|
452
446
|
* @summary List bank transactions
|
|
453
447
|
* @param {string} [authorization] Bearer Token
|
|
454
|
-
* @param {
|
|
455
|
-
* @param {
|
|
456
|
-
* @param {
|
|
457
|
-
* @param {
|
|
458
|
-
* @param {
|
|
459
|
-
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
460
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
448
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
449
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
450
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
451
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
|
|
452
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
461
453
|
* @param {*} [options] Override http request option.
|
|
462
454
|
* @throws {RequiredError}
|
|
463
455
|
*/
|
|
464
|
-
listBankTransactions: function (authorization,
|
|
456
|
+
listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
|
|
465
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
466
458
|
var localVarAxiosArgs;
|
|
467
459
|
return __generator(this, function (_a) {
|
|
468
460
|
switch (_a.label) {
|
|
469
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options)];
|
|
470
462
|
case 1:
|
|
471
463
|
localVarAxiosArgs = _a.sent();
|
|
472
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -476,7 +468,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
476
468
|
},
|
|
477
469
|
/**
|
|
478
470
|
* Unlinks an already linked bank transaction
|
|
479
|
-
* @summary Unlink
|
|
471
|
+
* @summary Unlink bank transaction
|
|
480
472
|
* @param {string} code Code of the bank transaction to unlink
|
|
481
473
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
482
474
|
* @param {string} [authorization] Bearer Token
|
|
@@ -507,11 +499,11 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
507
499
|
var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
|
|
508
500
|
return {
|
|
509
501
|
/**
|
|
510
|
-
* Retrieves the details of the
|
|
511
|
-
* @summary Retrieve the
|
|
502
|
+
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
|
|
503
|
+
* @summary Retrieve the bank transaction
|
|
512
504
|
* @param {string} code
|
|
513
505
|
* @param {string} [authorization] Bearer Token
|
|
514
|
-
* @param {string} [expand] Expand the
|
|
506
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
515
507
|
* @param {*} [options] Override http request option.
|
|
516
508
|
* @throws {RequiredError}
|
|
517
509
|
*/
|
|
@@ -519,19 +511,19 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
519
511
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
520
512
|
},
|
|
521
513
|
/**
|
|
522
|
-
*
|
|
514
|
+
* This will import bank transactions from a swift MT940 file
|
|
523
515
|
* @summary Create the bank transactions
|
|
516
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
524
517
|
* @param {string} [authorization] Bearer Token
|
|
525
|
-
* @param {any} [file]
|
|
526
518
|
* @param {*} [options] Override http request option.
|
|
527
519
|
* @throws {RequiredError}
|
|
528
520
|
*/
|
|
529
|
-
importBankTransactions: function (
|
|
530
|
-
return localVarFp.importBankTransactions(
|
|
521
|
+
importBankTransactions: function (file, authorization, options) {
|
|
522
|
+
return localVarFp.importBankTransactions(file, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
531
523
|
},
|
|
532
524
|
/**
|
|
533
525
|
* Links a bank transaction with an invoice
|
|
534
|
-
* @summary Link
|
|
526
|
+
* @summary Link bank transaction
|
|
535
527
|
* @param {string} code Code of the bank transaction to link
|
|
536
528
|
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
537
529
|
* @param {string} [authorization] Bearer Token
|
|
@@ -542,25 +534,23 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
542
534
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
543
535
|
},
|
|
544
536
|
/**
|
|
545
|
-
* Returns a list of bank transactions you have previously created.
|
|
537
|
+
* 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.
|
|
546
538
|
* @summary List bank transactions
|
|
547
539
|
* @param {string} [authorization] Bearer Token
|
|
548
|
-
* @param {
|
|
549
|
-
* @param {
|
|
550
|
-
* @param {
|
|
551
|
-
* @param {
|
|
552
|
-
* @param {
|
|
553
|
-
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
554
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
540
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
541
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
542
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
543
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, amount, transactionDate, entryDate</i>
|
|
544
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
555
545
|
* @param {*} [options] Override http request option.
|
|
556
546
|
* @throws {RequiredError}
|
|
557
547
|
*/
|
|
558
|
-
listBankTransactions: function (authorization,
|
|
559
|
-
return localVarFp.listBankTransactions(authorization,
|
|
548
|
+
listBankTransactions: function (authorization, filter, filters, search, order, expand, options) {
|
|
549
|
+
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
560
550
|
},
|
|
561
551
|
/**
|
|
562
552
|
* Unlinks an already linked bank transaction
|
|
563
|
-
* @summary Unlink
|
|
553
|
+
* @summary Unlink bank transaction
|
|
564
554
|
* @param {string} code Code of the bank transaction to unlink
|
|
565
555
|
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
566
556
|
* @param {string} [authorization] Bearer Token
|
|
@@ -585,8 +575,8 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
585
575
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
586
576
|
}
|
|
587
577
|
/**
|
|
588
|
-
* Retrieves the details of the
|
|
589
|
-
* @summary Retrieve the
|
|
578
|
+
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
|
|
579
|
+
* @summary Retrieve the bank transaction
|
|
590
580
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
591
581
|
* @param {*} [options] Override http request option.
|
|
592
582
|
* @throws {RequiredError}
|
|
@@ -597,7 +587,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
597
587
|
return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
598
588
|
};
|
|
599
589
|
/**
|
|
600
|
-
*
|
|
590
|
+
* This will import bank transactions from a swift MT940 file
|
|
601
591
|
* @summary Create the bank transactions
|
|
602
592
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
603
593
|
* @param {*} [options] Override http request option.
|
|
@@ -606,12 +596,11 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
606
596
|
*/
|
|
607
597
|
BankTransactionApi.prototype.importBankTransactions = function (requestParameters, options) {
|
|
608
598
|
var _this = this;
|
|
609
|
-
|
|
610
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
599
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
611
600
|
};
|
|
612
601
|
/**
|
|
613
602
|
* Links a bank transaction with an invoice
|
|
614
|
-
* @summary Link
|
|
603
|
+
* @summary Link bank transaction
|
|
615
604
|
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
616
605
|
* @param {*} [options] Override http request option.
|
|
617
606
|
* @throws {RequiredError}
|
|
@@ -622,7 +611,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
622
611
|
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
623
612
|
};
|
|
624
613
|
/**
|
|
625
|
-
* Returns a list of bank transactions you have previously created.
|
|
614
|
+
* 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.
|
|
626
615
|
* @summary List bank transactions
|
|
627
616
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
628
617
|
* @param {*} [options] Override http request option.
|
|
@@ -632,11 +621,11 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
632
621
|
BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
|
|
633
622
|
var _this = this;
|
|
634
623
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
635
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
624
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
636
625
|
};
|
|
637
626
|
/**
|
|
638
627
|
* Unlinks an already linked bank transaction
|
|
639
|
-
* @summary Unlink
|
|
628
|
+
* @summary Unlink bank transaction
|
|
640
629
|
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
641
630
|
* @param {*} [options] Override http request option.
|
|
642
631
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* HealthCheckApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const HealthCheckApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
|
+
* @summary Health Check
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* HealthCheckApi - functional programming interface
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const HealthCheckApiFp: (configuration?: Configuration) => {
|
|
34
|
+
/**
|
|
35
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
|
+
* @summary Health Check
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* HealthCheckApi - factory interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const HealthCheckApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
48
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
|
+
* @summary Health Check
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* HealthCheckApi - object-oriented interface
|
|
57
|
+
* @export
|
|
58
|
+
* @class HealthCheckApi
|
|
59
|
+
* @extends {BaseAPI}
|
|
60
|
+
*/
|
|
61
|
+
export declare class HealthCheckApi extends BaseAPI {
|
|
62
|
+
/**
|
|
63
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
|
+
* @summary Health Check
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof HealthCheckApi
|
|
68
|
+
*/
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
70
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
9
|
* Contact: kontakt@emil.de
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthCheckApi = exports.HealthCheckApiFactory = exports.HealthCheckApiFp = exports.HealthCheckApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,14 +86,15 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HealthCheckApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var HealthCheckApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
97
|
+
* @summary Health Check
|
|
97
98
|
* @param {*} [options] Override http request option.
|
|
98
99
|
* @throws {RequiredError}
|
|
99
100
|
*/
|
|
@@ -123,16 +124,17 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
};
|
|
126
|
-
exports.
|
|
127
|
+
exports.HealthCheckApiAxiosParamCreator = HealthCheckApiAxiosParamCreator;
|
|
127
128
|
/**
|
|
128
|
-
*
|
|
129
|
+
* HealthCheckApi - functional programming interface
|
|
129
130
|
* @export
|
|
130
131
|
*/
|
|
131
|
-
var
|
|
132
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
132
|
+
var HealthCheckApiFp = function (configuration) {
|
|
133
|
+
var localVarAxiosParamCreator = (0, exports.HealthCheckApiAxiosParamCreator)(configuration);
|
|
133
134
|
return {
|
|
134
135
|
/**
|
|
135
|
-
*
|
|
136
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
137
|
+
* @summary Health Check
|
|
136
138
|
* @param {*} [options] Override http request option.
|
|
137
139
|
* @throws {RequiredError}
|
|
138
140
|
*/
|
|
@@ -151,16 +153,17 @@ var DefaultApiFp = function (configuration) {
|
|
|
151
153
|
},
|
|
152
154
|
};
|
|
153
155
|
};
|
|
154
|
-
exports.
|
|
156
|
+
exports.HealthCheckApiFp = HealthCheckApiFp;
|
|
155
157
|
/**
|
|
156
|
-
*
|
|
158
|
+
* HealthCheckApi - factory interface
|
|
157
159
|
* @export
|
|
158
160
|
*/
|
|
159
|
-
var
|
|
160
|
-
var localVarFp = (0, exports.
|
|
161
|
+
var HealthCheckApiFactory = function (configuration, basePath, axios) {
|
|
162
|
+
var localVarFp = (0, exports.HealthCheckApiFp)(configuration);
|
|
161
163
|
return {
|
|
162
164
|
/**
|
|
163
|
-
*
|
|
165
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
166
|
+
* @summary Health Check
|
|
164
167
|
* @param {*} [options] Override http request option.
|
|
165
168
|
* @throws {RequiredError}
|
|
166
169
|
*/
|
|
@@ -169,28 +172,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
169
172
|
},
|
|
170
173
|
};
|
|
171
174
|
};
|
|
172
|
-
exports.
|
|
175
|
+
exports.HealthCheckApiFactory = HealthCheckApiFactory;
|
|
173
176
|
/**
|
|
174
|
-
*
|
|
177
|
+
* HealthCheckApi - object-oriented interface
|
|
175
178
|
* @export
|
|
176
|
-
* @class
|
|
179
|
+
* @class HealthCheckApi
|
|
177
180
|
* @extends {BaseAPI}
|
|
178
181
|
*/
|
|
179
|
-
var
|
|
180
|
-
__extends(
|
|
181
|
-
function
|
|
182
|
+
var HealthCheckApi = /** @class */ (function (_super) {
|
|
183
|
+
__extends(HealthCheckApi, _super);
|
|
184
|
+
function HealthCheckApi() {
|
|
182
185
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
183
186
|
}
|
|
184
187
|
/**
|
|
185
|
-
*
|
|
188
|
+
* Returns the health status of the payment service. This endpoint is used to monitor the operational status of the payment service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
189
|
+
* @summary Health Check
|
|
186
190
|
* @param {*} [options] Override http request option.
|
|
187
191
|
* @throws {RequiredError}
|
|
188
|
-
* @memberof
|
|
192
|
+
* @memberof HealthCheckApi
|
|
189
193
|
*/
|
|
190
|
-
|
|
194
|
+
HealthCheckApi.prototype.check = function (options) {
|
|
191
195
|
var _this = this;
|
|
192
|
-
return (0, exports.
|
|
196
|
+
return (0, exports.HealthCheckApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
193
197
|
};
|
|
194
|
-
return
|
|
198
|
+
return HealthCheckApi;
|
|
195
199
|
}(base_1.BaseAPI));
|
|
196
|
-
exports.
|
|
200
|
+
exports.HealthCheckApi = HealthCheckApi;
|