@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
@@ -94,21 +94,21 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
96
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
97
|
-
* @summary Create the payment
|
|
98
|
-
* @param {
|
|
97
|
+
* @summary Create the payment-method
|
|
98
|
+
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
createPaymentMethod: function (
|
|
103
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('createPaymentMethod', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPaymentMethod', 'body', body);
|
|
112
112
|
localVarPath = "/paymentservice/v1/payment-methods";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,57 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
146
|
+
* @summary Delete a payment method
|
|
147
|
+
* @param {number} id Unique identifier for payment method
|
|
148
|
+
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deletePaymentMethod: function (id, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'id' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deletePaymentMethod', 'id', id);
|
|
161
|
+
localVarPath = "/paymentservice/v1/payment-methods/{id}";
|
|
162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (id !== undefined) {
|
|
178
|
+
localVarQueryParameter['id'] = id;
|
|
179
|
+
}
|
|
180
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
|
+
}
|
|
183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
136
186
|
return [2 /*return*/, {
|
|
137
187
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
188
|
options: localVarRequestOptions,
|
|
@@ -143,15 +193,15 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
143
193
|
},
|
|
144
194
|
/**
|
|
145
195
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
146
|
-
* @summary Retrieve
|
|
147
|
-
* @param {string} code
|
|
148
|
-
* @param {string}
|
|
196
|
+
* @summary Retrieve a payment method
|
|
197
|
+
* @param {string} code Unique identifier for the object.
|
|
198
|
+
* @param {string} expand Fields to expand response by
|
|
199
|
+
* @param {string} expand2 Fields to expand response by
|
|
149
200
|
* @param {string} [authorization] Bearer Token
|
|
150
|
-
* @param {string} [expand] Fields to expand response by
|
|
151
201
|
* @param {*} [options] Override http request option.
|
|
152
202
|
* @throws {RequiredError}
|
|
153
203
|
*/
|
|
154
|
-
getPaymentMethod: function (code,
|
|
204
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
155
205
|
if (options === void 0) { options = {}; }
|
|
156
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
157
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -160,10 +210,11 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
160
210
|
case 0:
|
|
161
211
|
// verify required parameter 'code' is not null or undefined
|
|
162
212
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
163
|
-
// verify required parameter '
|
|
164
|
-
(0, common_1.assertParamExists)('getPaymentMethod', '
|
|
165
|
-
|
|
166
|
-
|
|
213
|
+
// verify required parameter 'expand' is not null or undefined
|
|
214
|
+
(0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
|
|
215
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('getPaymentMethod', 'expand2', expand2);
|
|
217
|
+
localVarPath = "/paymentservice/v1/payment-methods/{code}";
|
|
167
218
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
219
|
if (configuration) {
|
|
169
220
|
baseOptions = configuration.baseOptions;
|
|
@@ -179,12 +230,15 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
179
230
|
// authentication bearer required
|
|
180
231
|
// http bearer authentication required
|
|
181
232
|
_a.sent();
|
|
182
|
-
if (
|
|
183
|
-
localVarQueryParameter['code'] =
|
|
233
|
+
if (code !== undefined) {
|
|
234
|
+
localVarQueryParameter['code'] = code;
|
|
184
235
|
}
|
|
185
236
|
if (expand !== undefined) {
|
|
186
237
|
localVarQueryParameter['expand'] = expand;
|
|
187
238
|
}
|
|
239
|
+
if (expand2 !== undefined) {
|
|
240
|
+
localVarQueryParameter['expand'] = expand2;
|
|
241
|
+
}
|
|
188
242
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
189
243
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
244
|
}
|
|
@@ -200,7 +254,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
200
254
|
});
|
|
201
255
|
},
|
|
202
256
|
/**
|
|
203
|
-
* Returns a list of payment methods you
|
|
257
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
258
|
* @summary List payment methods
|
|
205
259
|
* @param {string} [authorization] Bearer Token
|
|
206
260
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -283,18 +337,39 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
283
337
|
return {
|
|
284
338
|
/**
|
|
285
339
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
286
|
-
* @summary Create the payment
|
|
287
|
-
* @param {
|
|
340
|
+
* @summary Create the payment-method
|
|
341
|
+
* @param {object} body
|
|
288
342
|
* @param {string} [authorization] Bearer Token
|
|
289
343
|
* @param {*} [options] Override http request option.
|
|
290
344
|
* @throws {RequiredError}
|
|
291
345
|
*/
|
|
292
|
-
createPaymentMethod: function (
|
|
346
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
293
347
|
return __awaiter(this, void 0, void 0, function () {
|
|
294
348
|
var localVarAxiosArgs;
|
|
295
349
|
return __generator(this, function (_a) {
|
|
296
350
|
switch (_a.label) {
|
|
297
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(
|
|
351
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentMethod(body, authorization, options)];
|
|
352
|
+
case 1:
|
|
353
|
+
localVarAxiosArgs = _a.sent();
|
|
354
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
361
|
+
* @summary Delete a payment method
|
|
362
|
+
* @param {number} id Unique identifier for payment method
|
|
363
|
+
* @param {string} [authorization] Bearer Token
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
deletePaymentMethod: function (id, authorization, options) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
369
|
+
var localVarAxiosArgs;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
switch (_a.label) {
|
|
372
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options)];
|
|
298
373
|
case 1:
|
|
299
374
|
localVarAxiosArgs = _a.sent();
|
|
300
375
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -304,20 +379,20 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
304
379
|
},
|
|
305
380
|
/**
|
|
306
381
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
307
|
-
* @summary Retrieve
|
|
308
|
-
* @param {string} code
|
|
309
|
-
* @param {string}
|
|
382
|
+
* @summary Retrieve a payment method
|
|
383
|
+
* @param {string} code Unique identifier for the object.
|
|
384
|
+
* @param {string} expand Fields to expand response by
|
|
385
|
+
* @param {string} expand2 Fields to expand response by
|
|
310
386
|
* @param {string} [authorization] Bearer Token
|
|
311
|
-
* @param {string} [expand] Fields to expand response by
|
|
312
387
|
* @param {*} [options] Override http request option.
|
|
313
388
|
* @throws {RequiredError}
|
|
314
389
|
*/
|
|
315
|
-
getPaymentMethod: function (code,
|
|
390
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
316
391
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
392
|
var localVarAxiosArgs;
|
|
318
393
|
return __generator(this, function (_a) {
|
|
319
394
|
switch (_a.label) {
|
|
320
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code,
|
|
395
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options)];
|
|
321
396
|
case 1:
|
|
322
397
|
localVarAxiosArgs = _a.sent();
|
|
323
398
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -326,7 +401,7 @@ var PaymentMethodsApiFp = function (configuration) {
|
|
|
326
401
|
});
|
|
327
402
|
},
|
|
328
403
|
/**
|
|
329
|
-
* Returns a list of payment methods you
|
|
404
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
330
405
|
* @summary List payment methods
|
|
331
406
|
* @param {string} [authorization] Bearer Token
|
|
332
407
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -364,30 +439,41 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
|
364
439
|
return {
|
|
365
440
|
/**
|
|
366
441
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
367
|
-
* @summary Create the payment
|
|
368
|
-
* @param {
|
|
442
|
+
* @summary Create the payment-method
|
|
443
|
+
* @param {object} body
|
|
369
444
|
* @param {string} [authorization] Bearer Token
|
|
370
445
|
* @param {*} [options] Override http request option.
|
|
371
446
|
* @throws {RequiredError}
|
|
372
447
|
*/
|
|
373
|
-
createPaymentMethod: function (
|
|
374
|
-
return localVarFp.createPaymentMethod(
|
|
448
|
+
createPaymentMethod: function (body, authorization, options) {
|
|
449
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
450
|
+
},
|
|
451
|
+
/**
|
|
452
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
453
|
+
* @summary Delete a payment method
|
|
454
|
+
* @param {number} id Unique identifier for payment method
|
|
455
|
+
* @param {string} [authorization] Bearer Token
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
*/
|
|
459
|
+
deletePaymentMethod: function (id, authorization, options) {
|
|
460
|
+
return localVarFp.deletePaymentMethod(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
375
461
|
},
|
|
376
462
|
/**
|
|
377
463
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
378
|
-
* @summary Retrieve
|
|
379
|
-
* @param {string} code
|
|
380
|
-
* @param {string}
|
|
464
|
+
* @summary Retrieve a payment method
|
|
465
|
+
* @param {string} code Unique identifier for the object.
|
|
466
|
+
* @param {string} expand Fields to expand response by
|
|
467
|
+
* @param {string} expand2 Fields to expand response by
|
|
381
468
|
* @param {string} [authorization] Bearer Token
|
|
382
|
-
* @param {string} [expand] Fields to expand response by
|
|
383
469
|
* @param {*} [options] Override http request option.
|
|
384
470
|
* @throws {RequiredError}
|
|
385
471
|
*/
|
|
386
|
-
getPaymentMethod: function (code,
|
|
387
|
-
return localVarFp.getPaymentMethod(code,
|
|
472
|
+
getPaymentMethod: function (code, expand, expand2, authorization, options) {
|
|
473
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
388
474
|
},
|
|
389
475
|
/**
|
|
390
|
-
* Returns a list of payment methods you
|
|
476
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
391
477
|
* @summary List payment methods
|
|
392
478
|
* @param {string} [authorization] Bearer Token
|
|
393
479
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -419,7 +505,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
419
505
|
}
|
|
420
506
|
/**
|
|
421
507
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
422
|
-
* @summary Create the payment
|
|
508
|
+
* @summary Create the payment-method
|
|
423
509
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
424
510
|
* @param {*} [options] Override http request option.
|
|
425
511
|
* @throws {RequiredError}
|
|
@@ -427,11 +513,23 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
427
513
|
*/
|
|
428
514
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
429
515
|
var _this = this;
|
|
430
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.
|
|
516
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
520
|
+
* @summary Delete a payment method
|
|
521
|
+
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof PaymentMethodsApi
|
|
525
|
+
*/
|
|
526
|
+
PaymentMethodsApi.prototype.deletePaymentMethod = function (requestParameters, options) {
|
|
527
|
+
var _this = this;
|
|
528
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
431
529
|
};
|
|
432
530
|
/**
|
|
433
531
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
434
|
-
* @summary Retrieve
|
|
532
|
+
* @summary Retrieve a payment method
|
|
435
533
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
436
534
|
* @param {*} [options] Override http request option.
|
|
437
535
|
* @throws {RequiredError}
|
|
@@ -439,10 +537,10 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
439
537
|
*/
|
|
440
538
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
441
539
|
var _this = this;
|
|
442
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
540
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
443
541
|
};
|
|
444
542
|
/**
|
|
445
|
-
* Returns a list of payment methods you
|
|
543
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
446
544
|
* @summary List payment methods
|
|
447
545
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
448
546
|
* @param {*} [options] Override http request option.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
* Contact: kontakt@emil.de
|
|
@@ -14,8 +14,6 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
16
16
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
17
|
-
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
18
|
-
import { ListPaymentRemindersResponseClass } from '../models';
|
|
19
17
|
/**
|
|
20
18
|
* PaymentRemindersApi - axios parameter creator
|
|
21
19
|
* @export
|
|
@@ -41,7 +39,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
|
|
|
41
39
|
*/
|
|
42
40
|
deactivatePaymentReminder: (code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
41
|
/**
|
|
44
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
42
|
+
* 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.
|
|
45
43
|
* @summary Retrieve the payment reminder
|
|
46
44
|
* @param {string} code Unique identifier for the object.
|
|
47
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -50,7 +48,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
|
|
|
50
48
|
*/
|
|
51
49
|
getPolicy: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
50
|
/**
|
|
53
|
-
* Returns a list of payment reminders you have previously created.
|
|
51
|
+
* 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.
|
|
54
52
|
* @summary List payment reminders
|
|
55
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
56
54
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -78,7 +76,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
78
76
|
* @param {*} [options] Override http request option.
|
|
79
77
|
* @throws {RequiredError}
|
|
80
78
|
*/
|
|
81
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
79
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
82
80
|
/**
|
|
83
81
|
* Deactivates the payment reminder
|
|
84
82
|
* @summary Update the payment-reminder
|
|
@@ -88,18 +86,18 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
88
86
|
* @param {*} [options] Override http request option.
|
|
89
87
|
* @throws {RequiredError}
|
|
90
88
|
*/
|
|
91
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
89
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
92
90
|
/**
|
|
93
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
91
|
+
* 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.
|
|
94
92
|
* @summary Retrieve the payment reminder
|
|
95
93
|
* @param {string} code Unique identifier for the object.
|
|
96
94
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
95
|
* @param {*} [options] Override http request option.
|
|
98
96
|
* @throws {RequiredError}
|
|
99
97
|
*/
|
|
100
|
-
getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
98
|
+
getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
99
|
/**
|
|
102
|
-
* Returns a list of payment reminders you have previously created.
|
|
100
|
+
* 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.
|
|
103
101
|
* @summary List payment reminders
|
|
104
102
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
103
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -112,7 +110,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
|
112
110
|
* @param {*} [options] Override http request option.
|
|
113
111
|
* @throws {RequiredError}
|
|
114
112
|
*/
|
|
115
|
-
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<
|
|
113
|
+
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>>;
|
|
116
114
|
};
|
|
117
115
|
/**
|
|
118
116
|
* PaymentRemindersApi - factory interface
|
|
@@ -127,7 +125,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
127
125
|
* @param {*} [options] Override http request option.
|
|
128
126
|
* @throws {RequiredError}
|
|
129
127
|
*/
|
|
130
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
128
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
131
129
|
/**
|
|
132
130
|
* Deactivates the payment reminder
|
|
133
131
|
* @summary Update the payment-reminder
|
|
@@ -137,18 +135,18 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
137
135
|
* @param {*} [options] Override http request option.
|
|
138
136
|
* @throws {RequiredError}
|
|
139
137
|
*/
|
|
140
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
138
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
141
139
|
/**
|
|
142
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
140
|
+
* 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.
|
|
143
141
|
* @summary Retrieve the payment reminder
|
|
144
142
|
* @param {string} code Unique identifier for the object.
|
|
145
143
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
146
144
|
* @param {*} [options] Override http request option.
|
|
147
145
|
* @throws {RequiredError}
|
|
148
146
|
*/
|
|
149
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
147
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
150
148
|
/**
|
|
151
|
-
* Returns a list of payment reminders you have previously created.
|
|
149
|
+
* 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.
|
|
152
150
|
* @summary List payment reminders
|
|
153
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
152
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -161,7 +159,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
|
|
|
161
159
|
* @param {*} [options] Override http request option.
|
|
162
160
|
* @throws {RequiredError}
|
|
163
161
|
*/
|
|
164
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
162
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
|
|
165
163
|
};
|
|
166
164
|
/**
|
|
167
165
|
* Request parameters for createPaymentReminder operation in PaymentRemindersApi.
|
|
@@ -296,7 +294,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
296
294
|
* @throws {RequiredError}
|
|
297
295
|
* @memberof PaymentRemindersApi
|
|
298
296
|
*/
|
|
299
|
-
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
297
|
+
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
300
298
|
/**
|
|
301
299
|
* Deactivates the payment reminder
|
|
302
300
|
* @summary Update the payment-reminder
|
|
@@ -305,23 +303,23 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
305
303
|
* @throws {RequiredError}
|
|
306
304
|
* @memberof PaymentRemindersApi
|
|
307
305
|
*/
|
|
308
|
-
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
306
|
+
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
309
307
|
/**
|
|
310
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
308
|
+
* 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.
|
|
311
309
|
* @summary Retrieve the payment reminder
|
|
312
310
|
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
313
311
|
* @param {*} [options] Override http request option.
|
|
314
312
|
* @throws {RequiredError}
|
|
315
313
|
* @memberof PaymentRemindersApi
|
|
316
314
|
*/
|
|
317
|
-
getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
315
|
+
getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
318
316
|
/**
|
|
319
|
-
* Returns a list of payment reminders you have previously created.
|
|
317
|
+
* 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.
|
|
320
318
|
* @summary List payment reminders
|
|
321
319
|
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
322
320
|
* @param {*} [options] Override http request option.
|
|
323
321
|
* @throws {RequiredError}
|
|
324
322
|
* @memberof PaymentRemindersApi
|
|
325
323
|
*/
|
|
326
|
-
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
324
|
+
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
327
325
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
@@ -195,7 +195,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
/**
|
|
198
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
198
|
+
* 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.
|
|
199
199
|
* @summary Retrieve the payment reminder
|
|
200
200
|
* @param {string} code Unique identifier for the object.
|
|
201
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -243,7 +243,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
|
|
|
243
243
|
});
|
|
244
244
|
},
|
|
245
245
|
/**
|
|
246
|
-
* Returns a list of payment reminders you have previously created.
|
|
246
|
+
* 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.
|
|
247
247
|
* @summary List payment reminders
|
|
248
248
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
249
249
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -368,7 +368,7 @@ var PaymentRemindersApiFp = function (configuration) {
|
|
|
368
368
|
});
|
|
369
369
|
},
|
|
370
370
|
/**
|
|
371
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
371
|
+
* 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.
|
|
372
372
|
* @summary Retrieve the payment reminder
|
|
373
373
|
* @param {string} code Unique identifier for the object.
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -389,7 +389,7 @@ var PaymentRemindersApiFp = function (configuration) {
|
|
|
389
389
|
});
|
|
390
390
|
},
|
|
391
391
|
/**
|
|
392
|
-
* Returns a list of payment reminders you have previously created.
|
|
392
|
+
* 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.
|
|
393
393
|
* @summary List payment reminders
|
|
394
394
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
395
395
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -449,7 +449,7 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
|
|
|
449
449
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
450
450
|
},
|
|
451
451
|
/**
|
|
452
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
452
|
+
* 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.
|
|
453
453
|
* @summary Retrieve the payment reminder
|
|
454
454
|
* @param {string} code Unique identifier for the object.
|
|
455
455
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -460,7 +460,7 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
|
|
|
460
460
|
return localVarFp.getPolicy(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
461
461
|
},
|
|
462
462
|
/**
|
|
463
|
-
* Returns a list of payment reminders you have previously created.
|
|
463
|
+
* 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.
|
|
464
464
|
* @summary List payment reminders
|
|
465
465
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
466
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -515,7 +515,7 @@ var PaymentRemindersApi = /** @class */ (function (_super) {
|
|
|
515
515
|
return (0, exports.PaymentRemindersApiFp)(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
516
516
|
};
|
|
517
517
|
/**
|
|
518
|
-
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code
|
|
518
|
+
* 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.
|
|
519
519
|
* @summary Retrieve the payment reminder
|
|
520
520
|
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
521
521
|
* @param {*} [options] Override http request option.
|
|
@@ -527,7 +527,7 @@ var PaymentRemindersApi = /** @class */ (function (_super) {
|
|
|
527
527
|
return (0, exports.PaymentRemindersApiFp)(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
528
528
|
};
|
|
529
529
|
/**
|
|
530
|
-
* Returns a list of payment reminders you have previously created.
|
|
530
|
+
* 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.
|
|
531
531
|
* @summary List payment reminders
|
|
532
532
|
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
533
533
|
* @param {*} [options] Override http request option.
|