@emilgroup/payment-sdk 1.0.0 → 1.4.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 +657 -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 +462 -0
- package/api/tenant-bank-account-api.ts +651 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +2 -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 +632 -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 +443 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +616 -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 +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 +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 +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- 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/git_push.sh +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- 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 -2
- package/api/payment-service-providers-api.ts +0 -161
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -220
- 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 -112
- package/dist/models/payment-reminder-class.js +0 -36
- 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 -122
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@1.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.0 --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.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
|
/**
|
|
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),
|
|
@@ -81,7 +77,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
81
77
|
* 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.
|
|
82
78
|
* @summary List bank accounts
|
|
83
79
|
* @param {string} [authorization] Bearer Token
|
|
84
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
80
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
85
81
|
* @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.
|
|
86
82
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
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.
|
|
@@ -161,20 +157,20 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
161
157
|
/**
|
|
162
158
|
* Creates a bank account for a specified account.
|
|
163
159
|
* @summary Create a bank account
|
|
164
|
-
* @param {
|
|
160
|
+
* @param {object} body
|
|
165
161
|
* @param {string} [authorization] Bearer Token
|
|
166
162
|
* @param {*} [options] Override http request option.
|
|
167
163
|
* @throws {RequiredError}
|
|
168
164
|
*/
|
|
169
|
-
async createBankAccount(
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(
|
|
165
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
171
167
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
172
168
|
},
|
|
173
169
|
/**
|
|
174
170
|
* 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.
|
|
175
171
|
* @summary List bank accounts
|
|
176
172
|
* @param {string} [authorization] Bearer Token
|
|
177
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
173
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
178
174
|
* @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.
|
|
179
175
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
180
176
|
* @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.
|
|
@@ -183,7 +179,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
183
179
|
* @param {*} [options] Override http request option.
|
|
184
180
|
* @throws {RequiredError}
|
|
185
181
|
*/
|
|
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<
|
|
182
|
+
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>> {
|
|
187
183
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
188
184
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
189
185
|
},
|
|
@@ -200,19 +196,19 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
200
196
|
/**
|
|
201
197
|
* Creates a bank account for a specified account.
|
|
202
198
|
* @summary Create a bank account
|
|
203
|
-
* @param {
|
|
199
|
+
* @param {object} body
|
|
204
200
|
* @param {string} [authorization] Bearer Token
|
|
205
201
|
* @param {*} [options] Override http request option.
|
|
206
202
|
* @throws {RequiredError}
|
|
207
203
|
*/
|
|
208
|
-
createBankAccount(
|
|
209
|
-
return localVarFp.createBankAccount(
|
|
204
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
205
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
210
206
|
},
|
|
211
207
|
/**
|
|
212
208
|
* 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.
|
|
213
209
|
* @summary List bank accounts
|
|
214
210
|
* @param {string} [authorization] Bearer Token
|
|
215
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
211
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
216
212
|
* @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.
|
|
217
213
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
218
214
|
* @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.
|
|
@@ -221,7 +217,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
221
217
|
* @param {*} [options] Override http request option.
|
|
222
218
|
* @throws {RequiredError}
|
|
223
219
|
*/
|
|
224
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
220
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
|
|
225
221
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
226
222
|
},
|
|
227
223
|
};
|
|
@@ -235,10 +231,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
235
231
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
236
232
|
/**
|
|
237
233
|
*
|
|
238
|
-
* @type {
|
|
234
|
+
* @type {object}
|
|
239
235
|
* @memberof BankAccountsApiCreateBankAccount
|
|
240
236
|
*/
|
|
241
|
-
readonly
|
|
237
|
+
readonly body: object
|
|
242
238
|
|
|
243
239
|
/**
|
|
244
240
|
* Bearer Token
|
|
@@ -262,7 +258,7 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
262
258
|
readonly authorization?: string
|
|
263
259
|
|
|
264
260
|
/**
|
|
265
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
261
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
266
262
|
* @type {any}
|
|
267
263
|
* @memberof BankAccountsApiListBankAccounts
|
|
268
264
|
*/
|
|
@@ -320,7 +316,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
320
316
|
* @memberof BankAccountsApi
|
|
321
317
|
*/
|
|
322
318
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
323
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
319
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
324
320
|
}
|
|
325
321
|
|
|
326
322
|
/**
|