@emilgroup/payment-sdk-node 1.3.0 → 1.5.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 +9 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +174 -0
- package/api/default-api.ts +124 -0
- package/api/payment-methods-api.ts +16 -16
- package/api/payment-reminders-api.ts +16 -16
- package/api/payments-api.ts +16 -16
- package/api.ts +2 -0
- package/dist/api/bank-accounts-api.d.ts +101 -0
- package/dist/api/bank-accounts-api.js +123 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/payment-methods-api.d.ts +16 -16
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +16 -16
- package/dist/api/payment-reminders-api.js +12 -12
- package/dist/api/payments-api.d.ts +16 -16
- package/dist/api/payments-api.js +12 -12
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +8 -0
- package/dist/models/create-psp-payment-method-request-dto.js +2 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +15 -2
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/transaction-class.d.ts +54 -0
- package/dist/models/transaction-class.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -0
- package/dist/models/validate-pspconfig-request-dto.js +2 -1
- package/models/bank-account-class.ts +60 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-psp-payment-method-request-dto.ts +9 -1
- package/models/index.ts +8 -0
- package/models/initiate-payment-setup-request-dto.ts +6 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/payment-class.ts +15 -2
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/transaction-class.ts +60 -0
- package/models/validate-pspconfig-request-dto.ts +2 -1
- package/package.json +1 -1
package/api/payments-api.ts
CHANGED
|
@@ -152,12 +152,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
152
152
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
153
153
|
* @summary List payments
|
|
154
154
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
156
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
155
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
156
|
+
* @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.
|
|
157
157
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
158
158
|
* @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.
|
|
159
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
160
|
-
* @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
|
|
159
|
+
* @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.
|
|
160
|
+
* @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.
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
@@ -260,12 +260,12 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
260
260
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
261
261
|
* @summary List payments
|
|
262
262
|
* @param {string} [authorization] Bearer Token
|
|
263
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
264
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
263
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
264
|
+
* @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.
|
|
265
265
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
266
266
|
* @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.
|
|
267
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
268
|
-
* @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
|
|
267
|
+
* @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.
|
|
268
|
+
* @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.
|
|
269
269
|
* @param {*} [options] Override http request option.
|
|
270
270
|
* @throws {RequiredError}
|
|
271
271
|
*/
|
|
@@ -312,12 +312,12 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
312
312
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
313
313
|
* @summary List payments
|
|
314
314
|
* @param {string} [authorization] Bearer Token
|
|
315
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
316
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
315
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
316
|
+
* @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.
|
|
317
317
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
318
318
|
* @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.
|
|
319
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
320
|
-
* @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
|
|
319
|
+
* @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.
|
|
320
|
+
* @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.
|
|
321
321
|
* @param {*} [options] Override http request option.
|
|
322
322
|
* @throws {RequiredError}
|
|
323
323
|
*/
|
|
@@ -404,14 +404,14 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
404
404
|
readonly authorization?: string
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
|
-
* A limit on the number of objects to be returned.
|
|
407
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
408
408
|
* @type {any}
|
|
409
409
|
* @memberof PaymentsApiListPayments
|
|
410
410
|
*/
|
|
411
411
|
readonly pageSize?: any
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
|
-
* A cursor for use in pagination.
|
|
414
|
+
* 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.
|
|
415
415
|
* @type {any}
|
|
416
416
|
* @memberof PaymentsApiListPayments
|
|
417
417
|
*/
|
|
@@ -432,14 +432,14 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
432
432
|
readonly search?: any
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
435
|
+
* 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.
|
|
436
436
|
* @type {any}
|
|
437
437
|
* @memberof PaymentsApiListPayments
|
|
438
438
|
*/
|
|
439
439
|
readonly order?: any
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
|
-
* 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
|
|
442
|
+
* 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.
|
|
443
443
|
* @type {any}
|
|
444
444
|
* @memberof PaymentsApiListPayments
|
|
445
445
|
*/
|
package/api.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { BankAccountsApi } from './api';
|
|
28
|
+
import { DefaultApi } from './api';
|
|
28
29
|
import { PaymentMethodsApi } from './api';
|
|
29
30
|
import { PaymentRemindersApi } from './api';
|
|
30
31
|
import { PaymentServiceProvidersApi } from './api';
|
|
@@ -34,6 +35,7 @@ import { WebhooksApi } from './api';
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
export * from './api/bank-accounts-api';
|
|
38
|
+
export * from './api/default-api';
|
|
37
39
|
export * from './api/payment-methods-api';
|
|
38
40
|
export * from './api/payment-reminders-api';
|
|
39
41
|
export * from './api/payment-service-providers-api';
|
|
@@ -13,6 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBankAccountRequestDto } from '../models';
|
|
16
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
16
17
|
/**
|
|
17
18
|
* BankAccountsApi - axios parameter creator
|
|
18
19
|
* @export
|
|
@@ -27,6 +28,20 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
*/
|
|
29
30
|
createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
* @summary List bank accounts
|
|
34
|
+
* @param {string} [authorization] Bearer Token
|
|
35
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
36
|
+
* @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.
|
|
37
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
38
|
+
* @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.
|
|
39
|
+
* @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.
|
|
40
|
+
* @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.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
listBankAccounts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
45
|
};
|
|
31
46
|
/**
|
|
32
47
|
* BankAccountsApi - functional programming interface
|
|
@@ -42,6 +57,20 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
42
57
|
* @throws {RequiredError}
|
|
43
58
|
*/
|
|
44
59
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
* @summary List bank accounts
|
|
63
|
+
* @param {string} [authorization] Bearer Token
|
|
64
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
65
|
+
* @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.
|
|
66
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
67
|
+
* @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.
|
|
68
|
+
* @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.
|
|
69
|
+
* @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.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
45
74
|
};
|
|
46
75
|
/**
|
|
47
76
|
* BankAccountsApi - factory interface
|
|
@@ -57,6 +86,20 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
57
86
|
* @throws {RequiredError}
|
|
58
87
|
*/
|
|
59
88
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
89
|
+
/**
|
|
90
|
+
* 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.
|
|
91
|
+
* @summary List bank accounts
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
94
|
+
* @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.
|
|
95
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
96
|
+
* @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.
|
|
97
|
+
* @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.
|
|
98
|
+
* @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.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
60
103
|
};
|
|
61
104
|
/**
|
|
62
105
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -77,6 +120,55 @@ export interface BankAccountsApiCreateBankAccountRequest {
|
|
|
77
120
|
*/
|
|
78
121
|
readonly authorization?: string;
|
|
79
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
125
|
+
* @export
|
|
126
|
+
* @interface BankAccountsApiListBankAccountsRequest
|
|
127
|
+
*/
|
|
128
|
+
export interface BankAccountsApiListBankAccountsRequest {
|
|
129
|
+
/**
|
|
130
|
+
* Bearer Token
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
133
|
+
*/
|
|
134
|
+
readonly authorization?: string;
|
|
135
|
+
/**
|
|
136
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
137
|
+
* @type {any}
|
|
138
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
139
|
+
*/
|
|
140
|
+
readonly pageSize?: any;
|
|
141
|
+
/**
|
|
142
|
+
* 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.
|
|
143
|
+
* @type {any}
|
|
144
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
145
|
+
*/
|
|
146
|
+
readonly pageToken?: any;
|
|
147
|
+
/**
|
|
148
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
149
|
+
* @type {any}
|
|
150
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
151
|
+
*/
|
|
152
|
+
readonly filter?: any;
|
|
153
|
+
/**
|
|
154
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
155
|
+
* @type {any}
|
|
156
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
157
|
+
*/
|
|
158
|
+
readonly search?: any;
|
|
159
|
+
/**
|
|
160
|
+
* 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.
|
|
161
|
+
* @type {any}
|
|
162
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
163
|
+
*/
|
|
164
|
+
readonly order?: any;
|
|
165
|
+
/**
|
|
166
|
+
* 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.
|
|
167
|
+
* @type {any}
|
|
168
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
169
|
+
*/
|
|
170
|
+
readonly expand?: any;
|
|
171
|
+
}
|
|
80
172
|
/**
|
|
81
173
|
* BankAccountsApi - object-oriented interface
|
|
82
174
|
* @export
|
|
@@ -93,4 +185,13 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
93
185
|
* @memberof BankAccountsApi
|
|
94
186
|
*/
|
|
95
187
|
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
188
|
+
/**
|
|
189
|
+
* 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.
|
|
190
|
+
* @summary List bank accounts
|
|
191
|
+
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof BankAccountsApi
|
|
195
|
+
*/
|
|
196
|
+
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
96
197
|
}
|
|
@@ -145,6 +145,74 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
* @summary List bank accounts
|
|
151
|
+
* @param {string} [authorization] Bearer Token
|
|
152
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
153
|
+
* @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.
|
|
154
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
155
|
+
* @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.
|
|
156
|
+
* @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.
|
|
157
|
+
* @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.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
162
|
+
if (options === void 0) { options = {}; }
|
|
163
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
+
return __generator(this, function (_a) {
|
|
166
|
+
switch (_a.label) {
|
|
167
|
+
case 0:
|
|
168
|
+
localVarPath = "/paymentservice/v1/bank-accounts";
|
|
169
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
baseAccessToken = configuration.accessToken;
|
|
173
|
+
}
|
|
174
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
175
|
+
localVarHeaderParameter = {};
|
|
176
|
+
localVarQueryParameter = {};
|
|
177
|
+
// authentication bearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
180
|
+
case 1:
|
|
181
|
+
// authentication bearer required
|
|
182
|
+
// http bearer authentication required
|
|
183
|
+
_a.sent();
|
|
184
|
+
if (pageSize !== undefined) {
|
|
185
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
186
|
+
}
|
|
187
|
+
if (pageToken !== undefined) {
|
|
188
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
189
|
+
}
|
|
190
|
+
if (filter !== undefined) {
|
|
191
|
+
localVarQueryParameter['filter'] = filter;
|
|
192
|
+
}
|
|
193
|
+
if (search !== undefined) {
|
|
194
|
+
localVarQueryParameter['search'] = search;
|
|
195
|
+
}
|
|
196
|
+
if (order !== undefined) {
|
|
197
|
+
localVarQueryParameter['order'] = order;
|
|
198
|
+
}
|
|
199
|
+
if (expand !== undefined) {
|
|
200
|
+
localVarQueryParameter['expand'] = expand;
|
|
201
|
+
}
|
|
202
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
203
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
204
|
+
}
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
return [2 /*return*/, {
|
|
209
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
},
|
|
148
216
|
};
|
|
149
217
|
};
|
|
150
218
|
exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
|
|
@@ -176,6 +244,32 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
176
244
|
});
|
|
177
245
|
});
|
|
178
246
|
},
|
|
247
|
+
/**
|
|
248
|
+
* 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.
|
|
249
|
+
* @summary List bank accounts
|
|
250
|
+
* @param {string} [authorization] Bearer Token
|
|
251
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
252
|
+
* @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.
|
|
253
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
254
|
+
* @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.
|
|
255
|
+
* @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.
|
|
256
|
+
* @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.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
262
|
+
var localVarAxiosArgs;
|
|
263
|
+
return __generator(this, function (_a) {
|
|
264
|
+
switch (_a.label) {
|
|
265
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
266
|
+
case 1:
|
|
267
|
+
localVarAxiosArgs = _a.sent();
|
|
268
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
},
|
|
179
273
|
};
|
|
180
274
|
};
|
|
181
275
|
exports.BankAccountsApiFp = BankAccountsApiFp;
|
|
@@ -197,6 +291,22 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
197
291
|
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
198
292
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
199
293
|
},
|
|
294
|
+
/**
|
|
295
|
+
* 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.
|
|
296
|
+
* @summary List bank accounts
|
|
297
|
+
* @param {string} [authorization] Bearer Token
|
|
298
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
299
|
+
* @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.
|
|
300
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
301
|
+
* @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.
|
|
302
|
+
* @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.
|
|
303
|
+
* @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.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
308
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
309
|
+
},
|
|
200
310
|
};
|
|
201
311
|
};
|
|
202
312
|
exports.BankAccountsApiFactory = BankAccountsApiFactory;
|
|
@@ -223,6 +333,19 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
223
333
|
var _this = this;
|
|
224
334
|
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* 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.
|
|
338
|
+
* @summary List bank accounts
|
|
339
|
+
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
* @memberof BankAccountsApi
|
|
343
|
+
*/
|
|
344
|
+
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
|
|
345
|
+
var _this = this;
|
|
346
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
347
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
348
|
+
};
|
|
226
349
|
return BankAccountsApi;
|
|
227
350
|
}(base_1.BaseAPI));
|
|
228
351
|
exports.BankAccountsApi = BankAccountsApi;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DefaultApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class DefaultApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof DefaultApi
|
|
64
|
+
*/
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
+
}
|