@emilgroup/payment-sdk-node 1.22.1-beta.6 → 1.22.1-beta.61

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.
Files changed (107) hide show
  1. package/.openapi-generator/FILES +21 -0
  2. package/README.md +2 -2
  3. package/api/billing-addresses-api.ts +695 -0
  4. package/api/credit-allocation-api.ts +460 -0
  5. package/api/payout-methods-api.ts +676 -0
  6. package/api/policy-payment-methods-api.ts +118 -0
  7. package/api.ts +6 -0
  8. package/base.ts +0 -1
  9. package/dist/api/bank-accounts-api.d.ts +6 -6
  10. package/dist/api/bank-orders-api.d.ts +5 -5
  11. package/dist/api/bank-transaction-api.d.ts +6 -6
  12. package/dist/api/billing-addresses-api.d.ts +393 -0
  13. package/dist/api/billing-addresses-api.js +646 -0
  14. package/dist/api/credit-allocation-api.d.ts +263 -0
  15. package/dist/api/credit-allocation-api.js +449 -0
  16. package/dist/api/exceeding-credits-api.d.ts +2 -2
  17. package/dist/api/health-check-api.d.ts +1 -1
  18. package/dist/api/payment-methods-api.d.ts +3 -3
  19. package/dist/api/payment-reminders-api.d.ts +4 -4
  20. package/dist/api/payment-setup-api.d.ts +2 -2
  21. package/dist/api/payments-api.d.ts +4 -4
  22. package/dist/api/payout-methods-api.d.ts +382 -0
  23. package/dist/api/payout-methods-api.js +639 -0
  24. package/dist/api/policy-payment-methods-api.d.ts +67 -2
  25. package/dist/api/policy-payment-methods-api.js +99 -0
  26. package/dist/api/refunds-api.d.ts +3 -3
  27. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  28. package/dist/api/webhooks-api.d.ts +1 -1
  29. package/dist/api.d.ts +3 -0
  30. package/dist/api.js +3 -0
  31. package/dist/common.d.ts +1 -1
  32. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  33. package/dist/models/activate-policy-payment-method-request-dto.js +15 -0
  34. package/dist/models/bank-order-class.d.ts +3 -3
  35. package/dist/models/billing-address-class.d.ts +108 -0
  36. package/dist/models/billing-address-class.js +15 -0
  37. package/dist/models/billing-address-dto.d.ts +6 -0
  38. package/dist/models/create-bank-order-request-dto.d.ts +3 -3
  39. package/dist/models/create-billing-address-request-dto.d.ts +66 -0
  40. package/dist/models/create-billing-address-request-dto.js +15 -0
  41. package/dist/models/create-billing-address-response-class.d.ts +25 -0
  42. package/dist/models/create-billing-address-response-class.js +15 -0
  43. package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
  44. package/dist/models/create-credit-allocation-request-dto.js +21 -0
  45. package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
  46. package/dist/models/create-credit-allocation-response-class.js +15 -0
  47. package/dist/models/create-payout-method-request-dto.d.ts +60 -0
  48. package/dist/models/create-payout-method-request-dto.js +15 -0
  49. package/dist/models/create-payout-method-response-class.d.ts +25 -0
  50. package/dist/models/create-payout-method-response-class.js +15 -0
  51. package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
  52. package/dist/models/credit-allocation-class.d.ts +115 -0
  53. package/dist/models/credit-allocation-class.js +21 -0
  54. package/dist/models/exceeding-credit-class.d.ts +6 -0
  55. package/dist/models/get-billing-address-response-class.d.ts +25 -0
  56. package/dist/models/get-billing-address-response-class.js +15 -0
  57. package/dist/models/get-credit-allocation-response-class.d.ts +25 -0
  58. package/dist/models/get-credit-allocation-response-class.js +15 -0
  59. package/dist/models/get-payout-method-response-class.d.ts +25 -0
  60. package/dist/models/get-payout-method-response-class.js +15 -0
  61. package/dist/models/index.d.ts +18 -0
  62. package/dist/models/index.js +18 -0
  63. package/dist/models/list-billing-addresses-response-class.d.ts +43 -0
  64. package/dist/models/list-billing-addresses-response-class.js +15 -0
  65. package/dist/models/list-credit-allocations-response-class.d.ts +43 -0
  66. package/dist/models/list-credit-allocations-response-class.js +15 -0
  67. package/dist/models/list-payout-methods-response-class.d.ts +43 -0
  68. package/dist/models/list-payout-methods-response-class.js +15 -0
  69. package/dist/models/payout-method-class.d.ts +115 -0
  70. package/dist/models/payout-method-class.js +15 -0
  71. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
  72. package/dist/models/tenant-bank-account-class.d.ts +30 -0
  73. package/dist/models/update-bank-order-request-dto.d.ts +3 -3
  74. package/dist/models/update-billing-address-request-dto.d.ts +66 -0
  75. package/dist/models/update-billing-address-request-dto.js +15 -0
  76. package/dist/models/update-billing-address-response-class.d.ts +25 -0
  77. package/dist/models/update-billing-address-response-class.js +15 -0
  78. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
  79. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  80. package/models/bank-order-class.ts +3 -3
  81. package/models/billing-address-class.ts +114 -0
  82. package/models/billing-address-dto.ts +6 -0
  83. package/models/create-bank-order-request-dto.ts +3 -3
  84. package/models/create-billing-address-request-dto.ts +72 -0
  85. package/models/create-billing-address-response-class.ts +31 -0
  86. package/models/create-credit-allocation-request-dto.ts +63 -0
  87. package/models/create-credit-allocation-response-class.ts +31 -0
  88. package/models/create-payout-method-request-dto.ts +66 -0
  89. package/models/create-payout-method-response-class.ts +31 -0
  90. package/models/create-tenant-bank-account-request-dto.ts +30 -0
  91. package/models/credit-allocation-class.ts +124 -0
  92. package/models/exceeding-credit-class.ts +6 -0
  93. package/models/get-billing-address-response-class.ts +31 -0
  94. package/models/get-credit-allocation-response-class.ts +31 -0
  95. package/models/get-payout-method-response-class.ts +31 -0
  96. package/models/index.ts +18 -0
  97. package/models/list-billing-addresses-response-class.ts +49 -0
  98. package/models/list-credit-allocations-response-class.ts +49 -0
  99. package/models/list-payout-methods-response-class.ts +49 -0
  100. package/models/payout-method-class.ts +121 -0
  101. package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
  102. package/models/tenant-bank-account-class.ts +30 -0
  103. package/models/update-bank-order-request-dto.ts +3 -3
  104. package/models/update-billing-address-request-dto.ts +72 -0
  105. package/models/update-billing-address-response-class.ts +31 -0
  106. package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
  107. package/package.json +2 -2
