@emilgroup/payment-sdk-node 1.21.1-beta.81 → 1.21.1-beta.82

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.
@@ -6,6 +6,7 @@ api.ts
6
6
  api/bank-accounts-api.ts
7
7
  api/bank-orders-api.ts
8
8
  api/bank-transaction-api.ts
9
+ api/exceeding-credits-api.ts
9
10
  api/health-check-api.ts
10
11
  api/payment-methods-api.ts
11
12
  api/payment-reminders-api.ts
@@ -55,11 +56,13 @@ models/create-tenant-bank-account-response-class.ts
55
56
  models/deactivate-payment-reminder-request-dto.ts
56
57
  models/deactivate-payment-reminder-response-class.ts
57
58
  models/deactivated-payment-reminder-class.ts
59
+ models/exceeding-credit-class.ts
58
60
  models/financial-account-class.ts
59
61
  models/generate-invoice-match-suggestions-response-class.ts
60
62
  models/get-bank-account-response-class.ts
61
63
  models/get-bank-order-response-class.ts
62
64
  models/get-bank-transactions-response-class.ts
65
+ models/get-exceeding-credit-response-class.ts
63
66
  models/get-payment-method-response-class.ts
64
67
  models/get-payment-reminder-response-class.ts
65
68
  models/get-payment-response-class.ts
@@ -85,6 +88,7 @@ models/link-bank-transactions-response-class.ts
85
88
  models/list-bank-accounts-response-class.ts
86
89
  models/list-bank-orders-response-class.ts
87
90
  models/list-bank-transactions-response-class.ts
91
+ models/list-exceeding-credits-response-class.ts
88
92
  models/list-payment-methods-response-class.ts
89
93
  models/list-payment-reminders-response-class.ts
