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