@@ -0,0 +1,676 @@
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 { CreatePayoutMethodRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePayoutMethodResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetPayoutMethodResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPayoutMethodsResponseClass } from '../models';
31
+ // URLSearchParams not necessarily used
32
+ // @ts-ignore
33
+ import { URL, URLSearchParams } from 'url';
34
+ const FormData = require('form-data');
35
+ /**
36
+ * PayoutMethodsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * Activates a payout method and deactivates the currently active payout method for the same partner **Required Permissions** \"payment-management.payments.update\"
43
+ * @summary Create the Payout Method Activation
44
+ * @param {string} code Unique identifier for the object.
45
+ * @param {string} [authorization] Bearer Token
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ activatePayoutMethod: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'code' is not null or undefined
51
+ assertParamExists('activatePayoutMethod', 'code', code)
52
+ const localVarPath = `/paymentservice/v1/payout-methods/{code}/activate`
53
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ let baseAccessToken;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ baseAccessToken = configuration.accessToken;
61
+ }
62
+
63
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
64
+ const localVarHeaderParameter = {} as any;
65
+ const localVarQueryParameter = {} as any;
66
+
67
+ // authentication bearer required
68
+ // http bearer authentication required
69
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
+
71
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
+ }
74
+
75
+
76
+
77
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
78
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
80
+
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
86
+ /**
87
+ * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
88
+ * @summary Create the Payout Method
89
+ * @param {CreatePayoutMethodRequestDto} createPayoutMethodRequestDto
90
+ * @param {string} [authorization] Bearer Token
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ createPayoutMethod: async (createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ // verify required parameter 'createPayoutMethodRequestDto' is not null or undefined
96
+ assertParamExists('createPayoutMethod', 'createPayoutMethodRequestDto', createPayoutMethodRequestDto)
97
+ const localVarPath = `/paymentservice/v1/payout-methods`;
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: 'POST', ...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 (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
116
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
117
+ }
118
+
119
+
120
+
121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
122
+
123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
126
+ localVarRequestOptions.data = serializeDataIfNeeded(createPayoutMethodRequestDto, localVarRequestOptions, configuration)
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
135
+ * @summary Delete the Payout Method
136
+ * @param {string} code Unique identifier for the object.
137
+ * @param {string} [authorization] Bearer Token
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ deletePayoutMethod: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'code' is not null or undefined
143
+ assertParamExists('deletePayoutMethod', 'code', code)
144
+ const localVarPath = `/paymentservice/v1/payout-methods/{code}`
145
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ * Retrieves the details of the Payout Method that was previously created. Supply the unique Payout Method code that was returned when you created it and Emil Api will return the corresponding Payout Method information. **Required Permissions** \"payment-management.payments.view\"
180
+ * @summary Retrieve the Payout Method
181
+ * @param {string} code
182
+ * @param {string} [authorization] Bearer Token
183
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ getPayoutMethod: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
+ // verify required parameter 'code' is not null or undefined
189
+ assertParamExists('getPayoutMethod', 'code', code)
190
+ const localVarPath = `/paymentservice/v1/payout-methods/{code}`
191
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
194
+ let baseOptions;
195
+ let baseAccessToken;
196
+ if (configuration) {
197
+ baseOptions = configuration.baseOptions;
198
+ baseAccessToken = configuration.accessToken;
199
+ }
200
+
201
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication bearer required
206
+ // http bearer authentication required
207
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
208
+
209
+ if (expand !== undefined) {
210
+ localVarQueryParameter['expand'] = expand;
211
+ }
212
+
213
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
214
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
215
+ }
216
+
217
+
218
+
219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
222
+
223
+ return {
224
+ url: toPathString(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ };
227
+ },
228
+ /**
229
+ * Returns a list of Payout Methods you have previously created. The Payout Methods 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\"
230
+ * @summary List Payout Methods
231
+ * @param {string} [authorization] Bearer Token
232
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
233
+ * @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.
234
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
235
+ * @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
236
+ * @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, code, isActive, createdAt, updatedAt&lt;/i&gt;
237
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
238
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ listPayoutMethods: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
243
+ const localVarPath = `/paymentservice/v1/payout-methods`;
244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
246
+ let baseOptions;
247
+ let baseAccessToken;
248
+ if (configuration) {
249
+ baseOptions = configuration.baseOptions;
250
+ baseAccessToken = configuration.accessToken;
251
+ }
252
+
253
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
254
+ const localVarHeaderParameter = {} as any;
255
+ const localVarQueryParameter = {} as any;
256
+
257
+ // authentication bearer required
258
+ // http bearer authentication required
259
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
260
+
261
+ if (pageSize !== undefined) {
262
+ localVarQueryParameter['pageSize'] = pageSize;
263
+ }
264
+
265
+ if (pageToken !== undefined) {
266
+ localVarQueryParameter['pageToken'] = pageToken;
267
+ }
268
+
269
+ if (filter !== undefined) {
270
+ localVarQueryParameter['filter'] = filter;
271
+ }
272
+
273
+ if (search !== undefined) {
274
+ localVarQueryParameter['search'] = search;
275
+ }
276
+
277
+ if (order !== undefined) {
278
+ localVarQueryParameter['order'] = order;
279
+ }
280
+
281
+ if (expand !== undefined) {
282
+ localVarQueryParameter['expand'] = expand;
283
+ }
284
+
285
+ if (filters !== undefined) {
286
+ localVarQueryParameter['filters'] = filters;
287
+ }
288
+
289
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
290
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
291
+ }
292
+
293
+
294
+
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
298
+
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ },
304
+ }
305
+ };
306
+
307
+ /**
308
+ * PayoutMethodsApi - functional programming interface
309
+ * @export
310
+ */
311
+ export const PayoutMethodsApiFp = function(configuration?: Configuration) {
312
+ const localVarAxiosParamCreator = PayoutMethodsApiAxiosParamCreator(configuration)
313
+ return {
314
+ /**
315
+ * Activates a payout method and deactivates the currently active payout method for the same partner **Required Permissions** \"payment-management.payments.update\"
316
+ * @summary Create the Payout Method Activation
317
+ * @param {string} code Unique identifier for the object.
318
+ * @param {string} [authorization] Bearer Token
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ async activatePayoutMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activatePayoutMethod(code, authorization, options);
324
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
325
+ },
326
+ /**
327
+ * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
328
+ * @summary Create the Payout Method
329
+ * @param {CreatePayoutMethodRequestDto} createPayoutMethodRequestDto
330
+ * @param {string} [authorization] Bearer Token
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ async createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePayoutMethodResponseClass>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutMethod(createPayoutMethodRequestDto, authorization, options);
336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
+ },
338
+ /**
339
+ * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
340
+ * @summary Delete the Payout Method
341
+ * @param {string} code Unique identifier for the object.
342
+ * @param {string} [authorization] Bearer Token
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ async deletePayoutMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePayoutMethod(code, authorization, options);
348
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
+ },
350
+ /**
351
+ * Retrieves the details of the Payout Method that was previously created. Supply the unique Payout Method code that was returned when you created it and Emil Api will return the corresponding Payout Method information. **Required Permissions** \"payment-management.payments.view\"
352
+ * @summary Retrieve the Payout Method
353
+ * @param {string} code
354
+ * @param {string} [authorization] Bearer Token
355
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async getPayoutMethod(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPayoutMethodResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPayoutMethod(code, authorization, expand, options);
361
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
+ },
363
+ /**
364
+ * Returns a list of Payout Methods you have previously created. The Payout Methods 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\"
365
+ * @summary List Payout Methods
366
+ * @param {string} [authorization] Bearer Token
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @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.
369
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
370
+ * @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
371
+ * @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, code, isActive, createdAt, updatedAt&lt;/i&gt;
372
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
373
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ async listPayoutMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPayoutMethodsResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPayoutMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
+ },
381
+ }
382
+ };
383
+
384
+ /**
385
+ * PayoutMethodsApi - factory interface
386
+ * @export
387
+ */
388
+ export const PayoutMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
389
+ const localVarFp = PayoutMethodsApiFp(configuration)
390
+ return {
391
+ /**
392
+ * Activates a payout method and deactivates the currently active payout method for the same partner **Required Permissions** \"payment-management.payments.update\"
393
+ * @summary Create the Payout Method Activation
394
+ * @param {string} code Unique identifier for the object.
395
+ * @param {string} [authorization] Bearer Token
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ activatePayoutMethod(code: string, authorization?: string, options?: any): AxiosPromise<object> {
400
+ return localVarFp.activatePayoutMethod(code, authorization, options).then((request) => request(axios, basePath));
401
+ },
402
+ /**
403
+ * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
404
+ * @summary Create the Payout Method
405
+ * @param {CreatePayoutMethodRequestDto} createPayoutMethodRequestDto
406
+ * @param {string} [authorization] Bearer Token
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ createPayoutMethod(createPayoutMethodRequestDto: CreatePayoutMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePayoutMethodResponseClass> {
411
+ return localVarFp.createPayoutMethod(createPayoutMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
412
+ },
413
+ /**
414
+ * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
415
+ * @summary Delete the Payout Method
416
+ * @param {string} code Unique identifier for the object.
417
+ * @param {string} [authorization] Bearer Token
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ deletePayoutMethod(code: string, authorization?: string, options?: any): AxiosPromise<object> {
422
+ return localVarFp.deletePayoutMethod(code, authorization, options).then((request) => request(axios, basePath));
423
+ },
424
+ /**
425
+ * Retrieves the details of the Payout Method that was previously created. Supply the unique Payout Method code that was returned when you created it and Emil Api will return the corresponding Payout Method information. **Required Permissions** \"payment-management.payments.view\"
426
+ * @summary Retrieve the Payout Method
427
+ * @param {string} code
428
+ * @param {string} [authorization] Bearer Token
429
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ getPayoutMethod(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPayoutMethodResponseClass> {
434
+ return localVarFp.getPayoutMethod(code, authorization, expand, options).then((request) => request(axios, basePath));
435
+ },
436
+ /**
437
+ * Returns a list of Payout Methods you have previously created. The Payout Methods 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\"
438
+ * @summary List Payout Methods
439
+ * @param {string} [authorization] Bearer Token
440
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
441
+ * @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.
442
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
443
+ * @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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
444
+ * @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, code, isActive, createdAt, updatedAt&lt;/i&gt;
445
+ * @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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
446
+ * @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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ listPayoutMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPayoutMethodsResponseClass> {
451
+ return localVarFp.listPayoutMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
452
+ },
453
+ };
454
+ };
455
+
456
+ /**
457
+ * Request parameters for activatePayoutMethod operation in PayoutMethodsApi.
458
+ * @export
459
+ * @interface PayoutMethodsApiActivatePayoutMethodRequest
460
+ */
461
+ export interface PayoutMethodsApiActivatePayoutMethodRequest {
462
+ /**
463
+ * Unique identifier for the object.
464
+ * @type {string}
465
+ * @memberof PayoutMethodsApiActivatePayoutMethod
466
+ */
467
+ readonly code: string
468
+
469
+ /**
470
+ * Bearer Token
471
+ * @type {string}
472
+ * @memberof PayoutMethodsApiActivatePayoutMethod
473
+ */
474
+ readonly authorization?: string
475
+ }
476
+
477
+ /**
478
+ * Request parameters for createPayoutMethod operation in PayoutMethodsApi.
479
+ * @export
480
+ * @interface PayoutMethodsApiCreatePayoutMethodRequest
481
+ */
482
+ export interface PayoutMethodsApiCreatePayoutMethodRequest {
483
+ /**
484
+ *
485
+ * @type {CreatePayoutMethodRequestDto}
486
+ * @memberof PayoutMethodsApiCreatePayoutMethod
487
+ */
488
+ readonly createPayoutMethodRequestDto: CreatePayoutMethodRequestDto
489
+
490
+ /**
491
+ * Bearer Token
492
+ * @type {string}
493
+ * @memberof PayoutMethodsApiCreatePayoutMethod
494
+ */
495
+ readonly authorization?: string
496
+ }
497
+
498
+ /**
499
+ * Request parameters for deletePayoutMethod operation in PayoutMethodsApi.
500
+ * @export
501
+ * @interface PayoutMethodsApiDeletePayoutMethodRequest
502
+ */
503
+ export interface PayoutMethodsApiDeletePayoutMethodRequest {
504
+ /**
505
+ * Unique identifier for the object.
506
+ * @type {string}
507
+ * @memberof PayoutMethodsApiDeletePayoutMethod
508
+ */
509
+ readonly code: string
510
+
511
+ /**
512
+ * Bearer Token
513
+ * @type {string}
514
+ * @memberof PayoutMethodsApiDeletePayoutMethod
515
+ */
516
+ readonly authorization?: string
517
+ }
518
+
519
+ /**
520
+ * Request parameters for getPayoutMethod operation in PayoutMethodsApi.
521
+ * @export
522
+ * @interface PayoutMethodsApiGetPayoutMethodRequest
523
+ */
524
+ export interface PayoutMethodsApiGetPayoutMethodRequest {
525
+ /**
526
+ *
527
+ * @type {string}
528
+ * @memberof PayoutMethodsApiGetPayoutMethod
529
+ */
530
+ readonly code: string
531
+
532
+ /**
533
+ * Bearer Token
534
+ * @type {string}
535
+ * @memberof PayoutMethodsApiGetPayoutMethod
536
+ */
537
+ readonly authorization?: string
538
+
539
+ /**
540
+ * 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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
541
+ * @type {string}
542
+ * @memberof PayoutMethodsApiGetPayoutMethod
543
+ */
544
+ readonly expand?: string
545
+ }
546
+
547
+ /**
548
+ * Request parameters for listPayoutMethods operation in PayoutMethodsApi.
549
+ * @export
550
+ * @interface PayoutMethodsApiListPayoutMethodsRequest
551
+ */
552
+ export interface PayoutMethodsApiListPayoutMethodsRequest {
553
+ /**
554
+ * Bearer Token
555
+ * @type {string}
556
+ * @memberof PayoutMethodsApiListPayoutMethods
557
+ */
558
+ readonly authorization?: string
559
+
560
+ /**
561
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
562
+ * @type {number}
563
+ * @memberof PayoutMethodsApiListPayoutMethods
564
+ */
565
+ readonly pageSize?: number
566
+
567
+ /**
568
+ * 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.
569
+ * @type {string}
570
+ * @memberof PayoutMethodsApiListPayoutMethods
571
+ */
572
+ readonly pageToken?: string
573
+
574
+ /**
575
+ * 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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
576
+ * @type {string}
577
+ * @memberof PayoutMethodsApiListPayoutMethods
578
+ */
579
+ readonly filter?: string
580
+
581
+ /**
582
+ * 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: firstName, lastName, iban, bankName, accountCode, partnerCode, billingAddressCode&lt;/i&gt;
583
+ * @type {string}
584
+ * @memberof PayoutMethodsApiListPayoutMethods
585
+ */
586
+ readonly search?: string
587
+
588
+ /**
589
+ * 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, code, isActive, createdAt, updatedAt&lt;/i&gt;
590
+ * @type {string}
591
+ * @memberof PayoutMethodsApiListPayoutMethods
592
+ */
593
+ readonly order?: string
594
+
595
+ /**
596
+ * 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; &lt;i&gt;Allowed values: billingAddress&lt;i&gt;
597
+ * @type {string}
598
+ * @memberof PayoutMethodsApiListPayoutMethods
599
+ */
600
+ readonly expand?: string
601
+
602
+ /**
603
+ * 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: id, code, firstName, lastName, iban, bankName, accountCode, partnerCode, isActive, billingAddressCode, createdAt, updatedAt&lt;/i&gt;
604
+ * @type {string}
605
+ * @memberof PayoutMethodsApiListPayoutMethods
606
+ */
607
+ readonly filters?: string
608
+ }
609
+
610
+ /**
611
+ * PayoutMethodsApi - object-oriented interface
612
+ * @export
613
+ * @class PayoutMethodsApi
614
+ * @extends {BaseAPI}
615
+ */
616
+ export class PayoutMethodsApi extends BaseAPI {
617
+ /**
618
+ * Activates a payout method and deactivates the currently active payout method for the same partner **Required Permissions** \"payment-management.payments.update\"
619
+ * @summary Create the Payout Method Activation
620
+ * @param {PayoutMethodsApiActivatePayoutMethodRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof PayoutMethodsApi
624
+ */
625
+ public activatePayoutMethod(requestParameters: PayoutMethodsApiActivatePayoutMethodRequest, options?: AxiosRequestConfig) {
626
+ return PayoutMethodsApiFp(this.configuration).activatePayoutMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+
629
+ /**
630
+ * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
631
+ * @summary Create the Payout Method
632
+ * @param {PayoutMethodsApiCreatePayoutMethodRequest} requestParameters Request parameters.
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ * @memberof PayoutMethodsApi
636
+ */
637
+ public createPayoutMethod(requestParameters: PayoutMethodsApiCreatePayoutMethodRequest, options?: AxiosRequestConfig) {
638
+ return PayoutMethodsApiFp(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
639
+ }
640
+
641
+ /**
642
+ * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
643
+ * @summary Delete the Payout Method
644
+ * @param {PayoutMethodsApiDeletePayoutMethodRequest} requestParameters Request parameters.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ * @memberof PayoutMethodsApi
648
+ */
649
+ public deletePayoutMethod(requestParameters: PayoutMethodsApiDeletePayoutMethodRequest, options?: AxiosRequestConfig) {
650
+ return PayoutMethodsApiFp(this.configuration).deletePayoutMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
651
+ }
652
+
653
+ /**
654
+ * Retrieves the details of the Payout Method that was previously created. Supply the unique Payout Method code that was returned when you created it and Emil Api will return the corresponding Payout Method information. **Required Permissions** \"payment-management.payments.view\"
655
+ * @summary Retrieve the Payout Method
656
+ * @param {PayoutMethodsApiGetPayoutMethodRequest} requestParameters Request parameters.
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ * @memberof PayoutMethodsApi
660
+ */
661
+ public getPayoutMethod(requestParameters: PayoutMethodsApiGetPayoutMethodRequest, options?: AxiosRequestConfig) {
662
+ return PayoutMethodsApiFp(this.configuration).getPayoutMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
663
+ }
664
+
665
+ /**
666
+ * Returns a list of Payout Methods you have previously created. The Payout Methods 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\"
667
+ * @summary List Payout Methods
668
+ * @param {PayoutMethodsApiListPayoutMethodsRequest} requestParameters Request parameters.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ * @memberof PayoutMethodsApi
672
+ */
673
+ public listPayoutMethods(requestParameters: PayoutMethodsApiListPayoutMethodsRequest = {}, options?: AxiosRequestConfig) {
674
+ return PayoutMethodsApiFp(this.configuration).listPayoutMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
675
+ }
676
+ }