@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -38,6 +38,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
40
40
|
importBankTransactions: (authorization?: string, file?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
* Links a bank transaction with an invoice
|
|
43
|
+
* @summary Link Bank Transaction
|
|
44
|
+
* @param {string} code Code of the bank transaction to link
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
50
|
/**
|
|
42
51
|
* 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.
|
|
43
52
|
* @summary List bank transactions
|
|
@@ -53,6 +62,15 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
53
62
|
* @throws {RequiredError}
|
|
54
63
|
*/
|
|
55
64
|
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
/**
|
|
66
|
+
* Unlinks an already linked bank transaction
|
|
67
|
+
* @summary Unlink Bank Transaction
|
|
68
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
69
|
+
* @param {string} [authorization] Bearer Token
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
74
|
};
|
|
57
75
|
/**
|
|
58
76
|
* BankTransactionApi - functional programming interface
|
|
@@ -78,6 +96,15 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
78
96
|
* @throws {RequiredError}
|
|
79
97
|
*/
|
|
80
98
|
importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
99
|
+
/**
|
|
100
|
+
* Links a bank transaction with an invoice
|
|
101
|
+
* @summary Link Bank Transaction
|
|
102
|
+
* @param {string} code Code of the bank transaction to link
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
81
108
|
/**
|
|
82
109
|
* 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.
|
|
83
110
|
* @summary List bank transactions
|
|
@@ -93,6 +120,15 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
93
120
|
* @throws {RequiredError}
|
|
94
121
|
*/
|
|
95
122
|
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
123
|
+
/**
|
|
124
|
+
* Unlinks an already linked bank transaction
|
|
125
|
+
* @summary Unlink Bank Transaction
|
|
126
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
127
|
+
* @param {string} [authorization] Bearer Token
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
96
132
|
};
|
|
97
133
|
/**
|
|
98
134
|
* BankTransactionApi - factory interface
|
|
@@ -118,6 +154,15 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
118
154
|
* @throws {RequiredError}
|
|
119
155
|
*/
|
|
120
156
|
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
157
|
+
/**
|
|
158
|
+
* Links a bank transaction with an invoice
|
|
159
|
+
* @summary Link Bank Transaction
|
|
160
|
+
* @param {string} code Code of the bank transaction to link
|
|
161
|
+
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
121
166
|
/**
|
|
122
167
|
* 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.
|
|
123
168
|
* @summary List bank transactions
|
|
@@ -133,6 +178,15 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
133
178
|
* @throws {RequiredError}
|
|
134
179
|
*/
|
|
135
180
|
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Unlinks an already linked bank transaction
|
|
183
|
+
* @summary Unlink Bank Transaction
|
|
184
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
185
|
+
* @param {string} [authorization] Bearer Token
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
136
190
|
};
|
|
137
191
|
/**
|
|
138
192
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -178,6 +232,25 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
178
232
|
*/
|
|
179
233
|
readonly file?: any;
|
|
180
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
237
|
+
* @export
|
|
238
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
239
|
+
*/
|
|
240
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
241
|
+
/**
|
|
242
|
+
* Code of the bank transaction to link
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
245
|
+
*/
|
|
246
|
+
readonly code: string;
|
|
247
|
+
/**
|
|
248
|
+
* Bearer Token
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
251
|
+
*/
|
|
252
|
+
readonly authorization?: string;
|
|
253
|
+
}
|
|
181
254
|
/**
|
|
182
255
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
183
256
|
* @export
|
|
@@ -233,6 +306,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
233
306
|
*/
|
|
234
307
|
readonly filters?: any;
|
|
235
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
315
|
+
/**
|
|
316
|
+
* Code of the bank transaction to unlink
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
319
|
+
*/
|
|
320
|
+
readonly code: string;
|
|
321
|
+
/**
|
|
322
|
+
* Bearer Token
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
325
|
+
*/
|
|
326
|
+
readonly authorization?: string;
|
|
327
|
+
}
|
|
236
328
|
/**
|
|
237
329
|
* BankTransactionApi - object-oriented interface
|
|
238
330
|
* @export
|
|
@@ -258,6 +350,15 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
258
350
|
* @memberof BankTransactionApi
|
|
259
351
|
*/
|
|
260
352
|
importBankTransactions(requestParameters?: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
353
|
+
/**
|
|
354
|
+
* Links a bank transaction with an invoice
|
|
355
|
+
* @summary Link Bank Transaction
|
|
356
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
* @memberof BankTransactionApi
|
|
360
|
+
*/
|
|
361
|
+
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
261
362
|
/**
|
|
262
363
|
* 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.
|
|
263
364
|
* @summary List bank transactions
|
|
@@ -267,4 +368,13 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
267
368
|
* @memberof BankTransactionApi
|
|
268
369
|
*/
|
|
269
370
|
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
371
|
+
/**
|
|
372
|
+
* Unlinks an already linked bank transaction
|
|
373
|
+
* @summary Unlink Bank Transaction
|
|
374
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof BankTransactionApi
|
|
378
|
+
*/
|
|
379
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
270
380
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -194,6 +194,54 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* Links a bank transaction with an invoice
|
|
199
|
+
* @summary Link Bank Transaction
|
|
200
|
+
* @param {string} code Code of the bank transaction to link
|
|
201
|
+
* @param {string} [authorization] Bearer Token
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0:
|
|
212
|
+
// verify required parameter 'code' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
214
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
|
|
215
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
216
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
baseAccessToken = configuration.accessToken;
|
|
220
|
+
}
|
|
221
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
222
|
+
localVarHeaderParameter = {};
|
|
223
|
+
localVarQueryParameter = {};
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
227
|
+
case 1:
|
|
228
|
+
// authentication bearer required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
_a.sent();
|
|
231
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
|
+
}
|
|
234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
+
return [2 /*return*/, {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
}];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
},
|
|
197
245
|
/**
|
|
198
246
|
* 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.
|
|
199
247
|
* @summary List bank transactions
|
|
@@ -266,6 +314,54 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
266
314
|
});
|
|
267
315
|
});
|
|
268
316
|
},
|
|
317
|
+
/**
|
|
318
|
+
* Unlinks an already linked bank transaction
|
|
319
|
+
* @summary Unlink Bank Transaction
|
|
320
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
321
|
+
* @param {string} [authorization] Bearer Token
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
// verify required parameter 'code' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
334
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
335
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
baseAccessToken = configuration.accessToken;
|
|
340
|
+
}
|
|
341
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
342
|
+
localVarHeaderParameter = {};
|
|
343
|
+
localVarQueryParameter = {};
|
|
344
|
+
// authentication bearer required
|
|
345
|
+
// http bearer authentication required
|
|
346
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
347
|
+
case 1:
|
|
348
|
+
// authentication bearer required
|
|
349
|
+
// http bearer authentication required
|
|
350
|
+
_a.sent();
|
|
351
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
352
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
|
+
}
|
|
354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return [2 /*return*/, {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
}];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
},
|
|
269
365
|
};
|
|
270
366
|
};
|
|
271
367
|
exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreator;
|
|
@@ -319,6 +415,27 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
319
415
|
});
|
|
320
416
|
});
|
|
321
417
|
},
|
|
418
|
+
/**
|
|
419
|
+
* Links a bank transaction with an invoice
|
|
420
|
+
* @summary Link Bank Transaction
|
|
421
|
+
* @param {string} code Code of the bank transaction to link
|
|
422
|
+
* @param {string} [authorization] Bearer Token
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
428
|
+
var localVarAxiosArgs;
|
|
429
|
+
return __generator(this, function (_a) {
|
|
430
|
+
switch (_a.label) {
|
|
431
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
|
|
432
|
+
case 1:
|
|
433
|
+
localVarAxiosArgs = _a.sent();
|
|
434
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
},
|
|
322
439
|
/**
|
|
323
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.
|
|
324
441
|
* @summary List bank transactions
|
|
@@ -346,6 +463,27 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
346
463
|
});
|
|
347
464
|
});
|
|
348
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* Unlinks an already linked bank transaction
|
|
468
|
+
* @summary Unlink Bank Transaction
|
|
469
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
470
|
+
* @param {string} [authorization] Bearer Token
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
+
var localVarAxiosArgs;
|
|
477
|
+
return __generator(this, function (_a) {
|
|
478
|
+
switch (_a.label) {
|
|
479
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
480
|
+
case 1:
|
|
481
|
+
localVarAxiosArgs = _a.sent();
|
|
482
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
},
|
|
349
487
|
};
|
|
350
488
|
};
|
|
351
489
|
exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
@@ -379,6 +517,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
379
517
|
importBankTransactions: function (authorization, file, options) {
|
|
380
518
|
return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
|
|
381
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
* Links a bank transaction with an invoice
|
|
522
|
+
* @summary Link Bank Transaction
|
|
523
|
+
* @param {string} code Code of the bank transaction to link
|
|
524
|
+
* @param {string} [authorization] Bearer Token
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
linkBankTransaction: function (code, authorization, options) {
|
|
529
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
530
|
+
},
|
|
382
531
|
/**
|
|
383
532
|
* 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.
|
|
384
533
|
* @summary List bank transactions
|
|
@@ -396,6 +545,17 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
396
545
|
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
397
546
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
398
547
|
},
|
|
548
|
+
/**
|
|
549
|
+
* Unlinks an already linked bank transaction
|
|
550
|
+
* @summary Unlink Bank Transaction
|
|
551
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
552
|
+
* @param {string} [authorization] Bearer Token
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
557
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
|
+
},
|
|
399
559
|
};
|
|
400
560
|
};
|
|
401
561
|
exports.BankTransactionApiFactory = BankTransactionApiFactory;
|
|
@@ -435,6 +595,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
435
595
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
436
596
|
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
437
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* Links a bank transaction with an invoice
|
|
600
|
+
* @summary Link Bank Transaction
|
|
601
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof BankTransactionApi
|
|
605
|
+
*/
|
|
606
|
+
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
607
|
+
var _this = this;
|
|
608
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
|
+
};
|
|
438
610
|
/**
|
|
439
611
|
* 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.
|
|
440
612
|
* @summary List bank transactions
|
|
@@ -448,6 +620,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
448
620
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
449
621
|
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
450
622
|
};
|
|
623
|
+
/**
|
|
624
|
+
* Unlinks an already linked bank transaction
|
|
625
|
+
* @summary Unlink Bank Transaction
|
|
626
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
* @memberof BankTransactionApi
|
|
630
|
+
*/
|
|
631
|
+
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
632
|
+
var _this = this;
|
|
633
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
|
+
};
|
|
451
635
|
return BankTransactionApi;
|
|
452
636
|
}(base_1.BaseAPI));
|
|
453
637
|
exports.BankTransactionApi = BankTransactionApi;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/api/default-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/api/payments-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|