@emilgroup/payment-sdk 1.5.1-beta.2 → 1.6.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 +50 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +20 -12
- package/api/bank-transaction-api.ts +20 -10
- package/api/payment-methods-api.ts +26 -18
- package/api/payment-reminders-api.ts +16 -8
- package/api/payment-setup-api.ts +36 -28
- package/api/payments-api.ts +12 -6
- package/api/refunds-api.ts +12 -6
- package/dist/api/bank-accounts-api.d.ts +22 -18
- package/dist/api/bank-transaction-api.d.ts +20 -15
- package/dist/api/payment-methods-api.d.ts +19 -15
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +16 -12
- package/dist/api/payment-setup-api.d.ts +22 -18
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +12 -9
- package/dist/api/refunds-api.d.ts +12 -9
- package/dist/models/bank-account-class-without-expand-properties.d.ts +84 -0
- package/dist/models/bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/bank-account-class.d.ts +91 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-class.d.ts +140 -0
- package/dist/models/bank-transaction-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/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +38 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +77 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +32 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-bank-account-response-class.d.ts +25 -0
- package/dist/models/create-bank-account-response-class.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/create-payment-reminder-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +67 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +102 -0
- package/dist/models/deactivated-payment-reminder-class.js +15 -0
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/get-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/import-bank-transactions-response-class.js +15 -0
- package/dist/models/index.d.ts +50 -0
- package/dist/models/index.js +50 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +50 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/link-bank-transactions-response-class.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/list-bank-transactions-response-class.d.ts +31 -0
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +108 -0
- package/dist/models/payment-class-without-expand-properties.js +15 -0
- package/dist/models/payment-class.d.ts +115 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +84 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +102 -0
- package/dist/models/payment-reminder-class.js +15 -0
- package/dist/models/primary-bank-account-response-class.d.ts +54 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +118 -0
- package/dist/models/refund-class.js +29 -0
- package/dist/models/refund-item-class.d.ts +114 -0
- package/dist/models/refund-item-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/shared-transaction-class.d.ts +72 -0
- package/dist/models/shared-transaction-class.js +15 -0
- 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/unlink-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/unlink-bank-transactions-response-class.js +15 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +108 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
- package/dist/models/validate-pspconfig-request-dto.js +7 -0
- package/models/bank-account-class-without-expand-properties.ts +90 -0
- package/models/bank-account-class.ts +97 -0
- package/models/bank-transaction-class.ts +146 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +44 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +86 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-bank-account-response-class.ts +31 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +76 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/deactivated-payment-reminder-class.ts +108 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +31 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +31 -0
- package/models/import-bank-transactions-response-class.ts +31 -0
- package/models/index.ts +50 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +56 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/link-bank-transactions-response-class.ts +31 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +114 -0
- package/models/payment-class.ts +121 -0
- package/models/payment-method-class.ts +90 -0
- package/models/payment-reminder-class.ts +108 -0
- package/models/primary-bank-account-response-class.ts +60 -0
- package/models/refund-class.ts +128 -0
- package/models/refund-item-class.ts +120 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/shared-transaction-class.ts +78 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/unlink-bank-transactions-response-class.ts +31 -0
- package/models/unlinked-bank-transaction-response-class.ts +114 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/validate-pspconfig-request-dto.ts +11 -1
- package/package.json +1 -1
package/api/payment-setup-api.ts
CHANGED
|
@@ -20,6 +20,14 @@ 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 { CompletePaymentSetupRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
23
31
|
/**
|
|
24
32
|
* PaymentSetupApi - axios parameter creator
|
|
25
33
|
* @export
|
|
@@ -29,14 +37,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
29
37
|
/**
|
|
30
38
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
31
39
|
* @summary Complete a payment setup
|
|
32
|
-
* @param {
|
|
40
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
33
41
|
* @param {string} [authorization] Bearer Token
|
|
34
42
|
* @param {*} [options] Override http request option.
|
|
35
43
|
* @throws {RequiredError}
|
|
36
44
|
*/
|
|
37
|
-
completePaymentSetup: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('completePaymentSetup', '
|
|
45
|
+
completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
|
|
40
48
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
41
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -66,7 +74,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
66
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
|
|
70
78
|
|
|
71
79
|
return {
|
|
72
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -76,14 +84,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
76
84
|
/**
|
|
77
85
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
78
86
|
* @summary Initiate a payment setup
|
|
79
|
-
* @param {
|
|
87
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
80
88
|
* @param {string} [authorization] Bearer Token
|
|
81
89
|
* @param {*} [options] Override http request option.
|
|
82
90
|
* @throws {RequiredError}
|
|
83
91
|
*/
|
|
84
|
-
initiatePaymentSetup: async (
|
|
85
|
-
// verify required parameter '
|
|
86
|
-
assertParamExists('initiatePaymentSetup', '
|
|
92
|
+
initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
94
|
+
assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
|
|
87
95
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
88
96
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
97
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -113,7 +121,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
113
121
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
122
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
123
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
116
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
124
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
|
|
117
125
|
|
|
118
126
|
return {
|
|
119
127
|
url: toPathString(localVarUrlObj),
|
|
@@ -133,25 +141,25 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
133
141
|
/**
|
|
134
142
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
135
143
|
* @summary Complete a payment setup
|
|
136
|
-
* @param {
|
|
144
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
137
145
|
* @param {string} [authorization] Bearer Token
|
|
138
146
|
* @param {*} [options] Override http request option.
|
|
139
147
|
* @throws {RequiredError}
|
|
140
148
|
*/
|
|
141
|
-
async completePaymentSetup(
|
|
142
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
149
|
+
async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
|
|
143
151
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
144
152
|
},
|
|
145
153
|
/**
|
|
146
154
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
147
155
|
* @summary Initiate a payment setup
|
|
148
|
-
* @param {
|
|
156
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
149
157
|
* @param {string} [authorization] Bearer Token
|
|
150
158
|
* @param {*} [options] Override http request option.
|
|
151
159
|
* @throws {RequiredError}
|
|
152
160
|
*/
|
|
153
|
-
async initiatePaymentSetup(
|
|
154
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
161
|
+
async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
|
|
155
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
156
164
|
},
|
|
157
165
|
}
|
|
@@ -167,24 +175,24 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
167
175
|
/**
|
|
168
176
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
169
177
|
* @summary Complete a payment setup
|
|
170
|
-
* @param {
|
|
178
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
171
179
|
* @param {string} [authorization] Bearer Token
|
|
172
180
|
* @param {*} [options] Override http request option.
|
|
173
181
|
* @throws {RequiredError}
|
|
174
182
|
*/
|
|
175
|
-
completePaymentSetup(
|
|
176
|
-
return localVarFp.completePaymentSetup(
|
|
183
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
184
|
+
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
177
185
|
},
|
|
178
186
|
/**
|
|
179
187
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
180
188
|
* @summary Initiate a payment setup
|
|
181
|
-
* @param {
|
|
189
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
182
190
|
* @param {string} [authorization] Bearer Token
|
|
183
191
|
* @param {*} [options] Override http request option.
|
|
184
192
|
* @throws {RequiredError}
|
|
185
193
|
*/
|
|
186
|
-
initiatePaymentSetup(
|
|
187
|
-
return localVarFp.initiatePaymentSetup(
|
|
194
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
195
|
+
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
188
196
|
},
|
|
189
197
|
};
|
|
190
198
|
};
|
|
@@ -197,10 +205,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
197
205
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
198
206
|
/**
|
|
199
207
|
*
|
|
200
|
-
* @type {
|
|
208
|
+
* @type {CompletePaymentSetupRequestDto}
|
|
201
209
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
202
210
|
*/
|
|
203
|
-
readonly
|
|
211
|
+
readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
|
|
204
212
|
|
|
205
213
|
/**
|
|
206
214
|
* Bearer Token
|
|
@@ -218,10 +226,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
218
226
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
219
227
|
/**
|
|
220
228
|
*
|
|
221
|
-
* @type {
|
|
229
|
+
* @type {InitiatePaymentSetupRequestDto}
|
|
222
230
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
223
231
|
*/
|
|
224
|
-
readonly
|
|
232
|
+
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
|
|
225
233
|
|
|
226
234
|
/**
|
|
227
235
|
* Bearer Token
|
|
@@ -247,7 +255,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
247
255
|
* @memberof PaymentSetupApi
|
|
248
256
|
*/
|
|
249
257
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
250
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
258
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
/**
|
|
@@ -259,6 +267,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
259
267
|
* @memberof PaymentSetupApi
|
|
260
268
|
*/
|
|
261
269
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
270
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
263
271
|
}
|
|
264
272
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePaymentResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetPaymentResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListPaymentsResponseClass } from '../models';
|
|
25
31
|
/**
|
|
26
32
|
* PaymentsApi - axios parameter creator
|
|
27
33
|
* @export
|
|
@@ -212,7 +218,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
212
218
|
* @param {*} [options] Override http request option.
|
|
213
219
|
* @throws {RequiredError}
|
|
214
220
|
*/
|
|
215
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
221
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
216
222
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
217
223
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
218
224
|
},
|
|
@@ -225,7 +231,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
225
231
|
* @param {*} [options] Override http request option.
|
|
226
232
|
* @throws {RequiredError}
|
|
227
233
|
*/
|
|
228
|
-
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
234
|
+
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
|
|
229
235
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
|
|
230
236
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
237
|
},
|
|
@@ -240,7 +246,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
240
246
|
* @param {*} [options] Override http request option.
|
|
241
247
|
* @throws {RequiredError}
|
|
242
248
|
*/
|
|
243
|
-
async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
249
|
+
async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
|
|
244
250
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
|
|
245
251
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
252
|
},
|
|
@@ -263,7 +269,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
263
269
|
* @param {*} [options] Override http request option.
|
|
264
270
|
* @throws {RequiredError}
|
|
265
271
|
*/
|
|
266
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
272
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
267
273
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
268
274
|
},
|
|
269
275
|
/**
|
|
@@ -275,7 +281,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
275
281
|
* @param {*} [options] Override http request option.
|
|
276
282
|
* @throws {RequiredError}
|
|
277
283
|
*/
|
|
278
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
284
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
|
|
279
285
|
return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
280
286
|
},
|
|
281
287
|
/**
|
|
@@ -289,7 +295,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
289
295
|
* @param {*} [options] Override http request option.
|
|
290
296
|
* @throws {RequiredError}
|
|
291
297
|
*/
|
|
292
|
-
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
298
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
|
|
293
299
|
return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
294
300
|
},
|
|
295
301
|
};
|
package/api/refunds-api.ts
CHANGED
|
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateRefundRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateRefundResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetRefundResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListRefundsResponseClass } from '../models';
|
|
25
31
|
/**
|
|
26
32
|
* RefundsApi - axios parameter creator
|
|
27
33
|
* @export
|
|
@@ -209,7 +215,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
209
215
|
* @param {*} [options] Override http request option.
|
|
210
216
|
* @throws {RequiredError}
|
|
211
217
|
*/
|
|
212
|
-
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
218
|
+
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRefundResponseClass>> {
|
|
213
219
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options);
|
|
214
220
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
215
221
|
},
|
|
@@ -222,7 +228,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
222
228
|
* @param {*} [options] Override http request option.
|
|
223
229
|
* @throws {RequiredError}
|
|
224
230
|
*/
|
|
225
|
-
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
231
|
+
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
|
|
226
232
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, authorization, expand, options);
|
|
227
233
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
228
234
|
},
|
|
@@ -238,7 +244,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
238
244
|
* @param {*} [options] Override http request option.
|
|
239
245
|
* @throws {RequiredError}
|
|
240
246
|
*/
|
|
241
|
-
async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
247
|
+
async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
|
|
242
248
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
|
|
243
249
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
244
250
|
},
|
|
@@ -260,7 +266,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
260
266
|
* @param {*} [options] Override http request option.
|
|
261
267
|
* @throws {RequiredError}
|
|
262
268
|
*/
|
|
263
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
269
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<CreateRefundResponseClass> {
|
|
264
270
|
return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
265
271
|
},
|
|
266
272
|
/**
|
|
@@ -272,7 +278,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
272
278
|
* @param {*} [options] Override http request option.
|
|
273
279
|
* @throws {RequiredError}
|
|
274
280
|
*/
|
|
275
|
-
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
281
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
|
|
276
282
|
return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
277
283
|
},
|
|
278
284
|
/**
|
|
@@ -287,7 +293,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
287
293
|
* @param {*} [options] Override http request option.
|
|
288
294
|
* @throws {RequiredError}
|
|
289
295
|
*/
|
|
290
|
-
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
296
|
+
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
|
|
291
297
|
return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
292
298
|
},
|
|
293
299
|
};
|
|
@@ -13,8 +13,12 @@ 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 { CreateBankAccountResponseClass } from '../models';
|
|
17
|
+
import { GetBankAccountResponseClass } from '../models';
|
|
18
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
16
19
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
17
20
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
21
|
+
import { UpdateBankAccountResponseClass } from '../models';
|
|
18
22
|
/**
|
|
19
23
|
* BankAccountsApi - axios parameter creator
|
|
20
24
|
* @export
|
|
@@ -94,7 +98,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
94
98
|
* @param {*} [options] Override http request option.
|
|
95
99
|
* @throws {RequiredError}
|
|
96
100
|
*/
|
|
97
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
101
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>>;
|
|
98
102
|
/**
|
|
99
103
|
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
100
104
|
* @summary Delete the bank account
|
|
@@ -103,7 +107,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
103
107
|
* @param {*} [options] Override http request option.
|
|
104
108
|
* @throws {RequiredError}
|
|
105
109
|
*/
|
|
106
|
-
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
110
|
+
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
107
111
|
/**
|
|
108
112
|
* Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
|
|
109
113
|
* @summary Retrieve the bank account
|
|
@@ -113,7 +117,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
113
117
|
* @param {*} [options] Override http request option.
|
|
114
118
|
* @throws {RequiredError}
|
|
115
119
|
*/
|
|
116
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
120
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
117
121
|
/**
|
|
118
122
|
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
119
123
|
* @summary List bank accounts
|
|
@@ -125,7 +129,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
125
129
|
* @param {*} [options] Override http request option.
|
|
126
130
|
* @throws {RequiredError}
|
|
127
131
|
*/
|
|
128
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
132
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
129
133
|
/**
|
|
130
134
|
* Set the primary bank account for the specified partner/account
|
|
131
135
|
* @summary Set primary bank account
|
|
@@ -135,7 +139,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
135
139
|
* @param {*} [options] Override http request option.
|
|
136
140
|
* @throws {RequiredError}
|
|
137
141
|
*/
|
|
138
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
142
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
139
143
|
/**
|
|
140
144
|
* Update a bank account by code
|
|
141
145
|
* @summary Update the bank account
|
|
@@ -145,7 +149,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
145
149
|
* @param {*} [options] Override http request option.
|
|
146
150
|
* @throws {RequiredError}
|
|
147
151
|
*/
|
|
148
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
152
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>>;
|
|
149
153
|
};
|
|
150
154
|
/**
|
|
151
155
|
* BankAccountsApi - factory interface
|
|
@@ -160,7 +164,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
160
164
|
* @param {*} [options] Override http request option.
|
|
161
165
|
* @throws {RequiredError}
|
|
162
166
|
*/
|
|
163
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
167
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass>;
|
|
164
168
|
/**
|
|
165
169
|
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
166
170
|
* @summary Delete the bank account
|
|
@@ -169,7 +173,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
169
173
|
* @param {*} [options] Override http request option.
|
|
170
174
|
* @throws {RequiredError}
|
|
171
175
|
*/
|
|
172
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
176
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
173
177
|
/**
|
|
174
178
|
* Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
|
|
175
179
|
* @summary Retrieve the bank account
|
|
@@ -179,7 +183,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
179
183
|
* @param {*} [options] Override http request option.
|
|
180
184
|
* @throws {RequiredError}
|
|
181
185
|
*/
|
|
182
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
186
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
183
187
|
/**
|
|
184
188
|
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
185
189
|
* @summary List bank accounts
|
|
@@ -191,7 +195,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
191
195
|
* @param {*} [options] Override http request option.
|
|
192
196
|
* @throws {RequiredError}
|
|
193
197
|
*/
|
|
194
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
198
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
195
199
|
/**
|
|
196
200
|
* Set the primary bank account for the specified partner/account
|
|
197
201
|
* @summary Set primary bank account
|
|
@@ -201,7 +205,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
201
205
|
* @param {*} [options] Override http request option.
|
|
202
206
|
* @throws {RequiredError}
|
|
203
207
|
*/
|
|
204
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
208
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object>;
|
|
205
209
|
/**
|
|
206
210
|
* Update a bank account by code
|
|
207
211
|
* @summary Update the bank account
|
|
@@ -211,7 +215,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
211
215
|
* @param {*} [options] Override http request option.
|
|
212
216
|
* @throws {RequiredError}
|
|
213
217
|
*/
|
|
214
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
218
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass>;
|
|
215
219
|
};
|
|
216
220
|
/**
|
|
217
221
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -378,7 +382,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
378
382
|
* @throws {RequiredError}
|
|
379
383
|
* @memberof BankAccountsApi
|
|
380
384
|
*/
|
|
381
|
-
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
385
|
+
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankAccountResponseClass, any>>;
|
|
382
386
|
/**
|
|
383
387
|
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
384
388
|
* @summary Delete the bank account
|
|
@@ -387,7 +391,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
387
391
|
* @throws {RequiredError}
|
|
388
392
|
* @memberof BankAccountsApi
|
|
389
393
|
*/
|
|
390
|
-
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
394
|
+
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
391
395
|
/**
|
|
392
396
|
* Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
|
|
393
397
|
* @summary Retrieve the bank account
|
|
@@ -396,7 +400,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
396
400
|
* @throws {RequiredError}
|
|
397
401
|
* @memberof BankAccountsApi
|
|
398
402
|
*/
|
|
399
|
-
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
403
|
+
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
|
|
400
404
|
/**
|
|
401
405
|
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
402
406
|
* @summary List bank accounts
|
|
@@ -405,7 +409,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
405
409
|
* @throws {RequiredError}
|
|
406
410
|
* @memberof BankAccountsApi
|
|
407
411
|
*/
|
|
408
|
-
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
412
|
+
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
409
413
|
/**
|
|
410
414
|
* Set the primary bank account for the specified partner/account
|
|
411
415
|
* @summary Set primary bank account
|
|
@@ -414,7 +418,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
414
418
|
* @throws {RequiredError}
|
|
415
419
|
* @memberof BankAccountsApi
|
|
416
420
|
*/
|
|
417
|
-
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
421
|
+
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
418
422
|
/**
|
|
419
423
|
* Update a bank account by code
|
|
420
424
|
* @summary Update the bank account
|
|
@@ -423,5 +427,5 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
423
427
|
* @throws {RequiredError}
|
|
424
428
|
* @memberof BankAccountsApi
|
|
425
429
|
*/
|
|
426
|
-
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
430
|
+
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankAccountResponseClass, any>>;
|
|
427
431
|
}
|
|
@@ -12,8 +12,13 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
|
+
import { ImportBankTransactionsResponseClass } from '../models';
|
|
15
17
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
18
|
+
import { LinkBankTransactionsResponseClass } from '../models';
|
|
19
|
+
import { ListBankTransactionsResponseClass } from '../models';
|
|
16
20
|
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
21
|
+
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
17
22
|
/**
|
|
18
23
|
* BankTransactionApi - axios parameter creator
|
|
19
24
|
* @export
|
|
@@ -86,7 +91,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
86
91
|
* @param {*} [options] Override http request option.
|
|
87
92
|
* @throws {RequiredError}
|
|
88
93
|
*/
|
|
89
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
94
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
90
95
|
/**
|
|
91
96
|
* This will import bank transactions from a swift MT940 file
|
|
92
97
|
* @summary Create the bank transactions
|
|
@@ -95,7 +100,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
95
100
|
* @param {*} [options] Override http request option.
|
|
96
101
|
* @throws {RequiredError}
|
|
97
102
|
*/
|
|
98
|
-
importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
103
|
+
importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportBankTransactionsResponseClass>>;
|
|
99
104
|
/**
|
|
100
105
|
* Links a bank transaction with an invoice
|
|
101
106
|
* @summary Link bank transaction
|
|
@@ -105,7 +110,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
105
110
|
* @param {*} [options] Override http request option.
|
|
106
111
|
* @throws {RequiredError}
|
|
107
112
|
*/
|
|
108
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
113
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>>;
|
|
109
114
|
/**
|
|
110
115
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
111
116
|
* @summary List bank transactions
|
|
@@ -118,7 +123,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
118
123
|
* @param {*} [options] Override http request option.
|
|
119
124
|
* @throws {RequiredError}
|
|
120
125
|
*/
|
|
121
|
-
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
126
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
122
127
|
/**
|
|
123
128
|
* Unlinks an already linked bank transaction
|
|
124
129
|
* @summary Unlink bank transaction
|
|
@@ -128,7 +133,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
128
133
|
* @param {*} [options] Override http request option.
|
|
129
134
|
* @throws {RequiredError}
|
|
130
135
|
*/
|
|
131
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
136
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>>;
|
|
132
137
|
};
|
|
133
138
|
/**
|
|
134
139
|
* BankTransactionApi - factory interface
|
|
@@ -144,7 +149,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
144
149
|
* @param {*} [options] Override http request option.
|
|
145
150
|
* @throws {RequiredError}
|
|
146
151
|
*/
|
|
147
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
152
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
148
153
|
/**
|
|
149
154
|
* This will import bank transactions from a swift MT940 file
|
|
150
155
|
* @summary Create the bank transactions
|
|
@@ -153,7 +158,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
153
158
|
* @param {*} [options] Override http request option.
|
|
154
159
|
* @throws {RequiredError}
|
|
155
160
|
*/
|
|
156
|
-
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<
|
|
161
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ImportBankTransactionsResponseClass>;
|
|
157
162
|
/**
|
|
158
163
|
* Links a bank transaction with an invoice
|
|
159
164
|
* @summary Link bank transaction
|
|
@@ -163,7 +168,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
163
168
|
* @param {*} [options] Override http request option.
|
|
164
169
|
* @throws {RequiredError}
|
|
165
170
|
*/
|
|
166
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
171
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass>;
|
|
167
172
|
/**
|
|
168
173
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
169
174
|
* @summary List bank transactions
|
|
@@ -176,7 +181,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
176
181
|
* @param {*} [options] Override http request option.
|
|
177
182
|
* @throws {RequiredError}
|
|
178
183
|
*/
|
|
179
|
-
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
184
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
180
185
|
/**
|
|
181
186
|
* Unlinks an already linked bank transaction
|
|
182
187
|
* @summary Unlink bank transaction
|
|
@@ -186,7 +191,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
186
191
|
* @param {*} [options] Override http request option.
|
|
187
192
|
* @throws {RequiredError}
|
|
188
193
|
*/
|
|
189
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
194
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass>;
|
|
190
195
|
};
|
|
191
196
|
/**
|
|
192
197
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -340,7 +345,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
340
345
|
* @throws {RequiredError}
|
|
341
346
|
* @memberof BankTransactionApi
|
|
342
347
|
*/
|
|
343
|
-
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
348
|
+
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
344
349
|
/**
|
|
345
350
|
* This will import bank transactions from a swift MT940 file
|
|
346
351
|
* @summary Create the bank transactions
|
|
@@ -349,7 +354,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
349
354
|
* @throws {RequiredError}
|
|
350
355
|
* @memberof BankTransactionApi
|
|
351
356
|
*/
|
|
352
|
-
importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
357
|
+
importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any>>;
|
|
353
358
|
/**
|
|
354
359
|
* Links a bank transaction with an invoice
|
|
355
360
|
* @summary Link bank transaction
|
|
@@ -358,7 +363,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
358
363
|
* @throws {RequiredError}
|
|
359
364
|
* @memberof BankTransactionApi
|
|
360
365
|
*/
|
|
361
|
-
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
366
|
+
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any>>;
|
|
362
367
|
/**
|
|
363
368
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
364
369
|
* @summary List bank transactions
|
|
@@ -367,7 +372,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
367
372
|
* @throws {RequiredError}
|
|
368
373
|
* @memberof BankTransactionApi
|
|
369
374
|
*/
|
|
370
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
375
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
371
376
|
/**
|
|
372
377
|
* Unlinks an already linked bank transaction
|
|
373
378
|
* @summary Unlink bank transaction
|
|
@@ -376,5 +381,5 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
376
381
|
* @throws {RequiredError}
|
|
377
382
|
* @memberof BankTransactionApi
|
|
378
383
|
*/
|
|
379
|
-
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
384
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any>>;
|
|
380
385
|
}
|