@emilgroup/payment-sdk 1.4.1-beta.38 → 1.4.1-beta.39

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 (196) hide show
  1. package/.openapi-generator/FILES +0 -51
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +24 -74
  4. package/api/bank-transaction-api.ts +26 -64
  5. package/api/payment-methods-api.ts +30 -80
  6. package/api/payment-reminders-api.ts +20 -70
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +18 -66
  9. package/api/refunds-api.ts +22 -56
  10. package/api/tenant-bank-account-api.ts +18 -46
  11. package/dist/api/bank-accounts-api.d.ts +25 -56
  12. package/dist/api/bank-accounts-api.js +11 -29
  13. package/dist/api/bank-transaction-api.d.ts +24 -47
  14. package/dist/api/bank-transaction-api.js +12 -24
  15. package/dist/api/payment-methods-api.d.ts +22 -53
  16. package/dist/api/payment-methods-api.js +23 -41
  17. package/dist/api/payment-reminders-api.d.ts +19 -50
  18. package/dist/api/payment-reminders-api.js +11 -29
  19. package/dist/api/payment-setup-api.d.ts +18 -22
  20. package/dist/api/payment-setup-api.js +24 -24
  21. package/dist/api/payments-api.d.ts +16 -46
  22. package/dist/api/payments-api.js +11 -29
  23. package/dist/api/refunds-api.d.ts +18 -39
  24. package/dist/api/refunds-api.js +12 -24
  25. package/dist/api/tenant-bank-account-api.d.ts +11 -29
  26. package/dist/api/tenant-bank-account-api.js +12 -24
  27. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
  28. package/dist/models/create-bank-account-request-dto.d.ts +2 -2
  29. package/dist/models/create-payment-request-dto.d.ts +3 -3
  30. package/dist/models/index.d.ts +0 -51
  31. package/dist/models/index.js +0 -51
  32. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
  33. package/dist/models/tenant-bank-account-class.d.ts +12 -0
  34. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  35. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  36. package/models/bank-transaction-class-without-expand-properties.ts +12 -0
  37. package/models/create-bank-account-request-dto.ts +2 -2
  38. package/models/create-payment-request-dto.ts +3 -3
  39. package/models/index.ts +0 -51
  40. package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
  41. package/models/tenant-bank-account-class.ts +12 -0
  42. package/models/validate-pspconfig-request-dto.ts +1 -11
  43. package/package.json +1 -1
  44. package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
  45. package/dist/models/bank-account-class-without-expand-properties.js +0 -15
  46. package/dist/models/bank-account-class.d.ts +0 -79
  47. package/dist/models/bank-account-class.js +0 -15
  48. package/dist/models/bank-transaction-class.d.ts +0 -128
  49. package/dist/models/bank-transaction-class.js +0 -15
  50. package/dist/models/billing-profile-dto.d.ts +0 -38
  51. package/dist/models/billing-profile-dto.js +0 -15
  52. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  53. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  54. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  55. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  56. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  57. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  58. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  59. package/dist/models/complete-payment-setup-response-class.js +0 -15
  60. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  61. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  62. package/dist/models/create-bank-account-response-class.d.ts +0 -25
  63. package/dist/models/create-bank-account-response-class.js +0 -15
  64. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  65. package/dist/models/create-payment-method-response-class.js +0 -15
  66. package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
  67. package/dist/models/create-payment-reminder-response-class.js +0 -15
  68. package/dist/models/create-payment-response-class.d.ts +0 -25
  69. package/dist/models/create-payment-response-class.js +0 -15
  70. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  71. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  72. package/dist/models/create-refund-response-class.d.ts +0 -25
  73. package/dist/models/create-refund-response-class.js +0 -15
  74. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  75. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  76. package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
  77. package/dist/models/deactivated-payment-reminder-class.js +0 -15
  78. package/dist/models/get-bank-account-response-class.d.ts +0 -25
  79. package/dist/models/get-bank-account-response-class.js +0 -15
  80. package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
  81. package/dist/models/get-bank-transactions-response-class.js +0 -15
  82. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  83. package/dist/models/get-payment-method-response-class.js +0 -15
  84. package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
  85. package/dist/models/get-payment-reminder-response-class.js +0 -15
  86. package/dist/models/get-payment-response-class.d.ts +0 -25
  87. package/dist/models/get-payment-response-class.js +0 -15
  88. package/dist/models/get-refund-response-class.d.ts +0 -25
  89. package/dist/models/get-refund-response-class.js +0 -15
  90. package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
  91. package/dist/models/import-bank-transactions-response-class.js +0 -15
  92. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  93. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  94. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  95. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  96. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
  97. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  98. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  99. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  100. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  101. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  102. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  103. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  104. package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
  105. package/dist/models/link-bank-transactions-response-class.js +0 -15
  106. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  107. package/dist/models/list-bank-accounts-response-class.js +0 -15
  108. package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
  109. package/dist/models/list-bank-transactions-response-class.js +0 -15
  110. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  111. package/dist/models/list-payment-methods-response-class.js +0 -15
  112. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  113. package/dist/models/list-payment-reminders-response-class.js +0 -15
  114. package/dist/models/list-payments-response-class.d.ts +0 -31
  115. package/dist/models/list-payments-response-class.js +0 -15
  116. package/dist/models/list-refunds-response-class.d.ts +0 -31
  117. package/dist/models/list-refunds-response-class.js +0 -15
  118. package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
  119. package/dist/models/payment-class-without-expand-properties.js +0 -15
  120. package/dist/models/payment-class.d.ts +0 -109
  121. package/dist/models/payment-class.js +0 -15
  122. package/dist/models/payment-method-class.d.ts +0 -66
  123. package/dist/models/payment-method-class.js +0 -15
  124. package/dist/models/payment-reminder-class.d.ts +0 -90
  125. package/dist/models/payment-reminder-class.js +0 -15
  126. package/dist/models/primary-bank-account-response-class.d.ts +0 -42
  127. package/dist/models/primary-bank-account-response-class.js +0 -15
  128. package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
  129. package/dist/models/refund-class-without-expand-properties.js +0 -29
  130. package/dist/models/refund-class.d.ts +0 -106
  131. package/dist/models/refund-class.js +0 -29
  132. package/dist/models/refund-item-class.d.ts +0 -102
  133. package/dist/models/refund-item-class.js +0 -15
  134. package/dist/models/sepa-direct-dto.d.ts +0 -24
  135. package/dist/models/sepa-direct-dto.js +0 -15
  136. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  137. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  138. package/dist/models/transaction-class.d.ts +0 -54
  139. package/dist/models/transaction-class.js +0 -15
  140. package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
  141. package/dist/models/unlink-bank-transactions-response-class.js +0 -15
  142. package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
  143. package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
  144. package/dist/models/update-bank-account-response-class.d.ts +0 -25
  145. package/dist/models/update-bank-account-response-class.js +0 -15
  146. package/models/bank-account-class-without-expand-properties.ts +0 -78
  147. package/models/bank-account-class.ts +0 -85
  148. package/models/bank-transaction-class.ts +0 -134
  149. package/models/billing-profile-dto.ts +0 -44
  150. package/models/billing-profile-limited-response-dto.ts +0 -60
  151. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  152. package/models/complete-payment-setup-request-dto.ts +0 -38
  153. package/models/complete-payment-setup-response-class.ts +0 -31
  154. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  155. package/models/create-bank-account-response-class.ts +0 -31
  156. package/models/create-payment-method-response-class.ts +0 -31
  157. package/models/create-payment-reminder-response-class.ts +0 -31
  158. package/models/create-payment-response-class.ts +0 -31
  159. package/models/create-psp-payment-method-request-dto.ts +0 -70
  160. package/models/create-refund-response-class.ts +0 -31
  161. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  162. package/models/deactivated-payment-reminder-class.ts +0 -96
  163. package/models/get-bank-account-response-class.ts +0 -31
  164. package/models/get-bank-transactions-response-class.ts +0 -31
  165. package/models/get-payment-method-response-class.ts +0 -31
  166. package/models/get-payment-reminder-response-class.ts +0 -31
  167. package/models/get-payment-response-class.ts +0 -31
  168. package/models/get-refund-response-class.ts +0 -31
  169. package/models/import-bank-transactions-response-class.ts +0 -31
  170. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  171. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  172. package/models/initiate-payment-setup-request-dto.ts +0 -56
  173. package/models/initiate-payment-setup-response-class.ts +0 -38
  174. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  175. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  176. package/models/link-bank-transactions-response-class.ts +0 -31
  177. package/models/list-bank-accounts-response-class.ts +0 -37
  178. package/models/list-bank-transactions-response-class.ts +0 -37
  179. package/models/list-payment-methods-response-class.ts +0 -37
  180. package/models/list-payment-reminders-response-class.ts +0 -37
  181. package/models/list-payments-response-class.ts +0 -37
  182. package/models/list-refunds-response-class.ts +0 -37
  183. package/models/payment-class-without-expand-properties.ts +0 -108
  184. package/models/payment-class.ts +0 -115
  185. package/models/payment-method-class.ts +0 -72
  186. package/models/payment-reminder-class.ts +0 -96
  187. package/models/primary-bank-account-response-class.ts +0 -48
  188. package/models/refund-class-without-expand-properties.ts +0 -109
  189. package/models/refund-class.ts +0 -116
  190. package/models/refund-item-class.ts +0 -108
  191. package/models/sepa-direct-dto.ts +0 -30
  192. package/models/symphony-profile-limited-response-dto.ts +0 -48
  193. package/models/transaction-class.ts +0 -60
  194. package/models/unlink-bank-transactions-response-class.ts +0 -31
  195. package/models/unlinked-bank-transaction-response-class.ts +0 -102
  196. package/models/update-bank-account-response-class.ts +0 -31
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CompletePaymentSetupRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CompletePaymentSetupResponseClass } from '../models';
27
- // @ts-ignore
28
- import { InitiatePaymentSetupRequestDto } from '../models';
29
- // @ts-ignore
30
- import { InitiatePaymentSetupResponseClass } from '../models';
31
23
  /**
32
24
  * PaymentSetupApi - axios parameter creator
33
25
  * @export
@@ -37,14 +29,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
37
29
  /**
38
30
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
39
31
  * @summary Complete a payment setup
40
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
32
+ * @param {object} body
41
33
  * @param {string} [authorization] Bearer Token
42
34
  * @param {*} [options] Override http request option.
43
35
  * @throws {RequiredError}
44
36
  */
