@emilgroup/payment-sdk 1.4.1-beta.4 → 1.4.1-beta.6
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 +6 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +1 -1
- package/api/bank-transaction-api.ts +203 -1
- 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 +476 -0
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +3 -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 +111 -1
- package/dist/api/bank-transaction-api.js +185 -1
- 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 +269 -0
- package/dist/api/refunds-api.js +449 -0
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -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 +1 -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 +24 -0
- package/dist/models/create-refund-request-dto.js +15 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- 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 +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- 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 +5 -0
- package/dist/models/index.js +5 -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/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 +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -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 +30 -0
- package/models/create-refund-response-class.ts +31 -0
- 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 +31 -0
- package/models/get-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +5 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +37 -0
- package/models/refund-class.ts +114 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ api/payment-methods-api.ts
|
|
|
10
10
|
api/payment-reminders-api.ts
|
|
11
11
|
api/payment-setup-api.ts
|
|
12
12
|
api/payments-api.ts
|
|
13
|
+
api/refunds-api.ts
|
|
13
14
|
api/tenant-bank-account-api.ts
|
|
14
15
|
api/webhooks-api.ts
|
|
15
16
|
base.ts
|
|
@@ -20,15 +21,20 @@ index.ts
|
|
|
20
21
|
models/bank-transaction-response-class.ts
|
|
21
22
|
models/create-payment-reminder-request-dto.ts
|
|
22
23
|
models/create-payment-request-dto.ts
|
|
24
|
+
models/create-refund-request-dto.ts
|
|
25
|
+
models/create-refund-response-class.ts
|
|
23
26
|
models/create-tenant-bank-account-request-dto.ts
|
|
24
27
|
models/deactivate-payment-reminder-request-dto.ts
|
|
25
28
|
models/get-bank-transactions-response-class.ts
|
|
29
|
+
models/get-refund-response-class.ts
|
|
26
30
|
models/get-request-dto.ts
|
|
27
31
|
models/get-tenant-bank-account-response-class.ts
|
|
28
32
|
models/index.ts
|
|
29
33
|
models/inline-response200.ts
|
|
30
34
|
models/inline-response503.ts
|
|
31
35
|
models/list-bank-transactions-response-class.ts
|
|
36
|
+
models/list-refunds-response-class.ts
|
|
37
|
+
models/refund-class.ts
|
|
32
38
|
models/tenant-bank-account-response-class.ts
|
|
33
39
|
models/transaction-class.ts
|
|
34
40
|
models/update-tenant-bank-account-rest-request-dto.ts
|
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.6 --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.6
|
|
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
|
|
@@ -130,6 +130,51 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
130
130
|
options: localVarRequestOptions,
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
|
+
/**
|
|
134
|
+
* Links a bank transaction with an invoice
|
|
135
|
+
* @summary Link Bank Transaction
|
|
136
|
+
* @param {string} code Code of the bank transaction to link
|
|
137
|
+
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
// verify required parameter 'code' is not null or undefined
|
|
143
|
+
assertParamExists('linkBankTransaction', 'code', code)
|
|
144
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
145
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
|
+
let baseOptions;
|
|
149
|
+
let baseAccessToken;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
baseAccessToken = configuration.accessToken;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
156
|
+
const localVarHeaderParameter = {} as any;
|
|
157
|
+
const localVarQueryParameter = {} as any;
|
|
158
|
+
|
|
159
|
+
// authentication bearer required
|
|
160
|
+
// http bearer authentication required
|
|
161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
|
+
|
|
163
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
164
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions,
|
|
176
|
+
};
|
|
177
|
+
},
|
|
133
178
|
/**
|
|
134
179
|
* 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.
|
|
135
180
|
* @summary List bank transactions
|
|
@@ -197,6 +242,51 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
197
242
|
|
|
198
243
|
|
|
199
244
|
|
|
245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
248
|
+
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Unlinks an already linked bank transaction
|
|
256
|
+
* @summary Unlink Bank Transaction
|
|
257
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
258
|
+
* @param {string} [authorization] Bearer Token
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'code' is not null or undefined
|
|
264
|
+
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
265
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
266
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
269
|
+
let baseOptions;
|
|
270
|
+
let baseAccessToken;
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
baseAccessToken = configuration.accessToken;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
277
|
+
const localVarHeaderParameter = {} as any;
|
|
278
|
+
const localVarQueryParameter = {} as any;
|
|
279
|
+
|
|
280
|
+
// authentication bearer required
|
|
281
|
+
// http bearer authentication required
|
|
282
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
|
+
|
|
284
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
285
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
200
290
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
201
291
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
292
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -241,6 +331,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
241
331
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(authorization, file, options);
|
|
242
332
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
243
333
|
},
|
|
334
|
+
/**
|
|
335
|
+
* Links a bank transaction with an invoice
|
|
336
|
+
* @summary Link Bank Transaction
|
|
337
|
+
* @param {string} code Code of the bank transaction to link
|
|
338
|
+
* @param {string} [authorization] Bearer Token
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
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);
|
|
344
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
|
+
},
|
|
244
346
|
/**
|
|
245
347
|
* 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.
|
|
246
348
|
* @summary List bank transactions
|
|
@@ -259,6 +361,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
259
361
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
260
362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
261
363
|
},
|
|
364
|
+
/**
|
|
365
|
+
* Unlinks an already linked bank transaction
|
|
366
|
+
* @summary Unlink Bank Transaction
|
|
367
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
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);
|
|
374
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
+
},
|
|
262
376
|
}
|
|
263
377
|
};
|
|
264
378
|
|
|
@@ -292,6 +406,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
292
406
|
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
293
407
|
return localVarFp.importBankTransactions(authorization, file, options).then((request) => request(axios, basePath));
|
|
294
408
|
},
|
|
409
|
+
/**
|
|
410
|
+
* Links a bank transaction with an invoice
|
|
411
|
+
* @summary Link Bank Transaction
|
|
412
|
+
* @param {string} code Code of the bank transaction to link
|
|
413
|
+
* @param {string} [authorization] Bearer Token
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
418
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
419
|
+
},
|
|
295
420
|
/**
|
|
296
421
|
* 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.
|
|
297
422
|
* @summary List bank transactions
|
|
@@ -309,6 +434,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
309
434
|
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
|
|
310
435
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
311
436
|
},
|
|
437
|
+
/**
|
|
438
|
+
* Unlinks an already linked bank transaction
|
|
439
|
+
* @summary Unlink Bank Transaction
|
|
440
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
441
|
+
* @param {string} [authorization] Bearer Token
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
446
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
447
|
+
},
|
|
312
448
|
};
|
|
313
449
|
};
|
|
314
450
|
|
|
@@ -361,6 +497,27 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
361
497
|
readonly file?: any
|
|
362
498
|
}
|
|
363
499
|
|
|
500
|
+
/**
|
|
501
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
502
|
+
* @export
|
|
503
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
504
|
+
*/
|
|
505
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
506
|
+
/**
|
|
507
|
+
* Code of the bank transaction to link
|
|
508
|
+
* @type {string}
|
|
509
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
510
|
+
*/
|
|
511
|
+
readonly code: string
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Bearer Token
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
517
|
+
*/
|
|
518
|
+
readonly authorization?: string
|
|
519
|
+
}
|
|
520
|
+
|
|
364
521
|
/**
|
|
365
522
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
366
523
|
* @export
|
|
@@ -424,6 +581,27 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
424
581
|
readonly filters?: any
|
|
425
582
|
}
|
|
426
583
|
|
|
584
|
+
/**
|
|
585
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
586
|
+
* @export
|
|
587
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
588
|
+
*/
|
|
589
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
590
|
+
/**
|
|
591
|
+
* Code of the bank transaction to unlink
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
594
|
+
*/
|
|
595
|
+
readonly code: string
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Bearer Token
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
601
|
+
*/
|
|
602
|
+
readonly authorization?: string
|
|
603
|
+
}
|
|
604
|
+
|
|
427
605
|
/**
|
|
428
606
|
* BankTransactionApi - object-oriented interface
|
|
429
607
|
* @export
|
|
@@ -455,6 +633,18 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
455
633
|
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
456
634
|
}
|
|
457
635
|
|
|
636
|
+
/**
|
|
637
|
+
* Links a bank transaction with an invoice
|
|
638
|
+
* @summary Link Bank Transaction
|
|
639
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
* @memberof BankTransactionApi
|
|
643
|
+
*/
|
|
644
|
+
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
645
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
646
|
+
}
|
|
647
|
+
|
|
458
648
|
/**
|
|
459
649
|
* 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.
|
|
460
650
|
* @summary List bank transactions
|
|
@@ -466,4 +656,16 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
466
656
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
467
657
|
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
468
658
|
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Unlinks an already linked bank transaction
|
|
662
|
+
* @summary Unlink Bank Transaction
|
|
663
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
* @memberof BankTransactionApi
|
|
667
|
+
*/
|
|
668
|
+
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
669
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
+
}
|
|
469
671
|
}
|
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
|