@emilgroup/payment-sdk 1.4.1-beta.19 → 1.4.1-beta.20
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 -34
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -465
- package/api/bank-transaction-api.ts +11 -11
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +166 -65
- package/api/payment-reminders-api.ts +17 -21
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -55
- package/api/refunds-api.ts +16 -14
- package/api/tenant-bank-account-api.ts +25 -25
- 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 +17 -260
- package/dist/api/bank-accounts-api.js +17 -399
- package/dist/api/bank-transaction-api.d.ts +12 -12
- package/dist/api/bank-transaction-api.js +9 -9
- 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 +100 -49
- package/dist/api/payment-methods-api.js +144 -46
- package/dist/api/payment-reminders-api.d.ts +21 -23
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +43 -46
- package/dist/api/payments-api.js +42 -38
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +12 -10
- package/dist/api/tenant-bank-account-api.d.ts +25 -25
- package/dist/api/tenant-bank-account-api.js +20 -20
- 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 +4 -4
- 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 +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 +0 -34
- package/dist/models/index.js +0 -34
- 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 +2 -2
- 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 +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- 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 +4 -4
- 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 +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -34
- 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 +2 -2
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- 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/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -42
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- 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/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.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/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.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/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -48
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/sepa-direct-dto.ts +0 -30
- package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/update-bank-account-request-dto-rest.ts +0 -36
- package/models/update-bank-account-request-dto.ts +0 -42
|
@@ -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
|
|
@@ -24,10 +24,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentRemindersResponseClass } from '../models';
|
|
31
27
|
/**
|
|
32
28
|
* PaymentRemindersApi - axios parameter creator
|
|
33
29
|
* @export
|
|
@@ -133,7 +129,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
133
129
|
};
|
|
134
130
|
},
|
|
135
131
|
/**
|
|
136
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
132
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
137
133
|
* @summary Retrieve the payment reminder
|
|
138
134
|
* @param {string} code Unique identifier for the object.
|
|
139
135
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -178,7 +174,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
178
174
|
};
|
|
179
175
|
},
|
|
180
176
|
/**
|
|
181
|
-
* Returns a list of payment reminders you have previously created.
|
|
177
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
182
178
|
* @summary List payment reminders
|
|
183
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
184
180
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -271,7 +267,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
271
267
|
* @param {*} [options] Override http request option.
|
|
272
268
|
* @throws {RequiredError}
|
|
273
269
|
*/
|
|
274
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
270
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
275
271
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
276
272
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
273
|
},
|
|
@@ -284,24 +280,24 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
284
280
|
* @param {*} [options] Override http request option.
|
|
285
281
|
* @throws {RequiredError}
|
|
286
282
|
*/
|
|
287
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
283
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
288
284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
289
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
286
|
},
|
|
291
287
|
/**
|
|
292
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
288
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
293
289
|
* @summary Retrieve the payment reminder
|
|
294
290
|
* @param {string} code Unique identifier for the object.
|
|
295
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
296
292
|
* @param {*} [options] Override http request option.
|
|
297
293
|
* @throws {RequiredError}
|
|
298
294
|
*/
|
|
299
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
295
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
300
296
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
301
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
298
|
},
|
|
303
299
|
/**
|
|
304
|
-
* Returns a list of payment reminders you have previously created.
|
|
300
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
305
301
|
* @summary List payment reminders
|
|
306
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
307
303
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -314,7 +310,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
314
310
|
* @param {*} [options] Override http request option.
|
|
315
311
|
* @throws {RequiredError}
|
|
316
312
|
*/
|
|
317
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
313
|
+
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
318
314
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
319
315
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
316
|
},
|
|
@@ -336,7 +332,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
336
332
|
* @param {*} [options] Override http request option.
|
|
337
333
|
* @throws {RequiredError}
|
|
338
334
|
*/
|
|
339
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
335
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
340
336
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
341
337
|
},
|
|
342
338
|
/**
|
|
@@ -348,22 +344,22 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
348
344
|
* @param {*} [options] Override http request option.
|
|
349
345
|
* @throws {RequiredError}
|
|
350
346
|
*/
|
|
351
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
347
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
352
348
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
353
349
|
},
|
|
354
350
|
/**
|
|
355
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
351
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
356
352
|
* @summary Retrieve the payment reminder
|
|
357
353
|
* @param {string} code Unique identifier for the object.
|
|
358
354
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
355
|
* @param {*} [options] Override http request option.
|
|
360
356
|
* @throws {RequiredError}
|
|
361
357
|
*/
|
|
362
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
358
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
363
359
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
364
360
|
},
|
|
365
361
|
/**
|
|
366
|
-
* Returns a list of payment reminders you have previously created.
|
|
362
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
367
363
|
* @summary List payment reminders
|
|
368
364
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
365
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -376,7 +372,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
376
372
|
* @param {*} [options] Override http request option.
|
|
377
373
|
* @throws {RequiredError}
|
|
378
374
|
*/
|
|
379
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
375
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
380
376
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
381
377
|
},
|
|
382
378
|
};
|
|
@@ -547,7 +543,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
547
543
|
}
|
|
548
544
|
|
|
549
545
|
/**
|
|
550
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
546
|
+
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
|
|
551
547
|
* @summary Retrieve the payment reminder
|
|
552
548
|
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
553
549
|
* @param {*} [options] Override http request option.
|
|
@@ -559,7 +555,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
559
555
|
}
|
|
560
556
|
|
|
561
557
|
/**
|
|
562
|
-
* Returns a list of payment reminders you have previously created.
|
|
558
|
+
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
563
559
|
* @summary List payment reminders
|
|
564
560
|
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
565
561
|
* @param {*} [options] Override http request option.
|
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
|
|
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CompletePaymentSetupRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentSetupApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -36,14 +28,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
36
28
|
return {
|
|
37
29
|
/**
|
|
38
30
|
*
|
|
39
|
-
* @param {
|
|
31
|
+
* @param {object} body
|
|
40
32
|
* @param {string} [authorization] Bearer Token
|
|
41
33
|
* @param {*} [options] Override http request option.
|
|
42
34
|
* @throws {RequiredError}
|
|
43
35
|
*/
|
|
44
|
-
completePaymentSetup: async (
|
|
45
|
-
// verify required parameter '
|
|
46
|
-
assertParamExists('completePaymentSetup', '
|
|
36
|
+
completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37
|
+
// verify required parameter 'body' is not null or undefined
|
|
38
|
+
assertParamExists('completePaymentSetup', 'body', body)
|
|
47
39
|
const localVarPath = `/paymentservice/v1/payment-setup/complete`;
|
|
48
40
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
41
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -73,7 +65,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
73
65
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
66
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
67
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
68
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
77
69
|
|
|
78
70
|
return {
|
|
79
71
|
url: toPathString(localVarUrlObj),
|
|
@@ -82,14 +74,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
82
74
|
},
|
|
83
75
|
/**
|
|
84
76
|
*
|
|
85
|
-
* @param {
|
|
77
|
+
* @param {object} body
|
|
86
78
|
* @param {string} [authorization] Bearer Token
|
|
87
79
|
* @param {*} [options] Override http request option.
|
|
88
80
|
* @throws {RequiredError}
|
|
89
81
|
*/
|
|
90
|
-
initiatePaymentSetup: async (
|
|
91
|
-
// verify required parameter '
|
|
92
|
-
assertParamExists('initiatePaymentSetup', '
|
|
82
|
+
initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83
|
+
// verify required parameter 'body' is not null or undefined
|
|
84
|
+
assertParamExists('initiatePaymentSetup', 'body', body)
|
|
93
85
|
const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
|
|
94
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
87
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -119,7 +111,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
|
|
|
119
111
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
112
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
113
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
122
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
123
115
|
|
|
124
116
|
return {
|
|
125
117
|
url: toPathString(localVarUrlObj),
|
|
@@ -138,24 +130,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
|
|
|
138
130
|
return {
|
|
139
131
|
/**
|
|
140
132
|
*
|
|
141
|
-
* @param {
|
|
133
|
+
* @param {object} body
|
|
142
134
|
* @param {string} [authorization] Bearer Token
|
|
143
135
|
* @param {*} [options] Override http request option.
|
|
144
136
|
* @throws {RequiredError}
|
|
145
137
|
*/
|
|
146
|
-
async completePaymentSetup(
|
|
147
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(
|
|
138
|
+
async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
|
|
148
140
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
149
141
|
},
|
|
150
142
|
/**
|
|
151
143
|
*
|
|
152
|
-
* @param {
|
|
144
|
+
* @param {object} body
|
|
153
145
|
* @param {string} [authorization] Bearer Token
|
|
154
146
|
* @param {*} [options] Override http request option.
|
|
155
147
|
* @throws {RequiredError}
|
|
156
148
|
*/
|
|
157
|
-
async initiatePaymentSetup(
|
|
158
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(
|
|
149
|
+
async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
|
|
159
151
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
152
|
},
|
|
161
153
|
}
|
|
@@ -170,23 +162,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
170
162
|
return {
|
|
171
163
|
/**
|
|
172
164
|
*
|
|
173
|
-
* @param {
|
|
165
|
+
* @param {object} body
|
|
174
166
|
* @param {string} [authorization] Bearer Token
|
|
175
167
|
* @param {*} [options] Override http request option.
|
|
176
168
|
* @throws {RequiredError}
|
|
177
169
|
*/
|
|
178
|
-
completePaymentSetup(
|
|
179
|
-
return localVarFp.completePaymentSetup(
|
|
170
|
+
completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
171
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
180
172
|
},
|
|
181
173
|
/**
|
|
182
174
|
*
|
|
183
|
-
* @param {
|
|
175
|
+
* @param {object} body
|
|
184
176
|
* @param {string} [authorization] Bearer Token
|
|
185
177
|
* @param {*} [options] Override http request option.
|
|
186
178
|
* @throws {RequiredError}
|
|
187
179
|
*/
|
|
188
|
-
initiatePaymentSetup(
|
|
189
|
-
return localVarFp.initiatePaymentSetup(
|
|
180
|
+
initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
181
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
|
|
190
182
|
},
|
|
191
183
|
};
|
|
192
184
|
};
|
|
@@ -199,10 +191,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
|
|
|
199
191
|
export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
200
192
|
/**
|
|
201
193
|
*
|
|
202
|
-
* @type {
|
|
194
|
+
* @type {object}
|
|
203
195
|
* @memberof PaymentSetupApiCompletePaymentSetup
|
|
204
196
|
*/
|
|
205
|
-
readonly
|
|
197
|
+
readonly body: object
|
|
206
198
|
|
|
207
199
|
/**
|
|
208
200
|
* Bearer Token
|
|
@@ -220,10 +212,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
|
|
|
220
212
|
export interface PaymentSetupApiInitiatePaymentSetupRequest {
|
|
221
213
|
/**
|
|
222
214
|
*
|
|
223
|
-
* @type {
|
|
215
|
+
* @type {object}
|
|
224
216
|
* @memberof PaymentSetupApiInitiatePaymentSetup
|
|
225
217
|
*/
|
|
226
|
-
readonly
|
|
218
|
+
readonly body: object
|
|
227
219
|
|
|
228
220
|
/**
|
|
229
221
|
* Bearer Token
|
|
@@ -248,7 +240,7 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
248
240
|
* @memberof PaymentSetupApi
|
|
249
241
|
*/
|
|
250
242
|
public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
251
|
-
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.
|
|
243
|
+
return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
252
244
|
}
|
|
253
245
|
|
|
254
246
|
/**
|
|
@@ -259,6 +251,6 @@ export class PaymentSetupApi extends BaseAPI {
|
|
|
259
251
|
* @memberof PaymentSetupApi
|
|
260
252
|
*/
|
|
261
253
|
public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.
|
|
254
|
+
return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
263
255
|
}
|
|
264
256
|
}
|
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
|
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
31
25
|
/**
|
|
32
26
|
* PaymentsApi - axios parameter creator
|
|
33
27
|
* @export
|
|
@@ -36,7 +30,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
36
30
|
return {
|
|
37
31
|
/**
|
|
38
32
|
* Creates a payment for a specified account. This function is idempotent.
|
|
39
|
-
* @summary Create
|
|
33
|
+
* @summary Create a payment
|
|
40
34
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
41
35
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
42
36
|
* @param {string} [authorization] Bearer Token
|
|
@@ -89,22 +83,23 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
89
83
|
};
|
|
90
84
|
},
|
|
91
85
|
/**
|
|
92
|
-
* Retrieves the details of
|
|
93
|
-
* @summary Retrieve
|
|
94
|
-
* @param {string} code
|
|
95
|
-
* @param {string}
|
|
86
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
88
|
+
* @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
|
|
96
91
|
* @param {string} [authorization] Bearer Token
|
|
97
|
-
* @param {string} [expand] Fields to expand response by
|
|
98
92
|
* @param {*} [options] Override http request option.
|
|
99
93
|
* @throws {RequiredError}
|
|
100
94
|
*/
|
|
101
|
-
getPayment: async (code: string,
|
|
95
|
+
getPayment: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
96
|
// verify required parameter 'code' is not null or undefined
|
|
103
97
|
assertParamExists('getPayment', 'code', code)
|
|
104
|
-
// verify required parameter '
|
|
105
|
-
assertParamExists('getPayment', '
|
|
106
|
-
|
|
107
|
-
|
|
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
|
+
const localVarPath = `/paymentservice/v1/payments/{code}`;
|
|
108
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
105
|
let baseOptions;
|
|
@@ -122,14 +117,18 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
122
117
|
// http bearer authentication required
|
|
123
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
119
|
|
|
125
|
-
if (
|
|
126
|
-
localVarQueryParameter['code'] =
|
|
120
|
+
if (code !== undefined) {
|
|
121
|
+
localVarQueryParameter['code'] = code;
|
|
127
122
|
}
|
|
128
123
|
|
|
129
124
|
if (expand !== undefined) {
|
|
130
125
|
localVarQueryParameter['expand'] = expand;
|
|
131
126
|
}
|
|
132
127
|
|
|
128
|
+
if (expand2 !== undefined) {
|
|
129
|
+
localVarQueryParameter['expand'] = expand2;
|
|
130
|
+
}
|
|
131
|
+
|
|
133
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
134
|
}
|
|
@@ -146,7 +145,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
146
145
|
};
|
|
147
146
|
},
|
|
148
147
|
/**
|
|
149
|
-
* Returns a list of payments you
|
|
148
|
+
* 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.
|
|
150
149
|
* @summary List payments
|
|
151
150
|
* @param {string} [authorization] Bearer Token
|
|
152
151
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -233,33 +232,33 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
233
232
|
return {
|
|
234
233
|
/**
|
|
235
234
|
* Creates a payment for a specified account. This function is idempotent.
|
|
236
|
-
* @summary Create
|
|
235
|
+
* @summary Create a payment
|
|
237
236
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
238
237
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
239
238
|
* @param {string} [authorization] Bearer Token
|
|
240
239
|
* @param {*} [options] Override http request option.
|
|
241
240
|
* @throws {RequiredError}
|
|
242
241
|
*/
|
|
243
|
-
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
242
|
+
async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
244
243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
|
|
245
244
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
245
|
},
|
|
247
246
|
/**
|
|
248
|
-
* Retrieves the details of
|
|
249
|
-
* @summary Retrieve
|
|
250
|
-
* @param {string} code
|
|
251
|
-
* @param {string}
|
|
247
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
249
|
+
* @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
253
|
* @param {*} [options] Override http request option.
|
|
255
254
|
* @throws {RequiredError}
|
|
256
255
|
*/
|
|
257
|
-
async getPayment(code: string,
|
|
258
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code,
|
|
256
|
+
async getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options);
|
|
259
258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
260
259
|
},
|
|
261
260
|
/**
|
|
262
|
-
* Returns a list of payments you
|
|
261
|
+
* 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.
|
|
263
262
|
* @summary List payments
|
|
264
263
|
* @param {string} [authorization] Bearer Token
|
|
265
264
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -272,7 +271,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
272
271
|
* @param {*} [options] Override http request option.
|
|
273
272
|
* @throws {RequiredError}
|
|
274
273
|
*/
|
|
275
|
-
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<
|
|
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<void>> {
|
|
276
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
277
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
278
277
|
},
|
|
@@ -288,31 +287,31 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
288
287
|
return {
|
|
289
288
|
/**
|
|
290
289
|
* Creates a payment for a specified account. This function is idempotent.
|
|
291
|
-
* @summary Create
|
|
290
|
+
* @summary Create a payment
|
|
292
291
|
* @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
293
292
|
* @param {CreatePaymentRequestDto} createPaymentRequestDto
|
|
294
293
|
* @param {string} [authorization] Bearer Token
|
|
295
294
|
* @param {*} [options] Override http request option.
|
|
296
295
|
* @throws {RequiredError}
|
|
297
296
|
*/
|
|
298
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
297
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
299
298
|
return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
300
299
|
},
|
|
301
300
|
/**
|
|
302
|
-
* Retrieves the details of
|
|
303
|
-
* @summary Retrieve
|
|
304
|
-
* @param {string} code
|
|
305
|
-
* @param {string}
|
|
301
|
+
* 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
|
+
* @summary Retrieve a payment
|
|
303
|
+
* @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
307
|
* @param {*} [options] Override http request option.
|
|
309
308
|
* @throws {RequiredError}
|
|
310
309
|
*/
|
|
311
|
-
getPayment(code: string,
|
|
312
|
-
return localVarFp.getPayment(code,
|
|
310
|
+
getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
311
|
+
return localVarFp.getPayment(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
313
312
|
},
|
|
314
313
|
/**
|
|
315
|
-
* Returns a list of payments you
|
|
314
|
+
* 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.
|
|
316
315
|
* @summary List payments
|
|
317
316
|
* @param {string} [authorization] Bearer Token
|
|
318
317
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -325,7 +324,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
325
324
|
* @param {*} [options] Override http request option.
|
|
326
325
|
* @throws {RequiredError}
|
|
327
326
|
*/
|
|
328
|
-
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
327
|
+
listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
329
328
|
return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
330
329
|
},
|
|
331
330
|
};
|
|
@@ -366,32 +365,32 @@ export interface PaymentsApiCreatePaymentRequest {
|
|
|
366
365
|
*/
|
|
367
366
|
export interface PaymentsApiGetPaymentRequest {
|
|
368
367
|
/**
|
|
369
|
-
*
|
|
368
|
+
* Unique identifier for the object.
|
|
370
369
|
* @type {string}
|
|
371
370
|
* @memberof PaymentsApiGetPayment
|
|
372
371
|
*/
|
|
373
372
|
readonly code: string
|
|
374
373
|
|
|
375
374
|
/**
|
|
376
|
-
*
|
|
375
|
+
* Fields to expand response by
|
|
377
376
|
* @type {string}
|
|
378
377
|
* @memberof PaymentsApiGetPayment
|
|
379
378
|
*/
|
|
380
|
-
readonly
|
|
379
|
+
readonly expand: string
|
|
381
380
|
|
|
382
381
|
/**
|
|
383
|
-
*
|
|
382
|
+
* Fields to expand response by
|
|
384
383
|
* @type {string}
|
|
385
384
|
* @memberof PaymentsApiGetPayment
|
|
386
385
|
*/
|
|
387
|
-
readonly
|
|
386
|
+
readonly expand2: string
|
|
388
387
|
|
|
389
388
|
/**
|
|
390
|
-
*
|
|
389
|
+
* Bearer Token
|
|
391
390
|
* @type {string}
|
|
392
391
|
* @memberof PaymentsApiGetPayment
|
|
393
392
|
*/
|
|
394
|
-
readonly
|
|
393
|
+
readonly authorization?: string
|
|
395
394
|
}
|
|
396
395
|
|
|
397
396
|
/**
|
|
@@ -466,7 +465,7 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
466
465
|
export class PaymentsApi extends BaseAPI {
|
|
467
466
|
/**
|
|
468
467
|
* Creates a payment for a specified account. This function is idempotent.
|
|
469
|
-
* @summary Create
|
|
468
|
+
* @summary Create a payment
|
|
470
469
|
* @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
|
|
471
470
|
* @param {*} [options] Override http request option.
|
|
472
471
|
* @throws {RequiredError}
|
|
@@ -477,19 +476,19 @@ export class PaymentsApi extends BaseAPI {
|
|
|
477
476
|
}
|
|
478
477
|
|
|
479
478
|
/**
|
|
480
|
-
* Retrieves the details of
|
|
481
|
-
* @summary Retrieve
|
|
479
|
+
* 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.
|
|
480
|
+
* @summary Retrieve a payment
|
|
482
481
|
* @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
|
|
483
482
|
* @param {*} [options] Override http request option.
|
|
484
483
|
* @throws {RequiredError}
|
|
485
484
|
* @memberof PaymentsApi
|
|
486
485
|
*/
|
|
487
486
|
public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
|
|
488
|
-
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
487
|
+
return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
489
488
|
}
|
|
490
489
|
|
|
491
490
|
/**
|
|
492
|
-
* Returns a list of payments you
|
|
491
|
+
* 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.
|
|
493
492
|
* @summary List payments
|
|
494
493
|
* @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
|
|
495
494
|
* @param {*} [options] Override http request option.
|