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