45
- completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
47
- assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
37
+ completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('completePaymentSetup', 'body', body)
48
40
  const localVarPath = `/paymentservice/v1/payment-setup/complete`;
49
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,7 +66,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
74
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
78
70
 
79
71
  return {
80
72
  url: toPathString(localVarUrlObj),
@@ -84,14 +76,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
84
76
  /**
85
77
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
86
78
  * @summary Initiate a payment setup
87
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
79
+ * @param {object} body
88
80
  * @param {string} [authorization] Bearer Token
89
81
  * @param {*} [options] Override http request option.
90
82
  * @throws {RequiredError}
91
83
  */
92
- initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
- // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
94
- assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
84
+ initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
85
+ // verify required parameter 'body' is not null or undefined
86
+ assertParamExists('initiatePaymentSetup', 'body', body)
95
87
  const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
96
88
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
89
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -121,7 +113,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
121
113
  setSearchParams(localVarUrlObj, localVarQueryParameter);
122
114
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
115
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
124
- localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
116
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
125
117
 
126
118
  return {
127
119
  url: toPathString(localVarUrlObj),
@@ -141,25 +133,25 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
141
133
  /**
142
134
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
143
135
  * @summary Complete a payment setup
144
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
136
+ * @param {object} body
145
137
  * @param {string} [authorization] Bearer Token
146
138
  * @param {*} [options] Override http request option.
147
139
  * @throws {RequiredError}
148
140
  */
149
- async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
150
- const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
141
+ async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
151
143
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
144
  },
153
145
  /**
154
146
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
155
147
  * @summary Initiate a payment setup
156
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
148
+ * @param {object} body
157
149
  * @param {string} [authorization] Bearer Token
158
150
  * @param {*} [options] Override http request option.
159
151
  * @throws {RequiredError}
160
152
  */
161
- async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
162
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
153
+ async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
154
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
163
155
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
156
  },
