@emilgroup/payment-sdk-node 1.8.2 → 1.12.1
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 +17 -2
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +4 -4
- package/api/bank-transaction-api.ts +569 -0
- package/api/payment-methods-api.ts +4 -4
- package/api/payment-reminders-api.ts +12 -10
- package/api/payments-api.ts +4 -4
- package/api/refunds-api.ts +464 -0
- package/api/tenant-bank-account-api.ts +655 -0
- package/api.ts +6 -2
- package/dist/api/bank-accounts-api.d.ts +4 -4
- package/dist/api/bank-accounts-api.js +3 -3
- package/dist/api/bank-transaction-api.d.ts +318 -0
- package/dist/api/bank-transaction-api.js +543 -0
- package/dist/api/payment-methods-api.d.ts +4 -4
- package/dist/api/payment-methods-api.js +3 -3
- package/dist/api/payment-reminders-api.d.ts +12 -11
- package/dist/api/payment-reminders-api.js +7 -7
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +3 -3
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +445 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +620 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/models/bank-transaction-response-class.d.ts +122 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +2 -0
- package/dist/models/create-payment-reminder-request-dto.js +3 -1
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- 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 +42 -0
- package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +14 -1
- package/dist/models/index.js +14 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
- package/dist/models/link-bank-transaction-request-dto.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-method-class.d.ts +8 -2
- package/dist/models/payment-reminder-class.d.ts +4 -0
- package/dist/models/payment-reminder-class.js +6 -2
- 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 +66 -0
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +3 -1
- package/models/create-payment-request-dto.ts +3 -3
- 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 +48 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +31 -0
- package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
- package/models/get-tenant-bank-account-response-class.ts +31 -0
- package/models/index.ts +14 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-bank-transaction-request-dto.ts +36 -0
- package/models/list-bank-transactions-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class.ts +1 -1
- package/models/payment-method-class.ts +8 -2
- package/models/payment-reminder-class.ts +6 -2
- package/models/refund-class.ts +114 -0
- package/models/tenant-bank-account-response-class.ts +72 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
- package/package.json +1 -1
- package/api/payment-service-providers-api.ts +0 -165
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -224
- /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { LinkBankTransactionRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListBankTransactionsResponseClass } from '../models';
|
|
29
|
+
// URLSearchParams not necessarily used
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { URL, URLSearchParams } from 'url';
|
|
32
|
+
const FormData = require('form-data');
|
|
33
|
+
/**
|
|
34
|
+
* BankTransactionApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param {string} code
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
getBankTransaction: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
// verify required parameter 'code' is not null or undefined
|
|
49
|
+
assertParamExists('getBankTransaction', 'code', code)
|
|
50
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}`
|
|
51
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
let baseAccessToken;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
baseAccessToken = configuration.accessToken;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
// authentication bearer required
|
|
66
|
+
// http bearer authentication required
|
|
67
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
|
+
|
|
69
|
+
if (expand !== undefined) {
|
|
70
|
+
localVarQueryParameter['expand'] = expand;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Import bank transactions from a swift MT940 file
|
|
90
|
+
* @summary Create the Bank Transactions
|
|
91
|
+
* @param {string} [authorization] Bearer Token
|
|
92
|
+
* @param {any} [file]
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
importBankTransactions: async (authorization?: string, file?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/import`;
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
let baseAccessToken;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
baseAccessToken = configuration.accessToken;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
108
|
+
const localVarHeaderParameter = {} as any;
|
|
109
|
+
const localVarQueryParameter = {} as any;
|
|
110
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
111
|
+
|
|
112
|
+
// authentication bearer required
|
|
113
|
+
// http bearer authentication required
|
|
114
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
|
+
|
|
116
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
if (file !== undefined) {
|
|
122
|
+
localVarFormParams.append('file', file as any);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
url: toPathString(localVarUrlObj),
|
|
135
|
+
options: localVarRequestOptions,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Links a bank transaction with an invoice
|
|
140
|
+
* @summary Link Bank Transaction
|
|
141
|
+
* @param {string} code Code of the bank transcation to link
|
|
142
|
+
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
143
|
+
* @param {string} [authorization] Bearer Token
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
linkBankTransaction: async (code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'code' is not null or undefined
|
|
149
|
+
assertParamExists('linkBankTransaction', 'code', code)
|
|
150
|
+
// verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
|
|
151
|
+
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto)
|
|
152
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
153
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
let baseAccessToken;
|
|
158
|
+
if (configuration) {
|
|
159
|
+
baseOptions = configuration.baseOptions;
|
|
160
|
+
baseAccessToken = configuration.accessToken;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
164
|
+
const localVarHeaderParameter = {} as any;
|
|
165
|
+
const localVarQueryParameter = {} as any;
|
|
166
|
+
|
|
167
|
+
// authentication bearer required
|
|
168
|
+
// http bearer authentication required
|
|
169
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
|
+
|
|
171
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
172
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
178
|
+
|
|
179
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
182
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDto, localVarRequestOptions, configuration)
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
url: toPathString(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param {string} [authorization] Bearer Token
|
|
192
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
194
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
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.
|
|
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.
|
|
197
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
205
|
+
let baseOptions;
|
|
206
|
+
let baseAccessToken;
|
|
207
|
+
if (configuration) {
|
|
208
|
+
baseOptions = configuration.baseOptions;
|
|
209
|
+
baseAccessToken = configuration.accessToken;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
213
|
+
const localVarHeaderParameter = {} as any;
|
|
214
|
+
const localVarQueryParameter = {} as any;
|
|
215
|
+
|
|
216
|
+
// authentication bearer required
|
|
217
|
+
// http bearer authentication required
|
|
218
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
219
|
+
|
|
220
|
+
if (pageSize !== undefined) {
|
|
221
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (pageToken !== undefined) {
|
|
225
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (filter !== undefined) {
|
|
229
|
+
localVarQueryParameter['filter'] = filter;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (search !== undefined) {
|
|
233
|
+
localVarQueryParameter['search'] = search;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (order !== undefined) {
|
|
237
|
+
localVarQueryParameter['order'] = order;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (expand !== undefined) {
|
|
241
|
+
localVarQueryParameter['expand'] = expand;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
245
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
253
|
+
|
|
254
|
+
return {
|
|
255
|
+
url: toPathString(localVarUrlObj),
|
|
256
|
+
options: localVarRequestOptions,
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* BankTransactionApi - functional programming interface
|
|
264
|
+
* @export
|
|
265
|
+
*/
|
|
266
|
+
export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
267
|
+
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
268
|
+
return {
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @param {string} code
|
|
272
|
+
* @param {string} [authorization] Bearer Token
|
|
273
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Import bank transactions from a swift MT940 file
|
|
283
|
+
* @summary Create the Bank Transactions
|
|
284
|
+
* @param {string} [authorization] Bearer Token
|
|
285
|
+
* @param {any} [file]
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
async importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(authorization, file, options);
|
|
291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* Links a bank transaction with an invoice
|
|
295
|
+
* @summary Link Bank Transaction
|
|
296
|
+
* @param {string} code Code of the bank transcation to link
|
|
297
|
+
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
298
|
+
* @param {string} [authorization] Bearer Token
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options);
|
|
304
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @param {string} [authorization] Bearer Token
|
|
309
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
|
+
* @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.
|
|
311
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
312
|
+
* @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.
|
|
313
|
+
* @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.
|
|
314
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
320
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
|
+
},
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* BankTransactionApi - factory interface
|
|
327
|
+
* @export
|
|
328
|
+
*/
|
|
329
|
+
export const BankTransactionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
330
|
+
const localVarFp = BankTransactionApiFp(configuration)
|
|
331
|
+
return {
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @param {string} code
|
|
335
|
+
* @param {string} [authorization] Bearer Token
|
|
336
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
341
|
+
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Import bank transactions from a swift MT940 file
|
|
345
|
+
* @summary Create the Bank Transactions
|
|
346
|
+
* @param {string} [authorization] Bearer Token
|
|
347
|
+
* @param {any} [file]
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
352
|
+
return localVarFp.importBankTransactions(authorization, file, options).then((request) => request(axios, basePath));
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Links a bank transaction with an invoice
|
|
356
|
+
* @summary Link Bank Transaction
|
|
357
|
+
* @param {string} code Code of the bank transcation to link
|
|
358
|
+
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
359
|
+
* @param {string} [authorization] Bearer Token
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
364
|
+
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
369
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
370
|
+
* @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.
|
|
371
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
372
|
+
* @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.
|
|
373
|
+
* @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.
|
|
374
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
379
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
380
|
+
},
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
386
|
+
* @export
|
|
387
|
+
* @interface BankTransactionApiGetBankTransactionRequest
|
|
388
|
+
*/
|
|
389
|
+
export interface BankTransactionApiGetBankTransactionRequest {
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
394
|
+
*/
|
|
395
|
+
readonly code: string
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Bearer Token
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
401
|
+
*/
|
|
402
|
+
readonly authorization?: string
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Expand the response with additional entities
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
408
|
+
*/
|
|
409
|
+
readonly expand?: string
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Request parameters for importBankTransactions operation in BankTransactionApi.
|
|
414
|
+
* @export
|
|
415
|
+
* @interface BankTransactionApiImportBankTransactionsRequest
|
|
416
|
+
*/
|
|
417
|
+
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
418
|
+
/**
|
|
419
|
+
* Bearer Token
|
|
420
|
+
* @type {string}
|
|
421
|
+
* @memberof BankTransactionApiImportBankTransactions
|
|
422
|
+
*/
|
|
423
|
+
readonly authorization?: string
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {any}
|
|
428
|
+
* @memberof BankTransactionApiImportBankTransactions
|
|
429
|
+
*/
|
|
430
|
+
readonly file?: any
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
435
|
+
* @export
|
|
436
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
437
|
+
*/
|
|
438
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
439
|
+
/**
|
|
440
|
+
* Code of the bank transcation to link
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
443
|
+
*/
|
|
444
|
+
readonly code: string
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {LinkBankTransactionRequestDto}
|
|
449
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
450
|
+
*/
|
|
451
|
+
readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Bearer Token
|
|
455
|
+
* @type {string}
|
|
456
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
457
|
+
*/
|
|
458
|
+
readonly authorization?: string
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
463
|
+
* @export
|
|
464
|
+
* @interface BankTransactionApiListBankTransactionsRequest
|
|
465
|
+
*/
|
|
466
|
+
export interface BankTransactionApiListBankTransactionsRequest {
|
|
467
|
+
/**
|
|
468
|
+
* Bearer Token
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
471
|
+
*/
|
|
472
|
+
readonly authorization?: string
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
476
|
+
* @type {any}
|
|
477
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
478
|
+
*/
|
|
479
|
+
readonly pageSize?: any
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* 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.
|
|
483
|
+
* @type {any}
|
|
484
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
485
|
+
*/
|
|
486
|
+
readonly pageToken?: any
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
490
|
+
* @type {any}
|
|
491
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
492
|
+
*/
|
|
493
|
+
readonly filter?: any
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
497
|
+
* @type {any}
|
|
498
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
499
|
+
*/
|
|
500
|
+
readonly search?: any
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* 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.
|
|
504
|
+
* @type {any}
|
|
505
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
506
|
+
*/
|
|
507
|
+
readonly order?: any
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Expand the response with additional entities
|
|
511
|
+
* @type {string}
|
|
512
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
513
|
+
*/
|
|
514
|
+
readonly expand?: string
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* BankTransactionApi - object-oriented interface
|
|
519
|
+
* @export
|
|
520
|
+
* @class BankTransactionApi
|
|
521
|
+
* @extends {BaseAPI}
|
|
522
|
+
*/
|
|
523
|
+
export class BankTransactionApi extends BaseAPI {
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
* @memberof BankTransactionApi
|
|
530
|
+
*/
|
|
531
|
+
public getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
532
|
+
return BankTransactionApiFp(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Import bank transactions from a swift MT940 file
|
|
537
|
+
* @summary Create the Bank Transactions
|
|
538
|
+
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
* @memberof BankTransactionApi
|
|
542
|
+
*/
|
|
543
|
+
public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
544
|
+
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Links a bank transaction with an invoice
|
|
549
|
+
* @summary Link Bank Transaction
|
|
550
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
* @memberof BankTransactionApi
|
|
554
|
+
*/
|
|
555
|
+
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
556
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
* @memberof BankTransactionApi
|
|
565
|
+
*/
|
|
566
|
+
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
567
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
568
|
+
}
|
|
569
|
+
}
|
|
@@ -195,7 +195,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
195
195
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
196
196
|
* @summary List payment methods
|
|
197
197
|
* @param {string} [authorization] Bearer Token
|
|
198
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
198
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
199
199
|
* @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.
|
|
200
200
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
201
201
|
* @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.
|
|
@@ -314,7 +314,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
314
314
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
315
315
|
* @summary List payment methods
|
|
316
316
|
* @param {string} [authorization] Bearer Token
|
|
317
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
317
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
318
318
|
* @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.
|
|
319
319
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
320
320
|
* @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.
|
|
@@ -376,7 +376,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
376
376
|
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
377
377
|
* @summary List payment methods
|
|
378
378
|
* @param {string} [authorization] Bearer Token
|
|
379
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
379
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
380
380
|
* @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.
|
|
381
381
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
382
382
|
* @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.
|
|
@@ -482,7 +482,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
482
482
|
readonly authorization?: string
|
|
483
483
|
|
|
484
484
|
/**
|
|
485
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
485
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
486
486
|
* @type {any}
|
|
487
487
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
488
488
|
*/
|