@emilgroup/payment-sdk-node 1.21.1-beta.13 → 1.21.1-beta.130

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 (174) hide show
  1. package/.openapi-generator/FILES +24 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +130 -57
  5. package/api/bank-transaction-api.ts +59 -48
  6. package/api/exceeding-credits-api.ts +353 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +180 -17
  10. package/api/policy-payment-methods-api.ts +475 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +4 -0
  14. package/base.ts +3 -4
  15. package/common.ts +2 -2
  16. package/configuration.ts +0 -9
  17. package/dist/api/bank-accounts-api.d.ts +35 -8
  18. package/dist/api/bank-accounts-api.js +29 -11
  19. package/dist/api/bank-orders-api.d.ts +92 -46
  20. package/dist/api/bank-orders-api.js +83 -52
  21. package/dist/api/bank-transaction-api.d.ts +39 -31
  22. package/dist/api/bank-transaction-api.js +36 -31
  23. package/dist/api/exceeding-credits-api.d.ts +206 -0
  24. package/dist/api/exceeding-credits-api.js +356 -0
  25. package/dist/api/payment-methods-api.d.ts +39 -12
  26. package/dist/api/payment-methods-api.js +32 -14
  27. package/dist/api/payment-reminders-api.d.ts +35 -8
  28. package/dist/api/payment-reminders-api.js +29 -11
  29. package/dist/api/payments-api.d.ts +104 -12
  30. package/dist/api/payments-api.js +133 -14
  31. package/dist/api/policy-payment-methods-api.d.ts +272 -0
  32. package/dist/api/policy-payment-methods-api.js +456 -0
  33. package/dist/api/refunds-api.d.ts +28 -10
  34. package/dist/api/refunds-api.js +24 -12
  35. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  36. package/dist/api/tenant-bank-account-api.js +24 -12
  37. package/dist/api.d.ts +2 -0
  38. package/dist/api.js +2 -0
  39. package/dist/base.d.ts +1 -2
  40. package/dist/base.js +1 -2
  41. package/dist/common.js +2 -2
  42. package/dist/configuration.d.ts +0 -6
  43. package/dist/configuration.js +0 -8
  44. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  45. package/dist/models/bank-order-class.d.ts +23 -3
  46. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  47. package/dist/models/bank-order-xml-file-class.js +15 -0
  48. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  49. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  50. package/dist/models/bank-transaction-class.d.ts +22 -22
  51. package/dist/models/bank-transaction-class.js +5 -0
  52. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  53. package/dist/models/bank-transaction-invoice-class.js +15 -0
  54. package/dist/models/bank-transfer-dto.d.ts +25 -0
  55. package/dist/models/bank-transfer-dto.js +15 -0
  56. package/dist/models/billing-address-dto.d.ts +60 -0
  57. package/dist/models/billing-address-dto.js +15 -0
  58. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  59. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  60. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  61. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  62. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  63. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  64. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  65. package/dist/models/create-bank-order-request-dto.d.ts +9 -9
  66. package/dist/models/create-payment-order-dto.d.ts +48 -0
  67. package/dist/models/create-payment-order-dto.js +15 -0
  68. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  69. package/dist/models/create-payment-order-request-dto.js +15 -0
  70. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  71. package/dist/models/create-payment-request-dto.d.ts +7 -1
  72. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  73. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  74. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  75. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  76. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  77. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  78. package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
  79. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  80. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  81. package/dist/models/eis-sepa-debit-dto.js +15 -0
  82. package/dist/models/exceeding-credit-class.d.ts +116 -0
  83. package/dist/models/exceeding-credit-class.js +29 -0
  84. package/dist/models/financial-account-class.d.ts +111 -0
  85. package/dist/models/financial-account-class.js +24 -0
  86. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  87. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  88. package/dist/models/index.d.ts +22 -1
  89. package/dist/models/index.js +22 -1
  90. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  91. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  92. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  93. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  94. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  95. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  96. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  97. package/dist/models/invoice-allocation-dto.js +15 -0
  98. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  99. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  100. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  101. package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
  102. package/dist/models/list-policy-payment-methods-response-class.js +15 -0
  103. package/dist/models/mandate-dto.d.ts +43 -0
  104. package/dist/models/mandate-dto.js +15 -0
  105. package/dist/models/mandate-hash-data-dto.d.ts +42 -0
  106. package/dist/models/mandate-hash-data-dto.js +15 -0
  107. package/dist/models/mandate-reference-class.d.ts +90 -0
  108. package/dist/models/mandate-reference-class.js +15 -0
  109. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  110. package/dist/models/payment-class.d.ts +7 -1
  111. package/dist/models/payment-method-class.d.ts +6 -0
  112. package/dist/models/payment-reminder-class.d.ts +7 -1
  113. package/dist/models/policy-payment-method-class.d.ts +86 -0
  114. package/dist/models/policy-payment-method-class.js +15 -0
  115. package/dist/models/refund-class.d.ts +7 -1
  116. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
  117. package/dist/models/tenant-bank-account-class.d.ts +30 -0
  118. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  119. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  120. package/dist/models/update-bank-order-request-dto.d.ts +12 -12
  121. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
  122. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  123. package/models/bank-order-class.ts +23 -3
  124. package/models/bank-order-xml-file-class.ts +78 -0
  125. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  126. package/models/bank-transaction-class.ts +25 -22
  127. package/models/bank-transaction-invoice-class.ts +66 -0
  128. package/models/bank-transfer-dto.ts +31 -0
  129. package/models/billing-address-dto.ts +66 -0
  130. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  131. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  132. package/models/complete-payment-setup-request-dto.ts +7 -0
  133. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  134. package/models/create-bank-order-request-dto.ts +9 -9
  135. package/models/create-payment-order-dto.ts +54 -0
  136. package/models/create-payment-order-request-dto.ts +54 -0
  137. package/models/create-payment-reminder-request-dto.ts +7 -1
  138. package/models/create-payment-request-dto.ts +7 -1
  139. package/models/create-policy-payment-method-request-dto.ts +36 -0
  140. package/models/create-policy-payment-method-response-class.ts +31 -0
  141. package/models/create-psp-payment-method-request-dto.ts +30 -2
  142. package/models/create-tenant-bank-account-request-dto.ts +30 -0
  143. package/models/deactivated-payment-reminder-class.ts +7 -1
  144. package/models/eis-sepa-debit-dto.ts +61 -0
  145. package/models/exceeding-credit-class.ts +125 -0
  146. package/models/financial-account-class.ts +120 -0
  147. package/models/get-exceeding-credit-response-class.ts +31 -0
  148. package/models/index.ts +22 -1
  149. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  150. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  151. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  152. package/models/initiate-payment-setup-request-dto.ts +3 -2
  153. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  154. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  155. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  156. package/models/list-exceeding-credits-response-class.ts +37 -0
  157. package/models/list-policy-payment-methods-response-class.ts +37 -0
  158. package/models/mandate-dto.ts +49 -0
  159. package/models/mandate-hash-data-dto.ts +48 -0
  160. package/models/mandate-reference-class.ts +96 -0
  161. package/models/payment-class-without-expand-properties.ts +7 -1
  162. package/models/payment-class.ts +7 -1
  163. package/models/payment-method-class.ts +6 -0
  164. package/models/payment-reminder-class.ts +7 -1
  165. package/models/policy-payment-method-class.ts +92 -0
  166. package/models/refund-class.ts +7 -1
  167. package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
  168. package/models/tenant-bank-account-class.ts +30 -0
  169. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  170. package/models/update-bank-order-request-dto.ts +12 -12
  171. package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
  172. package/package.json +1 -1
  173. package/tsconfig.json +0 -1
  174. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
