@emilgroup/payment-sdk 1.4.1-beta.1 → 1.4.1-beta.3
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 +29 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -17
- package/api/bank-transaction-api.ts +4 -4
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -38
- package/api/payment-reminders-api.ts +13 -9
- package/api/payment-setup-api.ts +37 -29
- package/api/payments-api.ts +28 -26
- package/api/refunds-api.ts +14 -16
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +15 -13
- package/dist/api/bank-accounts-api.js +13 -13
- package/dist/api/bank-transaction-api.d.ts +4 -4
- package/dist/api/bank-transaction-api.js +1 -2
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +32 -28
- package/dist/api/payment-methods-api.js +25 -29
- package/dist/api/payment-reminders-api.d.ts +15 -13
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +23 -19
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +25 -22
- package/dist/api/payments-api.js +13 -17
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +10 -12
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +54 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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 +30 -0
- package/dist/models/create-bank-account-request-dto.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-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- 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/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- 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-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 +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -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 +44 -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/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- 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 +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/payment-class.d.ts +103 -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 +112 -0
- package/dist/models/payment-reminder-class.js +36 -0
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- 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/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +9 -2
- package/dist/models/validate-pspconfig-request-dto.js +8 -1
- package/index.ts +1 -1
- package/models/bank-account-class.ts +60 -0
- package/models/bank-transaction-response-class.ts +1 -1
- 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 +36 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +29 -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 +50 -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/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- 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 +1 -1
- package/models/payment-class.ts +109 -0
- package/models/payment-method-class.ts +72 -0
- package/models/payment-reminder-class.ts +122 -0
- package/models/refund-class.ts +1 -1
- package/models/sepa-direct-dto.ts +30 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +12 -2
- package/package.json +1 -1
package/api/payment-setup-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -28,14 +36,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
28
36
|
return {
|
|
29
37
|
/**
|
|
30
38
|
*
|
|
31
|
-
* @param {
|
|
39
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
32
40
|
* @param {string} [authorization] Bearer Token
|
|
33
41
|
* @param {*} [options] Override http request option.
|
|
34
42
|
* @throws {RequiredError}
|
|
35
43
|
*/
|
|
36
|
-
completePaymentSetup: async (
|
|
37
|
-
// verify required parameter '
|
|
38
|
-
assertParamExists('completePaymentSetup', '
|
|
44
|
+
completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
|
|
46
|
+
assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
|
|
39
47
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
40
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
49
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -65,7 +73,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
65
73
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
74
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
75
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
|
|
69
77
|
|
|
70
78
|
return {
|
|
71
79
|
url: toPathString(localVarUrlObj),
|
|
@@ -74,14 +82,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
74
82
|
},
|
|
75
83
|
/**
|
|
76
84
|
*
|
|
77
|
-
* @param {
|
|
85
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
78
86
|
* @param {string} [authorization] Bearer Token
|
|
79
87
|
* @param {*} [options] Override http request option.
|
|
80
88
|
* @throws {RequiredError}
|
|
81
89
|
*/
|
|
82
|
-
initiatePaymentSetup: async (
|
|
83
|
-
// verify required parameter '
|
|
84
|
-
assertParamExists('initiatePaymentSetup', '
|
|
90
|
+
initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
92
|
+
assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
|
|
85
93
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
86
94
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
95
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -111,7 +119,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
111
119
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
121
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
114
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
122
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
|
|
115
123
|
|
|
116
124
|
return {
|
|
117
125
|
url: toPathString(localVarUrlObj),
|
|
@@ -130,24 +138,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
130
138
|
return {
|
|
131
139
|
/**
|
|
132
140
|
*
|
|
133
|
-
* @param {
|
|
141
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
134
142
|
* @param {string} [authorization] Bearer Token
|
|
135
143
|
* @param {*} [options] Override http request option.
|
|
136
144
|
* @throws {RequiredError}
|
|
137
145
|
*/
|
|
138
|
-
async completePaymentSetup(
|
|
139
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
146
|
+
async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
|
|
140
148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
141
149
|
},
|
|
142
150
|
/**
|
|
143
151
|
*
|
|
144
|
-
* @param {
|
|
152
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
145
153
|
* @param {string} [authorization] Bearer Token
|
|
146
154
|
* @param {*} [options] Override http request option.
|
|
147
155
|
* @throws {RequiredError}
|
|
148
156
|
*/
|
|
149
|
-
async initiatePaymentSetup(
|
|
150
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
157
|
+
async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
|
|
151
159
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
152
160
|
},
|
|
153
161
|
}
|
|
@@ -162,23 +170,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
162
170
|
return {
|
|
163
171
|
/**
|
|
164
172
|
*
|
|
165
|
-
* @param {
|
|
173
|
+
* @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
|
|
166
174
|
* @param {string} [authorization] Bearer Token
|
|
167
175
|
* @param {*} [options] Override http request option.
|
|
168
176
|
* @throws {RequiredError}
|
|
169
177
|
*/
|
|
170
|
-
completePaymentSetup(
|
|
171
|
-
return localVarFp.completePaymentSetup(
|
|
178
|
+
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
179
|
+
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
172
180
|
},
|
|
173
181
|
/**
|
|
174
182
|
*
|
|
175
|
-
* @param {
|
|
183
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
176
184
|
* @param {string} [authorization] Bearer Token
|
|
177
185
|
* @param {*} [options] Override http request option.
|
|
178
186
|
* @throws {RequiredError}
|
|
179
187
|
*/
|
|
180
|
-
initiatePaymentSetup(
|
|
181
|
-
return localVarFp.initiatePaymentSetup(
|
|
188
|
+
initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
189
|
+
return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
182
190
|
},
|
|
183
191
|
};
|
|
184
192
|
};
|
|
@@ -191,10 +199,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
191
199
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
192
200
|
/**
|
|
193
201
|
*
|
|
194
|
-
* @type {
|
|
202
|
+
* @type {CompletePaymentSetupRequestDto}
|
|
195
203
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
196
204
|
*/
|
|
197
|
-
readonly
|
|
205
|
+
readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
|
|
198
206
|
|
|
199
207
|
/**
|
|
200
208
|
* Bearer Token
|
|
@@ -212,10 +220,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
212
220
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
213
221
|
/**
|
|
214
222
|
*
|
|
215
|
-
* @type {
|
|
223
|
+
* @type {InitiatePaymentSetupRequestDto}
|
|
216
224
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
217
225
|
*/
|
|
218
|
-
readonly
|
|
226
|
+
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
|
|
219
227
|
|
|
220
228
|
/**
|
|
221
229
|
* Bearer Token
|
|
@@ -240,7 +248,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
240
248
|
* @memberof PaymentSetupApi
|
|
241
249
|
*/
|
|
242
250
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
243
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
251
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
244
252
|
}
|
|
245
253
|
|
|
246
254
|
/**
|
|
@@ -251,6 +259,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
251
259
|
* @memberof PaymentSetupApi
|
|
252
260
|
*/
|
|
253
261
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
254
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
262
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
255
263
|
}
|
|
256
264
|
}
|
package/api/payments-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -86,19 +92,15 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
86
92
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
87
93
|
* @summary Retrieve a payment
|
|
88
94
|
* @param {string} code Unique identifier for the object.
|
|
89
|
-
* @param {string} expand Fields to expand response by
|
|
90
|
-
* @param {string} expand2 Fields to expand response by
|
|
91
95
|
* @param {string} [authorization] Bearer Token
|
|
96
|
+
* @param {string} [expand] Fields to expand response by
|
|
97
|
+
* @param {string} [expand2] Fields to expand response by
|
|
92
98
|
* @param {*} [options] Override http request option.
|
|
93
99
|
* @throws {RequiredError}
|
|
94
100
|
*/
|
|
95
|
-
getPayment: async (code: string,
|
|
101
|
+
getPayment: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
102
|
// verify required parameter 'code' is not null or undefined
|
|
97
103
|
assertParamExists('getPayment', 'code', code)
|
|
98
|
-
// verify required parameter 'expand' is not null or undefined
|
|
99
|
-
assertParamExists('getPayment', 'expand', expand)
|
|
100
|
-
// verify required parameter 'expand2' is not null or undefined
|
|
101
|
-
assertParamExists('getPayment', 'expand2', expand2)
|
|
102
104
|
const localVarPath = `/paymentservice/v1/payments/{code}`;
|
|
103
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
106
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -239,7 +241,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
239
241
|
* @param {*} [options] Override http request option.
|
|
240
242
|
* @throws {RequiredError}
|
|
241
243
|
*/
|
|
242
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
244
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
|
|
243
245
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
244
246
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
245
247
|
},
|
|
@@ -247,14 +249,14 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
247
249
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
248
250
|
* @summary Retrieve a payment
|
|
249
251
|
* @param {string} code Unique identifier for the object.
|
|
250
|
-
* @param {string} expand Fields to expand response by
|
|
251
|
-
* @param {string} expand2 Fields to expand response by
|
|
252
252
|
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {string} [expand] Fields to expand response by
|
|
254
|
+
* @param {string} [expand2] Fields to expand response by
|
|
253
255
|
* @param {*} [options] Override http request option.
|
|
254
256
|
* @throws {RequiredError}
|
|
255
257
|
*/
|
|
256
|
-
async getPayment(code: string,
|
|
257
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2,
|
|
258
|
+
async getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
|
|
259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options);
|
|
258
260
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
259
261
|
},
|
|
260
262
|
/**
|
|
@@ -271,7 +273,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
271
273
|
* @param {*} [options] Override http request option.
|
|
272
274
|
* @throws {RequiredError}
|
|
273
275
|
*/
|
|
274
|
-
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
276
|
+
async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
|
|
275
277
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
276
278
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
279
|
},
|
|
@@ -294,21 +296,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
294
296
|
* @param {*} [options] Override http request option.
|
|
295
297
|
* @throws {RequiredError}
|
|
296
298
|
*/
|
|
297
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
299
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
|
|
298
300
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
299
301
|
},
|
|
300
302
|
/**
|
|
301
303
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
302
304
|
* @summary Retrieve a payment
|
|
303
305
|
* @param {string} code Unique identifier for the object.
|
|
304
|
-
* @param {string} expand Fields to expand response by
|
|
305
|
-
* @param {string} expand2 Fields to expand response by
|
|
306
306
|
* @param {string} [authorization] Bearer Token
|
|
307
|
+
* @param {string} [expand] Fields to expand response by
|
|
308
|
+
* @param {string} [expand2] Fields to expand response by
|
|
307
309
|
* @param {*} [options] Override http request option.
|
|
308
310
|
* @throws {RequiredError}
|
|
309
311
|
*/
|
|
310
|
-
getPayment(code: string,
|
|
311
|
-
return localVarFp.getPayment(code, expand, expand2,
|
|
312
|
+
getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
|
|
313
|
+
return localVarFp.getPayment(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
|
|
312
314
|
},
|
|
313
315
|
/**
|
|
314
316
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -324,7 +326,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
324
326
|
* @param {*} [options] Override http request option.
|
|
325
327
|
* @throws {RequiredError}
|
|
326
328
|
*/
|
|
327
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
329
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentsResponseClass> {
|
|
328
330
|
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
329
331
|
},
|
|
330
332
|
};
|
|
@@ -372,25 +374,25 @@ export interface PaymentsApiGetPaymentRequest {
|
|
|
372
374
|
readonly code: string
|
|
373
375
|
|
|
374
376
|
/**
|
|
375
|
-
*
|
|
377
|
+
* Bearer Token
|
|
376
378
|
* @type {string}
|
|
377
379
|
* @memberof PaymentsApiGetPayment
|
|
378
380
|
*/
|
|
379
|
-
readonly
|
|
381
|
+
readonly authorization?: string
|
|
380
382
|
|
|
381
383
|
/**
|
|
382
384
|
* Fields to expand response by
|
|
383
385
|
* @type {string}
|
|
384
386
|
* @memberof PaymentsApiGetPayment
|
|
385
387
|
*/
|
|
386
|
-
readonly
|
|
388
|
+
readonly expand?: string
|
|
387
389
|
|
|
388
390
|
/**
|
|
389
|
-
*
|
|
391
|
+
* Fields to expand response by
|
|
390
392
|
* @type {string}
|
|
391
393
|
* @memberof PaymentsApiGetPayment
|
|
392
394
|
*/
|
|
393
|
-
readonly
|
|
395
|
+
readonly expand2?: string
|
|
394
396
|
}
|
|
395
397
|
|
|
396
398
|
/**
|
|
@@ -484,7 +486,7 @@ export class PaymentsApi extends BaseAPI {
|
|
|
484
486
|
* @memberof PaymentsApi
|
|
485
487
|
*/
|
|
486
488
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
487
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
489
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
|
|
488
490
|
}
|
|
489
491
|
|
|
490
492
|
/**
|
package/api/refunds-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -84,18 +84,16 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
84
84
|
*
|
|
85
85
|
* @param {string} code
|
|
86
86
|
* @param {string} code2 Unique identifier for the object.
|
|
87
|
-
* @param {string} expand Fields to expand response by
|
|
88
87
|
* @param {string} [authorization] Bearer Token
|
|
88
|
+
* @param {string} [expand] Fields to expand response by
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getRefund: async (code: string, code2: string,
|
|
92
|
+
getRefund: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
93
|
// verify required parameter 'code' is not null or undefined
|
|
94
94
|
assertParamExists('getRefund', 'code', code)
|
|
95
95
|
// verify required parameter 'code2' is not null or undefined
|
|
96
96
|
assertParamExists('getRefund', 'code2', code2)
|
|
97
|
-
// verify required parameter 'expand' is not null or undefined
|
|
98
|
-
assertParamExists('getRefund', 'expand', expand)
|
|
99
97
|
const localVarPath = `/paymentservice/v1/refunds/{code}`
|
|
100
98
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
99
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -238,13 +236,13 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
238
236
|
*
|
|
239
237
|
* @param {string} code
|
|
240
238
|
* @param {string} code2 Unique identifier for the object.
|
|
241
|
-
* @param {string} expand Fields to expand response by
|
|
242
239
|
* @param {string} [authorization] Bearer Token
|
|
240
|
+
* @param {string} [expand] Fields to expand response by
|
|
243
241
|
* @param {*} [options] Override http request option.
|
|
244
242
|
* @throws {RequiredError}
|
|
245
243
|
*/
|
|
246
|
-
async getRefund(code: string, code2: string,
|
|
247
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2,
|
|
244
|
+
async getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options);
|
|
248
246
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
249
247
|
},
|
|
250
248
|
/**
|
|
@@ -288,13 +286,13 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
288
286
|
*
|
|
289
287
|
* @param {string} code
|
|
290
288
|
* @param {string} code2 Unique identifier for the object.
|
|
291
|
-
* @param {string} expand Fields to expand response by
|
|
292
289
|
* @param {string} [authorization] Bearer Token
|
|
290
|
+
* @param {string} [expand] Fields to expand response by
|
|
293
291
|
* @param {*} [options] Override http request option.
|
|
294
292
|
* @throws {RequiredError}
|
|
295
293
|
*/
|
|
296
|
-
getRefund(code: string, code2: string,
|
|
297
|
-
return localVarFp.getRefund(code, code2,
|
|
294
|
+
getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
|
|
295
|
+
return localVarFp.getRefund(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
298
296
|
},
|
|
299
297
|
/**
|
|
300
298
|
*
|
|
@@ -357,18 +355,18 @@ export interface RefundsApiGetRefundRequest {
|
|
|
357
355
|
readonly code2: string
|
|
358
356
|
|
|
359
357
|
/**
|
|
360
|
-
*
|
|
358
|
+
* Bearer Token
|
|
361
359
|
* @type {string}
|
|
362
360
|
* @memberof RefundsApiGetRefund
|
|
363
361
|
*/
|
|
364
|
-
readonly
|
|
362
|
+
readonly authorization?: string
|
|
365
363
|
|
|
366
364
|
/**
|
|
367
|
-
*
|
|
365
|
+
* Fields to expand response by
|
|
368
366
|
* @type {string}
|
|
369
367
|
* @memberof RefundsApiGetRefund
|
|
370
368
|
*/
|
|
371
|
-
readonly
|
|
369
|
+
readonly expand?: string
|
|
372
370
|
}
|
|
373
371
|
|
|
374
372
|
/**
|
|
@@ -460,7 +458,7 @@ export class RefundsApi extends BaseAPI {
|
|
|
460
458
|
* @memberof RefundsApi
|
|
461
459
|
*/
|
|
462
460
|
public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
|
|
463
|
-
return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.
|
|
461
|
+
return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
464
462
|
}
|
|
465
463
|
|
|
466
464
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api/webhooks-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -143,7 +143,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
143
143
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
144
144
|
*
|
|
145
145
|
* The version of the OpenAPI document: 1.0
|
|
146
|
-
* Contact:
|
|
146
|
+
* Contact: kontakt@emil.de
|
|
147
147
|
*
|
|
148
148
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
149
149
|
* https://openapi-generator.tech
|
package/configuration.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact:
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateBankAccountRequestDto } from '../models';
|
|
16
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
15
17
|
/**
|
|
16
18
|
* BankAccountsApi - axios parameter creator
|
|
17
19
|
* @export
|
|
@@ -20,12 +22,12 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
20
22
|
/**
|
|
21
23
|
* Creates a bank account for a specified account.
|
|
22
24
|
* @summary Create a bank account
|
|
23
|
-
* @param {
|
|
25
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
24
26
|
* @param {string} [authorization] Bearer Token
|
|
25
27
|
* @param {*} [options] Override http request option.
|
|
26
28
|
* @throws {RequiredError}
|
|
27
29
|
*/
|
|
28
|
-
createBankAccount: (
|
|
30
|
+
createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
31
|
/**
|
|
30
32
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
31
33
|
* @summary List bank accounts
|
|
@@ -50,12 +52,12 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
50
52
|
/**
|
|
51
53
|
* Creates a bank account for a specified account.
|
|
52
54
|
* @summary Create a bank account
|
|
53
|
-
* @param {
|
|
55
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
54
56
|
* @param {string} [authorization] Bearer Token
|
|
55
57
|
* @param {*} [options] Override http request option.
|
|
56
58
|
* @throws {RequiredError}
|
|
57
59
|
*/
|
|
58
|
-
createBankAccount(
|
|
60
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
59
61
|
/**
|
|
60
62
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
61
63
|
* @summary List bank accounts
|
|
@@ -70,7 +72,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
70
72
|
* @param {*} [options] Override http request option.
|
|
71
73
|
* @throws {RequiredError}
|
|
72
74
|
*/
|
|
73
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
75
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
74
76
|
};
|
|
75
77
|
/**
|
|
76
78
|
* BankAccountsApi - factory interface
|
|
@@ -80,12 +82,12 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
80
82
|
/**
|
|
81
83
|
* Creates a bank account for a specified account.
|
|
82
84
|
* @summary Create a bank account
|
|
83
|
-
* @param {
|
|
85
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
84
86
|
* @param {string} [authorization] Bearer Token
|
|
85
87
|
* @param {*} [options] Override http request option.
|
|
86
88
|
* @throws {RequiredError}
|
|
87
89
|
*/
|
|
88
|
-
createBankAccount(
|
|
90
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
89
91
|
/**
|
|
90
92
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
91
93
|
* @summary List bank accounts
|
|
@@ -100,7 +102,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
100
102
|
* @param {*} [options] Override http request option.
|
|
101
103
|
* @throws {RequiredError}
|
|
102
104
|
*/
|
|
103
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
105
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
104
106
|
};
|
|
105
107
|
/**
|
|
106
108
|
* Request parameters for createBankAccount operation in BankAccountsApi.
|
|
@@ -110,10 +112,10 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
110
112
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
111
113
|
/**
|
|
112
114
|
*
|
|
113
|
-
* @type {
|
|
115
|
+
* @type {CreateBankAccountRequestDto}
|
|
114
116
|
* @memberof BankAccountsApiCreateBankAccount
|
|
115
117
|
*/
|
|
116
|
-
readonly
|
|
118
|
+
readonly createBankAccountRequestDto: CreateBankAccountRequestDto;
|
|
117
119
|
/**
|
|
118
120
|
* Bearer Token
|
|
119
121
|
* @type {string}
|
|
@@ -191,7 +193,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
191
193
|
* @throws {RequiredError}
|
|
192
194
|
* @memberof BankAccountsApi
|
|
193
195
|
*/
|
|
194
|
-
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
196
|
+
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
195
197
|
/**
|
|
196
198
|
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
197
199
|
* @summary List bank accounts
|
|
@@ -200,5 +202,5 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
200
202
|
* @throws {RequiredError}
|
|
201
203
|
* @memberof BankAccountsApi
|
|
202
204
|
*/
|
|
203
|
-
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
205
|
+
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
204
206
|
}
|