@emilgroup/payment-sdk 1.4.1-beta.1 → 1.4.1-beta.10
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 +2 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +1 -1
- package/api/bank-transaction-api.ts +60 -26
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +1 -1
- package/api/payment-reminders-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +1 -1
- package/api/refunds-api.ts +1 -1
- package/api/tenant-bank-account-api.ts +49 -29
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +1 -1
- package/dist/api/bank-accounts-api.js +1 -1
- package/dist/api/bank-transaction-api.d.ts +39 -19
- package/dist/api/bank-transaction-api.js +33 -20
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +1 -1
- package/dist/api/payment-methods-api.js +1 -1
- package/dist/api/payment-reminders-api.d.ts +1 -1
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +1 -1
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/payments-api.js +1 -1
- package/dist/api/refunds-api.d.ts +1 -1
- package/dist/api/refunds-api.js +1 -1
- package/dist/api/tenant-bank-account-api.d.ts +49 -29
- package/dist/api/tenant-bank-account-api.js +44 -24
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- 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-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/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -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 +24 -0
- package/dist/models/link-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/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-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 +1 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- 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/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +2 -0
- 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-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -32,11 +32,13 @@ models/get-tenant-bank-account-response-class.ts
|
|
|
32
32
|
models/index.ts
|
|
33
33
|
models/inline-response200.ts
|
|
34
34
|
models/inline-response503.ts
|
|
35
|
+
models/link-bank-transaction-request-dto-rest.ts
|
|
35
36
|
models/list-bank-transactions-response-class.ts
|
|
36
37
|
models/list-refunds-response-class.ts
|
|
37
38
|
models/refund-class.ts
|
|
38
39
|
models/tenant-bank-account-response-class.ts
|
|
39
40
|
models/transaction-class.ts
|
|
41
|
+
models/unlink-bank-transaction-request-dto-rest.ts
|
|
40
42
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
41
43
|
models/validate-pspconfig-request-dto.ts
|
|
42
44
|
package.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.10 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.1-beta.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -23,7 +23,11 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
27
31
|
/**
|
|
28
32
|
* BankTransactionApi - axios parameter creator
|
|
29
33
|
* @export
|
|
@@ -118,7 +122,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
|
|
121
|
-
|
|
125
|
+
|
|
122
126
|
|
|
123
127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -134,13 +138,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
134
138
|
* Links a bank transaction with an invoice
|
|
135
139
|
* @summary Link Bank Transaction
|
|
136
140
|
* @param {string} code Code of the bank transaction to link
|
|
141
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
137
142
|
* @param {string} [authorization] Bearer Token
|
|
138
143
|
* @param {*} [options] Override http request option.
|
|
139
144
|
* @throws {RequiredError}
|
|
140
145
|
*/
|
|
141
|
-
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
147
|
// verify required parameter 'code' is not null or undefined
|
|
143
148
|
assertParamExists('linkBankTransaction', 'code', code)
|
|
149
|
+
// verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
|
|
150
|
+
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
|
|
144
151
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
145
152
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
153
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -166,9 +173,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
166
173
|
|
|
167
174
|
|
|
168
175
|
|
|
176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
177
|
+
|
|
169
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
180
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
181
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
172
182
|
|
|
173
183
|
return {
|
|
174
184
|
url: toPathString(localVarUrlObj),
|
|
@@ -181,15 +191,15 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
181
191
|
* @param {string} [authorization] Bearer Token
|
|
182
192
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
183
193
|
* @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.
|
|
184
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
194
|
+
* @param {any} [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>
|
|
185
195
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
186
196
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
187
|
-
* @param {
|
|
197
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
188
198
|
* @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.
|
|
189
199
|
* @param {*} [options] Override http request option.
|
|
190
200
|
* @throws {RequiredError}
|
|
191
201
|
*/
|
|
192
|
-
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
202
|
+
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
203
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
194
204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
205
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -255,13 +265,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
255
265
|
* Unlinks an already linked bank transaction
|
|
256
266
|
* @summary Unlink Bank Transaction
|
|
257
267
|
* @param {string} code Code of the bank transaction to unlink
|
|
268
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
258
269
|
* @param {string} [authorization] Bearer Token
|
|
259
270
|
* @param {*} [options] Override http request option.
|
|
260
271
|
* @throws {RequiredError}
|
|
261
272
|
*/
|
|
262
|
-
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
273
|
+
unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
274
|
// verify required parameter 'code' is not null or undefined
|
|
264
275
|
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
276
|
+
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
277
|
+
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
265
278
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
266
279
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
280
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -287,9 +300,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
287
300
|
|
|
288
301
|
|
|
289
302
|
|
|
303
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
304
|
+
|
|
290
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
307
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
308
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
293
309
|
|
|
294
310
|
return {
|
|
295
311
|
url: toPathString(localVarUrlObj),
|
|
@@ -335,12 +351,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
335
351
|
* Links a bank transaction with an invoice
|
|
336
352
|
* @summary Link Bank Transaction
|
|
337
353
|
* @param {string} code Code of the bank transaction to link
|
|
354
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
338
355
|
* @param {string} [authorization] Bearer Token
|
|
339
356
|
* @param {*} [options] Override http request option.
|
|
340
357
|
* @throws {RequiredError}
|
|
341
358
|
*/
|
|
342
|
-
async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
|
|
359
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
344
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
362
|
},
|
|
346
363
|
/**
|
|
@@ -349,15 +366,15 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
349
366
|
* @param {string} [authorization] Bearer Token
|
|
350
367
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
351
368
|
* @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.
|
|
352
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
369
|
+
* @param {any} [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>
|
|
353
370
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
354
371
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
355
|
-
* @param {
|
|
372
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
356
373
|
* @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.
|
|
357
374
|
* @param {*} [options] Override http request option.
|
|
358
375
|
* @throws {RequiredError}
|
|
359
376
|
*/
|
|
360
|
-
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
377
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
361
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
362
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
380
|
},
|
|
@@ -365,12 +382,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
365
382
|
* Unlinks an already linked bank transaction
|
|
366
383
|
* @summary Unlink Bank Transaction
|
|
367
384
|
* @param {string} code Code of the bank transaction to unlink
|
|
385
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
368
386
|
* @param {string} [authorization] Bearer Token
|
|
369
387
|
* @param {*} [options] Override http request option.
|
|
370
388
|
* @throws {RequiredError}
|
|
371
389
|
*/
|
|
372
|
-
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
373
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
390
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
374
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
393
|
},
|
|
376
394
|
}
|
|
@@ -410,12 +428,13 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
410
428
|
* Links a bank transaction with an invoice
|
|
411
429
|
* @summary Link Bank Transaction
|
|
412
430
|
* @param {string} code Code of the bank transaction to link
|
|
431
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
413
432
|
* @param {string} [authorization] Bearer Token
|
|
414
433
|
* @param {*} [options] Override http request option.
|
|
415
434
|
* @throws {RequiredError}
|
|
416
435
|
*/
|
|
417
|
-
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
418
|
-
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
436
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
437
|
+
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
419
438
|
},
|
|
420
439
|
/**
|
|
421
440
|
* 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.
|
|
@@ -423,27 +442,28 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
423
442
|
* @param {string} [authorization] Bearer Token
|
|
424
443
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
425
444
|
* @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.
|
|
426
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
445
|
+
* @param {any} [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>
|
|
427
446
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
428
447
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
429
|
-
* @param {
|
|
448
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
430
449
|
* @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.
|
|
431
450
|
* @param {*} [options] Override http request option.
|
|
432
451
|
* @throws {RequiredError}
|
|
433
452
|
*/
|
|
434
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
453
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void> {
|
|
435
454
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
436
455
|
},
|
|
437
456
|
/**
|
|
438
457
|
* Unlinks an already linked bank transaction
|
|
439
458
|
* @summary Unlink Bank Transaction
|
|
440
459
|
* @param {string} code Code of the bank transaction to unlink
|
|
460
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
441
461
|
* @param {string} [authorization] Bearer Token
|
|
442
462
|
* @param {*} [options] Override http request option.
|
|
443
463
|
* @throws {RequiredError}
|
|
444
464
|
*/
|
|
445
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
446
|
-
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
465
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
466
|
+
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
447
467
|
},
|
|
448
468
|
};
|
|
449
469
|
};
|
|
@@ -510,6 +530,13 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
510
530
|
*/
|
|
511
531
|
readonly code: string
|
|
512
532
|
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {LinkBankTransactionRequestDtoRest}
|
|
536
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
537
|
+
*/
|
|
538
|
+
readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
|
|
539
|
+
|
|
513
540
|
/**
|
|
514
541
|
* Bearer Token
|
|
515
542
|
* @type {string}
|
|
@@ -546,7 +573,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
546
573
|
readonly pageToken?: any
|
|
547
574
|
|
|
548
575
|
/**
|
|
549
|
-
* Filter the response by one or multiple fields.
|
|
576
|
+
* 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>
|
|
550
577
|
* @type {any}
|
|
551
578
|
* @memberof BankTransactionApiListBankTransactions
|
|
552
579
|
*/
|
|
@@ -568,10 +595,10 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
568
595
|
|
|
569
596
|
/**
|
|
570
597
|
* Expand the response with additional entities
|
|
571
|
-
* @type {
|
|
598
|
+
* @type {'bankAccount' | 'transaction'}
|
|
572
599
|
* @memberof BankTransactionApiListBankTransactions
|
|
573
600
|
*/
|
|
574
|
-
readonly expand?:
|
|
601
|
+
readonly expand?: 'bankAccount' | 'transaction'
|
|
575
602
|
|
|
576
603
|
/**
|
|
577
604
|
* 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.
|
|
@@ -594,6 +621,13 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
594
621
|
*/
|
|
595
622
|
readonly code: string
|
|
596
623
|
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
627
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
628
|
+
*/
|
|
629
|
+
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
630
|
+
|
|
597
631
|
/**
|
|
598
632
|
* Bearer Token
|
|
599
633
|
* @type {string}
|
|
@@ -642,7 +676,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
642
676
|
* @memberof BankTransactionApi
|
|
643
677
|
*/
|
|
644
678
|
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
645
|
-
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
679
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
646
680
|
}
|
|
647
681
|
|
|
648
682
|
/**
|
|
@@ -666,6 +700,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
666
700
|
* @memberof BankTransactionApi
|
|
667
701
|
*/
|
|
668
702
|
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
669
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
703
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
704
|
}
|
|
671
705
|
}
|
package/api/default-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api/payment-setup-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api/payments-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api/refunds-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -33,7 +33,8 @@ import { UpdateTenantBankAccountRestRequestDto } from '../models';
|
|
|
33
33
|
export const TenantBankAccountApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
34
|
return {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Create a new tenant bank account
|
|
37
|
+
* @summary Create the Create Tenant Bank Account
|
|
37
38
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
38
39
|
* @param {string} [authorization] Bearer Token
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
@@ -79,7 +80,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
79
80
|
};
|
|
80
81
|
},
|
|
81
82
|
/**
|
|
82
|
-
*
|
|
83
|
+
* Deletes a tenant bank account by code
|
|
84
|
+
* @summary Deletes a tenant bank account
|
|
83
85
|
* @param {string} code Unique identifier for the object.
|
|
84
86
|
* @param {string} [authorization] Bearer Token
|
|
85
87
|
* @param {*} [options] Override http request option.
|
|
@@ -123,14 +125,15 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
123
125
|
};
|
|
124
126
|
},
|
|
125
127
|
/**
|
|
126
|
-
*
|
|
128
|
+
* 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.
|
|
129
|
+
* @summary Retrieve the Bank Transaction
|
|
127
130
|
* @param {string} code Unique identifier for the object.
|
|
128
131
|
* @param {string} [authorization] Bearer Token
|
|
129
|
-
* @param {
|
|
132
|
+
* @param {'bankTransactions'} [expand] Expand the response with additional entities
|
|
130
133
|
* @param {*} [options] Override http request option.
|
|
131
134
|
* @throws {RequiredError}
|
|
132
135
|
*/
|
|
133
|
-
getTenantBankAccount: async (code: string, authorization?: string, expand?:
|
|
136
|
+
getTenantBankAccount: async (code: string, authorization?: string, expand?: 'bankTransactions', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
137
|
// verify required parameter 'code' is not null or undefined
|
|
135
138
|
assertParamExists('getTenantBankAccount', 'code', code)
|
|
136
139
|
const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
|
|
@@ -172,7 +175,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
172
175
|
};
|
|
173
176
|
},
|
|
174
177
|
/**
|
|
175
|
-
*
|
|
178
|
+
* 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.
|
|
179
|
+
* @summary List Tenant Bank Accounts
|
|
176
180
|
* @param {string} [authorization] Bearer Token
|
|
177
181
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
178
182
|
* @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.
|
|
@@ -247,7 +251,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
247
251
|
};
|
|
248
252
|
},
|
|
249
253
|
/**
|
|
250
|
-
*
|
|
254
|
+
* Update a tenant bank account by code
|
|
255
|
+
* @summary Update a tenant bank account
|
|
251
256
|
* @param {string} code Unique identifier for the object.
|
|
252
257
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
253
258
|
* @param {string} [authorization] Bearer Token
|
|
@@ -307,7 +312,8 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
307
312
|
const localVarAxiosParamCreator = TenantBankAccountApiAxiosParamCreator(configuration)
|
|
308
313
|
return {
|
|
309
314
|
/**
|
|
310
|
-
*
|
|
315
|
+
* Create a new tenant bank account
|
|
316
|
+
* @summary Create the Create Tenant Bank Account
|
|
311
317
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
312
318
|
* @param {string} [authorization] Bearer Token
|
|
313
319
|
* @param {*} [options] Override http request option.
|
|
@@ -318,7 +324,8 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
318
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
319
325
|
},
|
|
320
326
|
/**
|
|
321
|
-
*
|
|
327
|
+
* Deletes a tenant bank account by code
|
|
328
|
+
* @summary Deletes a tenant bank account
|
|
322
329
|
* @param {string} code Unique identifier for the object.
|
|
323
330
|
* @param {string} [authorization] Bearer Token
|
|
324
331
|
* @param {*} [options] Override http request option.
|
|
@@ -329,19 +336,21 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
329
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
337
|
},
|
|
331
338
|
/**
|
|
332
|
-
*
|
|
339
|
+
* 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.
|
|
340
|
+
* @summary Retrieve the Bank Transaction
|
|
333
341
|
* @param {string} code Unique identifier for the object.
|
|
334
342
|
* @param {string} [authorization] Bearer Token
|
|
335
|
-
* @param {
|
|
343
|
+
* @param {'bankTransactions'} [expand] Expand the response with additional entities
|
|
336
344
|
* @param {*} [options] Override http request option.
|
|
337
345
|
* @throws {RequiredError}
|
|
338
346
|
*/
|
|
339
|
-
async getTenantBankAccount(code: string, authorization?: string, expand?:
|
|
347
|
+
async getTenantBankAccount(code: string, authorization?: string, expand?: 'bankTransactions', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTenantBankAccountResponseClass>> {
|
|
340
348
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization, expand, options);
|
|
341
349
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
350
|
},
|
|
343
351
|
/**
|
|
344
|
-
*
|
|
352
|
+
* 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.
|
|
353
|
+
* @summary List Tenant Bank Accounts
|
|
345
354
|
* @param {string} [authorization] Bearer Token
|
|
346
355
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
347
356
|
* @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.
|
|
@@ -358,7 +367,8 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
358
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
359
368
|
},
|
|
360
369
|
/**
|
|
361
|
-
*
|
|
370
|
+
* Update a tenant bank account by code
|
|
371
|
+
* @summary Update a tenant bank account
|
|
362
372
|
* @param {string} code Unique identifier for the object.
|
|
363
373
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
364
374
|
* @param {string} [authorization] Bearer Token
|
|
@@ -380,7 +390,8 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
380
390
|
const localVarFp = TenantBankAccountApiFp(configuration)
|
|
381
391
|
return {
|
|
382
392
|
/**
|
|
383
|
-
*
|
|
393
|
+
* Create a new tenant bank account
|
|
394
|
+
* @summary Create the Create Tenant Bank Account
|
|
384
395
|
* @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
|
|
385
396
|
* @param {string} [authorization] Bearer Token
|
|
386
397
|
* @param {*} [options] Override http request option.
|
|
@@ -390,7 +401,8 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
390
401
|
return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
391
402
|
},
|
|
392
403
|
/**
|
|
393
|
-
*
|
|
404
|
+
* Deletes a tenant bank account by code
|
|
405
|
+
* @summary Deletes a tenant bank account
|
|
394
406
|
* @param {string} code Unique identifier for the object.
|
|
395
407
|
* @param {string} [authorization] Bearer Token
|
|
396
408
|
* @param {*} [options] Override http request option.
|
|
@@ -400,18 +412,20 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
400
412
|
return localVarFp.deleteTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
401
413
|
},
|
|
402
414
|
/**
|
|
403
|
-
*
|
|
415
|
+
* 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.
|
|
416
|
+
* @summary Retrieve the Bank Transaction
|
|
404
417
|
* @param {string} code Unique identifier for the object.
|
|
405
418
|
* @param {string} [authorization] Bearer Token
|
|
406
|
-
* @param {
|
|
419
|
+
* @param {'bankTransactions'} [expand] Expand the response with additional entities
|
|
407
420
|
* @param {*} [options] Override http request option.
|
|
408
421
|
* @throws {RequiredError}
|
|
409
422
|
*/
|
|
410
|
-
getTenantBankAccount(code: string, authorization?: string, expand?:
|
|
423
|
+
getTenantBankAccount(code: string, authorization?: string, expand?: 'bankTransactions', options?: any): AxiosPromise<GetTenantBankAccountResponseClass> {
|
|
411
424
|
return localVarFp.getTenantBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
412
425
|
},
|
|
413
426
|
/**
|
|
414
|
-
*
|
|
427
|
+
* 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.
|
|
428
|
+
* @summary List Tenant Bank Accounts
|
|
415
429
|
* @param {string} [authorization] Bearer Token
|
|
416
430
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
417
431
|
* @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.
|
|
@@ -427,7 +441,8 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
427
441
|
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
428
442
|
},
|
|
429
443
|
/**
|
|
430
|
-
*
|
|
444
|
+
* Update a tenant bank account by code
|
|
445
|
+
* @summary Update a tenant bank account
|
|
431
446
|
* @param {string} code Unique identifier for the object.
|
|
432
447
|
* @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
|
|
433
448
|
* @param {string} [authorization] Bearer Token
|
|
@@ -504,10 +519,10 @@ export interface TenantBankAccountApiGetTenantBankAccountRequest {
|
|
|
504
519
|
|
|
505
520
|
/**
|
|
506
521
|
* Expand the response with additional entities
|
|
507
|
-
* @type {
|
|
522
|
+
* @type {'bankTransactions'}
|
|
508
523
|
* @memberof TenantBankAccountApiGetTenantBankAccount
|
|
509
524
|
*/
|
|
510
|
-
readonly expand?:
|
|
525
|
+
readonly expand?: 'bankTransactions'
|
|
511
526
|
}
|
|
512
527
|
|
|
513
528
|
/**
|
|
@@ -609,7 +624,8 @@ export interface TenantBankAccountApiUpdateTenantBankAccountRequest {
|
|
|
609
624
|
*/
|
|
610
625
|
export class TenantBankAccountApi extends BaseAPI {
|
|
611
626
|
/**
|
|
612
|
-
*
|
|
627
|
+
* Create a new tenant bank account
|
|
628
|
+
* @summary Create the Create Tenant Bank Account
|
|
613
629
|
* @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
|
|
614
630
|
* @param {*} [options] Override http request option.
|
|
615
631
|
* @throws {RequiredError}
|
|
@@ -620,7 +636,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
620
636
|
}
|
|
621
637
|
|
|
622
638
|
/**
|
|
623
|
-
*
|
|
639
|
+
* Deletes a tenant bank account by code
|
|
640
|
+
* @summary Deletes a tenant bank account
|
|
624
641
|
* @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
|
|
625
642
|
* @param {*} [options] Override http request option.
|
|
626
643
|
* @throws {RequiredError}
|
|
@@ -631,7 +648,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
631
648
|
}
|
|
632
649
|
|
|
633
650
|
/**
|
|
634
|
-
*
|
|
651
|
+
* 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.
|
|
652
|
+
* @summary Retrieve the Bank Transaction
|
|
635
653
|
* @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
|
|
636
654
|
* @param {*} [options] Override http request option.
|
|
637
655
|
* @throws {RequiredError}
|
|
@@ -642,7 +660,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
642
660
|
}
|
|
643
661
|
|
|
644
662
|
/**
|
|
645
|
-
*
|
|
663
|
+
* 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.
|
|
664
|
+
* @summary List Tenant Bank Accounts
|
|
646
665
|
* @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
|
|
647
666
|
* @param {*} [options] Override http request option.
|
|
648
667
|
* @throws {RequiredError}
|
|
@@ -653,7 +672,8 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
653
672
|
}
|
|
654
673
|
|
|
655
674
|
/**
|
|
656
|
-
*
|
|
675
|
+
* Update a tenant bank account by code
|
|
676
|
+
* @summary Update a tenant bank account
|
|
657
677
|
* @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
|
|
658
678
|
* @param {*} [options] Override http request option.
|
|
659
679
|
* @throws {RequiredError}
|
package/api/webhooks-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|