@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.31
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 +12 -39
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -47
- package/api/bank-transaction-api.ts +128 -96
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/payment-methods-api.ts +74 -203
- package/api/payment-reminders-api.ts +76 -66
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +66 -89
- package/api/refunds-api.ts +74 -84
- package/api/tenant-bank-account-api.ts +88 -62
- package/api/webhooks-api.ts +17 -13
- package/api.ts +3 -3
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +297 -49
- package/dist/api/bank-accounts-api.js +416 -28
- package/dist/api/bank-transaction-api.d.ts +109 -91
- package/dist/api/bank-transaction-api.js +83 -68
- 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 -134
- package/dist/api/payment-methods-api.js +55 -157
- package/dist/api/payment-reminders-api.d.ts +72 -65
- package/dist/api/payment-reminders-api.js +48 -42
- 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 +64 -76
- package/dist/api/payments-api.js +47 -55
- package/dist/api/refunds-api.d.ts +74 -74
- package/dist/api/refunds-api.js +52 -48
- package/dist/api/tenant-bank-account-api.d.ts +89 -66
- package/dist/api/tenant-bank-account-api.js +59 -39
- 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 +2 -1
- package/dist/base.js +5 -2
- 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 → bank-transaction-class-without-expand-properties.d.ts} +26 -34
- package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.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-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-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/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{bank-transaction-response-class.js → create-tenant-bank-account-response-class.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-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +11 -38
- package/dist/models/index.js +11 -38
- 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 +24 -0
- package/dist/models/{billing-profile-limited-response-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- 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/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +11 -11
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.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-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 +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +26 -34
- package/models/create-bank-account-request-dto.ts +15 -3
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.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/get-tenant-bank-account-response-class.ts +5 -5
- package/models/index.ts +11 -38
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +11 -11
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -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-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 +2 -12
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- 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-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-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-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-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/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.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-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-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/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.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-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-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-transactions-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/get-request-dto.ts +0 -36
- 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-bank-transactions-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
- package/models/transaction-class.ts +0 -60
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -23,8 +23,14 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateTenantBankAccountRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateTenantBankAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { GetTenantBankAccountResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
30
|
+
import { ListTenantBankAccountResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateTenantBankAccountResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
28
34
|
import { UpdateTenantBankAccountRestRequestDto } from '../models';
|
|
29
35
|
/**
|
|
30
36
|
* TenantBankAccountApi - axios parameter creator
|
|
@@ -33,7 +39,8 @@ import { UpdateTenantBankAccountRestRequestDto } from '../models';
|
|
|
33
39
|
export const TenantBankAccountApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
40
|
return {
|
|
35
41
|
/**
|
|
36
|
-
*
|
|
42
|
+
* This will create a new tenant bank account
|
|
43
|
+
* @summary Create the tenant bank account
|
|
37
44
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
38
45
|
* @param {string} [authorization] Bearer Token
|
|
39
46
|
* @param {*} [options] Override http request option.
|
|
@@ -79,7 +86,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
79
86
|
};
|
|
80
87
|
},
|
|
81
88
|
/**
|
|
82
|
-
*
|
|
89
|
+
* Deletes a tenant bank account by code
|
|
90
|
+
* @summary Delete the tenant bank account
|
|
83
91
|
* @param {string} code Unique identifier for the object.
|
|
84
92
|
* @param {string} [authorization] Bearer Token
|
|
85
93
|
* @param {*} [options] Override http request option.
|
|
@@ -123,10 +131,11 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
123
131
|
};
|
|
124
132
|
},
|
|
125
133
|
/**
|
|
126
|
-
*
|
|
134
|
+
* Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
|
|
135
|
+
* @summary Retrieve the tenant bank account
|
|
127
136
|
* @param {string} code Unique identifier for the object.
|
|
128
137
|
* @param {string} [authorization] Bearer Token
|
|
129
|
-
* @param {string} [expand] Expand the
|
|
138
|
+
* @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: bankTransactions.<i>
|
|
130
139
|
* @param {*} [options] Override http request option.
|
|
131
140
|
* @throws {RequiredError}
|
|
132
141
|
*/
|
|
@@ -172,19 +181,20 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
172
181
|
};
|
|
173
182
|
},
|
|
174
183
|
/**
|
|
175
|
-
*
|
|
184
|
+
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
185
|
+
* @summary List tenant bank accounts
|
|
176
186
|
* @param {string} [authorization] Bearer Token
|
|
177
187
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
178
188
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
179
|
-
* @param {
|
|
180
|
-
* @param {
|
|
181
|
-
* @param {
|
|
182
|
-
* @param {string} [expand] Expand the
|
|
183
|
-
* @param {
|
|
189
|
+
* @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, iban, bankName, accountName</i>
|
|
190
|
+
* @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, iban, bankName, accountName</i>
|
|
191
|
+
* @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</i>
|
|
192
|
+
* @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: bankTransactions.<i>
|
|
193
|
+
* @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, iban, bankName, accountName</i>
|
|
184
194
|
* @param {*} [options] Override http request option.
|
|
185
195
|
* @throws {RequiredError}
|
|
186
196
|
*/
|
|
187
|
-
listTenantBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
197
|
+
listTenantBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
198
|
const localVarPath = `/paymentservice/v1/tenant/bank-accounts`;
|
|
189
199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -247,7 +257,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
247
257
|
};
|
|
248
258
|
},
|
|
249
259
|
/**
|
|
250
|
-
*
|
|
260
|
+
* Update a tenant bank account by code
|
|
261
|
+
* @summary Update the tenant bank account
|
|
251
262
|
* @param {string} code Unique identifier for the object.
|
|
252
263
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
253
264
|
* @param {string} [authorization] Bearer Token
|
|
@@ -307,32 +318,35 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
307
318
|
const localVarAxiosParamCreator = TenantBankAccountApiAxiosParamCreator(configuration)
|
|
308
319
|
return {
|
|
309
320
|
/**
|
|
310
|
-
*
|
|
321
|
+
* This will create a new tenant bank account
|
|
322
|
+
* @summary Create the tenant bank account
|
|
311
323
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
312
324
|
* @param {string} [authorization] Bearer Token
|
|
313
325
|
* @param {*} [options] Override http request option.
|
|
314
326
|
* @throws {RequiredError}
|
|
315
327
|
*/
|
|
316
|
-
async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
328
|
+
async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTenantBankAccountResponseClass>> {
|
|
317
329
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options);
|
|
318
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
319
331
|
},
|
|
320
332
|
/**
|
|
321
|
-
*
|
|
333
|
+
* Deletes a tenant bank account by code
|
|
334
|
+
* @summary Delete the tenant bank account
|
|
322
335
|
* @param {string} code Unique identifier for the object.
|
|
323
336
|
* @param {string} [authorization] Bearer Token
|
|
324
337
|
* @param {*} [options] Override http request option.
|
|
325
338
|
* @throws {RequiredError}
|
|
326
339
|
*/
|
|
327
|
-
async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
340
|
+
async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
328
341
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTenantBankAccount(code, authorization, options);
|
|
329
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
343
|
},
|
|
331
344
|
/**
|
|
332
|
-
*
|
|
345
|
+
* Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
|
|
346
|
+
* @summary Retrieve the tenant bank account
|
|
333
347
|
* @param {string} code Unique identifier for the object.
|
|
334
348
|
* @param {string} [authorization] Bearer Token
|
|
335
|
-
* @param {string} [expand] Expand the
|
|
349
|
+
* @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: bankTransactions.<i>
|
|
336
350
|
* @param {*} [options] Override http request option.
|
|
337
351
|
* @throws {RequiredError}
|
|
338
352
|
*/
|
|
@@ -341,31 +355,33 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
341
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
356
|
},
|
|
343
357
|
/**
|
|
344
|
-
*
|
|
358
|
+
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
359
|
+
* @summary List tenant bank accounts
|
|
345
360
|
* @param {string} [authorization] Bearer Token
|
|
346
361
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
347
362
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
348
|
-
* @param {
|
|
349
|
-
* @param {
|
|
350
|
-
* @param {
|
|
351
|
-
* @param {string} [expand] Expand the
|
|
352
|
-
* @param {
|
|
363
|
+
* @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, iban, bankName, accountName</i>
|
|
364
|
+
* @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, iban, bankName, accountName</i>
|
|
365
|
+
* @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</i>
|
|
366
|
+
* @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: bankTransactions.<i>
|
|
367
|
+
* @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, iban, bankName, accountName</i>
|
|
353
368
|
* @param {*} [options] Override http request option.
|
|
354
369
|
* @throws {RequiredError}
|
|
355
370
|
*/
|
|
356
|
-
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
371
|
+
async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>> {
|
|
357
372
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
358
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
374
|
},
|
|
360
375
|
/**
|
|
361
|
-
*
|
|
376
|
+
* Update a tenant bank account by code
|
|
377
|
+
* @summary Update the tenant bank account
|
|
362
378
|
* @param {string} code Unique identifier for the object.
|
|
363
379
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
364
380
|
* @param {string} [authorization] Bearer Token
|
|
365
381
|
* @param {*} [options] Override http request option.
|
|
366
382
|
* @throws {RequiredError}
|
|
367
383
|
*/
|
|
368
|
-
async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
384
|
+
async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateTenantBankAccountResponseClass>> {
|
|
369
385
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options);
|
|
370
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
387
|
},
|
|
@@ -380,30 +396,33 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
380
396
|
const localVarFp = TenantBankAccountApiFp(configuration)
|
|
381
397
|
return {
|
|
382
398
|
/**
|
|
383
|
-
*
|
|
399
|
+
* This will create a new tenant bank account
|
|
400
|
+
* @summary Create the tenant bank account
|
|
384
401
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
385
402
|
* @param {string} [authorization] Bearer Token
|
|
386
403
|
* @param {*} [options] Override http request option.
|
|
387
404
|
* @throws {RequiredError}
|
|
388
405
|
*/
|
|
389
|
-
createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
406
|
+
createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTenantBankAccountResponseClass> {
|
|
390
407
|
return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
391
408
|
},
|
|
392
409
|
/**
|
|
393
|
-
*
|
|
410
|
+
* Deletes a tenant bank account by code
|
|
411
|
+
* @summary Delete the tenant bank account
|
|
394
412
|
* @param {string} code Unique identifier for the object.
|
|
395
413
|
* @param {string} [authorization] Bearer Token
|
|
396
414
|
* @param {*} [options] Override http request option.
|
|
397
415
|
* @throws {RequiredError}
|
|
398
416
|
*/
|
|
399
|
-
deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
417
|
+
deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
400
418
|
return localVarFp.deleteTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
401
419
|
},
|
|
402
420
|
/**
|
|
403
|
-
*
|
|
421
|
+
* Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
|
|
422
|
+
* @summary Retrieve the tenant bank account
|
|
404
423
|
* @param {string} code Unique identifier for the object.
|
|
405
424
|
* @param {string} [authorization] Bearer Token
|
|
406
|
-
* @param {string} [expand] Expand the
|
|
425
|
+
* @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: bankTransactions.<i>
|
|
407
426
|
* @param {*} [options] Override http request option.
|
|
408
427
|
* @throws {RequiredError}
|
|
409
428
|
*/
|
|
@@ -411,30 +430,32 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
411
430
|
return localVarFp.getTenantBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
412
431
|
},
|
|
413
432
|
/**
|
|
414
|
-
*
|
|
433
|
+
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
434
|
+
* @summary List tenant bank accounts
|
|
415
435
|
* @param {string} [authorization] Bearer Token
|
|
416
436
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
417
437
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
418
|
-
* @param {
|
|
419
|
-
* @param {
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {string} [expand] Expand the
|
|
422
|
-
* @param {
|
|
438
|
+
* @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, iban, bankName, accountName</i>
|
|
439
|
+
* @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, iban, bankName, accountName</i>
|
|
440
|
+
* @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</i>
|
|
441
|
+
* @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: bankTransactions.<i>
|
|
442
|
+
* @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, iban, bankName, accountName</i>
|
|
423
443
|
* @param {*} [options] Override http request option.
|
|
424
444
|
* @throws {RequiredError}
|
|
425
445
|
*/
|
|
426
|
-
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
446
|
+
listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass> {
|
|
427
447
|
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
428
448
|
},
|
|
429
449
|
/**
|
|
430
|
-
*
|
|
450
|
+
* Update a tenant bank account by code
|
|
451
|
+
* @summary Update the tenant bank account
|
|
431
452
|
* @param {string} code Unique identifier for the object.
|
|
432
453
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
433
454
|
* @param {string} [authorization] Bearer Token
|
|
434
455
|
* @param {*} [options] Override http request option.
|
|
435
456
|
* @throws {RequiredError}
|
|
436
457
|
*/
|
|
437
|
-
updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
458
|
+
updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateTenantBankAccountResponseClass> {
|
|
438
459
|
return localVarFp.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
439
460
|
},
|
|
440
461
|
};
|
|
@@ -503,7 +524,7 @@ export interface TenantBankAccountApiGetTenantBankAccountRequest {
|
|
|
503
524
|
readonly authorization?: string
|
|
504
525
|
|
|
505
526
|
/**
|
|
506
|
-
* Expand the
|
|
527
|
+
* 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: bankTransactions.<i>
|
|
507
528
|
* @type {string}
|
|
508
529
|
* @memberof TenantBankAccountApiGetTenantBankAccount
|
|
509
530
|
*/
|
|
@@ -538,39 +559,39 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
538
559
|
readonly pageToken?: any
|
|
539
560
|
|
|
540
561
|
/**
|
|
541
|
-
* Filter the response by one or multiple fields.
|
|
542
|
-
* @type {
|
|
562
|
+
* 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, iban, bankName, accountName</i>
|
|
563
|
+
* @type {string}
|
|
543
564
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
544
565
|
*/
|
|
545
|
-
readonly filter?:
|
|
566
|
+
readonly filter?: string
|
|
546
567
|
|
|
547
568
|
/**
|
|
548
|
-
* Search the
|
|
549
|
-
* @type {
|
|
569
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
|
|
570
|
+
* @type {string}
|
|
550
571
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
551
572
|
*/
|
|
552
|
-
readonly search?:
|
|
573
|
+
readonly search?: string
|
|
553
574
|
|
|
554
575
|
/**
|
|
555
|
-
*
|
|
556
|
-
* @type {
|
|
576
|
+
* 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</i>
|
|
577
|
+
* @type {string}
|
|
557
578
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
558
579
|
*/
|
|
559
|
-
readonly order?:
|
|
580
|
+
readonly order?: string
|
|
560
581
|
|
|
561
582
|
/**
|
|
562
|
-
* Expand the
|
|
583
|
+
* 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: bankTransactions.<i>
|
|
563
584
|
* @type {string}
|
|
564
585
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
565
586
|
*/
|
|
566
587
|
readonly expand?: string
|
|
567
588
|
|
|
568
589
|
/**
|
|
569
|
-
* Filters the response by one or multiple fields.
|
|
570
|
-
* @type {
|
|
590
|
+
* 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, iban, bankName, accountName</i>
|
|
591
|
+
* @type {string}
|
|
571
592
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
572
593
|
*/
|
|
573
|
-
readonly filters?:
|
|
594
|
+
readonly filters?: string
|
|
574
595
|
}
|
|
575
596
|
|
|
576
597
|
/**
|
|
@@ -609,7 +630,8 @@ export interface TenantBankAccountApiUpdateTenantBankAccountRequest {
|
|
|
609
630
|
*/
|
|
610
631
|
export class TenantBankAccountApi extends BaseAPI {
|
|
611
632
|
/**
|
|
612
|
-
*
|
|
633
|
+
* This will create a new tenant bank account
|
|
634
|
+
* @summary Create the tenant bank account
|
|
613
635
|
* @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
|
|
614
636
|
* @param {*} [options] Override http request option.
|
|
615
637
|
* @throws {RequiredError}
|
|
@@ -620,7 +642,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
620
642
|
}
|
|
621
643
|
|
|
622
644
|
/**
|
|
623
|
-
*
|
|
645
|
+
* Deletes a tenant bank account by code
|
|
646
|
+
* @summary Delete the tenant bank account
|
|
624
647
|
* @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
|
|
625
648
|
* @param {*} [options] Override http request option.
|
|
626
649
|
* @throws {RequiredError}
|
|
@@ -631,7 +654,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
631
654
|
}
|
|
632
655
|
|
|
633
656
|
/**
|
|
634
|
-
*
|
|
657
|
+
* Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
|
|
658
|
+
* @summary Retrieve the tenant bank account
|
|
635
659
|
* @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
|
|
636
660
|
* @param {*} [options] Override http request option.
|
|
637
661
|
* @throws {RequiredError}
|
|
@@ -642,7 +666,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
642
666
|
}
|
|
643
667
|
|
|
644
668
|
/**
|
|
645
|
-
*
|
|
669
|
+
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
670
|
+
* @summary List tenant bank accounts
|
|
646
671
|
* @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
|
|
647
672
|
* @param {*} [options] Override http request option.
|
|
648
673
|
* @throws {RequiredError}
|
|
@@ -653,7 +678,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
653
678
|
}
|
|
654
679
|
|
|
655
680
|
/**
|
|
656
|
-
*
|
|
681
|
+
* Update a tenant bank account by code
|
|
682
|
+
* @summary Update the tenant bank account
|
|
657
683
|
* @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
|
|
658
684
|
* @param {*} [options] Override http request option.
|
|
659
685
|
* @throws {RequiredError}
|
package/api/webhooks-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -27,9 +27,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
27
27
|
export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
28
|
return {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @
|
|
32
|
-
* @param {string}
|
|
30
|
+
* This will processes the webhook from external payment service provider.
|
|
31
|
+
* @summary Handle the webhook from PSP
|
|
32
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
33
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
33
34
|
* @param {*} [options] Override http request option.
|
|
34
35
|
* @throws {RequiredError}
|
|
35
36
|
*/
|
|
@@ -76,9 +77,10 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
76
77
|
const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration)
|
|
77
78
|
return {
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @
|
|
81
|
-
* @param {string}
|
|
80
|
+
* This will processes the webhook from external payment service provider.
|
|
81
|
+
* @summary Handle the webhook from PSP
|
|
82
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
83
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
82
84
|
* @param {*} [options] Override http request option.
|
|
83
85
|
* @throws {RequiredError}
|
|
84
86
|
*/
|
|
@@ -97,9 +99,10 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
97
99
|
const localVarFp = WebhooksApiFp(configuration)
|
|
98
100
|
return {
|
|
99
101
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
102
|
-
* @param {string}
|
|
102
|
+
* This will processes the webhook from external payment service provider.
|
|
103
|
+
* @summary Handle the webhook from PSP
|
|
104
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
105
|
+
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
103
106
|
* @param {*} [options] Override http request option.
|
|
104
107
|
* @throws {RequiredError}
|
|
105
108
|
*/
|
|
@@ -116,14 +119,14 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
116
119
|
*/
|
|
117
120
|
export interface WebhooksApiPostWebhookRequest {
|
|
118
121
|
/**
|
|
119
|
-
*
|
|
122
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
120
123
|
* @type {string}
|
|
121
124
|
* @memberof WebhooksApiPostWebhook
|
|
122
125
|
*/
|
|
123
126
|
readonly pspType: string
|
|
124
127
|
|
|
125
128
|
/**
|
|
126
|
-
*
|
|
129
|
+
* Unique slug identifier representing a tenant.
|
|
127
130
|
* @type {string}
|
|
128
131
|
* @memberof WebhooksApiPostWebhook
|
|
129
132
|
*/
|
|
@@ -138,7 +141,8 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
138
141
|
*/
|
|
139
142
|
export class WebhooksApi extends BaseAPI {
|
|
140
143
|
/**
|
|
141
|
-
*
|
|
144
|
+
* This will processes the webhook from external payment service provider.
|
|
145
|
+
* @summary Handle the webhook from PSP
|
|
142
146
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
143
147
|
* @param {*} [options] Override http request option.
|
|
144
148
|
* @throws {RequiredError}
|
package/api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -22,7 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { BankAccountsApi } from './api';
|
|
24
24
|
import { BankTransactionApi } from './api';
|
|
25
|
-
import {
|
|
25
|
+
import { HealthCheckApi } from './api';
|
|
26
26
|
import { PaymentMethodsApi } from './api';
|
|
27
27
|
import { PaymentRemindersApi } from './api';
|
|
28
28
|
import { PaymentSetupApi } from './api';
|
|
@@ -34,7 +34,7 @@ import { WebhooksApi } from './api';
|
|
|
34
34
|
|
|
35
35
|
export * from './api/bank-accounts-api';
|
|
36
36
|
export * from './api/bank-transaction-api';
|
|
37
|
-
export * from './api/
|
|
37
|
+
export * from './api/health-check-api';
|
|
38
38
|
export * from './api/payment-methods-api';
|
|
39
39
|
export * from './api/payment-reminders-api';
|
|
40
40
|
export * from './api/payment-setup-api';
|
package/base.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -102,7 +102,11 @@ export class BaseAPI {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
selectEnvironment(env: Environment) {
|
|
105
|
-
this.
|
|
105
|
+
this.selectBasePath(env);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
async authorize(username: string, password: string): Promise<void> {
|
package/common.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -140,7 +140,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
140
140
|
/* eslint-disable */
|
|
141
141
|
/**
|
|
142
142
|
* Emil Payment Service
|
|
143
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
143
|
+
* 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.
|
|
144
144
|
*
|
|
145
145
|
* The version of the OpenAPI document: 1.0
|
|
146
146
|
* Contact: kontakt@emil.de
|
package/configuration.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|