@emilgroup/payment-sdk 1.4.1-beta.22 → 1.4.1-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -7
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +19 -461
- package/api/bank-transaction-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +35 -142
- package/api/payment-reminders-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +39 -42
- package/api/refunds-api.ts +1 -1
- package/api/tenant-bank-account-api.ts +9 -9
- 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 +13 -255
- package/dist/api/bank-accounts-api.js +17 -399
- package/dist/api/bank-transaction-api.d.ts +1 -1
- package/dist/api/bank-transaction-api.js +1 -1
- 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 +26 -81
- package/dist/api/payment-methods-api.js +31 -127
- package/dist/api/payment-reminders-api.d.ts +1 -1
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +1 -1
- package/dist/api/payments-api.d.ts +30 -30
- package/dist/api/payments-api.js +35 -37
- package/dist/api/refunds-api.d.ts +1 -1
- package/dist/api/refunds-api.js +1 -1
- package/dist/api/tenant-bank-account-api.d.ts +9 -9
- package/dist/api/tenant-bank-account-api.js +4 -4
- 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-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/create-payment-request-dto.js +1 -1
- 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/create-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-response-class.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/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- 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 +0 -7
- package/dist/models/index.js +0 -7
- 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/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
- 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-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/list-tenant-bank-account-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- 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/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.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 +1 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- 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/create-tenant-bank-account-response-class.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -7
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +1 -1
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -36
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
- package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
- package/dist/models/update-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto.d.ts +0 -36
- package/dist/models/update-bank-account-request-dto.js +0 -15
- package/models/bank-account-class.ts +0 -85
- package/models/create-bank-account-request-dto.ts +0 -42
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
- package/models/update-bank-account-request-dto-rest.ts +0 -36
- package/models/update-bank-account-request-dto.ts +0 -42
package/api/default-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|
|
@@ -28,7 +28,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
28
28
|
return {
|
|
29
29
|
/**
|
|
30
30
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
31
|
-
* @summary Create the payment
|
|
31
|
+
* @summary Create the payment method
|
|
32
32
|
* @param {object} body
|
|
33
33
|
* @param {string} [authorization] Bearer Token
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
@@ -73,72 +73,25 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
73
73
|
options: localVarRequestOptions,
|
|
74
74
|
};
|
|
75
75
|
},
|
|
76
|
-
/**
|
|
77
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
78
|
-
* @summary Delete a payment method
|
|
79
|
-
* @param {number} id Unique identifier for payment method
|
|
80
|
-
* @param {string} [authorization] Bearer Token
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
*/
|
|
84
|
-
deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
-
// verify required parameter 'id' is not null or undefined
|
|
86
|
-
assertParamExists('deletePaymentMethod', 'id', id)
|
|
87
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
|
|
88
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
-
let baseOptions;
|
|
91
|
-
let baseAccessToken;
|
|
92
|
-
if (configuration) {
|
|
93
|
-
baseOptions = configuration.baseOptions;
|
|
94
|
-
baseAccessToken = configuration.accessToken;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
98
|
-
const localVarHeaderParameter = {} as any;
|
|
99
|
-
const localVarQueryParameter = {} as any;
|
|
100
|
-
|
|
101
|
-
// authentication bearer required
|
|
102
|
-
// http bearer authentication required
|
|
103
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
104
|
-
|
|
105
|
-
if (id !== undefined) {
|
|
106
|
-
localVarQueryParameter['id'] = id;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
110
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
118
|
-
|
|
119
|
-
return {
|
|
120
|
-
url: toPathString(localVarUrlObj),
|
|
121
|
-
options: localVarRequestOptions,
|
|
122
|
-
};
|
|
123
|
-
},
|
|
124
76
|
/**
|
|
125
77
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
126
|
-
* @summary Retrieve
|
|
127
|
-
* @param {string} code
|
|
78
|
+
* @summary Retrieve the payment method
|
|
79
|
+
* @param {string} code
|
|
80
|
+
* @param {string} code2 Unique identifier for the object.
|
|
128
81
|
* @param {string} expand Fields to expand response by
|
|
129
|
-
* @param {string} expand2 Fields to expand response by
|
|
130
82
|
* @param {string} [authorization] Bearer Token
|
|
131
83
|
* @param {*} [options] Override http request option.
|
|
132
84
|
* @throws {RequiredError}
|
|
133
85
|
*/
|
|
134
|
-
getPaymentMethod: async (code: string,
|
|
86
|
+
getPaymentMethod: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
135
87
|
// verify required parameter 'code' is not null or undefined
|
|
136
88
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
89
|
+
// verify required parameter 'code2' is not null or undefined
|
|
90
|
+
assertParamExists('getPaymentMethod', 'code2', code2)
|
|
137
91
|
// verify required parameter 'expand' is not null or undefined
|
|
138
92
|
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
|
|
93
|
+
const localVarPath = `/paymentservice/v1/payment-methods/{code}`
|
|
94
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
142
95
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
96
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
97
|
let baseOptions;
|
|
@@ -156,18 +109,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
156
109
|
// http bearer authentication required
|
|
157
110
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
111
|
|
|
159
|
-
if (
|
|
160
|
-
localVarQueryParameter['code'] =
|
|
112
|
+
if (code2 !== undefined) {
|
|
113
|
+
localVarQueryParameter['code'] = code2;
|
|
161
114
|
}
|
|
162
115
|
|
|
163
116
|
if (expand !== undefined) {
|
|
164
117
|
localVarQueryParameter['expand'] = expand;
|
|
165
118
|
}
|
|
166
119
|
|
|
167
|
-
if (expand2 !== undefined) {
|
|
168
|
-
localVarQueryParameter['expand'] = expand2;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
120
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
172
121
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
173
122
|
}
|
|
@@ -184,7 +133,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
184
133
|
};
|
|
185
134
|
},
|
|
186
135
|
/**
|
|
187
|
-
* Returns a list of payment methods you
|
|
136
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
188
137
|
* @summary List payment methods
|
|
189
138
|
* @param {string} [authorization] Bearer Token
|
|
190
139
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -271,7 +220,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
271
220
|
return {
|
|
272
221
|
/**
|
|
273
222
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
274
|
-
* @summary Create the payment
|
|
223
|
+
* @summary Create the payment method
|
|
275
224
|
* @param {object} body
|
|
276
225
|
* @param {string} [authorization] Bearer Token
|
|
277
226
|
* @param {*} [options] Override http request option.
|
|
@@ -281,34 +230,22 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
281
230
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
282
231
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
232
|
},
|
|
284
|
-
/**
|
|
285
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
286
|
-
* @summary Delete a payment method
|
|
287
|
-
* @param {number} id Unique identifier for payment method
|
|
288
|
-
* @param {string} [authorization] Bearer Token
|
|
289
|
-
* @param {*} [options] Override http request option.
|
|
290
|
-
* @throws {RequiredError}
|
|
291
|
-
*/
|
|
292
|
-
async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
|
|
294
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
|
-
},
|
|
296
233
|
/**
|
|
297
234
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
298
|
-
* @summary Retrieve
|
|
299
|
-
* @param {string} code
|
|
235
|
+
* @summary Retrieve the payment method
|
|
236
|
+
* @param {string} code
|
|
237
|
+
* @param {string} code2 Unique identifier for the object.
|
|
300
238
|
* @param {string} expand Fields to expand response by
|
|
301
|
-
* @param {string} expand2 Fields to expand response by
|
|
302
239
|
* @param {string} [authorization] Bearer Token
|
|
303
240
|
* @param {*} [options] Override http request option.
|
|
304
241
|
* @throws {RequiredError}
|
|
305
242
|
*/
|
|
306
|
-
async getPaymentMethod(code: string,
|
|
307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
243
|
+
async getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options);
|
|
308
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
309
246
|
},
|
|
310
247
|
/**
|
|
311
|
-
* Returns a list of payment methods you
|
|
248
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
312
249
|
* @summary List payment methods
|
|
313
250
|
* @param {string} [authorization] Bearer Token
|
|
314
251
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -337,7 +274,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
337
274
|
return {
|
|
338
275
|
/**
|
|
339
276
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
340
|
-
* @summary Create the payment
|
|
277
|
+
* @summary Create the payment method
|
|
341
278
|
* @param {object} body
|
|
342
279
|
* @param {string} [authorization] Bearer Token
|
|
343
280
|
* @param {*} [options] Override http request option.
|
|
@@ -346,32 +283,21 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
346
283
|
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
347
284
|
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
348
285
|
},
|
|
349
|
-
/**
|
|
350
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
351
|
-
* @summary Delete a payment method
|
|
352
|
-
* @param {number} id Unique identifier for payment method
|
|
353
|
-
* @param {string} [authorization] Bearer Token
|
|
354
|
-
* @param {*} [options] Override http request option.
|
|
355
|
-
* @throws {RequiredError}
|
|
356
|
-
*/
|
|
357
|
-
deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
358
|
-
return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
|
|
359
|
-
},
|
|
360
286
|
/**
|
|
361
287
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
362
|
-
* @summary Retrieve
|
|
363
|
-
* @param {string} code
|
|
288
|
+
* @summary Retrieve the payment method
|
|
289
|
+
* @param {string} code
|
|
290
|
+
* @param {string} code2 Unique identifier for the object.
|
|
364
291
|
* @param {string} expand Fields to expand response by
|
|
365
|
-
* @param {string} expand2 Fields to expand response by
|
|
366
292
|
* @param {string} [authorization] Bearer Token
|
|
367
293
|
* @param {*} [options] Override http request option.
|
|
368
294
|
* @throws {RequiredError}
|
|
369
295
|
*/
|
|
370
|
-
getPaymentMethod(code: string,
|
|
371
|
-
return localVarFp.getPaymentMethod(code,
|
|
296
|
+
getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
297
|
+
return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
|
|
372
298
|
},
|
|
373
299
|
/**
|
|
374
|
-
* Returns a list of payment methods you
|
|
300
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
375
301
|
* @summary List payment methods
|
|
376
302
|
* @param {string} [authorization] Bearer Token
|
|
377
303
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -411,27 +337,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
411
337
|
readonly authorization?: string
|
|
412
338
|
}
|
|
413
339
|
|
|
414
|
-
/**
|
|
415
|
-
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
416
|
-
* @export
|
|
417
|
-
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
418
|
-
*/
|
|
419
|
-
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
420
|
-
/**
|
|
421
|
-
* Unique identifier for payment method
|
|
422
|
-
* @type {number}
|
|
423
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
424
|
-
*/
|
|
425
|
-
readonly id: number
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Bearer Token
|
|
429
|
-
* @type {string}
|
|
430
|
-
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
431
|
-
*/
|
|
432
|
-
readonly authorization?: string
|
|
433
|
-
}
|
|
434
|
-
|
|
435
340
|
/**
|
|
436
341
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
437
342
|
* @export
|
|
@@ -439,25 +344,25 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
|
439
344
|
*/
|
|
440
345
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
441
346
|
/**
|
|
442
|
-
*
|
|
347
|
+
*
|
|
443
348
|
* @type {string}
|
|
444
349
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
445
350
|
*/
|
|
446
351
|
readonly code: string
|
|
447
352
|
|
|
448
353
|
/**
|
|
449
|
-
*
|
|
354
|
+
* Unique identifier for the object.
|
|
450
355
|
* @type {string}
|
|
451
356
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
452
357
|
*/
|
|
453
|
-
readonly
|
|
358
|
+
readonly code2: string
|
|
454
359
|
|
|
455
360
|
/**
|
|
456
361
|
* Fields to expand response by
|
|
457
362
|
* @type {string}
|
|
458
363
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
459
364
|
*/
|
|
460
|
-
readonly
|
|
365
|
+
readonly expand: string
|
|
461
366
|
|
|
462
367
|
/**
|
|
463
368
|
* Bearer Token
|
|
@@ -539,7 +444,7 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
539
444
|
export class PaymentMethodsApi extends BaseAPI {
|
|
540
445
|
/**
|
|
541
446
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
542
|
-
* @summary Create the payment
|
|
447
|
+
* @summary Create the payment method
|
|
543
448
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
544
449
|
* @param {*} [options] Override http request option.
|
|
545
450
|
* @throws {RequiredError}
|
|
@@ -549,32 +454,20 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
549
454
|
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
550
455
|
}
|
|
551
456
|
|
|
552
|
-
/**
|
|
553
|
-
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
554
|
-
* @summary Delete a payment method
|
|
555
|
-
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
556
|
-
* @param {*} [options] Override http request option.
|
|
557
|
-
* @throws {RequiredError}
|
|
558
|
-
* @memberof PaymentMethodsApi
|
|
559
|
-
*/
|
|
560
|
-
public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
561
|
-
return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
562
|
-
}
|
|
563
|
-
|
|
564
457
|
/**
|
|
565
458
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
566
|
-
* @summary Retrieve
|
|
459
|
+
* @summary Retrieve the payment method
|
|
567
460
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
568
461
|
* @param {*} [options] Override http request option.
|
|
569
462
|
* @throws {RequiredError}
|
|
570
463
|
* @memberof PaymentMethodsApi
|
|
571
464
|
*/
|
|
572
465
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
573
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
466
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
574
467
|
}
|
|
575
468
|
|
|
576
469
|
/**
|
|
577
|
-
* Returns a list of payment methods you
|
|
470
|
+
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
578
471
|
* @summary List payment methods
|
|
579
472
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
580
473
|
* @param {*} [options] Override http request option.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|
package/api/payment-setup-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|
package/api/payments-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|
|
@@ -30,7 +30,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
32
|
* Creates a payment for a specified account. This function is idempotent.
|
|
33
|
-
* @summary Create
|
|
33
|
+
* @summary Create the payment
|
|
34
34
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
35
35
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
36
36
|
* @param {string} [authorization] Bearer Token
|
|
@@ -83,23 +83,24 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
83
83
|
};
|
|
84
84
|
},
|
|
85
85
|
/**
|
|
86
|
-
* Retrieves the details of
|
|
87
|
-
* @summary Retrieve
|
|
88
|
-
* @param {string} code
|
|
86
|
+
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
87
|
+
* @summary Retrieve the payment
|
|
88
|
+
* @param {string} code
|
|
89
|
+
* @param {string} code2 Unique identifier for the object.
|
|
89
90
|
* @param {string} expand Fields to expand response by
|
|
90
|
-
* @param {string} expand2 Fields to expand response by
|
|
91
91
|
* @param {string} [authorization] Bearer Token
|
|
92
92
|
* @param {*} [options] Override http request option.
|
|
93
93
|
* @throws {RequiredError}
|
|
94
94
|
*/
|
|
95
|
-
getPayment: async (code: string,
|
|
95
|
+
getPayment: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
96
|
// verify required parameter 'code' is not null or undefined
|
|
97
97
|
assertParamExists('getPayment', 'code', code)
|
|
98
|
+
// verify required parameter 'code2' is not null or undefined
|
|
99
|
+
assertParamExists('getPayment', 'code2', code2)
|
|
98
100
|
// verify required parameter 'expand' is not null or undefined
|
|
99
101
|
assertParamExists('getPayment', 'expand', expand)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const localVarPath = `/paymentservice/v1/payments/{code}`;
|
|
102
|
+
const localVarPath = `/paymentservice/v1/payments/{code}`
|
|
103
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
103
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
105
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
106
|
let baseOptions;
|
|
@@ -117,18 +118,14 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
117
118
|
// http bearer authentication required
|
|
118
119
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
120
|
|
|
120
|
-
if (
|
|
121
|
-
localVarQueryParameter['code'] =
|
|
121
|
+
if (code2 !== undefined) {
|
|
122
|
+
localVarQueryParameter['code'] = code2;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
if (expand !== undefined) {
|
|
125
126
|
localVarQueryParameter['expand'] = expand;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
if (expand2 !== undefined) {
|
|
129
|
-
localVarQueryParameter['expand'] = expand2;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
129
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
130
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
@@ -145,7 +142,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
145
142
|
};
|
|
146
143
|
},
|
|
147
144
|
/**
|
|
148
|
-
* Returns a list of payments you
|
|
145
|
+
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
149
146
|
* @summary List payments
|
|
150
147
|
* @param {string} [authorization] Bearer Token
|
|
151
148
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -232,7 +229,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
232
229
|
return {
|
|
233
230
|
/**
|
|
234
231
|
* Creates a payment for a specified account. This function is idempotent.
|
|
235
|
-
* @summary Create
|
|
232
|
+
* @summary Create the payment
|
|
236
233
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
237
234
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
238
235
|
* @param {string} [authorization] Bearer Token
|
|
@@ -244,21 +241,21 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
244
241
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
245
242
|
},
|
|
246
243
|
/**
|
|
247
|
-
* Retrieves the details of
|
|
248
|
-
* @summary Retrieve
|
|
249
|
-
* @param {string} code
|
|
244
|
+
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
245
|
+
* @summary Retrieve the payment
|
|
246
|
+
* @param {string} code
|
|
247
|
+
* @param {string} code2 Unique identifier for the object.
|
|
250
248
|
* @param {string} expand Fields to expand response by
|
|
251
|
-
* @param {string} expand2 Fields to expand response by
|
|
252
249
|
* @param {string} [authorization] Bearer Token
|
|
253
250
|
* @param {*} [options] Override http request option.
|
|
254
251
|
* @throws {RequiredError}
|
|
255
252
|
*/
|
|
256
|
-
async getPayment(code: string,
|
|
257
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code,
|
|
253
|
+
async getPayment(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, code2, expand, authorization, options);
|
|
258
255
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
259
256
|
},
|
|
260
257
|
/**
|
|
261
|
-
* Returns a list of payments you
|
|
258
|
+
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
262
259
|
* @summary List payments
|
|
263
260
|
* @param {string} [authorization] Bearer Token
|
|
264
261
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -287,7 +284,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
287
284
|
return {
|
|
288
285
|
/**
|
|
289
286
|
* Creates a payment for a specified account. This function is idempotent.
|
|
290
|
-
* @summary Create
|
|
287
|
+
* @summary Create the payment
|
|
291
288
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
292
289
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
293
290
|
* @param {string} [authorization] Bearer Token
|
|
@@ -298,20 +295,20 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
298
295
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
299
296
|
},
|
|
300
297
|
/**
|
|
301
|
-
* Retrieves the details of
|
|
302
|
-
* @summary Retrieve
|
|
303
|
-
* @param {string} code
|
|
298
|
+
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
299
|
+
* @summary Retrieve the payment
|
|
300
|
+
* @param {string} code
|
|
301
|
+
* @param {string} code2 Unique identifier for the object.
|
|
304
302
|
* @param {string} expand Fields to expand response by
|
|
305
|
-
* @param {string} expand2 Fields to expand response by
|
|
306
303
|
* @param {string} [authorization] Bearer Token
|
|
307
304
|
* @param {*} [options] Override http request option.
|
|
308
305
|
* @throws {RequiredError}
|
|
309
306
|
*/
|
|
310
|
-
getPayment(code: string,
|
|
311
|
-
return localVarFp.getPayment(code,
|
|
307
|
+
getPayment(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
308
|
+
return localVarFp.getPayment(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
|
|
312
309
|
},
|
|
313
310
|
/**
|
|
314
|
-
* Returns a list of payments you
|
|
311
|
+
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
315
312
|
* @summary List payments
|
|
316
313
|
* @param {string} [authorization] Bearer Token
|
|
317
314
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -365,25 +362,25 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
365
362
|
*/
|
|
366
363
|
export interface PaymentsApiGetPaymentRequest {
|
|
367
364
|
/**
|
|
368
|
-
*
|
|
365
|
+
*
|
|
369
366
|
* @type {string}
|
|
370
367
|
* @memberof PaymentsApiGetPayment
|
|
371
368
|
*/
|
|
372
369
|
readonly code: string
|
|
373
370
|
|
|
374
371
|
/**
|
|
375
|
-
*
|
|
372
|
+
* Unique identifier for the object.
|
|
376
373
|
* @type {string}
|
|
377
374
|
* @memberof PaymentsApiGetPayment
|
|
378
375
|
*/
|
|
379
|
-
readonly
|
|
376
|
+
readonly code2: string
|
|
380
377
|
|
|
381
378
|
/**
|
|
382
379
|
* Fields to expand response by
|
|
383
380
|
* @type {string}
|
|
384
381
|
* @memberof PaymentsApiGetPayment
|
|
385
382
|
*/
|
|
386
|
-
readonly
|
|
383
|
+
readonly expand: string
|
|
387
384
|
|
|
388
385
|
/**
|
|
389
386
|
* Bearer Token
|
|
@@ -465,7 +462,7 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
465
462
|
export class PaymentsApi extends BaseAPI {
|
|
466
463
|
/**
|
|
467
464
|
* Creates a payment for a specified account. This function is idempotent.
|
|
468
|
-
* @summary Create
|
|
465
|
+
* @summary Create the payment
|
|
469
466
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
470
467
|
* @param {*} [options] Override http request option.
|
|
471
468
|
* @throws {RequiredError}
|
|
@@ -476,19 +473,19 @@ export class PaymentsApi extends BaseAPI {
|
|
|
476
473
|
}
|
|
477
474
|
|
|
478
475
|
/**
|
|
479
|
-
* Retrieves the details of
|
|
480
|
-
* @summary Retrieve
|
|
476
|
+
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
477
|
+
* @summary Retrieve the payment
|
|
481
478
|
* @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
|
|
482
479
|
* @param {*} [options] Override http request option.
|
|
483
480
|
* @throws {RequiredError}
|
|
484
481
|
* @memberof PaymentsApi
|
|
485
482
|
*/
|
|
486
483
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
487
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
484
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
488
485
|
}
|
|
489
486
|
|
|
490
487
|
/**
|
|
491
|
-
* Returns a list of payments you
|
|
488
|
+
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
492
489
|
* @summary List payments
|
|
493
490
|
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
494
491
|
* @param {*} [options] Override http request option.
|
package/api/refunds-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
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
8
|
* Contact: kontakt@emil.de
|