@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.31
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 +12 -39
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -47
- package/api/bank-transaction-api.ts +128 -96
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/payment-methods-api.ts +74 -203
- package/api/payment-reminders-api.ts +76 -66
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +66 -89
- package/api/refunds-api.ts +74 -84
- package/api/tenant-bank-account-api.ts +88 -62
- package/api/webhooks-api.ts +17 -13
- package/api.ts +3 -3
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +297 -49
- package/dist/api/bank-accounts-api.js +416 -28
- package/dist/api/bank-transaction-api.d.ts +109 -91
- package/dist/api/bank-transaction-api.js +83 -68
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +31 -27
- package/dist/api/payment-methods-api.d.ts +66 -134
- package/dist/api/payment-methods-api.js +55 -157
- package/dist/api/payment-reminders-api.d.ts +72 -65
- package/dist/api/payment-reminders-api.js +48 -42
- 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 +64 -76
- package/dist/api/payments-api.js +47 -55
- package/dist/api/refunds-api.d.ts +74 -74
- package/dist/api/refunds-api.js +52 -48
- package/dist/api/tenant-bank-account-api.d.ts +89 -66
- package/dist/api/tenant-bank-account-api.js +59 -39
- package/dist/api/webhooks-api.d.ts +17 -13
- package/dist/api/webhooks-api.js +15 -11
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -2
- 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 → bank-transaction-class-without-expand-properties.d.ts} +26 -34
- package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.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-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 +25 -0
- package/dist/models/{bank-transaction-response-class.js → 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-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +11 -38
- package/dist/models/index.js +11 -38
- 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 +24 -0
- package/dist/models/{billing-profile-limited-response-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +11 -11
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-tenant-bank-account-response-class.js +15 -0
- 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 → bank-transaction-class-without-expand-properties.ts} +26 -34
- package/models/create-bank-account-request-dto.ts +15 -3
- 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-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +5 -5
- package/models/index.ts +11 -38
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +11 -11
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-tenant-bank-account-response-class.ts +31 -0
- 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/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- 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-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/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.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-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class.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/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.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/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- 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-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/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- 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-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
|
@@ -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
|
|
@@ -36,7 +32,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
36
32
|
return {
|
|
37
33
|
/**
|
|
38
34
|
* This will create a payment reminder in the database.
|
|
39
|
-
* @summary Create the payment
|
|
35
|
+
* @summary Create the payment reminder
|
|
40
36
|
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
41
37
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
38
|
* @param {*} [options] Override http request option.
|
|
@@ -82,8 +78,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
82
78
|
};
|
|
83
79
|
},
|
|
84
80
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @summary
|
|
81
|
+
* This will deactivate the payment reminder
|
|
82
|
+
* @summary Deactivate payment reminder
|
|
87
83
|
* @param {string} code Unique identifier for the object.
|
|
88
84
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
89
85
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -133,14 +129,15 @@ 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.
|
|
136
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
140
137
|
* @param {*} [options] Override http request option.
|
|
141
138
|
* @throws {RequiredError}
|
|
142
139
|
*/
|
|
143
|
-
getPolicy: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
140
|
+
getPolicy: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
141
|
// verify required parameter 'code' is not null or undefined
|
|
145
142
|
assertParamExists('getPolicy', 'code', code)
|
|
146
143
|
const localVarPath = `/paymentservice/v1/payment-reminders/{code}`
|
|
@@ -162,6 +159,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
162
159
|
// http bearer authentication required
|
|
163
160
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
161
|
|
|
162
|
+
if (expand !== undefined) {
|
|
163
|
+
localVarQueryParameter['expand'] = expand;
|
|
164
|
+
}
|
|
165
|
+
|
|
165
166
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
166
167
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
167
168
|
}
|
|
@@ -178,20 +179,20 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
|
|
|
178
179
|
};
|
|
179
180
|
},
|
|
180
181
|
/**
|
|
181
|
-
* Returns a list of payment reminders you have previously created.
|
|
182
|
+
* 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
183
|
* @summary List payment reminders
|
|
183
184
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
184
185
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
185
186
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {any} [search]
|
|
188
|
-
* @param {
|
|
189
|
-
* @param {
|
|
190
|
-
* @param {
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
188
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
190
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
191
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
191
192
|
* @param {*} [options] Override http request option.
|
|
192
193
|
* @throws {RequiredError}
|
|
193
194
|
*/
|
|
194
|
-
listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
195
|
+
listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
195
196
|
const localVarPath = `/paymentservice/v1/payment-reminders`;
|
|
196
197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -265,56 +266,57 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
265
266
|
return {
|
|
266
267
|
/**
|
|
267
268
|
* This will create a payment reminder in the database.
|
|
268
|
-
* @summary Create the payment
|
|
269
|
+
* @summary Create the payment reminder
|
|
269
270
|
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
270
271
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
271
272
|
* @param {*} [options] Override http request option.
|
|
272
273
|
* @throws {RequiredError}
|
|
273
274
|
*/
|
|
274
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
275
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
275
276
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
276
277
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
278
|
},
|
|
278
279
|
/**
|
|
279
|
-
*
|
|
280
|
-
* @summary
|
|
280
|
+
* This will deactivate the payment reminder
|
|
281
|
+
* @summary Deactivate payment reminder
|
|
281
282
|
* @param {string} code Unique identifier for the object.
|
|
282
283
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
283
284
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
284
285
|
* @param {*} [options] Override http request option.
|
|
285
286
|
* @throws {RequiredError}
|
|
286
287
|
*/
|
|
287
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
288
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
288
289
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
289
290
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
291
|
},
|
|
291
292
|
/**
|
|
292
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
293
|
+
* 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
294
|
* @summary Retrieve the payment reminder
|
|
294
295
|
* @param {string} code Unique identifier for the object.
|
|
295
296
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
297
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
296
298
|
* @param {*} [options] Override http request option.
|
|
297
299
|
* @throws {RequiredError}
|
|
298
300
|
*/
|
|
299
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
300
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
301
|
+
async getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
302
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, expand, options);
|
|
301
303
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
304
|
},
|
|
303
305
|
/**
|
|
304
|
-
* Returns a list of payment reminders you have previously created.
|
|
306
|
+
* 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
307
|
* @summary List payment reminders
|
|
306
308
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
307
309
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
308
310
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
309
|
-
* @param {
|
|
310
|
-
* @param {any} [search]
|
|
311
|
-
* @param {
|
|
312
|
-
* @param {
|
|
313
|
-
* @param {
|
|
311
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
312
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
313
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
314
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
315
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
314
316
|
* @param {*} [options] Override http request option.
|
|
315
317
|
* @throws {RequiredError}
|
|
316
318
|
*/
|
|
317
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
319
|
+
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
318
320
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
319
321
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
322
|
},
|
|
@@ -330,53 +332,54 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
330
332
|
return {
|
|
331
333
|
/**
|
|
332
334
|
* This will create a payment reminder in the database.
|
|
333
|
-
* @summary Create the payment
|
|
335
|
+
* @summary Create the payment reminder
|
|
334
336
|
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
335
337
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
338
|
* @param {*} [options] Override http request option.
|
|
337
339
|
* @throws {RequiredError}
|
|
338
340
|
*/
|
|
339
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
341
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
340
342
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
341
343
|
},
|
|
342
344
|
/**
|
|
343
|
-
*
|
|
344
|
-
* @summary
|
|
345
|
+
* This will deactivate the payment reminder
|
|
346
|
+
* @summary Deactivate payment reminder
|
|
345
347
|
* @param {string} code Unique identifier for the object.
|
|
346
348
|
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
347
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
348
350
|
* @param {*} [options] Override http request option.
|
|
349
351
|
* @throws {RequiredError}
|
|
350
352
|
*/
|
|
351
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
353
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
352
354
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
353
355
|
},
|
|
354
356
|
/**
|
|
355
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
357
|
+
* 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
358
|
* @summary Retrieve the payment reminder
|
|
357
359
|
* @param {string} code Unique identifier for the object.
|
|
358
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
359
362
|
* @param {*} [options] Override http request option.
|
|
360
363
|
* @throws {RequiredError}
|
|
361
364
|
*/
|
|
362
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
363
|
-
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
365
|
+
getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
366
|
+
return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
364
367
|
},
|
|
365
368
|
/**
|
|
366
|
-
* Returns a list of payment reminders you have previously created.
|
|
369
|
+
* 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
370
|
* @summary List payment reminders
|
|
368
371
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
372
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
370
373
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
371
|
-
* @param {
|
|
372
|
-
* @param {any} [search]
|
|
373
|
-
* @param {
|
|
374
|
-
* @param {
|
|
375
|
-
* @param {
|
|
374
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
375
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
376
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
377
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
378
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
376
379
|
* @param {*} [options] Override http request option.
|
|
377
380
|
* @throws {RequiredError}
|
|
378
381
|
*/
|
|
379
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
382
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
380
383
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
381
384
|
},
|
|
382
385
|
};
|
|
@@ -450,6 +453,13 @@ export interface PaymentRemindersApiGetPolicyRequest {
|
|
|
450
453
|
* @memberof PaymentRemindersApiGetPolicy
|
|
451
454
|
*/
|
|
452
455
|
readonly authorization?: string
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
459
|
+
* @type {string}
|
|
460
|
+
* @memberof PaymentRemindersApiGetPolicy
|
|
461
|
+
*/
|
|
462
|
+
readonly expand?: string
|
|
453
463
|
}
|
|
454
464
|
|
|
455
465
|
/**
|
|
@@ -480,39 +490,39 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
480
490
|
readonly pageToken?: any
|
|
481
491
|
|
|
482
492
|
/**
|
|
483
|
-
* Filter the response by one or multiple fields.
|
|
484
|
-
* @type {
|
|
493
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
494
|
+
* @type {string}
|
|
485
495
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
486
496
|
*/
|
|
487
|
-
readonly filter?:
|
|
497
|
+
readonly filter?: string
|
|
488
498
|
|
|
489
499
|
/**
|
|
490
|
-
*
|
|
500
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
491
501
|
* @type {any}
|
|
492
502
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
493
503
|
*/
|
|
494
504
|
readonly search?: any
|
|
495
505
|
|
|
496
506
|
/**
|
|
497
|
-
*
|
|
498
|
-
* @type {
|
|
507
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt</i>
|
|
508
|
+
* @type {string}
|
|
499
509
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
500
510
|
*/
|
|
501
|
-
readonly order?:
|
|
511
|
+
readonly order?: string
|
|
502
512
|
|
|
503
513
|
/**
|
|
504
|
-
*
|
|
505
|
-
* @type {
|
|
514
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
515
|
+
* @type {string}
|
|
506
516
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
507
517
|
*/
|
|
508
|
-
readonly expand?:
|
|
518
|
+
readonly expand?: string
|
|
509
519
|
|
|
510
520
|
/**
|
|
511
|
-
* Filters the response by one or multiple fields.
|
|
512
|
-
* @type {
|
|
521
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, policyCode, nextReminderDate</i>
|
|
522
|
+
* @type {string}
|
|
513
523
|
* @memberof PaymentRemindersApiListPaymentReminders
|
|
514
524
|
*/
|
|
515
|
-
readonly filters?:
|
|
525
|
+
readonly filters?: string
|
|
516
526
|
}
|
|
517
527
|
|
|
518
528
|
/**
|
|
@@ -524,7 +534,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
|
524
534
|
export class PaymentRemindersApi extends BaseAPI {
|
|
525
535
|
/**
|
|
526
536
|
* This will create a payment reminder in the database.
|
|
527
|
-
* @summary Create the payment
|
|
537
|
+
* @summary Create the payment reminder
|
|
528
538
|
* @param {PaymentRemindersApiCreatePaymentReminderRequest} requestParameters Request parameters.
|
|
529
539
|
* @param {*} [options] Override http request option.
|
|
530
540
|
* @throws {RequiredError}
|
|
@@ -535,8 +545,8 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
535
545
|
}
|
|
536
546
|
|
|
537
547
|
/**
|
|
538
|
-
*
|
|
539
|
-
* @summary
|
|
548
|
+
* This will deactivate the payment reminder
|
|
549
|
+
* @summary Deactivate payment reminder
|
|
540
550
|
* @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
|
|
541
551
|
* @param {*} [options] Override http request option.
|
|
542
552
|
* @throws {RequiredError}
|
|
@@ -547,7 +557,7 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
547
557
|
}
|
|
548
558
|
|
|
549
559
|
/**
|
|
550
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
560
|
+
* 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
561
|
* @summary Retrieve the payment reminder
|
|
552
562
|
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
553
563
|
* @param {*} [options] Override http request option.
|
|
@@ -555,11 +565,11 @@ export class PaymentRemindersApi extends BaseAPI {
|
|
|
555
565
|
* @memberof PaymentRemindersApi
|
|
556
566
|
*/
|
|
557
567
|
public getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig) {
|
|
558
|
-
return PaymentRemindersApiFp(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
568
|
+
return PaymentRemindersApiFp(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
559
569
|
}
|
|
560
570
|
|
|
561
571
|
/**
|
|
562
|
-
* Returns a list of payment reminders you have previously created.
|
|
572
|
+
* 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
573
|
* @summary List payment reminders
|
|
564
574
|
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
565
575
|
* @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
|
}
|