@emilgroup/payment-sdk 1.15.0 → 1.16.1-beta.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.
Files changed (103) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +2 -2
  3. package/api/billing-addresses-api.ts +677 -0
  4. package/api/payment-requests-api.ts +592 -0
  5. package/api/payout-methods-api.ts +672 -0
  6. package/api/tenant-bank-account-api.ts +12 -12
  7. package/api.ts +6 -0
  8. package/dist/api/billing-addresses-api.d.ts +384 -0
  9. package/dist/api/billing-addresses-api.js +636 -0
  10. package/dist/api/payment-requests-api.d.ts +338 -0
  11. package/dist/api/payment-requests-api.js +552 -0
  12. package/dist/api/payout-methods-api.d.ts +382 -0
  13. package/dist/api/payout-methods-api.js +635 -0
  14. package/dist/api/tenant-bank-account-api.d.ts +12 -12
  15. package/dist/api/tenant-bank-account-api.js +9 -9
  16. package/dist/api.d.ts +3 -0
  17. package/dist/api.js +3 -0
  18. package/dist/models/bank-order-class.d.ts +3 -3
  19. package/dist/models/bank-order-entity.d.ts +3 -2
  20. package/dist/models/bank-order-entity.js +2 -1
  21. package/dist/models/billing-address-class.d.ts +108 -0
  22. package/dist/models/billing-address-class.js +15 -0
  23. package/dist/models/create-bank-order-request-dto.d.ts +4 -3
  24. package/dist/models/create-bank-order-request-dto.js +2 -1
  25. package/dist/models/create-billing-address-request-dto.d.ts +66 -0
  26. package/dist/models/create-billing-address-request-dto.js +15 -0
  27. package/dist/models/create-billing-address-response-class.d.ts +25 -0
  28. package/dist/models/create-billing-address-response-class.js +15 -0
  29. package/dist/models/create-payment-request-request-dto.d.ts +72 -0
  30. package/dist/models/create-payment-request-request-dto.js +26 -0
  31. package/dist/models/create-payment-request-response-class.d.ts +25 -0
  32. package/dist/models/create-payment-request-response-class.js +15 -0
  33. package/dist/models/create-payout-method-request-dto.d.ts +60 -0
  34. package/dist/models/create-payout-method-request-dto.js +15 -0
  35. package/dist/models/create-payout-method-response-class.d.ts +25 -0
  36. package/dist/models/create-payout-method-response-class.js +15 -0
  37. package/dist/models/create-tenant-bank-account-request-dto.d.ts +17 -0
  38. package/dist/models/create-tenant-bank-account-request-dto.js +11 -1
  39. package/dist/models/get-billing-address-response-class.d.ts +25 -0
  40. package/dist/models/get-billing-address-response-class.js +15 -0
  41. package/dist/models/get-payment-request-response-class.d.ts +25 -0
  42. package/dist/models/get-payment-request-response-class.js +15 -0
  43. package/dist/models/get-payout-method-response-class.d.ts +25 -0
  44. package/dist/models/get-payout-method-response-class.js +15 -0
  45. package/dist/models/index.d.ts +19 -0
  46. package/dist/models/index.js +19 -0
  47. package/dist/models/list-billing-addresses-response-class.d.ts +43 -0
  48. package/dist/models/list-billing-addresses-response-class.js +15 -0
  49. package/dist/models/list-payment-requests-response-class.d.ts +31 -0
  50. package/dist/models/list-payment-requests-response-class.js +15 -0
  51. package/dist/models/list-payout-methods-response-class.d.ts +43 -0
  52. package/dist/models/list-payout-methods-response-class.js +15 -0
  53. package/dist/models/payment-request-class.d.ts +111 -0
  54. package/dist/models/payment-request-class.js +34 -0
  55. package/dist/models/payout-method-class.d.ts +115 -0
  56. package/dist/models/payout-method-class.js +15 -0
  57. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +17 -0
  58. package/dist/models/tenant-bank-account-class-without-expand-properties.js +11 -1
  59. package/dist/models/tenant-bank-account-class.d.ts +17 -0
  60. package/dist/models/tenant-bank-account-class.js +11 -1
  61. package/dist/models/tenant-bank-account-entity.d.ts +17 -0
  62. package/dist/models/tenant-bank-account-entity.js +11 -1
  63. package/dist/models/update-bank-order-request-dto.d.ts +3 -3
  64. package/dist/models/update-billing-address-request-dto.d.ts +66 -0
  65. package/dist/models/update-billing-address-request-dto.js +15 -0
  66. package/dist/models/update-billing-address-response-class.d.ts +25 -0
  67. package/dist/models/update-billing-address-response-class.js +15 -0
  68. package/dist/models/update-payment-request-request-dto.d.ts +39 -0
  69. package/dist/models/update-payment-request-request-dto.js +24 -0
  70. package/dist/models/update-payment-request-response-class.d.ts +25 -0
  71. package/dist/models/update-payment-request-response-class.js +15 -0
  72. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +17 -0
  73. package/dist/models/update-tenant-bank-account-rest-request-dto.js +11 -1
  74. package/models/bank-order-class.ts +3 -3
  75. package/models/bank-order-entity.ts +4 -3
  76. package/models/billing-address-class.ts +114 -0
  77. package/models/create-bank-order-request-dto.ts +5 -4
  78. package/models/create-billing-address-request-dto.ts +72 -0
  79. package/models/create-billing-address-response-class.ts +31 -0
  80. package/models/create-payment-request-request-dto.ts +82 -0
  81. package/models/create-payment-request-response-class.ts +31 -0
  82. package/models/create-payout-method-request-dto.ts +66 -0
  83. package/models/create-payout-method-response-class.ts +31 -0
  84. package/models/create-tenant-bank-account-request-dto.ts +18 -0
  85. package/models/get-billing-address-response-class.ts +31 -0
  86. package/models/get-payment-request-response-class.ts +31 -0
  87. package/models/get-payout-method-response-class.ts +31 -0
  88. package/models/index.ts +19 -0
  89. package/models/list-billing-addresses-response-class.ts +49 -0
  90. package/models/list-payment-requests-response-class.ts +37 -0
  91. package/models/list-payout-methods-response-class.ts +49 -0
  92. package/models/payment-request-class.ts +122 -0
  93. package/models/payout-method-class.ts +121 -0
  94. package/models/tenant-bank-account-class-without-expand-properties.ts +18 -0
  95. package/models/tenant-bank-account-class.ts +18 -0
  96. package/models/tenant-bank-account-entity.ts +18 -0
  97. package/models/update-bank-order-request-dto.ts +3 -3
  98. package/models/update-billing-address-request-dto.ts +72 -0
  99. package/models/update-billing-address-response-class.ts +31 -0
  100. package/models/update-payment-request-request-dto.ts +48 -0
  101. package/models/update-payment-request-response-class.ts +31 -0
  102. package/models/update-tenant-bank-account-rest-request-dto.ts +18 -0
  103. package/package.json +2 -1
