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