@emilgroup/payment-sdk-node 1.21.1-beta.71 → 1.21.1-beta.73
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 +3 -1
- package/README.md +2 -2
- package/api/bank-transaction-api.ts +14 -31
- package/api/payments-api.ts +129 -4
- package/dist/api/bank-transaction-api.d.ts +11 -21
- package/dist/api/bank-transaction-api.js +12 -19
- package/dist/api/payments-api.d.ts +73 -4
- package/dist/api/payments-api.js +109 -4
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +7 -12
- package/dist/models/bank-transaction-class.d.ts +7 -12
- package/dist/models/bank-transaction-invoice-class.d.ts +54 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/{models/unlink-bank-transaction-request-dto-rest.ts → dist/models/create-payment-order-dto.js} +2 -17
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → create-payment-order-request-dto.js} +4 -13
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +3 -3
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +7 -0
- package/models/bank-transaction-class-without-expand-properties.ts +7 -12
- package/models/bank-transaction-class.ts +7 -12
- package/models/bank-transaction-invoice-class.ts +60 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/index.ts +3 -1
- package/models/link-bank-transaction-request-dto-rest.ts +3 -3
- package/models/unlinked-bank-transaction-response-class.ts +7 -0
- package/package.json +1 -1
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-transaction-invoice-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,7 @@ models/bank-account-class.ts
|
|
|
24
24
|
models/bank-order-class.ts
|
|
25
25
|
models/bank-transaction-class-without-expand-properties.ts
|
|
26
26
|
models/bank-transaction-class.ts
|
|
27
|
+
models/bank-transaction-invoice-class.ts
|
|
27
28
|
models/billing-profile-dto.ts
|
|
28
29
|
models/billing-profile-limited-response-dto.ts
|
|
29
30
|
models/card-details-dto.ts
|
|
@@ -38,6 +39,8 @@ models/create-bank-account-response-class.ts
|
|
|
38
39
|
models/create-bank-order-request-dto.ts
|
|
39
40
|
models/create-bank-order-response-class.ts
|
|
40
41
|
models/create-payment-method-response-class.ts
|
|
42
|
+
models/create-payment-order-dto.ts
|
|
43
|
+
models/create-payment-order-request-dto.ts
|
|
41
44
|
models/create-payment-reminder-request-dto.ts
|
|
42
45
|
models/create-payment-reminder-response-class.ts
|
|
43
46
|
models/create-payment-request-dto.ts
|
|
@@ -98,7 +101,6 @@ models/suggestion-generation-progress-class.ts
|
|
|
98
101
|
models/symphony-profile-limited-response-dto.ts
|
|
99
102
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
100
103
|
models/tenant-bank-account-class.ts
|
|
101
|
-
models/unlink-bank-transaction-request-dto-rest.ts
|
|
102
104
|
models/unlink-bank-transactions-response-class.ts
|
|
103
105
|
models/unlinked-bank-transaction-response-class.ts
|
|
104
106
|
models/update-bank-account-request-dto-rest.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk-node@1.21.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.21.1-beta.73 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.21.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.21.1-beta.73
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -33,8 +33,6 @@ import { LinkBankTransactionsResponseClass } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
36
|
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
39
37
|
// URLSearchParams not necessarily used
|
|
40
38
|
// @ts-ignore
|
|
@@ -96,7 +94,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
96
94
|
* @summary Retrieve the bank transaction
|
|
97
95
|
* @param {string} code
|
|
98
96
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @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<i>
|
|
97
|
+
* @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>
|
|
100
98
|
* @param {*} [options] Override http request option.
|
|
101
99
|
* @throws {RequiredError}
|
|
102
100
|
*/
|
|
@@ -254,7 +252,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
254
252
|
* @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>
|
|
255
253
|
* @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>
|
|
256
254
|
* @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>
|
|
257
|
-
* @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<i>
|
|
255
|
+
* @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>
|
|
258
256
|
* @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>
|
|
259
257
|
* @param {*} [options] Override http request option.
|
|
260
258
|
* @throws {RequiredError}
|
|
@@ -325,16 +323,13 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
325
323
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
326
324
|
* @summary Unlink bank transaction
|
|
327
325
|
* @param {string} code Code of the bank transaction to unlink
|
|
328
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
329
326
|
* @param {string} [authorization] Bearer Token
|
|
330
327
|
* @param {*} [options] Override http request option.
|
|
331
328
|
* @throws {RequiredError}
|
|
332
329
|
*/
|
|
333
|
-
unlinkBankTransaction: async (code: string,
|
|
330
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
334
331
|
// verify required parameter 'code' is not null or undefined
|
|
335
332
|
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
336
|
-
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
337
|
-
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
338
333
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
339
334
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
340
335
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -360,12 +355,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
360
355
|
|
|
361
356
|
|
|
362
357
|
|
|
363
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
364
|
-
|
|
365
358
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
366
359
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
367
360
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
368
|
-
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
369
361
|
|
|
370
362
|
return {
|
|
371
363
|
url: toPathString(localVarUrlObj),
|
|
@@ -399,7 +391,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
399
391
|
* @summary Retrieve the bank transaction
|
|
400
392
|
* @param {string} code
|
|
401
393
|
* @param {string} [authorization] Bearer Token
|
|
402
|
-
* @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<i>
|
|
394
|
+
* @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>
|
|
403
395
|
* @param {*} [options] Override http request option.
|
|
404
396
|
* @throws {RequiredError}
|
|
405
397
|
*/
|
|
@@ -441,7 +433,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
441
433
|
* @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>
|
|
442
434
|
* @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>
|
|
443
435
|
* @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>
|
|
444
|
-
* @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<i>
|
|
436
|
+
* @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>
|
|
445
437
|
* @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>
|
|
446
438
|
* @param {*} [options] Override http request option.
|
|
447
439
|
* @throws {RequiredError}
|
|
@@ -454,13 +446,12 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
454
446
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
455
447
|
* @summary Unlink bank transaction
|
|
456
448
|
* @param {string} code Code of the bank transaction to unlink
|
|
457
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
458
449
|
* @param {string} [authorization] Bearer Token
|
|
459
450
|
* @param {*} [options] Override http request option.
|
|
460
451
|
* @throws {RequiredError}
|
|
461
452
|
*/
|
|
462
|
-
async unlinkBankTransaction(code: string,
|
|
463
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code,
|
|
453
|
+
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
|
|
454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
464
455
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
465
456
|
},
|
|
466
457
|
}
|
|
@@ -489,7 +480,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
489
480
|
* @summary Retrieve the bank transaction
|
|
490
481
|
* @param {string} code
|
|
491
482
|
* @param {string} [authorization] Bearer Token
|
|
492
|
-
* @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<i>
|
|
483
|
+
* @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>
|
|
493
484
|
* @param {*} [options] Override http request option.
|
|
494
485
|
* @throws {RequiredError}
|
|
495
486
|
*/
|
|
@@ -528,7 +519,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
528
519
|
* @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>
|
|
529
520
|
* @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>
|
|
530
521
|
* @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>
|
|
531
|
-
* @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<i>
|
|
522
|
+
* @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>
|
|
532
523
|
* @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>
|
|
533
524
|
* @param {*} [options] Override http request option.
|
|
534
525
|
* @throws {RequiredError}
|
|
@@ -540,13 +531,12 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
540
531
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
541
532
|
* @summary Unlink bank transaction
|
|
542
533
|
* @param {string} code Code of the bank transaction to unlink
|
|
543
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
544
534
|
* @param {string} [authorization] Bearer Token
|
|
545
535
|
* @param {*} [options] Override http request option.
|
|
546
536
|
* @throws {RequiredError}
|
|
547
537
|
*/
|
|
548
|
-
unlinkBankTransaction(code: string,
|
|
549
|
-
return localVarFp.unlinkBankTransaction(code,
|
|
538
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
|
|
539
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
550
540
|
},
|
|
551
541
|
};
|
|
552
542
|
};
|
|
@@ -593,7 +583,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
593
583
|
readonly authorization?: string
|
|
594
584
|
|
|
595
585
|
/**
|
|
596
|
-
* 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<i>
|
|
586
|
+
* 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>
|
|
597
587
|
* @type {string}
|
|
598
588
|
* @memberof BankTransactionApiGetBankTransaction
|
|
599
589
|
*/
|
|
@@ -698,7 +688,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
698
688
|
readonly order?: string
|
|
699
689
|
|
|
700
690
|
/**
|
|
701
|
-
* 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<i>
|
|
691
|
+
* 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>
|
|
702
692
|
* @type {string}
|
|
703
693
|
* @memberof BankTransactionApiListBankTransactions
|
|
704
694
|
*/
|
|
@@ -725,13 +715,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
725
715
|
*/
|
|
726
716
|
readonly code: string
|
|
727
717
|
|
|
728
|
-
/**
|
|
729
|
-
*
|
|
730
|
-
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
731
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
732
|
-
*/
|
|
733
|
-
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
734
|
-
|
|
735
718
|
/**
|
|
736
719
|
* Bearer Token
|
|
737
720
|
* @type {string}
|
|
@@ -816,6 +799,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
816
799
|
* @memberof BankTransactionApi
|
|
817
800
|
*/
|
|
818
801
|
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
819
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.
|
|
802
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
820
803
|
}
|
|
821
804
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreatePaymentOrderDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreatePaymentResponseClass } from '../models';
|
|
@@ -39,12 +41,13 @@ const FormData = require('form-data');
|
|
|
39
41
|
export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
42
|
return {
|
|
41
43
|
/**
|
|
42
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
44
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
43
45
|
* @summary Create the payment
|
|
44
46
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
45
47
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
46
48
|
* @param {string} [authorization] Bearer Token
|
|
47
49
|
* @param {*} [options] Override http request option.
|
|
50
|
+
* @deprecated
|
|
48
51
|
* @throws {RequiredError}
|
|
49
52
|
*/
|
|
50
53
|
createPayment: async (idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -92,6 +95,60 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
95
|
options: localVarRequestOptions,
|
|
93
96
|
};
|
|
94
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
100
|
+
* @summary Create the payment
|
|
101
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
102
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
createPaymentOrder: async (idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
108
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
109
|
+
assertParamExists('createPaymentOrder', 'idempotencyKey', idempotencyKey)
|
|
110
|
+
// verify required parameter 'createPaymentOrderDto' is not null or undefined
|
|
111
|
+
assertParamExists('createPaymentOrder', 'createPaymentOrderDto', createPaymentOrderDto)
|
|
112
|
+
const localVarPath = `/paymentservice/v1/payments/order`;
|
|
113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
115
|
+
let baseOptions;
|
|
116
|
+
let baseAccessToken;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
baseAccessToken = configuration.accessToken;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
123
|
+
const localVarHeaderParameter = {} as any;
|
|
124
|
+
const localVarQueryParameter = {} as any;
|
|
125
|
+
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
129
|
+
|
|
130
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
135
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentOrderDto, localVarRequestOptions, configuration)
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
95
152
|
/**
|
|
96
153
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
97
154
|
* @summary Retrieve the payment
|
|
@@ -229,18 +286,32 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
229
286
|
const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
|
|
230
287
|
return {
|
|
231
288
|
/**
|
|
232
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
289
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
233
290
|
* @summary Create the payment
|
|
234
291
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
235
292
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
236
293
|
* @param {string} [authorization] Bearer Token
|
|
237
294
|
* @param {*} [options] Override http request option.
|
|
295
|
+
* @deprecated
|
|
238
296
|
* @throws {RequiredError}
|
|
239
297
|
*/
|
|
240
298
|
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
241
299
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
242
300
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
243
301
|
},
|
|
302
|
+
/**
|
|
303
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
304
|
+
* @summary Create the payment
|
|
305
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
306
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
307
|
+
* @param {string} [authorization] Bearer Token
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
async createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options);
|
|
313
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
314
|
+
},
|
|
244
315
|
/**
|
|
245
316
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
246
317
|
* @summary Retrieve the payment
|
|
@@ -283,17 +354,30 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
283
354
|
const localVarFp = PaymentsApiFp(configuration)
|
|
284
355
|
return {
|
|
285
356
|
/**
|
|
286
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
357
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
287
358
|
* @summary Create the payment
|
|
288
359
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
289
360
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
290
361
|
* @param {string} [authorization] Bearer Token
|
|
291
362
|
* @param {*} [options] Override http request option.
|
|
363
|
+
* @deprecated
|
|
292
364
|
* @throws {RequiredError}
|
|
293
365
|
*/
|
|
294
366
|
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
295
367
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
296
368
|
},
|
|
369
|
+
/**
|
|
370
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
371
|
+
* @summary Create the payment
|
|
372
|
+
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
373
|
+
* @param {CreatePaymentOrderDto} createPaymentOrderDto
|
|
374
|
+
* @param {string} [authorization] Bearer Token
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
createPaymentOrder(idempotencyKey: string, createPaymentOrderDto: CreatePaymentOrderDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
379
|
+
return localVarFp.createPaymentOrder(idempotencyKey, createPaymentOrderDto, authorization, options).then((request) => request(axios, basePath));
|
|
380
|
+
},
|
|
297
381
|
/**
|
|
298
382
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
299
383
|
* @summary Retrieve the payment
|
|
@@ -354,6 +438,34 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
354
438
|
readonly authorization?: string
|
|
355
439
|
}
|
|
356
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Request parameters for createPaymentOrder operation in PaymentsApi.
|
|
443
|
+
* @export
|
|
444
|
+
* @interface PaymentsApiCreatePaymentOrderRequest
|
|
445
|
+
*/
|
|
446
|
+
export interface PaymentsApiCreatePaymentOrderRequest {
|
|
447
|
+
/**
|
|
448
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
451
|
+
*/
|
|
452
|
+
readonly idempotencyKey: string
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @type {CreatePaymentOrderDto}
|
|
457
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
458
|
+
*/
|
|
459
|
+
readonly createPaymentOrderDto: CreatePaymentOrderDto
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Bearer Token
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof PaymentsApiCreatePaymentOrder
|
|
465
|
+
*/
|
|
466
|
+
readonly authorization?: string
|
|
467
|
+
}
|
|
468
|
+
|
|
357
469
|
/**
|
|
358
470
|
* Request parameters for getPayment operation in PaymentsApi.
|
|
359
471
|
* @export
|
|
@@ -453,10 +565,11 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
453
565
|
*/
|
|
454
566
|
export class PaymentsApi extends BaseAPI {
|
|
455
567
|
/**
|
|
456
|
-
* This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
|
|
568
|
+
* This will create a payment for a specified account. This function is idempotent. This endpoint is deprecated. Please use the create Payment Order endpoint instead. **Required Permissions** \"payment-management.payments.create\"
|
|
457
569
|
* @summary Create the payment
|
|
458
570
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
459
571
|
* @param {*} [options] Override http request option.
|
|
572
|
+
* @deprecated
|
|
460
573
|
* @throws {RequiredError}
|
|
461
574
|
* @memberof PaymentsApi
|
|
462
575
|
*/
|
|
@@ -464,6 +577,18 @@ export class PaymentsApi extends BaseAPI {
|
|
|
464
577
|
return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
465
578
|
}
|
|
466
579
|
|
|
580
|
+
/**
|
|
581
|
+
* This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
|
|
582
|
+
* @summary Create the payment
|
|
583
|
+
* @param {PaymentsApiCreatePaymentOrderRequest} requestParameters Request parameters.
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof PaymentsApi
|
|
587
|
+
*/
|
|
588
|
+
public createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig) {
|
|
589
|
+
return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
591
|
+
|
|
467
592
|
/**
|
|
468
593
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
|
|
469
594
|
* @summary Retrieve the payment
|
|
@@ -18,7 +18,6 @@ import { ImportBankTransactionsResponseClass } from '../models';
|
|
|
18
18
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
19
19
|
import { LinkBankTransactionsResponseClass } from '../models';
|
|
20
20
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
21
|
-
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
22
21
|
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
23
22
|
/**
|
|
24
23
|
* BankTransactionApi - axios parameter creator
|
|
@@ -39,7 +38,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
39
38
|
* @summary Retrieve the bank transaction
|
|
40
39
|
* @param {string} code
|
|
41
40
|
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @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<i>
|
|
41
|
+
* @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>
|
|
43
42
|
* @param {*} [options] Override http request option.
|
|
44
43
|
* @throws {RequiredError}
|
|
45
44
|
*/
|
|
@@ -72,7 +71,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
72
71
|
* @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>
|
|
73
72
|
* @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>
|
|
74
73
|
* @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>
|
|
75
|
-
* @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<i>
|
|
74
|
+
* @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>
|
|
76
75
|
* @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>
|
|
77
76
|
* @param {*} [options] Override http request option.
|
|
78
77
|
* @throws {RequiredError}
|
|
@@ -82,12 +81,11 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
82
81
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
83
82
|
* @summary Unlink bank transaction
|
|
84
83
|
* @param {string} code Code of the bank transaction to unlink
|
|
85
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
86
84
|
* @param {string} [authorization] Bearer Token
|
|
87
85
|
* @param {*} [options] Override http request option.
|
|
88
86
|
* @throws {RequiredError}
|
|
89
87
|
*/
|
|
90
|
-
unlinkBankTransaction: (code: string,
|
|
88
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
89
|
};
|
|
92
90
|
/**
|
|
93
91
|
* BankTransactionApi - functional programming interface
|
|
@@ -108,7 +106,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
108
106
|
* @summary Retrieve the bank transaction
|
|
109
107
|
* @param {string} code
|
|
110
108
|
* @param {string} [authorization] Bearer Token
|
|
111
|
-
* @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<i>
|
|
109
|
+
* @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>
|
|
112
110
|
* @param {*} [options] Override http request option.
|
|
113
111
|
* @throws {RequiredError}
|
|
114
112
|
*/
|
|
@@ -141,7 +139,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
141
139
|
* @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>
|
|
142
140
|
* @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>
|
|
143
141
|
* @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>
|
|
144
|
-
* @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<i>
|
|
142
|
+
* @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>
|
|
145
143
|
* @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>
|
|
146
144
|
* @param {*} [options] Override http request option.
|
|
147
145
|
* @throws {RequiredError}
|
|
@@ -151,12 +149,11 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
151
149
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
152
150
|
* @summary Unlink bank transaction
|
|
153
151
|
* @param {string} code Code of the bank transaction to unlink
|
|
154
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
155
152
|
* @param {string} [authorization] Bearer Token
|
|
156
153
|
* @param {*} [options] Override http request option.
|
|
157
154
|
* @throws {RequiredError}
|
|
158
155
|
*/
|
|
159
|
-
unlinkBankTransaction(code: string,
|
|
156
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>>;
|
|
160
157
|
};
|
|
161
158
|
/**
|
|
162
159
|
* BankTransactionApi - factory interface
|
|
@@ -177,7 +174,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
177
174
|
* @summary Retrieve the bank transaction
|
|
178
175
|
* @param {string} code
|
|
179
176
|
* @param {string} [authorization] Bearer Token
|
|
180
|
-
* @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<i>
|
|
177
|
+
* @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>
|
|
181
178
|
* @param {*} [options] Override http request option.
|
|
182
179
|
* @throws {RequiredError}
|
|
183
180
|
*/
|
|
@@ -210,7 +207,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
210
207
|
* @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>
|
|
211
208
|
* @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>
|
|
212
209
|
* @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>
|
|
213
|
-
* @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<i>
|
|
210
|
+
* @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>
|
|
214
211
|
* @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>
|
|
215
212
|
* @param {*} [options] Override http request option.
|
|
216
213
|
* @throws {RequiredError}
|
|
@@ -220,12 +217,11 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
220
217
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
221
218
|
* @summary Unlink bank transaction
|
|
222
219
|
* @param {string} code Code of the bank transaction to unlink
|
|
223
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
224
220
|
* @param {string} [authorization] Bearer Token
|
|
225
221
|
* @param {*} [options] Override http request option.
|
|
226
222
|
* @throws {RequiredError}
|
|
227
223
|
*/
|
|
228
|
-
unlinkBankTransaction(code: string,
|
|
224
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass>;
|
|
229
225
|
};
|
|
230
226
|
/**
|
|
231
227
|
* Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
|
|
@@ -265,7 +261,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
265
261
|
*/
|
|
266
262
|
readonly authorization?: string;
|
|
267
263
|
/**
|
|
268
|
-
* 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<i>
|
|
264
|
+
* 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>
|
|
269
265
|
* @type {string}
|
|
270
266
|
* @memberof BankTransactionApiGetBankTransaction
|
|
271
267
|
*/
|
|
@@ -358,7 +354,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
358
354
|
*/
|
|
359
355
|
readonly order?: string;
|
|
360
356
|
/**
|
|
361
|
-
* 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<i>
|
|
357
|
+
* 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>
|
|
362
358
|
* @type {string}
|
|
363
359
|
* @memberof BankTransactionApiListBankTransactions
|
|
364
360
|
*/
|
|
@@ -382,12 +378,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
382
378
|
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
383
379
|
*/
|
|
384
380
|
readonly code: string;
|
|
385
|
-
/**
|
|
386
|
-
*
|
|
387
|
-
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
388
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
389
|
-
*/
|
|
390
|
-
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
|
|
391
381
|
/**
|
|
392
382
|
* Bearer Token
|
|
393
383
|
* @type {string}
|