@@ -0,0 +1,592 @@
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 { CreatePaymentRequestRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePaymentRequestResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetPaymentRequestResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentRequestsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdatePaymentRequestRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdatePaymentRequestResponseClass } from '../models';
35
+ /**
36
+ * PaymentRequestsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create payment request. **Required Permissions** \"payment-management.payments.create\"
43
+ * @summary Create the payment request
44
+ * @param {CreatePaymentRequestRequestDto} createPaymentRequestRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createPaymentRequest: async (createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createPaymentRequestRequestDto' is not null or undefined
51
+ assertParamExists('createPaymentRequest', 'createPaymentRequestRequestDto', createPaymentRequestRequestDto)
52
+ const localVarPath = `/paymentservice/v1/payment-requests`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentRequestRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
90
+ * @summary Retrieve the payment request
91
+ * @param {string} code Unique identifier for the object.
92
+ * @param {string} expand
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ getPaymentRequest: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'code' is not null or undefined
99
+ assertParamExists('getPaymentRequest', 'code', code)
100
+ // verify required parameter 'expand' is not null or undefined
101
+ assertParamExists('getPaymentRequest', 'expand', expand)
102
+ const localVarPath = `/paymentservice/v1/payment-requests/{code}`
103
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
+ let baseOptions;
107
+ let baseAccessToken;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ baseAccessToken = configuration.accessToken;
111
+ }
112
+
113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
114
+ const localVarHeaderParameter = {} as any;
115
+ const localVarQueryParameter = {} as any;
116
+
117
+ // authentication bearer required
118
+ // http bearer authentication required
119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
+
121
+ if (expand !== undefined) {
122
+ localVarQueryParameter['expand'] = expand;
123
+ }
124
+
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
+ }
128
+
129
+
130
+
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
+
135
+ return {
136
+ url: toPathString(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ };
139
+ },
140
+ /**
141
+ * Retrieves a list of paymentrequests. **Required Permissions** \"payment-management.payments.view\"
142
+ * @summary List payment requests
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
145
+ * @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.
146
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
147
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
148
+ * @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: createdAt&lt;/i&gt;
149
+ * @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;
150
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ listPaymentRequests: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ const localVarPath = `/paymentservice/v1/payment-requests`;
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ let baseAccessToken;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ baseAccessToken = configuration.accessToken;
163
+ }
164
+
165
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
166
+ const localVarHeaderParameter = {} as any;
167
+ const localVarQueryParameter = {} as any;
168
+
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
+
173
+ if (pageSize !== undefined) {
174
+ localVarQueryParameter['pageSize'] = pageSize;
175
+ }
176
+
177
+ if (pageToken !== undefined) {
178
+ localVarQueryParameter['pageToken'] = pageToken;
179
+ }
180
+
181
+ if (filter !== undefined) {
182
+ localVarQueryParameter['filter'] = filter;
183
+ }
184
+
185
+ if (search !== undefined) {
186
+ localVarQueryParameter['search'] = search;
187
+ }
188
+
189
+ if (order !== undefined) {
190
+ localVarQueryParameter['order'] = order;
191
+ }
192
+
193
+ if (expand !== undefined) {
194
+ localVarQueryParameter['expand'] = expand;
195
+ }
196
+
197
+ if (filters !== undefined) {
198
+ localVarQueryParameter['filters'] = filters;
199
+ }
200
+
201
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
203
+ }
204
+
205
+
206
+
207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
210
+
211
+ return {
212
+ url: toPathString(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ },
216
+ /**
217
+ * This will update payment request. **Required Permissions** \"payment-management.payments.update\"
218
+ * @summary Update the payment request
219
+ * @param {string} code Unique identifier for the object.
220
+ * @param {UpdatePaymentRequestRequestDto} updatePaymentRequestRequestDto
221
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ updatePaymentRequest: async (code: string, updatePaymentRequestRequestDto: UpdatePaymentRequestRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
226
+ // verify required parameter 'code' is not null or undefined
227
+ assertParamExists('updatePaymentRequest', 'code', code)
228
+ // verify required parameter 'updatePaymentRequestRequestDto' is not null or undefined
229
+ assertParamExists('updatePaymentRequest', 'updatePaymentRequestRequestDto', updatePaymentRequestRequestDto)
230
+ const localVarPath = `/paymentservice/v1/payment-requests/{code}`
231
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ let baseAccessToken;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ baseAccessToken = configuration.accessToken;
239
+ }
240
+
241
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
242
+ const localVarHeaderParameter = {} as any;
243
+ const localVarQueryParameter = {} as any;
244
+
245
+ // authentication bearer required
246
+ // http bearer authentication required
247
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
248
+
249
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
250
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ }
252
+
253
+
254
+
255
+ localVarHeaderParameter['Content-Type'] = 'application/json';
256
+
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentRequestRequestDto, localVarRequestOptions, configuration)
261
+
262
+ return {
263
+ url: toPathString(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ },
267
+ }
268
+ };
269
+
270
+ /**
271
+ * PaymentRequestsApi - functional programming interface
272
+ * @export
273
+ */
274
+ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
275
+ const localVarAxiosParamCreator = PaymentRequestsApiAxiosParamCreator(configuration)
276
+ return {
277
+ /**
278
+ * This will create payment request. **Required Permissions** \"payment-management.payments.create\"
279
+ * @summary Create the payment request
280
+ * @param {CreatePaymentRequestRequestDto} createPaymentRequestRequestDto
281
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ async createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentRequestResponseClass>> {
286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequestDto, authorization, options);
287
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
288
+ },
289
+ /**
290
+ * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
291
+ * @summary Retrieve the payment request
292
+ * @param {string} code Unique identifier for the object.
293
+ * @param {string} expand
294
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ async getPaymentRequest(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentRequestResponseClass>> {
299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentRequest(code, expand, authorization, options);
300
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
301
+ },
302
+ /**
303
+ * Retrieves a list of paymentrequests. **Required Permissions** \"payment-management.payments.view\"
304
+ * @summary List payment requests
305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
307
+ * @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.
308
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
309
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
+ * @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: createdAt&lt;/i&gt;
311
+ * @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;
312
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ async listPaymentRequests(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRequestsResponseClass>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
+ },
320
+ /**
321
+ * This will update payment request. **Required Permissions** \"payment-management.payments.update\"
322
+ * @summary Update the payment request
323
+ * @param {string} code Unique identifier for the object.
324
+ * @param {UpdatePaymentRequestRequestDto} updatePaymentRequestRequestDto
325
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ async updatePaymentRequest(code: string, updatePaymentRequestRequestDto: UpdatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePaymentRequestResponseClass>> {
330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentRequest(code, updatePaymentRequestRequestDto, authorization, options);
331
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
332
+ },
333
+ }
334
+ };
335
+
336
+ /**
337
+ * PaymentRequestsApi - factory interface
338
+ * @export
339
+ */
340
+ export const PaymentRequestsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
341
+ const localVarFp = PaymentRequestsApiFp(configuration)
342
+ return {
343
+ /**
344
+ * This will create payment request. **Required Permissions** \"payment-management.payments.create\"
345
+ * @summary Create the payment request
346
+ * @param {CreatePaymentRequestRequestDto} createPaymentRequestRequestDto
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass> {
352
+ return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then((request) => request(axios, basePath));
353
+ },
354
+ /**
355
+ * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
356
+ * @summary Retrieve the payment request
357
+ * @param {string} code Unique identifier for the object.
358
+ * @param {string} expand
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ getPaymentRequest(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPaymentRequestResponseClass> {
364
+ return localVarFp.getPaymentRequest(code, expand, authorization, options).then((request) => request(axios, basePath));
365
+ },
366
+ /**
367
+ * Retrieves a list of paymentrequests. **Required Permissions** \"payment-management.payments.view\"
368
+ * @summary List payment requests
369
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
371
+ * @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.
372
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
373
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
374
+ * @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: createdAt&lt;/i&gt;
375
+ * @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;
376
+ * @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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ listPaymentRequests(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentRequestsResponseClass> {
381
+ return localVarFp.listPaymentRequests(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
382
+ },
383
+ /**
384
+ * This will update payment request. **Required Permissions** \"payment-management.payments.update\"
385
+ * @summary Update the payment request
386
+ * @param {string} code Unique identifier for the object.
387
+ * @param {UpdatePaymentRequestRequestDto} updatePaymentRequestRequestDto
388
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ updatePaymentRequest(code: string, updatePaymentRequestRequestDto: UpdatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePaymentRequestResponseClass> {
393
+ return localVarFp.updatePaymentRequest(code, updatePaymentRequestRequestDto, authorization, options).then((request) => request(axios, basePath));
394
+ },
395
+ };
396
+ };
397
+
398
+ /**
399
+ * Request parameters for createPaymentRequest operation in PaymentRequestsApi.
400
+ * @export
401
+ * @interface PaymentRequestsApiCreatePaymentRequestRequest
402
+ */
403
+ export interface PaymentRequestsApiCreatePaymentRequestRequest {
404
+ /**
405
+ *
406
+ * @type {CreatePaymentRequestRequestDto}
407
+ * @memberof PaymentRequestsApiCreatePaymentRequest
408
+ */
409
+ readonly createPaymentRequestRequestDto: CreatePaymentRequestRequestDto
410
+
411
+ /**
412
+ * Bearer Token: provided by the login endpoint under the name accessToken.
413
+ * @type {string}
414
+ * @memberof PaymentRequestsApiCreatePaymentRequest
415
+ */
416
+ readonly authorization?: string
417
+ }
418
+
419
+ /**
420
+ * Request parameters for getPaymentRequest operation in PaymentRequestsApi.
421
+ * @export
422
+ * @interface PaymentRequestsApiGetPaymentRequestRequest
423
+ */
424
+ export interface PaymentRequestsApiGetPaymentRequestRequest {
425
+ /**
426
+ * Unique identifier for the object.
427
+ * @type {string}
428
+ * @memberof PaymentRequestsApiGetPaymentRequest
429
+ */
430
+ readonly code: string
431
+
432
+ /**
433
+ *
434
+ * @type {string}
435
+ * @memberof PaymentRequestsApiGetPaymentRequest
436
+ */
437
+ readonly expand: string
438
+
439
+ /**
440
+ * Bearer Token: provided by the login endpoint under the name accessToken.
441
+ * @type {string}
442
+ * @memberof PaymentRequestsApiGetPaymentRequest
443
+ */
444
+ readonly authorization?: string
445
+ }
446
+
447
+ /**
448
+ * Request parameters for listPaymentRequests operation in PaymentRequestsApi.
449
+ * @export
450
+ * @interface PaymentRequestsApiListPaymentRequestsRequest
451
+ */
452
+ export interface PaymentRequestsApiListPaymentRequestsRequest {
453
+ /**
454
+ * Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @type {string}
456
+ * @memberof PaymentRequestsApiListPaymentRequests
457
+ */
458
+ readonly authorization?: string
459
+
460
+ /**
461
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
462
+ * @type {number}
463
+ * @memberof PaymentRequestsApiListPaymentRequests
464
+ */
465
+ readonly pageSize?: number
466
+
467
+ /**
468
+ * 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.
469
+ * @type {string}
470
+ * @memberof PaymentRequestsApiListPaymentRequests
471
+ */
472
+ readonly pageToken?: string
473
+
474
+ /**
475
+ * 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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
476
+ * @type {string}
477
+ * @memberof PaymentRequestsApiListPaymentRequests
478
+ */
479
+ readonly filter?: string
480
+
481
+ /**
482
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
483
+ * @type {string}
484
+ * @memberof PaymentRequestsApiListPaymentRequests
485
+ */
486
+ readonly search?: string
487
+
488
+ /**
489
+ * 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: createdAt&lt;/i&gt;
490
+ * @type {string}
491
+ * @memberof PaymentRequestsApiListPaymentRequests
492
+ */
493
+ readonly order?: string
494
+
495
+ /**
496
+ * 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;
497
+ * @type {string}
498
+ * @memberof PaymentRequestsApiListPaymentRequests
499
+ */
500
+ readonly expand?: string
501
+
502
+ /**
503
+ * 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, type, status, direction, paymentMethodPsp, paymentMethodType, createdAt&lt;/i&gt;
504
+ * @type {string}
505
+ * @memberof PaymentRequestsApiListPaymentRequests
506
+ */
507
+ readonly filters?: string
508
+ }
509
+
510
+ /**
511
+ * Request parameters for updatePaymentRequest operation in PaymentRequestsApi.
512
+ * @export
513
+ * @interface PaymentRequestsApiUpdatePaymentRequestRequest
514
+ */
515
+ export interface PaymentRequestsApiUpdatePaymentRequestRequest {
516
+ /**
517
+ * Unique identifier for the object.
518
+ * @type {string}
519
+ * @memberof PaymentRequestsApiUpdatePaymentRequest
520
+ */
521
+ readonly code: string
522
+
523
+ /**
524
+ *
525
+ * @type {UpdatePaymentRequestRequestDto}
526
+ * @memberof PaymentRequestsApiUpdatePaymentRequest
527
+ */
528
+ readonly updatePaymentRequestRequestDto: UpdatePaymentRequestRequestDto
529
+
530
+ /**
531
+ * Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @type {string}
533
+ * @memberof PaymentRequestsApiUpdatePaymentRequest
534
+ */
535
+ readonly authorization?: string
536
+ }
537
+
538
+ /**
539
+ * PaymentRequestsApi - object-oriented interface
540
+ * @export
541
+ * @class PaymentRequestsApi
542
+ * @extends {BaseAPI}
543
+ */
544
+ export class PaymentRequestsApi extends BaseAPI {
545
+ /**
546
+ * This will create payment request. **Required Permissions** \"payment-management.payments.create\"
547
+ * @summary Create the payment request
548
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ * @memberof PaymentRequestsApi
552
+ */
553
+ public createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: AxiosRequestConfig) {
554
+ return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
555
+ }
556
+
557
+ /**
558
+ * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
559
+ * @summary Retrieve the payment request
560
+ * @param {PaymentRequestsApiGetPaymentRequestRequest} requestParameters Request parameters.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ * @memberof PaymentRequestsApi
564
+ */
565
+ public getPaymentRequest(requestParameters: PaymentRequestsApiGetPaymentRequestRequest, options?: AxiosRequestConfig) {
566
+ return PaymentRequestsApiFp(this.configuration).getPaymentRequest(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
567
+ }
568
+
569
+ /**
570
+ * Retrieves a list of paymentrequests. **Required Permissions** \"payment-management.payments.view\"
571
+ * @summary List payment requests
572
+ * @param {PaymentRequestsApiListPaymentRequestsRequest} requestParameters Request parameters.
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ * @memberof PaymentRequestsApi
576
+ */
577
+ public listPaymentRequests(requestParameters: PaymentRequestsApiListPaymentRequestsRequest = {}, options?: AxiosRequestConfig) {
578
+ return PaymentRequestsApiFp(this.configuration).listPaymentRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
579
+ }
580
+
581
+ /**
582
+ * This will update payment request. **Required Permissions** \"payment-management.payments.update\"
583
+ * @summary Update the payment request
584
+ * @param {PaymentRequestsApiUpdatePaymentRequestRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof PaymentRequestsApi
588
+ */
589
+ public updatePaymentRequest(requestParameters: PaymentRequestsApiUpdatePaymentRequestRequest, options?: AxiosRequestConfig) {
590
+ return PaymentRequestsApiFp(this.configuration).updatePaymentRequest(requestParameters.code, requestParameters.updatePaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
591
+ }
592
+ }