165
157
  }
@@ -175,24 +167,24 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
175
167
  /**
176
168
  * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
177
169
  * @summary Complete a payment setup
178
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
170
+ * @param {object} body
179
171
  * @param {string} [authorization] Bearer Token
180
172
  * @param {*} [options] Override http request option.
181
173
  * @throws {RequiredError}
182
174
  */
183
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
184
- return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
175
+ completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
176
+ return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
185
177
  },
186
178
  /**
187
179
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
188
180
  * @summary Initiate a payment setup
189
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
181
+ * @param {object} body
190
182
  * @param {string} [authorization] Bearer Token
191
183
  * @param {*} [options] Override http request option.
192
184
  * @throws {RequiredError}
193
185
  */
194
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
195
- return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
186
+ initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
187
+ return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
196
188
  },
197
189
  };
198
190
  };
@@ -205,10 +197,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
205
197
  export interface PaymentSetupApiCompletePaymentSetupRequest {
206
198
  /**
207
199
  *
208
- * @type {CompletePaymentSetupRequestDto}
200
+ * @type {object}
209
201
  * @memberof PaymentSetupApiCompletePaymentSetup
210
202
  */
211
- readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
203
+ readonly body: object
212
204
 
213
205
  /**
214
206
  * Bearer Token
@@ -226,10 +218,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
226
218
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
227
219
  /**
228
220
  *
229
- * @type {InitiatePaymentSetupRequestDto}
221
+ * @type {object}
230
222
  * @memberof PaymentSetupApiInitiatePaymentSetup
231
223
  */
232
- readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
224
+ readonly body: object
233
225
 
234
226
  /**
235
227
  * Bearer Token
@@ -255,7 +247,7 @@ export class PaymentSetupApi extends BaseAPI {
255
247
  * @memberof PaymentSetupApi
256
248
  */
257
249
  public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
258
- return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
250
+ return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
259
251
  }