90
94
  models/list-payments-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.21.1-beta.81 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.82 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.81
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.82
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -0,0 +1,353 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
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
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetExceedingCreditResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListExceedingCreditsResponseClass } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * ExceedingCreditsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
39
+ * @summary Retrieve the exceeding credit
40
+ * @param {string} code Code of the exceeding credit to get
41
+ * @param {string} [authorization] Bearer Token
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getExceedingCredit: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'code' is not null or undefined
47
+ assertParamExists('getExceedingCredit', 'code', code)
48
+ const localVarPath = `/paymentservice/v1/exceeding-credits/{code}`
49
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ /**
83
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
84
+ * @summary List exceeding credits
85
+ * @param {string} [authorization] Bearer Token
86
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
87
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
88
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
89
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
90
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
91
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
92
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ listExceedingCredits: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ const localVarPath = `/paymentservice/v1/exceeding-credits`;
98
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ let baseAccessToken;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ baseAccessToken = configuration.accessToken;
105
+ }
106
+
107
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
108
+ const localVarHeaderParameter = {} as any;
109
+ const localVarQueryParameter = {} as any;
110
+
111
+ // authentication bearer required
112
+ // http bearer authentication required
113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
114
+
115
+ if (pageSize !== undefined) {
116
+ localVarQueryParameter['pageSize'] = pageSize;
117
+ }
118
+
119
+ if (pageToken !== undefined) {
120
+ localVarQueryParameter['pageToken'] = pageToken;
121
+ }
122
+
123
+ if (filter !== undefined) {
124
+ localVarQueryParameter['filter'] = filter;
125
+ }
126
+
127
+ if (search !== undefined) {
128
+ localVarQueryParameter['search'] = search;
129
+ }
130
+
131
+ if (order !== undefined) {
132
+ localVarQueryParameter['order'] = order;
133
+ }
134
+
135
+ if (expand !== undefined) {
136
+ localVarQueryParameter['expand'] = expand;
137
+ }
138
+
139
+ if (filters !== undefined) {
140
+ localVarQueryParameter['filters'] = filters;
141
+ }
142
+
143
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
+ }
146
+
147
+
148
+
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152
+
153
+ return {
154
+ url: toPathString(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ };
157
+ },
158
+ }
159
+ };
160
+
161
+ /**
162
+ * ExceedingCreditsApi - functional programming interface
163
+ * @export
164
+ */
165
+ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
166
+ const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
167
+ return {
168
+ /**
169
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
170
+ * @summary Retrieve the exceeding credit
171
+ * @param {string} code Code of the exceeding credit to get
172
+ * @param {string} [authorization] Bearer Token
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ async getExceedingCredit(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetExceedingCreditResponseClass>> {
177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getExceedingCredit(code, authorization, options);
178
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
179
+ },
180
+ /**
181
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
182
+ * @summary List exceeding credits
183
+ * @param {string} [authorization] Bearer Token
184
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
186
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
187
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
188
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
189
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
190
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ async listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListExceedingCreditsResponseClass>> {
195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listExceedingCredits(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
+ },
198
+ }
199
+ };
200
+
201
+ /**
202
+ * ExceedingCreditsApi - factory interface
203
+ * @export
204
+ */
205
+ export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
+ const localVarFp = ExceedingCreditsApiFp(configuration)
207
+ return {
208
+ /**
209
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
210
+ * @summary Retrieve the exceeding credit
211
+ * @param {string} code Code of the exceeding credit to get
212
+ * @param {string} [authorization] Bearer Token
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getExceedingCredit(code: string, authorization?: string, options?: any): AxiosPromise<GetExceedingCreditResponseClass> {
217
+ return localVarFp.getExceedingCredit(code, authorization, options).then((request) => request(axios, basePath));
218
+ },
219
+ /**
220
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
221
+ * @summary List exceeding credits
222
+ * @param {string} [authorization] Bearer Token
223
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
224
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
225
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
226
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
227
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
228
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
229
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass> {
234
+ return localVarFp.listExceedingCredits(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
235
+ },
236
+ };
237
+ };
238
+
239
+ /**
240
+ * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
241
+ * @export
242
+ * @interface ExceedingCreditsApiGetExceedingCreditRequest
243
+ */
244
+ export interface ExceedingCreditsApiGetExceedingCreditRequest {
245
+ /**
246
+ * Code of the exceeding credit to get
247
+ * @type {string}
248
+ * @memberof ExceedingCreditsApiGetExceedingCredit
249
+ */
250
+ readonly code: string
251
+
252
+ /**
253
+ * Bearer Token
254
+ * @type {string}
255
+ * @memberof ExceedingCreditsApiGetExceedingCredit
256
+ */
257
+ readonly authorization?: string
258
+ }
259
+
260
+ /**
261
+ * Request parameters for listExceedingCredits operation in ExceedingCreditsApi.
262
+ * @export
263
+ * @interface ExceedingCreditsApiListExceedingCreditsRequest
264
+ */
265
+ export interface ExceedingCreditsApiListExceedingCreditsRequest {
266
+ /**
267
+ * Bearer Token
268
+ * @type {string}
269
+ * @memberof ExceedingCreditsApiListExceedingCredits
270
+ */
271
+ readonly authorization?: string
272
+
273
+ /**
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
276
+ * @memberof ExceedingCreditsApiListExceedingCredits
277
+ */
278
+ readonly pageSize?: number
279
+
280
+ /**
281
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
282
+ * @type {string}
283
+ * @memberof ExceedingCreditsApiListExceedingCredits
284
+ */
285
+ readonly pageToken?: string
286
+
287
+ /**
288
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
289
+ * @type {string}
290
+ * @memberof ExceedingCreditsApiListExceedingCredits
291
+ */
292
+ readonly filter?: string
293
+
294
+ /**
295
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
296
+ * @type {string}
297
+ * @memberof ExceedingCreditsApiListExceedingCredits
298
+ */
299
+ readonly search?: string
300
+
301
+ /**
302
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
303
+ * @type {string}
304
+ * @memberof ExceedingCreditsApiListExceedingCredits
305
+ */
306
+ readonly order?: string
307
+
308
+ /**
309
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
310
+ * @type {string}
311
+ * @memberof ExceedingCreditsApiListExceedingCredits
312
+ */
313
+ readonly expand?: string
314
+
315
+ /**
316
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
317
+ * @type {string}
318
+ * @memberof ExceedingCreditsApiListExceedingCredits
319
+ */
320
+ readonly filters?: string
321
+ }
322
+
323
+ /**
324
+ * ExceedingCreditsApi - object-oriented interface
325
+ * @export
326
+ * @class ExceedingCreditsApi
327
+ * @extends {BaseAPI}
328
+ */
329
+ export class ExceedingCreditsApi extends BaseAPI {
330
+ /**
331
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
332
+ * @summary Retrieve the exceeding credit
333
+ * @param {ExceedingCreditsApiGetExceedingCreditRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof ExceedingCreditsApi
337
+ */
338
+ public getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig) {
339
+ return ExceedingCreditsApiFp(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
340
+ }
341
+
342
+ /**
343
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
344
+ * @summary List exceeding credits
345
+ * @param {ExceedingCreditsApiListExceedingCreditsRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof ExceedingCreditsApi
349
+ */
350
+ public listExceedingCredits(requestParameters: ExceedingCreditsApiListExceedingCreditsRequest = {}, options?: AxiosRequestConfig) {
351
+ return ExceedingCreditsApiFp(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
352
+ }
353
+ }
package/api.ts CHANGED
@@ -27,6 +27,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
27
  import { BankAccountsApi } from './api';
28
28
  import { BankOrdersApi } from './api';
29
29
  import { BankTransactionApi } from './api';
30
+ import { ExceedingCreditsApi } from './api';
30
31
  import { HealthCheckApi } from './api';
31
32
  import { PaymentMethodsApi } from './api';
32
33
  import { PaymentRemindersApi } from './api';
@@ -40,6 +41,7 @@ import { WebhooksApi } from './api';
40
41
  export * from './api/bank-accounts-api';
41
42
  export * from './api/bank-orders-api';
42
43
  export * from './api/bank-transaction-api';
44
+ export * from './api/exceeding-credits-api';
43
45
  export * from './api/health-check-api';
44
46
  export * from './api/payment-methods-api';
45
47
  export * from './api/payment-reminders-api';
@@ -0,0 +1,206 @@
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 { GetExceedingCreditResponseClass } from '../models';
16
+ import { ListExceedingCreditsResponseClass } from '../models';
17
+ /**
18
+ * ExceedingCreditsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
24
+ * @summary Retrieve the exceeding credit
25
+ * @param {string} code Code of the exceeding credit to get
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ getExceedingCredit: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
33
+ * @summary List exceeding credits
34
+ * @param {string} [authorization] Bearer Token
35
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
36
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
37
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
38
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
39
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
40
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
41
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listExceedingCredits: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ };
47
+ /**
48
+ * ExceedingCreditsApi - functional programming interface
49
+ * @export
50
+ */
51
+ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
52
+ /**
53
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
54
+ * @summary Retrieve the exceeding credit
55
+ * @param {string} code Code of the exceeding credit to get
56
+ * @param {string} [authorization] Bearer Token
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ getExceedingCredit(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetExceedingCreditResponseClass>>;
61
+ /**
62
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
63
+ * @summary List exceeding credits
64
+ * @param {string} [authorization] Bearer Token
65
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
66
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
67
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
68
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
69
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
70
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
71
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListExceedingCreditsResponseClass>>;
76
+ };
77
+ /**
78
+ * ExceedingCreditsApi - factory interface
79
+ * @export
80
+ */
81
+ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
82
+ /**
83
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
84
+ * @summary Retrieve the exceeding credit
85
+ * @param {string} code Code of the exceeding credit to get
86
+ * @param {string} [authorization] Bearer Token
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ getExceedingCredit(code: string, authorization?: string, options?: any): AxiosPromise<GetExceedingCreditResponseClass>;
91
+ /**
92
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
93
+ * @summary List exceeding credits
94
+ * @param {string} [authorization] Bearer Token
95
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
96
+ * @param {string} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
97
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
98
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
99
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
100
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
101
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
106
+ };
107
+ /**
108
+ * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
109
+ * @export
110
+ * @interface ExceedingCreditsApiGetExceedingCreditRequest
111
+ */
112
+ export interface ExceedingCreditsApiGetExceedingCreditRequest {
113
+ /**
114
+ * Code of the exceeding credit to get
115
+ * @type {string}
116
+ * @memberof ExceedingCreditsApiGetExceedingCredit
117
+ */
118
+ readonly code: string;
119
+ /**
120
+ * Bearer Token
121
+ * @type {string}
122
+ * @memberof ExceedingCreditsApiGetExceedingCredit
123
+ */
124
+ readonly authorization?: string;
125
+ }
126
+ /**
127
+ * Request parameters for listExceedingCredits operation in ExceedingCreditsApi.
128
+ * @export
129
+ * @interface ExceedingCreditsApiListExceedingCreditsRequest
130
+ */
131
+ export interface ExceedingCreditsApiListExceedingCreditsRequest {
132
+ /**
133
+ * Bearer Token
134
+ * @type {string}
135
+ * @memberof ExceedingCreditsApiListExceedingCredits
136
+ */
137
+ readonly authorization?: string;
138
+ /**
139
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
140
+ * @type {number}
141
+ * @memberof ExceedingCreditsApiListExceedingCredits
142
+ */
143
+ readonly pageSize?: number;
144
+ /**
145
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
146
+ * @type {string}
147
+ * @memberof ExceedingCreditsApiListExceedingCredits
148
+ */
149
+ readonly pageToken?: string;
150
+ /**
151
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
152
+ * @type {string}
153
+ * @memberof ExceedingCreditsApiListExceedingCredits
154
+ */
155
+ readonly filter?: string;
156
+ /**
157
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
158
+ * @type {string}
159
+ * @memberof ExceedingCreditsApiListExceedingCredits
160
+ */
161
+ readonly search?: string;
162
+ /**
163
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt&lt;/i&gt;
164
+ * @type {string}
165
+ * @memberof ExceedingCreditsApiListExceedingCredits
166
+ */
167
+ readonly order?: string;
168
+ /**
169
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
170
+ * @type {string}
171
+ * @memberof ExceedingCreditsApiListExceedingCredits
172
+ */
173
+ readonly expand?: string;
174
+ /**
175
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, policyCode, bankTransactionCode, invoiceCode&lt;/i&gt;
176
+ * @type {string}
177
+ * @memberof ExceedingCreditsApiListExceedingCredits
178
+ */
179
+ readonly filters?: string;
180
+ }
181
+ /**
182
+ * ExceedingCreditsApi - object-oriented interface
183
+ * @export
184
+ * @class ExceedingCreditsApi
185
+ * @extends {BaseAPI}
186
+ */
187
+ export declare class ExceedingCreditsApi extends BaseAPI {
188
+ /**
189
+ * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
190
+ * @summary Retrieve the exceeding credit
191
+ * @param {ExceedingCreditsApiGetExceedingCreditRequest} requestParameters Request parameters.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ * @memberof ExceedingCreditsApi
195
+ */
196
+ getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any>>;
197
+ /**
198
+ * Returns a list of exceeding credits you have previously created. The exceeding credits are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
199
+ * @summary List exceeding credits
200
+ * @param {ExceedingCreditsApiListExceedingCreditsRequest} requestParameters Request parameters.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ * @memberof ExceedingCreditsApi
204
+ */
205
+ listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any>>;
206
+ }