@emilgroup/payment-sdk 1.3.1 → 1.4.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 +2 -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 +2 -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@1.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.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
|
/**
|
|
28
24
|
* BankAccountsApi - axios parameter creator
|
|
29
25
|
* @export
|
|
@@ -33,14 +29,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
33
29
|
/**
|
|
34
30
|
* Creates a bank account for a specified account.
|
|
35
31
|
* @summary Create a bank account
|
|
36
|
-
* @param {
|
|
32
|
+
* @param {object} body
|
|
37
33
|
* @param {string} [authorization] Bearer Token
|
|
38
34
|
* @param {*} [options] Override http request option.
|
|
39
35
|
* @throws {RequiredError}
|
|
40
36
|
*/
|
|
41
|
-
createBankAccount: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('createBankAccount', '
|
|
37
|
+
createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createBankAccount', 'body', body)
|
|
44
40
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
45
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +66,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
70
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
74
70
|
|
|
75
71
|
return {
|
|
76
72
|
url: toPathString(localVarUrlObj),
|
|
@@ -87,10 +83,11 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
87
83
|
* @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.
|
|
88
84
|
* @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.
|
|
89
85
|
* @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.
|
|
86
|
+
* @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.
|
|
90
87
|
* @param {*} [options] Override http request option.
|
|
91
88
|
* @throws {RequiredError}
|
|
92
89
|
*/
|
|
93
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94
91
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
95
92
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
96
93
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -133,6 +130,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
133
130
|
localVarQueryParameter['expand'] = expand;
|
|
134
131
|
}
|
|
135
132
|
|
|
133
|
+
if (filters !== undefined) {
|
|
134
|
+
localVarQueryParameter['filters'] = filters;
|
|
135
|
+
}
|
|
136
|
+
|
|
136
137
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
138
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
139
|
}
|
|
@@ -161,13 +162,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
161
162
|
/**
|
|
162
163
|
* Creates a bank account for a specified account.
|
|
163
164
|
* @summary Create a bank account
|
|
164
|
-
* @param {
|
|
165
|
+
* @param {object} body
|
|
165
166
|
* @param {string} [authorization] Bearer Token
|
|
166
167
|
* @param {*} [options] Override http request option.
|
|
167
168
|
* @throws {RequiredError}
|
|
168
169
|
*/
|
|
169
|
-
async createBankAccount(
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(
|
|
170
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
171
172
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
172
173
|
},
|
|
173
174
|
/**
|
|
@@ -180,11 +181,12 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
180
181
|
* @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.
|
|
181
182
|
* @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.
|
|
182
183
|
* @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.
|
|
184
|
+
* @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.
|
|
183
185
|
* @param {*} [options] Override http request option.
|
|
184
186
|
* @throws {RequiredError}
|
|
185
187
|
*/
|
|
186
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
187
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
188
|
+
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>> {
|
|
189
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
188
190
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
189
191
|
},
|
|
190
192
|
}
|
|
@@ -200,13 +202,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
200
202
|
/**
|
|
201
203
|
* Creates a bank account for a specified account.
|
|
202
204
|
* @summary Create a bank account
|
|
203
|
-
* @param {
|
|
205
|
+
* @param {object} body
|
|
204
206
|
* @param {string} [authorization] Bearer Token
|
|
205
207
|
* @param {*} [options] Override http request option.
|
|
206
208
|
* @throws {RequiredError}
|
|
207
209
|
*/
|
|
208
|
-
createBankAccount(
|
|
209
|
-
return localVarFp.createBankAccount(
|
|
210
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
211
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
210
212
|
},
|
|
211
213
|
/**
|
|
212
214
|
* 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.
|
|
@@ -218,11 +220,12 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
218
220
|
* @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.
|
|
219
221
|
* @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.
|
|
220
222
|
* @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.
|
|
223
|
+
* @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.
|
|
221
224
|
* @param {*} [options] Override http request option.
|
|
222
225
|
* @throws {RequiredError}
|
|
223
226
|
*/
|
|
224
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
225
|
-
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
227
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
228
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
226
229
|
},
|
|
227
230
|
};
|
|
228
231
|
};
|
|
@@ -235,10 +238,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
235
238
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
236
239
|
/**
|
|
237
240
|
*
|
|
238
|
-
* @type {
|
|
241
|
+
* @type {object}
|
|
239
242
|
* @memberof BankAccountsApiCreateBankAccount
|
|
240
243
|
*/
|
|
241
|
-
readonly
|
|
244
|
+
readonly body: object
|
|
242
245
|
|
|
243
246
|
/**
|
|
244
247
|
* Bearer Token
|
|
@@ -302,6 +305,13 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
302
305
|
* @memberof BankAccountsApiListBankAccounts
|
|
303
306
|
*/
|
|
304
307
|
readonly expand?: any
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* 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.
|
|
311
|
+
* @type {any}
|
|
312
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
313
|
+
*/
|
|
314
|
+
readonly filters?: any
|
|
305
315
|
}
|
|
306
316
|
|
|
307
317
|
/**
|
|
@@ -320,7 +330,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
320
330
|
* @memberof BankAccountsApi
|
|
321
331
|
*/
|
|
322
332
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
323
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
333
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
324
334
|
}
|
|
325
335
|
|
|
326
336
|
/**
|
|
@@ -332,6 +342,6 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
332
342
|
* @memberof BankAccountsApi
|
|
333
343
|
*/
|
|
334
344
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
335
|
-
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));
|
|
345
|
+
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));
|
|
336
346
|
}
|
|
337
347
|
}
|
|
@@ -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
|
/**
|
|
30
28
|
* BankTransactionApi - axios parameter creator
|
|
@@ -33,7 +31,8 @@ import { ListBankTransactionsResponseClass } from '../models';
|
|
|
33
31
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
32
|
return {
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* 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.
|
|
35
|
+
* @summary Retrieve the Bank Transaction
|
|
37
36
|
* @param {string} code
|
|
38
37
|
* @param {string} [authorization] Bearer Token
|
|
39
38
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -83,7 +82,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
83
82
|
},
|
|
84
83
|
/**
|
|
85
84
|
* Import bank transactions from a swift MT940 file
|
|
86
|
-
* @summary Create the
|
|
85
|
+
* @summary Create the bank transactions
|
|
87
86
|
* @param {string} [authorization] Bearer Token
|
|
88
87
|
* @param {any} [file]
|
|
89
88
|
* @param {*} [options] Override http request option.
|
|
@@ -134,17 +133,14 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
134
133
|
/**
|
|
135
134
|
* Links a bank transaction with an invoice
|
|
136
135
|
* @summary Link Bank Transaction
|
|
137
|
-
* @param {string} code Code of the bank
|
|
138
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
136
|
+
* @param {string} code Code of the bank transaction to link
|
|
139
137
|
* @param {string} [authorization] Bearer Token
|
|
140
138
|
* @param {*} [options] Override http request option.
|
|
141
139
|
* @throws {RequiredError}
|
|
142
140
|
*/
|
|
143
|
-
linkBankTransaction: async (code: string,
|
|
141
|
+
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
142
|
// verify required parameter 'code' is not null or undefined
|
|
145
143
|
assertParamExists('linkBankTransaction', 'code', code)
|
|
146
|
-
// verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
|
|
147
|
-
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto)
|
|
148
144
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
149
145
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
150
146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -170,12 +166,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
170
166
|
|
|
171
167
|
|
|
172
168
|
|
|
173
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
174
|
-
|
|
175
169
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
171
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
178
|
-
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDto, localVarRequestOptions, configuration)
|
|
179
172
|
|
|
180
173
|
return {
|
|
181
174
|
url: toPathString(localVarUrlObj),
|
|
@@ -183,7 +176,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
183
176
|
};
|
|
184
177
|
},
|
|
185
178
|
/**
|
|
186
|
-
*
|
|
179
|
+
* 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.
|
|
180
|
+
* @summary List bank transactions
|
|
187
181
|
* @param {string} [authorization] Bearer Token
|
|
188
182
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
183
|
* @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.
|
|
@@ -191,10 +185,11 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
191
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.
|
|
192
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.
|
|
193
187
|
* @param {string} [expand] Expand the response with additional entities
|
|
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.
|
|
194
189
|
* @param {*} [options] Override http request option.
|
|
195
190
|
* @throws {RequiredError}
|
|
196
191
|
*/
|
|
197
|
-
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
|
+
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
193
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
199
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
195
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -237,6 +232,55 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
237
232
|
localVarQueryParameter['expand'] = expand;
|
|
238
233
|
}
|
|
239
234
|
|
|
235
|
+
if (filters !== undefined) {
|
|
236
|
+
localVarQueryParameter['filters'] = filters;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
240
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
248
|
+
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Unlinks an already linked bank transaction
|
|
256
|
+
* @summary Unlink Bank Transaction
|
|
257
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
258
|
+
* @param {string} [authorization] Bearer Token
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'code' is not null or undefined
|
|
264
|
+
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
265
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
266
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
269
|
+
let baseOptions;
|
|
270
|
+
let baseAccessToken;
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
baseAccessToken = configuration.accessToken;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
277
|
+
const localVarHeaderParameter = {} as any;
|
|
278
|
+
const localVarQueryParameter = {} as any;
|
|
279
|
+
|
|
280
|
+
// authentication bearer required
|
|
281
|
+
// http bearer authentication required
|
|
282
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
|
+
|
|
240
284
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
241
285
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
242
286
|
}
|
|
@@ -263,7 +307,8 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
263
307
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
264
308
|
return {
|
|
265
309
|
/**
|
|
266
|
-
*
|
|
310
|
+
* 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.
|
|
311
|
+
* @summary Retrieve the Bank Transaction
|
|
267
312
|
* @param {string} code
|
|
268
313
|
* @param {string} [authorization] Bearer Token
|
|
269
314
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -276,7 +321,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
276
321
|
},
|
|
277
322
|
/**
|
|
278
323
|
* Import bank transactions from a swift MT940 file
|
|
279
|
-
* @summary Create the
|
|
324
|
+
* @summary Create the bank transactions
|
|
280
325
|
* @param {string} [authorization] Bearer Token
|
|
281
326
|
* @param {any} [file]
|
|
282
327
|
* @param {*} [options] Override http request option.
|
|
@@ -289,18 +334,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
289
334
|
/**
|
|
290
335
|
* Links a bank transaction with an invoice
|
|
291
336
|
* @summary Link Bank Transaction
|
|
292
|
-
* @param {string} code Code of the bank
|
|
293
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
337
|
+
* @param {string} code Code of the bank transaction to link
|
|
294
338
|
* @param {string} [authorization] Bearer Token
|
|
295
339
|
* @param {*} [options] Override http request option.
|
|
296
340
|
* @throws {RequiredError}
|
|
297
341
|
*/
|
|
298
|
-
async linkBankTransaction(code: string,
|
|
299
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code,
|
|
342
|
+
async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
|
|
300
344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
301
345
|
},
|
|
302
346
|
/**
|
|
303
|
-
*
|
|
347
|
+
* 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.
|
|
348
|
+
* @summary List bank transactions
|
|
304
349
|
* @param {string} [authorization] Bearer Token
|
|
305
350
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
306
351
|
* @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.
|
|
@@ -308,11 +353,24 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
308
353
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
309
354
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
310
355
|
* @param {string} [expand] Expand the response with additional entities
|
|
356
|
+
* @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.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
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>> {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
362
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* Unlinks an already linked bank transaction
|
|
366
|
+
* @summary Unlink Bank Transaction
|
|
367
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
311
369
|
* @param {*} [options] Override http request option.
|
|
312
370
|
* @throws {RequiredError}
|
|
313
371
|
*/
|
|
314
|
-
async
|
|
315
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
372
|
+
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
316
374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
375
|
},
|
|
318
376
|
}
|
|
@@ -326,7 +384,8 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
326
384
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
327
385
|
return {
|
|
328
386
|
/**
|
|
329
|
-
*
|
|
387
|
+
* 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.
|
|
388
|
+
* @summary Retrieve the Bank Transaction
|
|
330
389
|
* @param {string} code
|
|
331
390
|
* @param {string} [authorization] Bearer Token
|
|
332
391
|
* @param {string} [expand] Expand the response with additional entities
|
|
@@ -338,7 +397,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
338
397
|
},
|
|
339
398
|
/**
|
|
340
399
|
* Import bank transactions from a swift MT940 file
|
|
341
|
-
* @summary Create the
|
|
400
|
+
* @summary Create the bank transactions
|
|
342
401
|
* @param {string} [authorization] Bearer Token
|
|
343
402
|
* @param {any} [file]
|
|
344
403
|
* @param {*} [options] Override http request option.
|
|
@@ -350,17 +409,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
350
409
|
/**
|
|
351
410
|
* Links a bank transaction with an invoice
|
|
352
411
|
* @summary Link Bank Transaction
|
|
353
|
-
* @param {string} code Code of the bank
|
|
354
|
-
* @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
|
|
412
|
+
* @param {string} code Code of the bank transaction to link
|
|
355
413
|
* @param {string} [authorization] Bearer Token
|
|
356
414
|
* @param {*} [options] Override http request option.
|
|
357
415
|
* @throws {RequiredError}
|
|
358
416
|
*/
|
|
359
|
-
linkBankTransaction(code: string,
|
|
360
|
-
return localVarFp.linkBankTransaction(code,
|
|
417
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
418
|
+
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
361
419
|
},
|
|
362
420
|
/**
|
|
363
|
-
*
|
|
421
|
+
* 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.
|
|
422
|
+
* @summary List bank transactions
|
|
364
423
|
* @param {string} [authorization] Bearer Token
|
|
365
424
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
425
|
* @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.
|
|
@@ -368,11 +427,23 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
368
427
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
369
428
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
370
429
|
* @param {string} [expand] Expand the response with additional entities
|
|
430
|
+
* @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.
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
|
|
435
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
436
|
+
},
|
|
437
|
+
/**
|
|
438
|
+
* Unlinks an already linked bank transaction
|
|
439
|
+
* @summary Unlink Bank Transaction
|
|
440
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
441
|
+
* @param {string} [authorization] Bearer Token
|
|
371
442
|
* @param {*} [options] Override http request option.
|
|
372
443
|
* @throws {RequiredError}
|
|
373
444
|
*/
|
|
374
|
-
|
|
375
|
-
return localVarFp.
|
|
445
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
446
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
376
447
|
},
|
|
377
448
|
};
|
|
378
449
|
};
|
|
@@ -433,19 +504,12 @@ export interface BankTransactionApiImportBankTransactionsRequest {
|
|
|
433
504
|
*/
|
|
434
505
|
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
435
506
|
/**
|
|
436
|
-
* Code of the bank
|
|
507
|
+
* Code of the bank transaction to link
|
|
437
508
|
* @type {string}
|
|
438
509
|
* @memberof BankTransactionApiLinkBankTransaction
|
|
439
510
|
*/
|
|
440
511
|
readonly code: string
|
|
441
512
|
|
|
442
|
-
/**
|
|
443
|
-
*
|
|
444
|
-
* @type {LinkBankTransactionRequestDto}
|
|
445
|
-
* @memberof BankTransactionApiLinkBankTransaction
|
|
446
|
-
*/
|
|
447
|
-
readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto
|
|
448
|
-
|
|
449
513
|
/**
|
|
450
514
|
* Bearer Token
|
|
451
515
|
* @type {string}
|
|
@@ -508,6 +572,34 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
508
572
|
* @memberof BankTransactionApiListBankTransactions
|
|
509
573
|
*/
|
|
510
574
|
readonly expand?: string
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* 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.
|
|
578
|
+
* @type {any}
|
|
579
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
580
|
+
*/
|
|
581
|
+
readonly filters?: any
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
586
|
+
* @export
|
|
587
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
588
|
+
*/
|
|
589
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
590
|
+
/**
|
|
591
|
+
* Code of the bank transaction to unlink
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
594
|
+
*/
|
|
595
|
+
readonly code: string
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Bearer Token
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
601
|
+
*/
|
|
602
|
+
readonly authorization?: string
|
|
511
603
|
}
|
|
512
604
|
|
|
513
605
|
/**
|
|
@@ -518,7 +610,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
518
610
|
*/
|
|
519
611
|
export class BankTransactionApi extends BaseAPI {
|
|
520
612
|
/**
|
|
521
|
-
*
|
|
613
|
+
* 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.
|
|
614
|
+
* @summary Retrieve the Bank Transaction
|
|
522
615
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
523
616
|
* @param {*} [options] Override http request option.
|
|
524
617
|
* @throws {RequiredError}
|
|
@@ -530,7 +623,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
530
623
|
|
|
531
624
|
/**
|
|
532
625
|
* Import bank transactions from a swift MT940 file
|
|
533
|
-
* @summary Create the
|
|
626
|
+
* @summary Create the bank transactions
|
|
534
627
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
535
628
|
* @param {*} [options] Override http request option.
|
|
536
629
|
* @throws {RequiredError}
|
|
@@ -549,17 +642,30 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
549
642
|
* @memberof BankTransactionApi
|
|
550
643
|
*/
|
|
551
644
|
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
552
|
-
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.
|
|
645
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
553
646
|
}
|
|
554
647
|
|
|
555
648
|
/**
|
|
556
|
-
*
|
|
649
|
+
* 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.
|
|
650
|
+
* @summary List bank transactions
|
|
557
651
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
558
652
|
* @param {*} [options] Override http request option.
|
|
559
653
|
* @throws {RequiredError}
|
|
560
654
|
* @memberof BankTransactionApi
|
|
561
655
|
*/
|
|
562
656
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
563
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
657
|
+
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));
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Unlinks an already linked bank transaction
|
|
662
|
+
* @summary Unlink Bank Transaction
|
|
663
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
* @memberof BankTransactionApi
|
|
667
|
+
*/
|
|
668
|
+
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
669
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
564
670
|
}
|
|
565
671
|
}
|