@emilgroup/payment-sdk-node 1.0.0 → 1.2.0
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 +5 -0
- package/README.md +3 -3
- package/api/bank-accounts-api.ts +1 -1
- package/api/payment-methods-api.ts +1 -1
- package/api/payment-reminders-api.ts +560 -0
- package/api/payment-service-providers-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +3 -1
- package/base.ts +23 -33
- package/common.ts +62 -1
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +1 -1
- package/dist/api/bank-accounts-api.js +2 -2
- package/dist/api/payment-methods-api.d.ts +1 -1
- package/dist/api/payment-methods-api.js +2 -2
- package/dist/api/payment-reminders-api.d.ts +317 -0
- package/dist/api/payment-reminders-api.js +542 -0
- package/dist/api/payment-service-providers-api.d.ts +1 -1
- package/dist/api/payment-service-providers-api.js +2 -2
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +2 -2
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/payments-api.js +2 -2
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +2 -2
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -22
- package/dist/common.d.ts +27 -1
- package/dist/common.js +36 -3
- 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/complete-braintree-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.js +1 -1
- package/dist/models/complete-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/complete-payment-setup-request-dto.js +1 -1
- package/dist/models/complete-payment-setup-response-class.d.ts +1 -1
- package/dist/models/complete-payment-setup-response-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/complete-stripe-payment-setup-request-dto.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-method-response-class.d.ts +1 -1
- package/dist/models/create-payment-method-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +63 -0
- package/dist/models/create-payment-reminder-request-dto.js +24 -0
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-payment-response-class.d.ts +1 -1
- package/dist/models/create-payment-response-class.js +1 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +2 -2
- package/dist/models/create-psp-payment-method-request-dto.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
- package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
- package/dist/models/get-payment-method-response-class.d.ts +1 -1
- package/dist/models/get-payment-method-response-class.js +1 -1
- package/dist/models/get-payment-response-class.d.ts +1 -1
- package/dist/models/get-payment-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.js +1 -1
- package/dist/models/initiate-payment-setup-request-dto.d.ts +1 -1
- package/dist/models/initiate-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-payment-setup-response-class.js +1 -1
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +9 -3
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +1 -1
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +1 -1
- package/dist/models/initiate-stripe-payment-setup-response-class.js +1 -1
- package/dist/models/list-payment-methods-response-class.d.ts +4 -3
- package/dist/models/list-payment-methods-response-class.js +1 -1
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +4 -3
- package/dist/models/list-payments-response-class.js +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-class.js +1 -1
- package/dist/models/payment-method-class.d.ts +1 -1
- package/dist/models/payment-method-class.js +1 -1
- package/dist/models/payment-reminder-class.d.ts +108 -0
- package/dist/models/payment-reminder-class.js +32 -0
- package/dist/models/sepa-direct-dto.d.ts +1 -1
- package/dist/models/sepa-direct-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-response-class.d.ts +1 -1
- package/dist/models/validate-pspconfig-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/complete-braintree-payment-setup-request-dto.ts +1 -1
- package/models/complete-payment-setup-request-dto.ts +1 -1
- package/models/complete-payment-setup-response-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +9 -3
- package/models/create-bank-account-request-dto.ts +1 -1
- package/models/create-payment-method-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +72 -0
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-payment-response-class.ts +1 -1
- package/models/create-psp-payment-method-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +39 -0
- package/models/get-payment-method-response-class.ts +1 -1
- package/models/get-payment-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/index.ts +4 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +9 -3
- package/models/initiate-braintree-payment-setup-response-class.ts +1 -1
- package/models/initiate-payment-setup-request-dto.ts +1 -1
- package/models/initiate-payment-setup-response-class.ts +1 -1
- package/models/initiate-stripe-payment-setup-request-dto.ts +9 -3
- package/models/initiate-stripe-payment-setup-response-class.ts +1 -1
- package/models/list-payment-methods-response-class.ts +4 -3
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +4 -3
- package/models/payment-class.ts +1 -1
- package/models/payment-method-class.ts +1 -1
- package/models/payment-reminder-class.ts +118 -0
- package/models/sepa-direct-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/models/validate-pspconfig-response-class.ts +1 -1
- package/package.json +2 -3
package/api/payments-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api/webhooks-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -26,6 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { BankAccountsApi } from './api';
|
|
28
28
|
import { PaymentMethodsApi } from './api';
|
|
29
|
+
import { PaymentRemindersApi } from './api';
|
|
29
30
|
import { PaymentServiceProvidersApi } from './api';
|
|
30
31
|
import { PaymentSetupApi } from './api';
|
|
31
32
|
import { PaymentsApi } from './api';
|
|
@@ -34,6 +35,7 @@ import { WebhooksApi } from './api';
|
|
|
34
35
|
|
|
35
36
|
export * from './api/bank-accounts-api';
|
|
36
37
|
export * from './api/payment-methods-api';
|
|
38
|
+
export * from './api/payment-reminders-api';
|
|
37
39
|
export * from './api/payment-service-providers-api';
|
|
38
40
|
export * from './api/payment-setup-api';
|
|
39
41
|
export * from './api/payments-api';
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -42,7 +42,6 @@ export const COLLECTION_FORMATS = {
|
|
|
42
42
|
export interface LoginClass {
|
|
43
43
|
accessToken: string;
|
|
44
44
|
permissions: Array<string>;
|
|
45
|
-
newPasswordRequired: boolean;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
export enum Environment {
|
|
@@ -50,6 +49,13 @@ export enum Environment {
|
|
|
50
49
|
Test = 'https://apiv2-test.emil.de',
|
|
51
50
|
}
|
|
52
51
|
|
|
52
|
+
let _retry_count = 0
|
|
53
|
+
let _retry = null
|
|
54
|
+
|
|
55
|
+
export function resetRetry() {
|
|
56
|
+
_retry_count = 0
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @export
|
|
@@ -69,7 +75,6 @@ const NETWORK_ERROR_MESSAGE = "Network Error";
|
|
|
69
75
|
*/
|
|
70
76
|
export class BaseAPI {
|
|
71
77
|
protected configuration: Configuration;
|
|
72
|
-
private lastRequestConfig?: AxiosRequestConfig;
|
|
73
78
|
private username?: string;
|
|
74
79
|
private password?: string;
|
|
75
80
|
|
|
@@ -182,6 +187,7 @@ export class BaseAPI {
|
|
|
182
187
|
data: { username: username },
|
|
183
188
|
withCredentials: true,
|
|
184
189
|
};
|
|
190
|
+
|
|
185
191
|
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
186
192
|
|
|
187
193
|
return accessToken;
|
|
@@ -202,13 +208,6 @@ export class BaseAPI {
|
|
|
202
208
|
}
|
|
203
209
|
|
|
204
210
|
private attachInterceptor(axios: AxiosInstance) {
|
|
205
|
-
axios.interceptors.request.use((config) => {
|
|
206
|
-
if (config.url?.indexOf('refresh-token') === -1) {
|
|
207
|
-
this.lastRequestConfig = config;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return config;
|
|
211
|
-
});
|
|
212
211
|
axios.interceptors.response.use(
|
|
213
212
|
(res) => {
|
|
214
213
|
return res;
|
|
@@ -223,17 +222,11 @@ export class BaseAPI {
|
|
|
223
222
|
const tokenString = await this.refreshToken();
|
|
224
223
|
const accessToken = `Bearer ${tokenString}`;
|
|
225
224
|
|
|
226
|
-
|
|
227
|
-
localVarHeaderParameter['Authorization'] = accessToken;
|
|
228
|
-
|
|
229
|
-
originalConfig.headers = {
|
|
230
|
-
...originalConfig.headers,
|
|
231
|
-
...localVarHeaderParameter,
|
|
232
|
-
};
|
|
225
|
+
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
233
226
|
|
|
234
227
|
this.configuration.accessToken = accessToken;
|
|
235
228
|
|
|
236
|
-
return axios(originalConfig);
|
|
229
|
+
return axios.request(originalConfig);
|
|
237
230
|
} catch (_error) {
|
|
238
231
|
if (_error.response && _error.response.data) {
|
|
239
232
|
return Promise.reject(_error.response.data);
|
|
@@ -244,28 +237,24 @@ export class BaseAPI {
|
|
|
244
237
|
if (err.response.status === 403 && err.response.data) {
|
|
245
238
|
return Promise.reject(err.response.data);
|
|
246
239
|
}
|
|
247
|
-
} else if
|
|
240
|
+
} else if(err.message === NETWORK_ERROR_MESSAGE
|
|
241
|
+
&& err.isAxiosError
|
|
242
|
+
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
243
|
+
&& _retry_count < 4
|
|
244
|
+
){
|
|
245
|
+
_retry_count++;
|
|
248
246
|
try {
|
|
249
247
|
const tokenString = await this.refreshToken();
|
|
250
248
|
const accessToken = `Bearer ${tokenString}`;
|
|
251
249
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this.lastRequestConfig.headers = {
|
|
256
|
-
...originalConfig.headers,
|
|
257
|
-
...localVarHeaderParameter,
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
originalConfig = {
|
|
261
|
-
...this.lastRequestConfig,
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
originalConfig._retry = true;
|
|
250
|
+
_retry = true;
|
|
251
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
265
252
|
|
|
266
253
|
this.configuration.accessToken = accessToken;
|
|
267
254
|
|
|
268
|
-
return axios(
|
|
255
|
+
return axios.request({
|
|
256
|
+
...originalConfig,
|
|
257
|
+
});
|
|
269
258
|
} catch (_error) {
|
|
270
259
|
if (_error.response && _error.response.data) {
|
|
271
260
|
return Promise.reject(_error.response.data);
|
|
@@ -291,3 +280,4 @@ export class RequiredError extends Error {
|
|
|
291
280
|
super(msg);
|
|
292
281
|
}
|
|
293
282
|
}
|
|
283
|
+
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -136,3 +136,64 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
136
136
|
return axios.request<T, R>(axiosRequestArgs);
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/* tslint:disable */
|
|
141
|
+
/* eslint-disable */
|
|
142
|
+
/**
|
|
143
|
+
* Emil Payment Service
|
|
144
|
+
* 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.
|
|
145
|
+
*
|
|
146
|
+
* The version of the OpenAPI document: 1.0
|
|
147
|
+
* Contact: kontakt@emil.de
|
|
148
|
+
*
|
|
149
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
150
|
+
* https://openapi-generator.tech
|
|
151
|
+
* Do not edit the class manually.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
export interface IStorageConverter<D, SD> {
|
|
156
|
+
toStorageData( data: D ): SD;
|
|
157
|
+
fromStorageData( storageData: SD ): D;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface IStorage {
|
|
161
|
+
get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null;
|
|
162
|
+
set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class LocalStorage implements IStorage {
|
|
166
|
+
readonly storage: Storage;
|
|
167
|
+
|
|
168
|
+
constructor() {
|
|
169
|
+
this.storage = localStorage;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
get<T>( key: string, converter?: IStorageConverter<T, any> ): T | null {
|
|
173
|
+
const jsonValue = this.storage.getItem( key );
|
|
174
|
+
if ( jsonValue === null ) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
const value = JSON.parse( jsonValue );
|
|
178
|
+
if ( converter !== undefined ) {
|
|
179
|
+
return converter.fromStorageData( value );
|
|
180
|
+
} else {
|
|
181
|
+
return value as T;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
set<T>( key: string, value: T, converter?: IStorageConverter<T, any> ): void {
|
|
186
|
+
let valueToStore: any = value;
|
|
187
|
+
if ( converter !== undefined ) {
|
|
188
|
+
valueToStore = converter.toStorageData( value );
|
|
189
|
+
}
|
|
190
|
+
const jsonValue = JSON.stringify( valueToStore );
|
|
191
|
+
this.storage.setItem( key, jsonValue );
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
let _defaultStorage: IStorage = null;
|
|
196
|
+
|
|
197
|
+
export const defaultStorage = (): IStorage => {
|
|
198
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
199
|
+
};
|
package/configuration.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -6,7 +6,7 @@
|
|
|
6
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
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePaymentReminderRequestDto } from '../models';
|
|
16
|
+
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
17
|
+
import { ListPaymentRemindersResponseClass } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* PaymentRemindersApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* This will create a payment reminder in the database.
|
|
25
|
+
* @summary Create the payment-reminder
|
|
26
|
+
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
27
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createPaymentReminder: (createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
34
|
+
* @summary Update the payment-reminder
|
|
35
|
+
* @param {string} code Unique identifier for the object.
|
|
36
|
+
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
deactivatePaymentReminder: (code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
* @summary Retrieve the payment reminder
|
|
45
|
+
* @param {string} code Unique identifier for the object.
|
|
46
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getPolicy: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
|
+
/**
|
|
52
|
+
* 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.
|
|
53
|
+
* @summary List payment reminders
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
56
|
+
* @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.
|
|
57
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
58
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
59
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
60
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
listPaymentReminders: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* PaymentRemindersApi - functional programming interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
|
|
71
|
+
/**
|
|
72
|
+
* This will create a payment reminder in the database.
|
|
73
|
+
* @summary Create the payment-reminder
|
|
74
|
+
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
75
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
80
|
+
/**
|
|
81
|
+
* Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
82
|
+
* @summary Update the payment-reminder
|
|
83
|
+
* @param {string} code Unique identifier for the object.
|
|
84
|
+
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
85
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
90
|
+
/**
|
|
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.
|
|
92
|
+
* @summary Retrieve the payment reminder
|
|
93
|
+
* @param {string} code Unique identifier for the object.
|
|
94
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
99
|
+
/**
|
|
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.
|
|
101
|
+
* @summary List payment reminders
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
104
|
+
* @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.
|
|
105
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
106
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
107
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
108
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>>;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* PaymentRemindersApi - factory interface
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const PaymentRemindersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
119
|
+
/**
|
|
120
|
+
* This will create a payment reminder in the database.
|
|
121
|
+
* @summary Create the payment-reminder
|
|
122
|
+
* @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
|
|
123
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
128
|
+
/**
|
|
129
|
+
* Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
130
|
+
* @summary Update the payment-reminder
|
|
131
|
+
* @param {string} code Unique identifier for the object.
|
|
132
|
+
* @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
|
|
133
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
138
|
+
/**
|
|
139
|
+
* 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.
|
|
140
|
+
* @summary Retrieve the payment reminder
|
|
141
|
+
* @param {string} code Unique identifier for the object.
|
|
142
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
147
|
+
/**
|
|
148
|
+
* 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.
|
|
149
|
+
* @summary List payment reminders
|
|
150
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
151
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
152
|
+
* @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.
|
|
153
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
154
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
155
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
156
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass>;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Request parameters for createPaymentReminder operation in PaymentRemindersApi.
|
|
164
|
+
* @export
|
|
165
|
+
* @interface PaymentRemindersApiCreatePaymentReminderRequest
|
|
166
|
+
*/
|
|
167
|
+
export interface PaymentRemindersApiCreatePaymentReminderRequest {
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {CreatePaymentReminderRequestDto}
|
|
171
|
+
* @memberof PaymentRemindersApiCreatePaymentReminder
|
|
172
|
+
*/
|
|
173
|
+
readonly createPaymentReminderRequestDto: CreatePaymentReminderRequestDto;
|
|
174
|
+
/**
|
|
175
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof PaymentRemindersApiCreatePaymentReminder
|
|
178
|
+
*/
|
|
179
|
+
readonly authorization?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Request parameters for deactivatePaymentReminder operation in PaymentRemindersApi.
|
|
183
|
+
* @export
|
|
184
|
+
* @interface PaymentRemindersApiDeactivatePaymentReminderRequest
|
|
185
|
+
*/
|
|
186
|
+
export interface PaymentRemindersApiDeactivatePaymentReminderRequest {
|
|
187
|
+
/**
|
|
188
|
+
* Unique identifier for the object.
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof PaymentRemindersApiDeactivatePaymentReminder
|
|
191
|
+
*/
|
|
192
|
+
readonly code: string;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {DeactivatePaymentReminderRequestDto}
|
|
196
|
+
* @memberof PaymentRemindersApiDeactivatePaymentReminder
|
|
197
|
+
*/
|
|
198
|
+
readonly deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto;
|
|
199
|
+
/**
|
|
200
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof PaymentRemindersApiDeactivatePaymentReminder
|
|
203
|
+
*/
|
|
204
|
+
readonly authorization?: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Request parameters for getPolicy operation in PaymentRemindersApi.
|
|
208
|
+
* @export
|
|
209
|
+
* @interface PaymentRemindersApiGetPolicyRequest
|
|
210
|
+
*/
|
|
211
|
+
export interface PaymentRemindersApiGetPolicyRequest {
|
|
212
|
+
/**
|
|
213
|
+
* Unique identifier for the object.
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof PaymentRemindersApiGetPolicy
|
|
216
|
+
*/
|
|
217
|
+
readonly code: string;
|
|
218
|
+
/**
|
|
219
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof PaymentRemindersApiGetPolicy
|
|
222
|
+
*/
|
|
223
|
+
readonly authorization?: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Request parameters for listPaymentReminders operation in PaymentRemindersApi.
|
|
227
|
+
* @export
|
|
228
|
+
* @interface PaymentRemindersApiListPaymentRemindersRequest
|
|
229
|
+
*/
|
|
230
|
+
export interface PaymentRemindersApiListPaymentRemindersRequest {
|
|
231
|
+
/**
|
|
232
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
235
|
+
*/
|
|
236
|
+
readonly authorization?: string;
|
|
237
|
+
/**
|
|
238
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
239
|
+
* @type {any}
|
|
240
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
241
|
+
*/
|
|
242
|
+
readonly pageSize?: any;
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
* @type {any}
|
|
246
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
247
|
+
*/
|
|
248
|
+
readonly pageToken?: any;
|
|
249
|
+
/**
|
|
250
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
251
|
+
* @type {any}
|
|
252
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
253
|
+
*/
|
|
254
|
+
readonly filter?: any;
|
|
255
|
+
/**
|
|
256
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
257
|
+
* @type {any}
|
|
258
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
259
|
+
*/
|
|
260
|
+
readonly search?: any;
|
|
261
|
+
/**
|
|
262
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
263
|
+
* @type {any}
|
|
264
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
265
|
+
*/
|
|
266
|
+
readonly order?: any;
|
|
267
|
+
/**
|
|
268
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
269
|
+
* @type {any}
|
|
270
|
+
* @memberof PaymentRemindersApiListPaymentReminders
|
|
271
|
+
*/
|
|
272
|
+
readonly expand?: any;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* PaymentRemindersApi - object-oriented interface
|
|
276
|
+
* @export
|
|
277
|
+
* @class PaymentRemindersApi
|
|
278
|
+
* @extends {BaseAPI}
|
|
279
|
+
*/
|
|
280
|
+
export declare class PaymentRemindersApi extends BaseAPI {
|
|
281
|
+
/**
|
|
282
|
+
* This will create a payment reminder in the database.
|
|
283
|
+
* @summary Create the payment-reminder
|
|
284
|
+
* @param {PaymentRemindersApiCreatePaymentReminderRequest} requestParameters Request parameters.
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
* @memberof PaymentRemindersApi
|
|
288
|
+
*/
|
|
289
|
+
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
290
|
+
/**
|
|
291
|
+
* Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
292
|
+
* @summary Update the payment-reminder
|
|
293
|
+
* @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
* @memberof PaymentRemindersApi
|
|
297
|
+
*/
|
|
298
|
+
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
299
|
+
/**
|
|
300
|
+
* 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.
|
|
301
|
+
* @summary Retrieve the payment reminder
|
|
302
|
+
* @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof PaymentRemindersApi
|
|
306
|
+
*/
|
|
307
|
+
getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
308
|
+
/**
|
|
309
|
+
* 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.
|
|
310
|
+
* @summary List payment reminders
|
|
311
|
+
* @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
* @memberof PaymentRemindersApi
|
|
315
|
+
*/
|
|
316
|
+
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentRemindersResponseClass, any>>;
|
|
317
|
+
}
|