@emilgroup/payment-sdk 1.5.0 → 1.5.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 +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/api/webhooks-api.ts +21 -8
- 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/api/webhooks-api.d.ts +12 -3
- package/dist/api/webhooks-api.js +14 -8
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- 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 +1 -1
- 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 -84
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -91
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -140
- 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 -77
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -32
- 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 -102
- 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 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/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 -108
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -115
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -78
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -102
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -54
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class.d.ts +0 -118
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -114
- package/dist/models/refund-item-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/shared-transaction-class.d.ts +0 -72
- package/dist/models/shared-transaction-class.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/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 -108
- 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 -90
- package/models/bank-account-class.ts +0 -97
- package/models/bank-transaction-class.ts +0 -146
- 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 -86
- 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 -108
- 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 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/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 -114
- package/models/payment-class.ts +0 -121
- package/models/payment-method-class.ts +0 -84
- package/models/payment-reminder-class.ts +0 -108
- package/models/primary-bank-account-response-class.ts +0 -60
- package/models/refund-class.ts +0 -128
- package/models/refund-item-class.ts +0 -120
- package/models/sepa-direct-dto.ts +0 -30
- package/models/shared-transaction-class.ts +0 -78
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -114
- 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
|
|
@@ -218,7 +212,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
218
212
|
* @param {*} [options] Override http request option.
|
|
219
213
|
* @throws {RequiredError}
|
|
220
214
|
*/
|
|
221
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
215
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
222
216
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
223
217
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
224
218
|
},
|
|
@@ -231,7 +225,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
231
225
|
* @param {*} [options] Override http request option.
|
|
232
226
|
* @throws {RequiredError}
|
|
233
227
|
*/
|
|
234
|
-
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
228
|
+
async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
235
229
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
|
|
236
230
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
237
231
|
},
|
|
@@ -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 listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
243
|
+
async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
250
244
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
|
|
251
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
246
|
},
|
|
@@ -269,7 +263,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
269
263
|
* @param {*} [options] Override http request option.
|
|
270
264
|
* @throws {RequiredError}
|
|
271
265
|
*/
|
|
272
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
266
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
273
267
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
274
268
|
},
|
|
275
269
|
/**
|
|
@@ -281,7 +275,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
281
275
|
* @param {*} [options] Override http request option.
|
|
282
276
|
* @throws {RequiredError}
|
|
283
277
|
*/
|
|
284
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
278
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
285
279
|
return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
286
280
|
},
|
|
287
281
|
/**
|
|
@@ -295,7 +289,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
295
289
|
* @param {*} [options] Override http request option.
|
|
296
290
|
* @throws {RequiredError}
|
|
297
291
|
*/
|
|
298
|
-
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
292
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
299
293
|
return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
300
294
|
},
|
|
301
295
|
};
|
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
|
|
@@ -215,7 +209,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
215
209
|
* @param {*} [options] Override http request option.
|
|
216
210
|
* @throws {RequiredError}
|
|
217
211
|
*/
|
|
218
|
-
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
212
|
+
async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
219
213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options);
|
|
220
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
221
215
|
},
|
|
@@ -228,7 +222,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
228
222
|
* @param {*} [options] Override http request option.
|
|
229
223
|
* @throws {RequiredError}
|
|
230
224
|
*/
|
|
231
|
-
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
225
|
+
async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
232
226
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, authorization, expand, options);
|
|
233
227
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
234
228
|
},
|
|
@@ -244,7 +238,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
244
238
|
* @param {*} [options] Override http request option.
|
|
245
239
|
* @throws {RequiredError}
|
|
246
240
|
*/
|
|
247
|
-
async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
241
|
+
async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
248
242
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
|
|
249
243
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
250
244
|
},
|
|
@@ -266,7 +260,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
266
260
|
* @param {*} [options] Override http request option.
|
|
267
261
|
* @throws {RequiredError}
|
|
268
262
|
*/
|
|
269
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
263
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
270
264
|
return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
271
265
|
},
|
|
272
266
|
/**
|
|
@@ -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
|
-
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
275
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
282
276
|
return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
283
277
|
},
|
|
284
278
|
/**
|
|
@@ -293,7 +287,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
293
287
|
* @param {*} [options] Override http request option.
|
|
294
288
|
* @throws {RequiredError}
|
|
295
289
|
*/
|
|
296
|
-
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
290
|
+
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
297
291
|
return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
298
292
|
},
|
|
299
293
|
};
|
package/api/webhooks-api.ts
CHANGED
|
@@ -31,17 +31,21 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
31
31
|
* @summary Handle the webhook from PSP
|
|
32
32
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
33
33
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
34
|
+
* @param {string} productSlug
|
|
34
35
|
* @param {*} [options] Override http request option.
|
|
35
36
|
* @throws {RequiredError}
|
|
36
37
|
*/
|
|
37
|
-
postWebhook: async (pspType: string, tenantSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
39
|
// verify required parameter 'pspType' is not null or undefined
|
|
39
40
|
assertParamExists('postWebhook', 'pspType', pspType)
|
|
40
41
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
41
42
|
assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
|
|
42
|
-
|
|
43
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
44
|
+
assertParamExists('postWebhook', 'productSlug', productSlug)
|
|
45
|
+
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
|
|
43
46
|
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
44
|
-
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
47
|
+
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
48
|
+
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
45
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
51
|
let baseOptions;
|
|
@@ -81,11 +85,12 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
81
85
|
* @summary Handle the webhook from PSP
|
|
82
86
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
83
87
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
88
|
+
* @param {string} productSlug
|
|
84
89
|
* @param {*} [options] Override http request option.
|
|
85
90
|
* @throws {RequiredError}
|
|
86
91
|
*/
|
|
87
|
-
async postWebhook(pspType: string, tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
88
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, options);
|
|
92
|
+
async postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
93
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options);
|
|
89
94
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
90
95
|
},
|
|
91
96
|
}
|
|
@@ -103,11 +108,12 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
103
108
|
* @summary Handle the webhook from PSP
|
|
104
109
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
105
110
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
111
|
+
* @param {string} productSlug
|
|
106
112
|
* @param {*} [options] Override http request option.
|
|
107
113
|
* @throws {RequiredError}
|
|
108
114
|
*/
|
|
109
|
-
postWebhook(pspType: string, tenantSlug: string, options?: any): AxiosPromise<void> {
|
|
110
|
-
return localVarFp.postWebhook(pspType, tenantSlug, options).then((request) => request(axios, basePath));
|
|
115
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void> {
|
|
116
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then((request) => request(axios, basePath));
|
|
111
117
|
},
|
|
112
118
|
};
|
|
113
119
|
};
|
|
@@ -131,6 +137,13 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
131
137
|
* @memberof WebhooksApiPostWebhook
|
|
132
138
|
*/
|
|
133
139
|
readonly tenantSlug: string
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof WebhooksApiPostWebhook
|
|
145
|
+
*/
|
|
146
|
+
readonly productSlug: string
|
|
134
147
|
}
|
|
135
148
|
|
|
136
149
|
/**
|
|
@@ -149,6 +162,6 @@ export class WebhooksApi extends BaseAPI {
|
|
|
149
162
|
* @memberof WebhooksApi
|
|
150
163
|
*/
|
|
151
164
|
public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
|
|
152
|
-
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, options).then((request) => request(this.axios, this.basePath));
|
|
165
|
+
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then((request) => request(this.axios, this.basePath));
|
|
153
166
|
}
|
|
154
167
|
}
|
|
@@ -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
|
|
@@ -98,7 +94,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
98
94
|
* @param {*} [options] Override http request option.
|
|
99
95
|
* @throws {RequiredError}
|
|
100
96
|
*/
|
|
101
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
97
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
102
98
|
/**
|
|
103
99
|
* 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.
|
|
104
100
|
* @summary Delete the bank account
|
|
@@ -107,7 +103,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
107
103
|
* @param {*} [options] Override http request option.
|
|
108
104
|
* @throws {RequiredError}
|
|
109
105
|
*/
|
|
110
|
-
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
106
|
+
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
111
107
|
/**
|
|
112
108
|
* 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.
|
|
113
109
|
* @summary Retrieve the bank account
|
|
@@ -117,7 +113,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
117
113
|
* @param {*} [options] Override http request option.
|
|
118
114
|
* @throws {RequiredError}
|
|
119
115
|
*/
|
|
120
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
116
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
121
117
|
/**
|
|
122
118
|
* 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.
|
|
123
119
|
* @summary List bank accounts
|
|
@@ -129,7 +125,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
129
125
|
* @param {*} [options] Override http request option.
|
|
130
126
|
* @throws {RequiredError}
|
|
131
127
|
*/
|
|
132
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
128
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
133
129
|
/**
|
|
134
130
|
* Set the primary bank account for the specified partner/account
|
|
135
131
|
* @summary Set primary bank account
|
|
@@ -139,7 +135,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
139
135
|
* @param {*} [options] Override http request option.
|
|
140
136
|
* @throws {RequiredError}
|
|
141
137
|
*/
|
|
142
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
138
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
143
139
|
/**
|
|
144
140
|
* Update a bank account by code
|
|
145
141
|
* @summary Update the bank account
|
|
@@ -149,7 +145,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
149
145
|
* @param {*} [options] Override http request option.
|
|
150
146
|
* @throws {RequiredError}
|
|
151
147
|
*/
|
|
152
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
148
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
153
149
|
};
|
|
154
150
|
/**
|
|
155
151
|
* BankAccountsApi - factory interface
|
|
@@ -164,7 +160,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
164
160
|
* @param {*} [options] Override http request option.
|
|
165
161
|
* @throws {RequiredError}
|
|
166
162
|
*/
|
|
167
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
163
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
168
164
|
/**
|
|
169
165
|
* 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.
|
|
170
166
|
* @summary Delete the bank account
|
|
@@ -173,7 +169,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
173
169
|
* @param {*} [options] Override http request option.
|
|
174
170
|
* @throws {RequiredError}
|
|
175
171
|
*/
|
|
176
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
172
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
177
173
|
/**
|
|
178
174
|
* 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.
|
|
179
175
|
* @summary Retrieve the bank account
|
|
@@ -183,7 +179,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
183
179
|
* @param {*} [options] Override http request option.
|
|
184
180
|
* @throws {RequiredError}
|
|
185
181
|
*/
|
|
186
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
182
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
187
183
|
/**
|
|
188
184
|
* 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.
|
|
189
185
|
* @summary List bank accounts
|
|
@@ -195,7 +191,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
195
191
|
* @param {*} [options] Override http request option.
|
|
196
192
|
* @throws {RequiredError}
|
|
197
193
|
*/
|
|
198
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
194
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
199
195
|
/**
|
|
200
196
|
* Set the primary bank account for the specified partner/account
|
|
201
197
|
* @summary Set primary bank account
|
|
@@ -205,7 +201,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
205
201
|
* @param {*} [options] Override http request option.
|
|
206
202
|
* @throws {RequiredError}
|
|
207
203
|
*/
|
|
208
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
204
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void>;
|
|
209
205
|
/**
|
|
210
206
|
* Update a bank account by code
|
|
211
207
|
* @summary Update the bank account
|
|
@@ -215,7 +211,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
215
211
|
* @param {*} [options] Override http request option.
|
|
216
212
|
* @throws {RequiredError}
|
|
217
213
|
*/
|
|
218
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
214
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void>;
|
|
219
215
|
};
|
|
220
216
|
/**
|
|
221
217
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -382,7 +378,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
382
378
|
* @throws {RequiredError}
|
|
383
379
|
* @memberof BankAccountsApi
|
|
384
380
|
*/
|
|
385
|
-
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
381
|
+
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
386
382
|
/**
|
|
387
383
|
* 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.
|
|
388
384
|
* @summary Delete the bank account
|
|
@@ -391,7 +387,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
391
387
|
* @throws {RequiredError}
|
|
392
388
|
* @memberof BankAccountsApi
|
|
393
389
|
*/
|
|
394
|
-
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
390
|
+
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
395
391
|
/**
|
|
396
392
|
* 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.
|
|
397
393
|
* @summary Retrieve the bank account
|
|
@@ -400,7 +396,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
400
396
|
* @throws {RequiredError}
|
|
401
397
|
* @memberof BankAccountsApi
|
|
402
398
|
*/
|
|
403
|
-
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
399
|
+
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
404
400
|
/**
|
|
405
401
|
* 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.
|
|
406
402
|
* @summary List bank accounts
|
|
@@ -409,7 +405,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
409
405
|
* @throws {RequiredError}
|
|
410
406
|
* @memberof BankAccountsApi
|
|
411
407
|
*/
|
|
412
|
-
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
408
|
+
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
413
409
|
/**
|
|
414
410
|
* Set the primary bank account for the specified partner/account
|
|
415
411
|
* @summary Set primary bank account
|
|
@@ -418,7 +414,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
418
414
|
* @throws {RequiredError}
|
|
419
415
|
* @memberof BankAccountsApi
|
|
420
416
|
*/
|
|
421
|
-
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
417
|
+
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
422
418
|
/**
|
|
423
419
|
* Update a bank account by code
|
|
424
420
|
* @summary Update the bank account
|
|
@@ -427,5 +423,5 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
427
423
|
* @throws {RequiredError}
|
|
428
424
|
* @memberof BankAccountsApi
|
|
429
425
|
*/
|
|
430
|
-
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
426
|
+
updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
431
427
|
}
|