@emilgroup/payment-sdk-node 1.21.1-beta.8 → 1.21.1-beta.80
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 +20 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +695 -0
- package/api/bank-transaction-api.ts +177 -63
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +188 -21
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +2 -0
- package/base.ts +46 -4
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +646 -0
- package/dist/api/bank-transaction-api.d.ts +110 -46
- package/dist/api/bank-transaction-api.js +141 -44
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +112 -16
- package/dist/api/payments-api.js +141 -18
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +42 -3
- package/dist/models/bank-order-class.d.ts +115 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +30 -11
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +47 -14
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +54 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +48 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +22 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/index.d.ts +19 -1
- package/dist/models/index.js +19 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
- package/dist/models/invoice-match-suggestion-class.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
- package/dist/models/suggestion-generation-progress-class.js +22 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +33 -2
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +62 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +121 -0
- package/models/bank-transaction-class-without-expand-properties.ts +33 -11
- package/models/bank-transaction-class.ts +50 -14
- package/models/bank-transaction-invoice-class.ts +60 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +54 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-psp-payment-method-request-dto.ts +23 -2
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/financial-account-class.ts +120 -0
- package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/index.ts +19 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/invoice-match-suggestion-class.ts +66 -0
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/refund-class.ts +7 -1
- package/models/suggestion-generation-progress-class.ts +52 -0
- package/models/unlinked-bank-transaction-response-class.ts +36 -2
- package/models/update-bank-order-request-dto.ts +71 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -0
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
|
@@ -96,12 +96,60 @@ var FormData = require('form-data');
|
|
|
96
96
|
var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
101
|
+
* @summary Invoice Match Suggestion
|
|
102
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
// verify required parameter 'code' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('generateInvoiceMatchSuggestion', 'code', code);
|
|
116
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion"
|
|
117
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
118
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
baseAccessToken = configuration.accessToken;
|
|
122
|
+
}
|
|
123
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
124
|
+
localVarHeaderParameter = {};
|
|
125
|
+
localVarQueryParameter = {};
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
129
|
+
case 1:
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
_a.sent();
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
|
+
}
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
}];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
},
|
|
99
147
|
/**
|
|
100
148
|
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
101
149
|
* @summary Retrieve the bank transaction
|
|
102
150
|
* @param {string} code
|
|
103
151
|
* @param {string} [authorization] Bearer Token
|
|
104
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
152
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
105
153
|
* @param {*} [options] Override http request option.
|
|
106
154
|
* @throws {RequiredError}
|
|
107
155
|
*/
|
|
@@ -149,9 +197,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
149
197
|
});
|
|
150
198
|
},
|
|
151
199
|
/**
|
|
152
|
-
* This will import bank transactions from a
|
|
200
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
153
201
|
* @summary Create the bank transactions
|
|
154
|
-
* @param {any} file
|
|
202
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
155
203
|
* @param {string} [authorization] Bearer Token
|
|
156
204
|
* @param {*} [options] Override http request option.
|
|
157
205
|
* @throws {RequiredError}
|
|
@@ -258,15 +306,17 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
258
306
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
259
307
|
* @summary List bank transactions
|
|
260
308
|
* @param {string} [authorization] Bearer Token
|
|
261
|
-
* @param {
|
|
262
|
-
* @param {string} [
|
|
309
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
|
+
* @param {string} [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 {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
263
312
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
264
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt,
|
|
265
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
313
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
314
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
315
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
266
316
|
* @param {*} [options] Override http request option.
|
|
267
317
|
* @throws {RequiredError}
|
|
268
318
|
*/
|
|
269
|
-
listBankTransactions: function (authorization,
|
|
319
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
270
320
|
if (options === void 0) { options = {}; }
|
|
271
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
272
322
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -289,12 +339,15 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
289
339
|
// authentication bearer required
|
|
290
340
|
// http bearer authentication required
|
|
291
341
|
_a.sent();
|
|
342
|
+
if (pageSize !== undefined) {
|
|
343
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
344
|
+
}
|
|
345
|
+
if (pageToken !== undefined) {
|
|
346
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
347
|
+
}
|
|
292
348
|
if (filter !== undefined) {
|
|
293
349
|
localVarQueryParameter['filter'] = filter;
|
|
294
350
|
}
|
|
295
|
-
if (filters !== undefined) {
|
|
296
|
-
localVarQueryParameter['filters'] = filters;
|
|
297
|
-
}
|
|
298
351
|
if (search !== undefined) {
|
|
299
352
|
localVarQueryParameter['search'] = search;
|
|
300
353
|
}
|
|
@@ -304,6 +357,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
304
357
|
if (expand !== undefined) {
|
|
305
358
|
localVarQueryParameter['expand'] = expand;
|
|
306
359
|
}
|
|
360
|
+
if (filters !== undefined) {
|
|
361
|
+
localVarQueryParameter['filters'] = filters;
|
|
362
|
+
}
|
|
307
363
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
308
364
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
309
365
|
}
|
|
@@ -322,12 +378,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
322
378
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
323
379
|
* @summary Unlink bank transaction
|
|
324
380
|
* @param {string} code Code of the bank transaction to unlink
|
|
325
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
326
381
|
* @param {string} [authorization] Bearer Token
|
|
327
382
|
* @param {*} [options] Override http request option.
|
|
328
383
|
* @throws {RequiredError}
|
|
329
384
|
*/
|
|
330
|
-
unlinkBankTransaction: function (code,
|
|
385
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
331
386
|
if (options === void 0) { options = {}; }
|
|
332
387
|
return __awaiter(_this, void 0, void 0, function () {
|
|
333
388
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -336,8 +391,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
336
391
|
case 0:
|
|
337
392
|
// verify required parameter 'code' is not null or undefined
|
|
338
393
|
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
339
|
-
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
340
|
-
(0, common_1.assertParamExists)('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest);
|
|
341
394
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
342
395
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
343
396
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -358,11 +411,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
358
411
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
359
412
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
360
413
|
}
|
|
361
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
362
414
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
415
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
416
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
|
|
366
417
|
return [2 /*return*/, {
|
|
367
418
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
368
419
|
options: localVarRequestOptions,
|
|
@@ -381,12 +432,33 @@ exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreato
|
|
|
381
432
|
var BankTransactionApiFp = function (configuration) {
|
|
382
433
|
var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
|
|
383
434
|
return {
|
|
435
|
+
/**
|
|
436
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
437
|
+
* @summary Invoice Match Suggestion
|
|
438
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
439
|
+
* @param {string} [authorization] Bearer Token
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
445
|
+
var localVarAxiosArgs;
|
|
446
|
+
return __generator(this, function (_a) {
|
|
447
|
+
switch (_a.label) {
|
|
448
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options)];
|
|
449
|
+
case 1:
|
|
450
|
+
localVarAxiosArgs = _a.sent();
|
|
451
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
},
|
|
384
456
|
/**
|
|
385
457
|
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
386
458
|
* @summary Retrieve the bank transaction
|
|
387
459
|
* @param {string} code
|
|
388
460
|
* @param {string} [authorization] Bearer Token
|
|
389
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
461
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
390
462
|
* @param {*} [options] Override http request option.
|
|
391
463
|
* @throws {RequiredError}
|
|
392
464
|
*/
|
|
@@ -404,9 +476,9 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
404
476
|
});
|
|
405
477
|
},
|
|
406
478
|
/**
|
|
407
|
-
* This will import bank transactions from a
|
|
479
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
408
480
|
* @summary Create the bank transactions
|
|
409
|
-
* @param {any} file
|
|
481
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
410
482
|
* @param {string} [authorization] Bearer Token
|
|
411
483
|
* @param {*} [options] Override http request option.
|
|
412
484
|
* @throws {RequiredError}
|
|
@@ -450,20 +522,22 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
450
522
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
451
523
|
* @summary List bank transactions
|
|
452
524
|
* @param {string} [authorization] Bearer Token
|
|
453
|
-
* @param {
|
|
454
|
-
* @param {string} [
|
|
525
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
526
|
+
* @param {string} [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.
|
|
527
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
455
528
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
456
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt,
|
|
457
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
529
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
530
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
531
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
458
532
|
* @param {*} [options] Override http request option.
|
|
459
533
|
* @throws {RequiredError}
|
|
460
534
|
*/
|
|
461
|
-
listBankTransactions: function (authorization,
|
|
535
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
462
536
|
return __awaiter(this, void 0, void 0, function () {
|
|
463
537
|
var localVarAxiosArgs;
|
|
464
538
|
return __generator(this, function (_a) {
|
|
465
539
|
switch (_a.label) {
|
|
466
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
540
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
467
541
|
case 1:
|
|
468
542
|
localVarAxiosArgs = _a.sent();
|
|
469
543
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -475,17 +549,16 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
475
549
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
476
550
|
* @summary Unlink bank transaction
|
|
477
551
|
* @param {string} code Code of the bank transaction to unlink
|
|
478
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
479
552
|
* @param {string} [authorization] Bearer Token
|
|
480
553
|
* @param {*} [options] Override http request option.
|
|
481
554
|
* @throws {RequiredError}
|
|
482
555
|
*/
|
|
483
|
-
unlinkBankTransaction: function (code,
|
|
556
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
484
557
|
return __awaiter(this, void 0, void 0, function () {
|
|
485
558
|
var localVarAxiosArgs;
|
|
486
559
|
return __generator(this, function (_a) {
|
|
487
560
|
switch (_a.label) {
|
|
488
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code,
|
|
561
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
489
562
|
case 1:
|
|
490
563
|
localVarAxiosArgs = _a.sent();
|
|
491
564
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -503,12 +576,23 @@ exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
|
503
576
|
var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
504
577
|
var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
|
|
505
578
|
return {
|
|
579
|
+
/**
|
|
580
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
581
|
+
* @summary Invoice Match Suggestion
|
|
582
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
583
|
+
* @param {string} [authorization] Bearer Token
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
588
|
+
return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
589
|
+
},
|
|
506
590
|
/**
|
|
507
591
|
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
508
592
|
* @summary Retrieve the bank transaction
|
|
509
593
|
* @param {string} code
|
|
510
594
|
* @param {string} [authorization] Bearer Token
|
|
511
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
595
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
512
596
|
* @param {*} [options] Override http request option.
|
|
513
597
|
* @throws {RequiredError}
|
|
514
598
|
*/
|
|
@@ -516,9 +600,9 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
516
600
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
517
601
|
},
|
|
518
602
|
/**
|
|
519
|
-
* This will import bank transactions from a
|
|
603
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
520
604
|
* @summary Create the bank transactions
|
|
521
|
-
* @param {any} file
|
|
605
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
522
606
|
* @param {string} [authorization] Bearer Token
|
|
523
607
|
* @param {*} [options] Override http request option.
|
|
524
608
|
* @throws {RequiredError}
|
|
@@ -542,28 +626,29 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
542
626
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
543
627
|
* @summary List bank transactions
|
|
544
628
|
* @param {string} [authorization] Bearer Token
|
|
545
|
-
* @param {
|
|
546
|
-
* @param {string} [
|
|
629
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
630
|
+
* @param {string} [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.
|
|
631
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
547
632
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
548
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt,
|
|
549
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction<i>
|
|
633
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
634
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
635
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
550
636
|
* @param {*} [options] Override http request option.
|
|
551
637
|
* @throws {RequiredError}
|
|
552
638
|
*/
|
|
553
|
-
listBankTransactions: function (authorization,
|
|
554
|
-
return localVarFp.listBankTransactions(authorization,
|
|
639
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
640
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
555
641
|
},
|
|
556
642
|
/**
|
|
557
643
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
558
644
|
* @summary Unlink bank transaction
|
|
559
645
|
* @param {string} code Code of the bank transaction to unlink
|
|
560
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
561
646
|
* @param {string} [authorization] Bearer Token
|
|
562
647
|
* @param {*} [options] Override http request option.
|
|
563
648
|
* @throws {RequiredError}
|
|
564
649
|
*/
|
|
565
|
-
unlinkBankTransaction: function (code,
|
|
566
|
-
return localVarFp.unlinkBankTransaction(code,
|
|
650
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
651
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
567
652
|
},
|
|
568
653
|
};
|
|
569
654
|
};
|
|
@@ -579,6 +664,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
579
664
|
function BankTransactionApi() {
|
|
580
665
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
581
666
|
}
|
|
667
|
+
/**
|
|
668
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
669
|
+
* @summary Invoice Match Suggestion
|
|
670
|
+
* @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
* @memberof BankTransactionApi
|
|
674
|
+
*/
|
|
675
|
+
BankTransactionApi.prototype.generateInvoiceMatchSuggestion = function (requestParameters, options) {
|
|
676
|
+
var _this = this;
|
|
677
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
678
|
+
};
|
|
582
679
|
/**
|
|
583
680
|
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
584
681
|
* @summary Retrieve the bank transaction
|
|
@@ -592,7 +689,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
592
689
|
return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
593
690
|
};
|
|
594
691
|
/**
|
|
595
|
-
* This will import bank transactions from a
|
|
692
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
596
693
|
* @summary Create the bank transactions
|
|
597
694
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
598
695
|
* @param {*} [options] Override http request option.
|
|
@@ -626,7 +723,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
626
723
|
BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
|
|
627
724
|
var _this = this;
|
|
628
725
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
629
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
726
|
+
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); });
|
|
630
727
|
};
|
|
631
728
|
/**
|
|
632
729
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
@@ -638,7 +735,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
638
735
|
*/
|
|
639
736
|
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
640
737
|
var _this = this;
|
|
641
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.
|
|
738
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
642
739
|
};
|
|
643
740
|
return BankTransactionApi;
|
|
644
741
|
}(base_1.BaseAPI));
|
|
@@ -43,14 +43,17 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
|
|
|
43
43
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
44
44
|
* @summary List payment methods
|
|
45
45
|
* @param {string} [authorization] Bearer Token
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {string} [
|
|
46
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
|
+
* @param {string} [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.
|
|
48
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
49
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
48
50
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
49
51
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
52
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
50
53
|
* @param {*} [options] Override http request option.
|
|
51
54
|
* @throws {RequiredError}
|
|
52
55
|
*/
|
|
53
|
-
listPaymentMethods: (authorization?: string, filter?: string,
|
|
56
|
+
listPaymentMethods: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
57
|
};
|
|
55
58
|
/**
|
|
56
59
|
* PaymentMethodsApi - functional programming interface
|
|
@@ -79,14 +82,17 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
|
|
|
79
82
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
80
83
|
* @summary List payment methods
|
|
81
84
|
* @param {string} [authorization] Bearer Token
|
|
82
|
-
* @param {
|
|
83
|
-
* @param {string} [
|
|
85
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
86
|
+
* @param {string} [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.
|
|
87
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
88
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
84
89
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
85
90
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
91
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
86
92
|
* @param {*} [options] Override http request option.
|
|
87
93
|
* @throws {RequiredError}
|
|
88
94
|
*/
|
|
89
|
-
listPaymentMethods(authorization?: string, filter?: string,
|
|
95
|
+
listPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>>;
|
|
90
96
|
};
|
|
91
97
|
/**
|
|
92
98
|
* PaymentMethodsApi - factory interface
|
|
@@ -115,14 +121,17 @@ export declare const PaymentMethodsApiFactory: (configuration?: Configuration, b
|
|
|
115
121
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
116
122
|
* @summary List payment methods
|
|
117
123
|
* @param {string} [authorization] Bearer Token
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {string} [
|
|
124
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
125
|
+
* @param {string} [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.
|
|
126
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
127
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
120
128
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
121
129
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
130
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
122
131
|
* @param {*} [options] Override http request option.
|
|
123
132
|
* @throws {RequiredError}
|
|
124
133
|
*/
|
|
125
|
-
listPaymentMethods(authorization?: string, filter?: string,
|
|
134
|
+
listPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentMethodsResponseClass>;
|
|
126
135
|
};
|
|
127
136
|
/**
|
|
128
137
|
* Request parameters for createPaymentMethod operation in PaymentMethodsApi.
|
|
@@ -175,17 +184,29 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
175
184
|
*/
|
|
176
185
|
readonly authorization?: string;
|
|
177
186
|
/**
|
|
178
|
-
*
|
|
187
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @type {number}
|
|
189
|
+
* @memberof PaymentMethodsApiListPaymentMethods
|
|
190
|
+
*/
|
|
191
|
+
readonly pageSize?: number;
|
|
192
|
+
/**
|
|
193
|
+
* 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
|
+
* @type {string}
|
|
195
|
+
* @memberof PaymentMethodsApiListPaymentMethods
|
|
196
|
+
*/
|
|
197
|
+
readonly pageToken?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
179
200
|
* @type {string}
|
|
180
201
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
181
202
|
*/
|
|
182
203
|
readonly filter?: string;
|
|
183
204
|
/**
|
|
184
|
-
*
|
|
205
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
185
206
|
* @type {string}
|
|
186
207
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
187
208
|
*/
|
|
188
|
-
readonly
|
|
209
|
+
readonly search?: string;
|
|
189
210
|
/**
|
|
190
211
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
191
212
|
* @type {string}
|
|
@@ -198,6 +219,12 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
198
219
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
199
220
|
*/
|
|
200
221
|
readonly expand?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug, accountCode, partnerCode</i>
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof PaymentMethodsApiListPaymentMethods
|
|
226
|
+
*/
|
|
227
|
+
readonly filters?: string;
|
|
201
228
|
}
|
|
202
229
|
/**
|
|
203
230
|
* PaymentMethodsApi - object-oriented interface
|