@@ -0,0 +1,475 @@
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 { ActivatePolicyPaymentMethodRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePolicyPaymentMethodRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { CreatePolicyPaymentMethodResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPolicyPaymentMethodsResponseClass } from '../models';
31
+ // URLSearchParams not necessarily used
32
+ // @ts-ignore
33
+ import { URL, URLSearchParams } from 'url';
34
+ const FormData = require('form-data');
35
+ /**
36
+ * PolicyPaymentMethodsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
43
+ * @summary Activate the policy payment method
44
+ * @param {string} code
45
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ activatePolicyPaymentMethod: async (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ // verify required parameter 'code' is not null or undefined
52
+ assertParamExists('activatePolicyPaymentMethod', 'code', code)
53
+ // verify required parameter 'activatePolicyPaymentMethodRequestDto' is not null or undefined
54
+ assertParamExists('activatePolicyPaymentMethod', 'activatePolicyPaymentMethodRequestDto', activatePolicyPaymentMethodRequestDto)
55
+ const localVarPath = `/paymentservice/v1/policy-payment-methods/activate/{code}`
56
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
94
+ * @summary Create the policy payment method
95
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
96
+ * @param {string} [authorization] Bearer Token
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ createPolicyPaymentMethod: async (createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'createPolicyPaymentMethodRequestDto' is not null or undefined
102
+ assertParamExists('createPolicyPaymentMethod', 'createPolicyPaymentMethodRequestDto', createPolicyPaymentMethodRequestDto)
103
+ const localVarPath = `/paymentservice/v1/policy-payment-methods`;
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: 'POST', ...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 (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ }
124
+
125
+
126
+
127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
128
+
129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
132
+ localVarRequestOptions.data = serializeDataIfNeeded(createPolicyPaymentMethodRequestDto, localVarRequestOptions, configuration)
133
+
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
141
+ * @summary Retrieve the policy payment methods
142
+ * @param {string} [authorization] Bearer Token
143
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
144
+ * @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.
145
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
146
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
147
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
148
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
149
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ listPolicyPaymentMethods: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
154
+ const localVarPath = `/paymentservice/v1/policy-payment-methods`;
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ let baseAccessToken;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ baseAccessToken = configuration.accessToken;
162
+ }
163
+
164
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
165
+ const localVarHeaderParameter = {} as any;
166
+ const localVarQueryParameter = {} as any;
167
+
168
+ // authentication bearer required
169
+ // http bearer authentication required
170
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
171
+
172
+ if (pageSize !== undefined) {
173
+ localVarQueryParameter['pageSize'] = pageSize;
174
+ }
175
+
176
+ if (pageToken !== undefined) {
177
+ localVarQueryParameter['pageToken'] = pageToken;
178
+ }
179
+
180
+ if (filter !== undefined) {
181
+ localVarQueryParameter['filter'] = filter;
182
+ }
183
+
184
+ if (search !== undefined) {
185
+ localVarQueryParameter['search'] = search;
186
+ }
187
+
188
+ if (order !== undefined) {
189
+ localVarQueryParameter['order'] = order;
190
+ }
191
+
192
+ if (expand !== undefined) {
193
+ localVarQueryParameter['expand'] = expand;
194
+ }
195
+
196
+ if (filters !== undefined) {
197
+ localVarQueryParameter['filters'] = filters;
198
+ }
199
+
200
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
201
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
202
+ }
203
+
204
+
205
+
206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
209
+
210
+ return {
211
+ url: toPathString(localVarUrlObj),
212
+ options: localVarRequestOptions,
213
+ };
214
+ },
215
+ }
216
+ };
217
+
218
+ /**
219
+ * PolicyPaymentMethodsApi - functional programming interface
220
+ * @export
221
+ */
222
+ export const PolicyPaymentMethodsApiFp = function(configuration?: Configuration) {
223
+ const localVarAxiosParamCreator = PolicyPaymentMethodsApiAxiosParamCreator(configuration)
224
+ return {
225
+ /**
226
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
227
+ * @summary Activate the policy payment method
228
+ * @param {string} code
229
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
230
+ * @param {string} [authorization] Bearer Token
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ async activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options);
236
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
237
+ },
238
+ /**
239
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
240
+ * @summary Create the policy payment method
241
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
242
+ * @param {string} [authorization] Bearer Token
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ async createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyPaymentMethodResponseClass>> {
247
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto, authorization, options);
248
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
249
+ },
250
+ /**
251
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
252
+ * @summary Retrieve the policy payment methods
253
+ * @param {string} [authorization] Bearer Token
254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
+ * @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.
256
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
257
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
258
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
259
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
260
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ async listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyPaymentMethodsResponseClass>> {
265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
266
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
267
+ },
268
+ }
269
+ };
270
+
271
+ /**
272
+ * PolicyPaymentMethodsApi - factory interface
273
+ * @export
274
+ */
275
+ export const PolicyPaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
276
+ const localVarFp = PolicyPaymentMethodsApiFp(configuration)
277
+ return {
278
+ /**
279
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
280
+ * @summary Activate the policy payment method
281
+ * @param {string} code
282
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
283
+ * @param {string} [authorization] Bearer Token
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
288
+ return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
289
+ },
290
+ /**
291
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
292
+ * @summary Create the policy payment method
293
+ * @param {CreatePolicyPaymentMethodRequestDto} createPolicyPaymentMethodRequestDto
294
+ * @param {string} [authorization] Bearer Token
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyPaymentMethodResponseClass> {
299
+ return localVarFp.createPolicyPaymentMethod(createPolicyPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
300
+ },
301
+ /**
302
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
303
+ * @summary Retrieve the policy payment methods
304
+ * @param {string} [authorization] Bearer Token
305
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
+ * @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.
307
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
308
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
309
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
310
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
311
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyPaymentMethodsResponseClass> {
316
+ return localVarFp.listPolicyPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
317
+ },
318
+ };
319
+ };
320
+
321
+ /**
322
+ * Request parameters for activatePolicyPaymentMethod operation in PolicyPaymentMethodsApi.
323
+ * @export
324
+ * @interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest
325
+ */
326
+ export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
327
+ /**
328
+ *
329
+ * @type {string}
330
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
331
+ */
332
+ readonly code: string
333
+
334
+ /**
335
+ *
336
+ * @type {ActivatePolicyPaymentMethodRequestDto}
337
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
338
+ */
339
+ readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto
340
+
341
+ /**
342
+ * Bearer Token
343
+ * @type {string}
344
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
345
+ */
346
+ readonly authorization?: string
347
+ }
348
+
349
+ /**
350
+ * Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
351
+ * @export
352
+ * @interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest
353
+ */
354
+ export interface PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest {
355
+ /**
356
+ *
357
+ * @type {CreatePolicyPaymentMethodRequestDto}
358
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
359
+ */
360
+ readonly createPolicyPaymentMethodRequestDto: CreatePolicyPaymentMethodRequestDto
361
+
362
+ /**
363
+ * Bearer Token
364
+ * @type {string}
365
+ * @memberof PolicyPaymentMethodsApiCreatePolicyPaymentMethod
366
+ */
367
+ readonly authorization?: string
368
+ }
369
+
370
+ /**
371
+ * Request parameters for listPolicyPaymentMethods operation in PolicyPaymentMethodsApi.
372
+ * @export
373
+ * @interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest
374
+ */
375
+ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
376
+ /**
377
+ * Bearer Token
378
+ * @type {string}
379
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
380
+ */
381
+ readonly authorization?: string
382
+
383
+ /**
384
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
385
+ * @type {number}
386
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
387
+ */
388
+ readonly pageSize?: number
389
+
390
+ /**
391
+ * 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.
392
+ * @type {string}
393
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
394
+ */
395
+ readonly pageToken?: string
396
+
397
+ /**
398
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
399
+ * @type {string}
400
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
401
+ */
402
+ readonly filter?: string
403
+
404
+ /**
405
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
406
+ * @type {string}
407
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
408
+ */
409
+ readonly search?: string
410
+
411
+ /**
412
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
413
+ * @type {string}
414
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
415
+ */
416
+ readonly order?: string
417
+
418
+ /**
419
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
420
+ * @type {string}
421
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
422
+ */
423
+ readonly expand?: string
424
+
425
+ /**
426
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
427
+ * @type {string}
428
+ * @memberof PolicyPaymentMethodsApiListPolicyPaymentMethods
429
+ */
430
+ readonly filters?: string
431
+ }
432
+
433
+ /**
434
+ * PolicyPaymentMethodsApi - object-oriented interface
435
+ * @export
436
+ * @class PolicyPaymentMethodsApi
437
+ * @extends {BaseAPI}
438
+ */
439
+ export class PolicyPaymentMethodsApi extends BaseAPI {
440
+ /**
441
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
442
+ * @summary Activate the policy payment method
443
+ * @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ * @memberof PolicyPaymentMethodsApi
447
+ */
448
+ public activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
449
+ return PolicyPaymentMethodsApiFp(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
450
+ }
451
+
452
+ /**
453
+ * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
454
+ * @summary Create the policy payment method
455
+ * @param {PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest} requestParameters Request parameters.
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ * @memberof PolicyPaymentMethodsApi
459
+ */
460
+ public createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
461
+ return PolicyPaymentMethodsApiFp(this.configuration).createPolicyPaymentMethod(requestParameters.createPolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
462
+ }
463
+
464
+ /**
465
+ * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
466
+ * @summary Retrieve the policy payment methods
467
+ * @param {PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest} requestParameters Request parameters.
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ * @memberof PolicyPaymentMethodsApi
471
+ */
472
+ public listPolicyPaymentMethods(requestParameters: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
473
+ return PolicyPaymentMethodsApiFp(this.configuration).listPolicyPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
474
+ }
475
+ }
@@ -139,15 +139,17 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
139
139
  * Returns a list of refunds you have previously created. The refunds 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\"
140
140
  * @summary List refunds
141
141
  * @param {string} [authorization] Bearer Token
142
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
143
+ * @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.
142
144
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
143
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
144
145
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
145
146
  * @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, amount&lt;/i&gt;
146
147
  * @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: refundItems&lt;i&gt;
148
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
147
149
  * @param {*} [options] Override http request option.
148
150
  * @throws {RequiredError}
149
151
  */
150
- listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
152
+ listRefunds: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
153
  const localVarPath = `/paymentservice/v1/refunds`;
152
154
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
155
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -166,12 +168,16 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
166
168
  // http bearer authentication required
167
169
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
170
 
169
- if (filter !== undefined) {
170
- localVarQueryParameter['filter'] = filter;
171
+ if (pageSize !== undefined) {
172
+ localVarQueryParameter['pageSize'] = pageSize;
171
173
  }
172
174
 
173
- if (filters !== undefined) {
174
- localVarQueryParameter['filters'] = filters;
175
+ if (pageToken !== undefined) {
176
+ localVarQueryParameter['pageToken'] = pageToken;
177
+ }
178
+
179
+ if (filter !== undefined) {
180
+ localVarQueryParameter['filter'] = filter;
175
181
  }
176
182
 
177
183
  if (search !== undefined) {
@@ -186,6 +192,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
186
192
  localVarQueryParameter['expand'] = expand;
187
193
  }
188
194
 
195
+ if (filters !== undefined) {
196
+ localVarQueryParameter['filters'] = filters;
197
+ }
198
+
189
199
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
200
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
201
  }
@@ -240,16 +250,18 @@ export const RefundsApiFp = function(configuration?: Configuration) {
240
250
  * Returns a list of refunds you have previously created. The refunds 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\"
241
251
  * @summary List refunds
242
252
  * @param {string} [authorization] Bearer Token
253
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
254
+ * @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.
243
255
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
244
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
245
256
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
246
257
  * @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, amount&lt;/i&gt;
247
258
  * @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: refundItems&lt;i&gt;
259
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
248
260
  * @param {*} [options] Override http request option.
249
261
  * @throws {RequiredError}
250
262
  */
251
- async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
252
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
263
+ async listRefunds(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
253
265
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
254
266
  },
255
267
  }
@@ -289,16 +301,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
289
301
  * Returns a list of refunds you have previously created. The refunds 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\"
290
302
  * @summary List refunds
291
303
  * @param {string} [authorization] Bearer Token
304
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
305
+ * @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.
292
306
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
293
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
294
307
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
295
308
  * @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, amount&lt;/i&gt;
296
309
  * @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: refundItems&lt;i&gt;
310
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
297
311
  * @param {*} [options] Override http request option.
298
312
  * @throws {RequiredError}
299
313
  */
300
- listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
301
- return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
314
+ listRefunds(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
315
+ return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
302
316
  },
303
317
  };
304
318
  };
@@ -366,18 +380,25 @@ export interface RefundsApiListRefundsRequest {
366
380
  readonly authorization?: string
367
381
 
368
382
  /**
369
- * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
383
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
384
+ * @type {number}
385
+ * @memberof RefundsApiListRefunds
386
+ */
387
+ readonly pageSize?: number
388
+
389
+ /**
390
+ * 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.
370
391
  * @type {string}
371
392
  * @memberof RefundsApiListRefunds
372
393
  */
373
- readonly filter?: string
394
+ readonly pageToken?: string
374
395
 
375
396
  /**
376
- * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
397
+ * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
377
398
  * @type {string}
378
399
  * @memberof RefundsApiListRefunds
379
400
  */
380
- readonly filters?: string
401
+ readonly filter?: string
381
402
 
382
403
  /**
383
404
  * 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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
@@ -399,6 +420,13 @@ export interface RefundsApiListRefundsRequest {
399
420
  * @memberof RefundsApiListRefunds
400
421
  */
401
422
  readonly expand?: string
423
+
424
+ /**
425
+ * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
426
+ * @type {string}
427
+ * @memberof RefundsApiListRefunds
428
+ */
429
+ readonly filters?: string
402
430
  }
403
431
 
404
432
  /**
@@ -441,6 +469,6 @@ export class RefundsApi extends BaseAPI {
441
469
  * @memberof RefundsApi
442
470
  */
443
471
  public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
444
- return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
472
+ return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
445
473
  }
446
474
  }