@emilgroup/payment-sdk-node 1.8.2 → 1.13.1-beta.0
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 +15 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -25
- package/api/bank-transaction-api.ts +661 -0
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -46
- package/api/payment-reminders-api.ts +17 -19
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +30 -32
- package/api/refunds-api.ts +466 -0
- package/api/tenant-bank-account-api.ts +655 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -19
- package/dist/api/bank-accounts-api.js +16 -16
- package/dist/api/bank-transaction-api.d.ts +371 -0
- package/dist/api/bank-transaction-api.js +636 -0
- 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 +32 -36
- package/dist/api/payment-methods-api.js +32 -28
- package/dist/api/payment-reminders-api.d.ts +21 -22
- package/dist/api/payment-reminders-api.js +8 -8
- 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 +26 -29
- package/dist/api/payments-api.js +20 -16
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +447 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +620 -0
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- 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 +122 -0
- package/dist/models/{bank-account-class.js → bank-transaction-response-class.js} +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +3 -1
- package/dist/models/create-payment-reminder-request-dto.js +4 -2
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
- package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
- package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
- package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
- package/dist/models/{billing-profile-limited-response-dto.js → 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-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -29
- package/dist/models/index.js +12 -29
- package/dist/models/inline-response200.d.ts +7 -7
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +7 -7
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- 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 +128 -0
- package/models/create-payment-reminder-request-dto.ts +4 -2
- package/models/create-payment-request-dto.ts +3 -3
- package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
- package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
- package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
- package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
- package/models/get-request-dto.ts +2 -2
- package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
- package/models/index.ts +12 -29
- package/models/inline-response200.ts +7 -7
- package/models/inline-response503.ts +7 -7
- package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
- package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
- package/models/refund-class.ts +114 -0
- package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
- package/models/transaction-class.ts +1 -1
- package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/api/payment-service-providers-api.ts +0 -165
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -224
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- 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.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/get-payment-method-response-class.js +0 -15
- 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/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.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.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.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -108
- package/dist/models/payment-reminder-class.js +0 -32
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/validate-pspconfig-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- 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-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/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/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-reminder-class.ts +0 -118
package/.openapi-generator/FILES
CHANGED
|
@@ -4,55 +4,40 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/bank-accounts-api.ts
|
|
7
|
+
api/bank-transaction-api.ts
|
|
7
8
|
api/default-api.ts
|
|
8
9
|
api/payment-methods-api.ts
|
|
9
10
|
api/payment-reminders-api.ts
|
|
10
|
-
api/payment-service-providers-api.ts
|
|
11
11
|
api/payment-setup-api.ts
|
|
12
12
|
api/payments-api.ts
|
|
13
|
+
api/refunds-api.ts
|
|
14
|
+
api/tenant-bank-account-api.ts
|
|
13
15
|
api/webhooks-api.ts
|
|
14
16
|
base.ts
|
|
15
17
|
common.ts
|
|
16
18
|
configuration.ts
|
|
17
19
|
git_push.sh
|
|
18
20
|
index.ts
|
|
19
|
-
models/bank-
|
|
20
|
-
models/billing-profile-dto.ts
|
|
21
|
-
models/billing-profile-limited-response-dto.ts
|
|
22
|
-
models/complete-braintree-payment-setup-request-dto.ts
|
|
23
|
-
models/complete-payment-setup-request-dto.ts
|
|
24
|
-
models/complete-payment-setup-response-class.ts
|
|
25
|
-
models/complete-stripe-payment-setup-request-dto.ts
|
|
26
|
-
models/create-bank-account-request-dto.ts
|
|
27
|
-
models/create-payment-method-response-class.ts
|
|
21
|
+
models/bank-transaction-response-class.ts
|
|
28
22
|
models/create-payment-reminder-request-dto.ts
|
|
29
23
|
models/create-payment-request-dto.ts
|
|
30
|
-
models/create-
|
|
31
|
-
models/create-
|
|
24
|
+
models/create-refund-request-dto.ts
|
|
25
|
+
models/create-refund-response-class.ts
|
|
26
|
+
models/create-tenant-bank-account-request-dto.ts
|
|
32
27
|
models/deactivate-payment-reminder-request-dto.ts
|
|
33
|
-
models/get-
|
|
34
|
-
models/get-
|
|
28
|
+
models/get-bank-transactions-response-class.ts
|
|
29
|
+
models/get-refund-response-class.ts
|
|
35
30
|
models/get-request-dto.ts
|
|
31
|
+
models/get-tenant-bank-account-response-class.ts
|
|
36
32
|
models/index.ts
|
|
37
|
-
models/initiate-braintree-payment-setup-request-dto.ts
|
|
38
|
-
models/initiate-braintree-payment-setup-response-class.ts
|
|
39
|
-
models/initiate-payment-setup-request-dto.ts
|
|
40
|
-
models/initiate-payment-setup-response-class.ts
|
|
41
|
-
models/initiate-stripe-payment-setup-request-dto.ts
|
|
42
|
-
models/initiate-stripe-payment-setup-response-class.ts
|
|
43
33
|
models/inline-response200.ts
|
|
44
34
|
models/inline-response503.ts
|
|
45
|
-
models/list-bank-
|
|
46
|
-
models/list-
|
|
47
|
-
models/
|
|
48
|
-
models/
|
|
49
|
-
models/payment-class.ts
|
|
50
|
-
models/payment-method-class.ts
|
|
51
|
-
models/payment-reminder-class.ts
|
|
52
|
-
models/sepa-direct-dto.ts
|
|
53
|
-
models/symphony-profile-limited-response-dto.ts
|
|
35
|
+
models/list-bank-transactions-response-class.ts
|
|
36
|
+
models/list-refunds-response-class.ts
|
|
37
|
+
models/refund-class.ts
|
|
38
|
+
models/tenant-bank-account-response-class.ts
|
|
54
39
|
models/transaction-class.ts
|
|
40
|
+
models/update-tenant-bank-account-rest-request-dto.ts
|
|
55
41
|
models/validate-pspconfig-request-dto.ts
|
|
56
|
-
models/validate-pspconfig-response-class.ts
|
|
57
42
|
package.json
|
|
58
43
|
tsconfig.json
|
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.0 --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.0
|
|
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),
|
|
@@ -85,7 +81,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
85
81
|
* 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.
|
|
86
82
|
* @summary List bank accounts
|
|
87
83
|
* @param {string} [authorization] Bearer Token
|
|
88
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
84
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
89
85
|
* @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.
|
|
90
86
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
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.
|
|
@@ -165,20 +161,20 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
165
161
|
/**
|
|
166
162
|
* Creates a bank account for a specified account.
|
|
167
163
|
* @summary Create a bank account
|
|
168
|
-
* @param {
|
|
164
|
+
* @param {object} body
|
|
169
165
|
* @param {string} [authorization] Bearer Token
|
|
170
166
|
* @param {*} [options] Override http request option.
|
|
171
167
|
* @throws {RequiredError}
|
|
172
168
|
*/
|
|
173
|
-
async createBankAccount(
|
|
174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(
|
|
169
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
175
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
176
172
|
},
|
|
177
173
|
/**
|
|
178
174
|
* 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.
|
|
179
175
|
* @summary List bank accounts
|
|
180
176
|
* @param {string} [authorization] Bearer Token
|
|
181
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
177
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
182
178
|
* @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.
|
|
183
179
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
184
180
|
* @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.
|
|
@@ -187,7 +183,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
187
183
|
* @param {*} [options] Override http request option.
|
|
188
184
|
* @throws {RequiredError}
|
|
189
185
|
*/
|
|
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<
|
|
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<void>> {
|
|
191
187
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
192
188
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
193
189
|
},
|
|
@@ -204,19 +200,19 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
204
200
|
/**
|
|
205
201
|
* Creates a bank account for a specified account.
|
|
206
202
|
* @summary Create a bank account
|
|
207
|
-
* @param {
|
|
203
|
+
* @param {object} body
|
|
208
204
|
* @param {string} [authorization] Bearer Token
|
|
209
205
|
* @param {*} [options] Override http request option.
|
|
210
206
|
* @throws {RequiredError}
|
|
211
207
|
*/
|
|
212
|
-
createBankAccount(
|
|
213
|
-
return localVarFp.createBankAccount(
|
|
208
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
209
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
214
210
|
},
|
|
215
211
|
/**
|
|
216
212
|
* 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.
|
|
217
213
|
* @summary List bank accounts
|
|
218
214
|
* @param {string} [authorization] Bearer Token
|
|
219
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
215
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
220
216
|
* @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.
|
|
221
217
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
222
218
|
* @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.
|
|
@@ -225,7 +221,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
225
221
|
* @param {*} [options] Override http request option.
|
|
226
222
|
* @throws {RequiredError}
|
|
227
223
|
*/
|
|
228
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
224
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
229
225
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
230
226
|
},
|
|
231
227
|
};
|
|
@@ -239,10 +235,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
239
235
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
240
236
|
/**
|
|
241
237
|
*
|
|
242
|
-
* @type {
|
|
238
|
+
* @type {object}
|
|
243
239
|
* @memberof BankAccountsApiCreateBankAccount
|
|
244
240
|
*/
|
|
245
|
-
readonly
|
|
241
|
+
readonly body: object
|
|
246
242
|
|
|
247
243
|
/**
|
|
248
244
|
* Bearer Token
|
|
@@ -266,7 +262,7 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
266
262
|
readonly authorization?: string
|
|
267
263
|
|
|
268
264
|
/**
|
|
269
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
265
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
270
266
|
* @type {any}
|
|
271
267
|
* @memberof BankAccountsApiListBankAccounts
|
|
272
268
|
*/
|
|
@@ -324,7 +320,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
324
320
|
* @memberof BankAccountsApi
|
|
325
321
|
*/
|
|
326
322
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
327
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
323
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
328
324
|
}
|
|
329
325
|
|
|
330
326
|
/**
|