@emilgroup/payment-sdk-node 1.12.1 → 1.13.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +35 -25
- package/api/bank-transaction-api.ts +152 -46
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +56 -46
- package/api/payment-reminders-api.ts +27 -17
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +44 -32
- package/api/refunds-api.ts +36 -20
- package/api/tenant-bank-account-api.ts +21 -7
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +23 -16
- package/dist/api/bank-accounts-api.js +25 -19
- package/dist/api/bank-transaction-api.d.ts +96 -34
- package/dist/api/bank-transaction-api.js +134 -35
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +38 -33
- package/dist/api/payment-methods-api.js +41 -31
- package/dist/api/payment-reminders-api.d.ts +23 -16
- package/dist/api/payment-reminders-api.js +13 -7
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +32 -26
- package/dist/api/payments-api.js +29 -19
- package/dist/api/refunds-api.d.ts +23 -14
- package/dist/api/refunds-api.js +24 -16
- package/dist/api/tenant-bank-account-api.d.ts +13 -4
- package/dist/api/tenant-bank-account-api.js +13 -7
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -30
- package/dist/models/index.js +0 -30
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -30
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transaction-request-dto.d.ts +0 -30
- package/dist/models/link-bank-transaction-request-dto.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transaction-request-dto.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
package/.openapi-generator/FILES
CHANGED
|
@@ -18,53 +18,23 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
-
models/bank-account-class.ts
|
|
22
21
|
models/bank-transaction-response-class.ts
|
|
23
|
-
models/billing-profile-dto.ts
|
|
24
|
-
models/billing-profile-limited-response-dto.ts
|
|
25
|
-
models/complete-braintree-payment-setup-request-dto.ts
|
|
26
|
-
models/complete-payment-setup-request-dto.ts
|
|
27
|
-
models/complete-payment-setup-response-class.ts
|
|
28
|
-
models/complete-stripe-payment-setup-request-dto.ts
|
|
29
|
-
models/create-bank-account-request-dto.ts
|
|
30
|
-
models/create-payment-method-response-class.ts
|
|
31
22
|
models/create-payment-reminder-request-dto.ts
|
|
32
23
|
models/create-payment-request-dto.ts
|
|
33
|
-
models/create-payment-response-class.ts
|
|
34
|
-
models/create-psp-payment-method-request-dto.ts
|
|
35
24
|
models/create-refund-request-dto.ts
|
|
36
25
|
models/create-refund-response-class.ts
|
|
37
26
|
models/create-tenant-bank-account-request-dto.ts
|
|
38
27
|
models/deactivate-payment-reminder-request-dto.ts
|
|
39
|
-
models/deactivate-payment-reminder-response-class.ts
|
|
40
28
|
models/get-bank-transactions-response-class.ts
|
|
41
|
-
models/get-payment-method-response-class.ts
|
|
42
|
-
models/get-payment-response-class.ts
|
|
43
29
|
models/get-refund-response-class.ts
|
|
44
30
|
models/get-request-dto.ts
|
|
45
31
|
models/get-tenant-bank-account-response-class.ts
|
|
46
32
|
models/index.ts
|
|
47
|
-
models/initiate-braintree-payment-setup-request-dto.ts
|
|
48
|
-
models/initiate-braintree-payment-setup-response-class.ts
|
|
49
|
-
models/initiate-payment-setup-request-dto.ts
|
|
50
|
-
models/initiate-payment-setup-response-class.ts
|
|
51
|
-
models/initiate-stripe-payment-setup-request-dto.ts
|
|
52
|
-
models/initiate-stripe-payment-setup-response-class.ts
|
|
53
33
|
models/inline-response200.ts
|
|
54
34
|
models/inline-response503.ts
|
|
55
|
-
models/link-bank-transaction-request-dto.ts
|
|
56
|
-
models/list-bank-accounts-response-class.ts
|
|
57
35
|
models/list-bank-transactions-response-class.ts
|
|
58
|
-
models/list-payment-methods-response-class.ts
|
|
59
|
-
models/list-payment-reminders-response-class.ts
|
|
60
|
-
models/list-payments-response-class.ts
|
|
61
36
|
models/list-refunds-response-class.ts
|
|
62
|
-
models/payment-class.ts
|
|
63
|
-
models/payment-method-class.ts
|
|
64
|
-
models/payment-reminder-class.ts
|
|
65
37
|
models/refund-class.ts
|
|
66
|
-
models/sepa-direct-dto.ts
|
|
67
|
-
models/symphony-profile-limited-response-dto.ts
|
|
68
38
|
models/tenant-bank-account-response-class.ts
|
|
69
39
|
models/transaction-class.ts
|
|
70
40
|
models/update-tenant-bank-account-rest-request-dto.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.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.13.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.13.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -20,10 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreateBankAccountRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ListBankAccountsResponseClass } from '../models';
|
|
27
23
|
// URLSearchParams not necessarily used
|
|
28
24
|
// @ts-ignore
|
|
29
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -37,14 +33,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
37
33
|
/**
|
|
38
34
|
* Creates a bank account for a specified account.
|
|
39
35
|
* @summary Create a bank account
|
|
40
|
-
* @param {
|
|
36
|
+
* @param {object} body
|
|
41
37
|
* @param {string} [authorization] Bearer Token
|
|
42
38
|
* @param {*} [options] Override http request option.
|
|
43
39
|
* @throws {RequiredError}
|
|
44
40
|
*/
|
|
45
|
-
createBankAccount: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createBankAccount', '
|
|
41
|
+
createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'body' is not null or undefined
|
|
43
|
+
assertParamExists('createBankAccount', 'body', body)
|
|
48
44
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
49
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +70,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
74
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
72
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
78
74
|
|
|
79
75
|
return {
|
|
80
76
|
url: toPathString(localVarUrlObj),
|
|
@@ -91,10 +87,11 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
91
87
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
92
88
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
93
89
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
90
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
94
91
|
* @param {*} [options] Override http request option.
|
|
95
92
|
* @throws {RequiredError}
|
|
96
93
|
*/
|
|
97
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
95
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
99
96
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
97
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -137,6 +134,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
137
134
|
localVarQueryParameter['expand'] = expand;
|
|
138
135
|
}
|
|
139
136
|
|
|
137
|
+
if (filters !== undefined) {
|
|
138
|
+
localVarQueryParameter['filters'] = filters;
|
|
139
|
+
}
|
|
140
|
+
|
|
140
141
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
141
142
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
142
143
|
}
|
|
@@ -165,13 +166,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
165
166
|
/**
|
|
166
167
|
* Creates a bank account for a specified account.
|
|
167
168
|
* @summary Create a bank account
|
|
168
|
-
* @param {
|
|
169
|
+
* @param {object} body
|
|
169
170
|
* @param {string} [authorization] Bearer Token
|
|
170
171
|
* @param {*} [options] Override http request option.
|
|
171
172
|
* @throws {RequiredError}
|
|
172
173
|
*/
|
|
173
|
-
async createBankAccount(
|
|
174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(
|
|
174
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
175
176
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
176
177
|
},
|
|
177
178
|
/**
|
|
@@ -184,11 +185,12 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
184
185
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
185
186
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
186
187
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
188
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
187
189
|
* @param {*} [options] Override http request option.
|
|
188
190
|
* @throws {RequiredError}
|
|
189
191
|
*/
|
|
190
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
191
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
192
|
+
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
192
194
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
193
195
|
},
|
|
194
196
|
}
|
|
@@ -204,13 +206,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
204
206
|
/**
|
|
205
207
|
* Creates a bank account for a specified account.
|
|
206
208
|
* @summary Create a bank account
|
|
207
|
-
* @param {
|
|
209
|
+
* @param {object} body
|
|
208
210
|
* @param {string} [authorization] Bearer Token
|
|
209
211
|
* @param {*} [options] Override http request option.
|
|
210
212
|
* @throws {RequiredError}
|
|
211
213
|
*/
|
|
212
|
-
createBankAccount(
|
|
213
|
-
return localVarFp.createBankAccount(
|
|
214
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
215
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
214
216
|
},
|
|
215
217
|
/**
|
|
216
218
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -222,11 +224,12 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
222
224
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
223
225
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
224
226
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
227
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
225
228
|
* @param {*} [options] Override http request option.
|
|
226
229
|
* @throws {RequiredError}
|
|
227
230
|
*/
|
|
228
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
229
|
-
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
231
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
232
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
230
233
|
},
|
|
231
234
|
};
|
|
232
235
|
};
|
|
@@ -239,10 +242,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
239
242
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
240
243
|
/**
|
|
241
244
|
*
|
|
242
|
-
* @type {
|
|
245
|
+
* @type {object}
|
|
243
246
|
* @memberof BankAccountsApiCreateBankAccount
|
|
244
247
|
*/
|
|
245
|
-
readonly
|
|
248
|
+
readonly body: object
|
|
246
249
|
|
|
247
250
|
/**
|
|
248
251
|
* Bearer Token
|
|
@@ -306,6 +309,13 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
306
309
|
* @memberof BankAccountsApiListBankAccounts
|
|
307
310
|
*/
|
|
308
311
|
readonly expand?: any
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
315
|
+
* @type {any}
|
|
316
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
317
|
+
*/
|
|
318
|
+
readonly filters?: any
|
|
309
319
|
}
|
|
310
320
|
|
|
311
321
|
/**
|
|
@@ -324,7 +334,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
324
334
|
* @memberof BankAccountsApi
|
|
325
335
|
*/
|
|
326
336
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
327
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
337
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
328
338
|
}
|
|
329
339
|
|
|
330
340
|
/**
|
|
@@ -336,6 +346,6 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
336
346
|
* @memberof BankAccountsApi
|
|
337
347
|
*/
|
|
338
348
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
339
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
349
|
+
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
340
350
|
}
|
|
341
351
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: z
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -23,8 +23,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { LinkBankTransactionRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
26
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
29
27
|
// URLSearchParams not necessarily used
|
|
30
28
|
// @ts-ignore
|
|
@@ -37,7 +35,8 @@ const FormData = require('form-data');
|
|
|
37
35
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
36
|
return {
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* 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.
|
|
39
|
+
* @summary Retrieve the Bank Transaction
|
|
41
40
|
* @param {string} code
|
|
42
41
|
* @param {string} [authorization] Bearer Token
|
|
43
42
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -87,7 +86,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
87
86
|
},
|
|
88
87
|
/**
|
|
89
88
|
* Import bank transactions from a swift MT940 file
|
|
90
|
-
* @summary Create the
|
|
89
|
+
* @summary Create the bank transactions
|
|
91
90
|
* @param {string} [authorization] Bearer Token
|
|
92
91
|
* @param {any} [file]
|
|
93
92
|
* @param {*} [options] Override http request option.
|
|
@@ -138,17 +137,14 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
138
137
|
/**
|
|
139
138
|
* Links a bank transaction with an invoice
|
|
140
139
|
* @summary Link Bank Transaction
|
|
141
|
-
* @param {string} code Code of the bank
|
|
142
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
140
|
+
* @param {string} code Code of the bank transaction to link
|
|
143
141
|
* @param {string} [authorization] Bearer Token
|
|
144
142
|
* @param {*} [options] Override http request option.
|
|
145
143
|
* @throws {RequiredError}
|
|
146
144
|
*/
|
|
147
|
-
linkBankTransaction: async (code: string,
|
|
145
|
+
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
146
|
// verify required parameter 'code' is not null or undefined
|
|
149
147
|
assertParamExists('linkBankTransaction', 'code', code)
|
|
150
|
-
// verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
|
|
151
|
-
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto)
|
|
152
148
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
153
149
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
154
150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -174,12 +170,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
174
170
|
|
|
175
171
|
|
|
176
172
|
|
|
177
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
178
|
-
|
|
179
173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
182
|
-
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDto, localVarRequestOptions, configuration)
|
|
183
176
|
|
|
184
177
|
return {
|
|
185
178
|
url: toPathString(localVarUrlObj),
|
|
@@ -187,7 +180,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
187
180
|
};
|
|
188
181
|
},
|
|
189
182
|
/**
|
|
190
|
-
*
|
|
183
|
+
* 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.
|
|
184
|
+
* @summary List bank transactions
|
|
191
185
|
* @param {string} [authorization] Bearer Token
|
|
192
186
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
193
187
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -195,10 +189,11 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
195
189
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
196
190
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
197
191
|
* @param {string} [expand] Expand the response with additional entities
|
|
192
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
198
193
|
* @param {*} [options] Override http request option.
|
|
199
194
|
* @throws {RequiredError}
|
|
200
195
|
*/
|
|
201
|
-
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
|
+
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
197
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
203
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -241,6 +236,55 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
241
236
|
localVarQueryParameter['expand'] = expand;
|
|
242
237
|
}
|
|
243
238
|
|
|
239
|
+
if (filters !== undefined) {
|
|
240
|
+
localVarQueryParameter['filters'] = filters;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
244
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
url: toPathString(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
* Unlinks an already linked bank transaction
|
|
260
|
+
* @summary Unlink Bank Transaction
|
|
261
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
262
|
+
* @param {string} [authorization] Bearer Token
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
267
|
+
// verify required parameter 'code' is not null or undefined
|
|
268
|
+
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
269
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
270
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
|
+
let baseOptions;
|
|
274
|
+
let baseAccessToken;
|
|
275
|
+
if (configuration) {
|
|
276
|
+
baseOptions = configuration.baseOptions;
|
|
277
|
+
baseAccessToken = configuration.accessToken;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
281
|
+
const localVarHeaderParameter = {} as any;
|
|
282
|
+
const localVarQueryParameter = {} as any;
|
|
283
|
+
|
|
284
|
+
// authentication bearer required
|
|
285
|
+
// http bearer authentication required
|
|
286
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
287
|
+
|
|
244
288
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
245
289
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
246
290
|
}
|
|
@@ -267,7 +311,8 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
267
311
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
268
312
|
return {
|
|
269
313
|
/**
|
|
270
|
-
*
|
|
314
|
+
* 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.
|
|
315
|
+
* @summary Retrieve the Bank Transaction
|
|
271
316
|
* @param {string} code
|
|
272
317
|
* @param {string} [authorization] Bearer Token
|
|
273
318
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -280,7 +325,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
280
325
|
},
|
|
281
326
|
/**
|
|
282
327
|
* Import bank transactions from a swift MT940 file
|
|
283
|
-
* @summary Create the
|
|
328
|
+
* @summary Create the bank transactions
|
|
284
329
|
* @param {string} [authorization] Bearer Token
|
|
285
330
|
* @param {any} [file]
|
|
286
331
|
* @param {*} [options] Override http request option.
|
|
@@ -293,18 +338,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
293
338
|
/**
|
|
294
339
|
* Links a bank transaction with an invoice
|
|
295
340
|
* @summary Link Bank Transaction
|
|
296
|
-
* @param {string} code Code of the bank
|
|
297
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
341
|
+
* @param {string} code Code of the bank transaction to link
|
|
298
342
|
* @param {string} [authorization] Bearer Token
|
|
299
343
|
* @param {*} [options] Override http request option.
|
|
300
344
|
* @throws {RequiredError}
|
|
301
345
|
*/
|
|
302
|
-
async linkBankTransaction(code: string,
|
|
303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code,
|
|
346
|
+
async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
|
|
304
348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
349
|
},
|
|
306
350
|
/**
|
|
307
|
-
*
|
|
351
|
+
* 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.
|
|
352
|
+
* @summary List bank transactions
|
|
308
353
|
* @param {string} [authorization] Bearer Token
|
|
309
354
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
355
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -312,11 +357,24 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
312
357
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
313
358
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
314
359
|
* @param {string} [expand] Expand the response with additional entities
|
|
360
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
366
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* Unlinks an already linked bank transaction
|
|
370
|
+
* @summary Unlink Bank Transaction
|
|
371
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
372
|
+
* @param {string} [authorization] Bearer Token
|
|
315
373
|
* @param {*} [options] Override http request option.
|
|
316
374
|
* @throws {RequiredError}
|
|
317
375
|
*/
|
|
318
|
-
async
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
376
|
+
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
320
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
379
|
},
|
|
322
380
|
}
|
|
@@ -330,7 +388,8 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
330
388
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
331
389
|
return {
|
|
332
390
|
/**
|
|
333
|
-
*
|
|
391
|
+
* 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.
|
|
392
|
+
* @summary Retrieve the Bank Transaction
|
|
334
393
|
* @param {string} code
|
|
335
394
|
* @param {string} [authorization] Bearer Token
|
|
336
395
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -342,7 +401,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
342
401
|
},
|
|
343
402
|
/**
|
|
344
403
|
* Import bank transactions from a swift MT940 file
|
|
345
|
-
* @summary Create the
|
|
404
|
+
* @summary Create the bank transactions
|
|
346
405
|
* @param {string} [authorization] Bearer Token
|
|
347
406
|
* @param {any} [file]
|
|
348
407
|
* @param {*} [options] Override http request option.
|
|
@@ -354,17 +413,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
354
413
|
/**
|
|
355
414
|
* Links a bank transaction with an invoice
|
|
356
415
|
* @summary Link Bank Transaction
|
|
357
|
-
* @param {string} code Code of the bank
|
|
358
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
416
|
+
* @param {string} code Code of the bank transaction to link
|
|
359
417
|
* @param {string} [authorization] Bearer Token
|
|
360
418
|
* @param {*} [options] Override http request option.
|
|
361
419
|
* @throws {RequiredError}
|
|
362
420
|
*/
|
|
363
|
-
linkBankTransaction(code: string,
|
|
364
|
-
return localVarFp.linkBankTransaction(code,
|
|
421
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
422
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
365
423
|
},
|
|
366
424
|
/**
|
|
367
|
-
*
|
|
425
|
+
* 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.
|
|
426
|
+
* @summary List bank transactions
|
|
368
427
|
* @param {string} [authorization] Bearer Token
|
|
369
428
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
370
429
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -372,11 +431,23 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
372
431
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
373
432
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
374
433
|
* @param {string} [expand] Expand the response with additional entities
|
|
434
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
|
|
439
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
* Unlinks an already linked bank transaction
|
|
443
|
+
* @summary Unlink Bank Transaction
|
|
444
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
445
|
+
* @param {string} [authorization] Bearer Token
|
|
375
446
|
* @param {*} [options] Override http request option.
|
|
376
447
|
* @throws {RequiredError}
|
|
377
448
|
*/
|
|
378
|
-
|
|
379
|
-
return localVarFp.
|
|
449
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
450
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
380
451
|
},
|
|
381
452
|
};
|
|
382
453
|
};
|
|
@@ -437,19 +508,12 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
437
508
|
*/
|
|
438
509
|
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
439
510
|
/**
|
|
440
|
-
* Code of the bank
|
|
511
|
+
* Code of the bank transaction to link
|
|
441
512
|
* @type {string}
|
|
442
513
|
* @memberof BankTransactionApiLinkBankTransaction
|
|
443
514
|
*/
|
|
444
515
|
readonly code: string
|
|
445
516
|
|
|
446
|
-
/**
|
|
447
|
-
*
|
|
448
|
-
* @type {LinkBankTransactionRequestDto}
|
|
449
|
-
* @memberof BankTransactionApiLinkBankTransaction
|
|
450
|
-
*/
|
|
451
|
-
readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto
|
|
452
|
-
|
|
453
517
|
/**
|
|
454
518
|
* Bearer Token
|
|
455
519
|
* @type {string}
|
|
@@ -512,6 +576,34 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
512
576
|
* @memberof BankTransactionApiListBankTransactions
|
|
513
577
|
*/
|
|
514
578
|
readonly expand?: string
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
582
|
+
* @type {any}
|
|
583
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
584
|
+
*/
|
|
585
|
+
readonly filters?: any
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
590
|
+
* @export
|
|
591
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
592
|
+
*/
|
|
593
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
594
|
+
/**
|
|
595
|
+
* Code of the bank transaction to unlink
|
|
596
|
+
* @type {string}
|
|
597
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
598
|
+
*/
|
|
599
|
+
readonly code: string
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Bearer Token
|
|
603
|
+
* @type {string}
|
|
604
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
605
|
+
*/
|
|
606
|
+
readonly authorization?: string
|
|
515
607
|
}
|
|
516
608
|
|
|
517
609
|
/**
|
|
@@ -522,7 +614,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
522
614
|
*/
|
|
523
615
|
export class BankTransactionApi extends BaseAPI {
|
|
524
616
|
/**
|
|
525
|
-
*
|
|
617
|
+
* 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.
|
|
618
|
+
* @summary Retrieve the Bank Transaction
|
|
526
619
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
527
620
|
* @param {*} [options] Override http request option.
|
|
528
621
|
* @throws {RequiredError}
|
|
@@ -534,7 +627,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
534
627
|
|
|
535
628
|
/**
|
|
536
629
|
* Import bank transactions from a swift MT940 file
|
|
537
|
-
* @summary Create the
|
|
630
|
+
* @summary Create the bank transactions
|
|
538
631
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
539
632
|
* @param {*} [options] Override http request option.
|
|
540
633
|
* @throws {RequiredError}
|
|
@@ -553,17 +646,30 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
553
646
|
* @memberof BankTransactionApi
|
|
554
647
|
*/
|
|
555
648
|
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
556
|
-
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.
|
|
649
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
557
650
|
}
|
|
558
651
|
|
|
559
652
|
/**
|
|
560
|
-
*
|
|
653
|
+
* 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.
|
|
654
|
+
* @summary List bank transactions
|
|
561
655
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
562
656
|
* @param {*} [options] Override http request option.
|
|
563
657
|
* @throws {RequiredError}
|
|
564
658
|
* @memberof BankTransactionApi
|
|
565
659
|
*/
|
|
566
660
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
567
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
661
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Unlinks an already linked bank transaction
|
|
666
|
+
* @summary Unlink Bank Transaction
|
|
667
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
* @memberof BankTransactionApi
|
|
671
|
+
*/
|
|
672
|
+
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
673
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
568
674
|
}
|
|
569
675
|
}
|