260
252
 
261
253
  /**
@@ -267,6 +259,6 @@ export class PaymentSetupApi extends BaseAPI {
267
259
  * @memberof PaymentSetupApi
268
260
  */
269
261
  public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
270
- return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
262
+ return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
271
263
  }
272
264
  }
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreatePaymentRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreatePaymentResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetPaymentResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentsResponseClass } from '../models';
31
25
  /**
32
26
  * PaymentsApi - axios parameter creator
33
27
  * @export
@@ -142,17 +136,14 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
142
136
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
143
137
  * @summary List payments
144
138
  * @param {string} [authorization] Bearer Token
145
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
146
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
147
139
  * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
148
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
140
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
149
141
  * @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, code, amount&lt;/i&gt;
150
142
  * @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: transactions&lt;i&gt;
151
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
152
143
  * @param {*} [options] Override http request option.
153
144
  * @throws {RequiredError}
154
145
  */
155
- listPayments: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ listPayments: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
156
147
  const localVarPath = `/paymentservice/v1/payments`;
157
148
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
149
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -171,20 +162,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
171
162
  // http bearer authentication required
172
163
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
164
 
174
- if (pageSize !== undefined) {
175
- localVarQueryParameter['pageSize'] = pageSize;
176
- }
177
-
178
- if (pageToken !== undefined) {
179
- localVarQueryParameter['pageToken'] = pageToken;
180
- }
181
-
182
165
  if (filter !== undefined) {
183
166
  localVarQueryParameter['filter'] = filter;
184
167
  }
185
168
 
186
- if (search !== undefined) {
187
- localVarQueryParameter['search'] = search;
169
+ if (filters !== undefined) {
170
+ localVarQueryParameter['filters'] = filters;
188
171
  }
189
172
 
190
173
  if (order !== undefined) {
@@ -195,10 +178,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
195
178
  localVarQueryParameter['expand'] = expand;
196
179
  }
197
180
 
198
- if (filters !== undefined) {
199
- localVarQueryParameter['filters'] = filters;
200
- }
201
-
202
181
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
203
182
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
204
183
  }
@@ -233,7 +212,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
233
212
  * @param {*} [options] Override http request option.
234
213
  * @throws {RequiredError}
235
214
  */
236
- async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
215
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
237
216
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
238
217
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
239
218
  },
@@ -246,7 +225,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
246
225
  * @param {*} [options] Override http request option.
247
226
  * @throws {RequiredError}
248
227
  */
249
- async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
228
+ async getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
250
229
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, authorization, expand, options);
251
230
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
252
231
  },
@@ -254,18 +233,15 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
254
233
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
255
234
  * @summary List payments
256
235
  * @param {string} [authorization] Bearer Token
257
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
258
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
259
236
  * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
260
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
237
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
261
238
  * @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, code, amount&lt;/i&gt;
262
239
  * @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: transactions&lt;i&gt;
263
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
264
240
  * @param {*} [options] Override http request option.
265
241
  * @throws {RequiredError}
266
242
  */
267
- async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
268
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
243
+ async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
269
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
270
246
  },
271
247
  }
@@ -287,7 +263,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
287
263
  * @param {*} [options] Override http request option.
288
264
  * @throws {RequiredError}
289
265
  */
290
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
266
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
291
267
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
292
268
  },
293
269
  /**
@@ -299,25 +275,22 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
299
275
  * @param {*} [options] Override http request option.
300
276
  * @throws {RequiredError}
301
277
  */
302
- getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
278
+ getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
303
279
  return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
304
280
  },
305
281
  /**
306
282
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
307
283
  * @summary List payments
308
284
  * @param {string} [authorization] Bearer Token
309
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
310
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
311
285
  * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
312
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
286
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
313
287
  * @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, code, amount&lt;/i&gt;
314
288
  * @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: transactions&lt;i&gt;
315
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
316
289
  * @param {*} [options] Override http request option.
317
290
  * @throws {RequiredError}
318
291
  */
319
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
320
- return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
292
+ listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
293
+ return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
321
294
  },
322
295
  };
323
296
  };
@@ -391,20 +364,6 @@ export interface PaymentsApiListPaymentsRequest {
391
364
  */
392
365
  readonly authorization?: string
393
366
 
394
- /**
395
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
- * @type {any}
397
- * @memberof PaymentsApiListPayments
398
- */
399
- readonly pageSize?: any
400
-
401
- /**
402
- * 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.
403
- * @type {any}
404
- * @memberof PaymentsApiListPayments
405
- */
406
- readonly pageToken?: any
407
-
408
367
  /**
409
368
  * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
410
369
  * @type {string}
@@ -413,11 +372,11 @@ export interface PaymentsApiListPaymentsRequest {
413
372
  readonly filter?: string
414
373
 
415
374
  /**
416
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
417
- * @type {any}
375
+ * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
376
+ * @type {string}
418
377
  * @memberof PaymentsApiListPayments
419
378
  */
420
- readonly search?: any
379
+ readonly filters?: string
421
380
 
422
381
  /**
423
382
  * 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, code, amount&lt;/i&gt;
@@ -432,13 +391,6 @@ export interface PaymentsApiListPaymentsRequest {
432
391
  * @memberof PaymentsApiListPayments
433
392
  */
434
393
  readonly expand?: string
435
-
436
- /**
437
- * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber&lt;/i&gt;
438
- * @type {string}
439
- * @memberof PaymentsApiListPayments
440
- */
441
- readonly filters?: string
442
394
  }
443
395
 
444
396
  /**
@@ -481,6 +433,6 @@ export class PaymentsApi extends BaseAPI {
481
433
  * @memberof PaymentsApi
482
434
  */
483
435
  public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
484
- return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
436
+ return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
485
437
  }
486
438
  }
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateRefundRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateRefundResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetRefundResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListRefundsResponseClass } from '../models';
31
25
  /**
32
26
  * RefundsApi - axios parameter creator
33
27
  * @export
@@ -135,17 +129,15 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
135
129
  * 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.
136
130
  * @summary List refunds
137
131
  * @param {string} [authorization] Bearer Token
138
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
139
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
140
132
  * @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;
133
+ * @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;
141
134
  * @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;
142
135
  * @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;
143
136
  * @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;
144
- * @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;
145
137
  * @param {*} [options] Override http request option.
146
138
  * @throws {RequiredError}
147
139
  */
148
- listRefunds: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
140
+ listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
149
141
  const localVarPath = `/paymentservice/v1/refunds`;
150
142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -164,18 +156,14 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
164
156
  // http bearer authentication required
165
157
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
166
158
 
167
- if (pageSize !== undefined) {
168
- localVarQueryParameter['pageSize'] = pageSize;
169
- }
170
-
171
- if (pageToken !== undefined) {
172
- localVarQueryParameter['pageToken'] = pageToken;
173
- }
174
-
175
159
  if (filter !== undefined) {
176
160
  localVarQueryParameter['filter'] = filter;
177
161
  }
178
162
 
163
+ if (filters !== undefined) {
164
+ localVarQueryParameter['filters'] = filters;
165
+ }
166
+
179
167
  if (search !== undefined) {
180
168
  localVarQueryParameter['search'] = search;
181
169
  }
@@ -188,10 +176,6 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
188
176
  localVarQueryParameter['expand'] = expand;
189
177
  }
190
178
 
191
- if (filters !== undefined) {
192
- localVarQueryParameter['filters'] = filters;
193
- }
194
-
195
179
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
196
180
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
181
  }
@@ -225,7 +209,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
225
209
  * @param {*} [options] Override http request option.
226
210
  * @throws {RequiredError}
227
211
  */
228
- async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRefundResponseClass>> {
212
+ async createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
229
213
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options);
230
214
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
231
215
  },
@@ -238,7 +222,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
238
222
  * @param {*} [options] Override http request option.
239
223
  * @throws {RequiredError}
240
224
  */
241
- async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
225
+ async getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
242
226
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, authorization, expand, options);
243
227
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
244
228
  },
@@ -246,18 +230,16 @@ export const RefundsApiFp = function(configuration?: Configuration) {
246
230
  * 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.
247
231
  * @summary List refunds
248
232
  * @param {string} [authorization] Bearer Token
249
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
250
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
251
233
  * @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;
234
+ * @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;
252
235
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
253
236
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, amount&lt;/i&gt;
254
237
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: refundItems&lt;i&gt;
255
- * @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;
256
238
  * @param {*} [options] Override http request option.
257
239
  * @throws {RequiredError}
258
240
  */
259
- async listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
260
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
241
+ async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
261
243
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
262
244
  },
263
245
  }
@@ -278,7 +260,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
278
260
  * @param {*} [options] Override http request option.
279
261
  * @throws {RequiredError}
280
262
  */
281
- createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<CreateRefundResponseClass> {
263
+ createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
282
264
  return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
283
265
  },
284
266
  /**
@@ -290,25 +272,23 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
290
272
  * @param {*} [options] Override http request option.
291
273
  * @throws {RequiredError}
292
274
  */
293
- getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
275
+ getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
294
276
  return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
295
277
  },
296
278
  /**
297
279
  * 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.
298
280
  * @summary List refunds
299
281
  * @param {string} [authorization] Bearer Token
300
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
301
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
302
282
  * @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;
283
+ * @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;
303
284
  * @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;
304
285
  * @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;
305
286
  * @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;
306
- * @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;
307
287
  * @param {*} [options] Override http request option.
308
288
  * @throws {RequiredError}
309
289
  */
310
- listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
311
- return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
290
+ listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
291
+ return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
312
292
  },
313
293
  };
314
294
  };
@@ -376,25 +356,18 @@ export interface RefundsApiListRefundsRequest {
376
356
  readonly authorization?: string
377
357
 
378
358
  /**
379
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
380
- * @type {any}
381
- * @memberof RefundsApiListRefunds
382
- */
383
- readonly pageSize?: any
384
-
385
- /**
386
- * 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.
387
- * @type {any}
359
+ * 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;
360
+ * @type {string}
388
361
  * @memberof RefundsApiListRefunds
389
362
  */
390
- readonly pageToken?: any
363
+ readonly filter?: string
391
364
 
392
365
  /**
393
- * 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;
366
+ * 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;
394
367
  * @type {string}
395
368
  * @memberof RefundsApiListRefunds
396
369
  */
397
- readonly filter?: string
370
+ readonly filters?: string
398
371
 
399
372
  /**
400
373
  * 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;
@@ -416,13 +389,6 @@ export interface RefundsApiListRefundsRequest {
416
389
  * @memberof RefundsApiListRefunds
417
390
  */
418
391
  readonly expand?: string
419
-
420
- /**
421
- * 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;
422
- * @type {string}
423
- * @memberof RefundsApiListRefunds
424
- */
425
- readonly filters?: string
426
392
  }
427
393
 
428
394
  /**
@@ -465,6 +431,6 @@ export class RefundsApi extends BaseAPI {
465
431
  * @memberof RefundsApi
466
432
  */
467
433
  public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
468
- 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));
434
+ 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));
469
435
  }
470
436
  }