@emilgroup/payment-sdk 1.3.1 → 1.4.1-beta.1

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 (201) hide show
  1. package/.openapi-generator/FILES +0 -30
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +35 -25
  4. package/api/bank-transaction-api.ts +152 -46
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +56 -46
  7. package/api/payment-reminders-api.ts +27 -17
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +44 -32
  10. package/api/refunds-api.ts +36 -20
  11. package/api/tenant-bank-account-api.ts +21 -7
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +2 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +23 -16
  18. package/dist/api/bank-accounts-api.js +25 -19
  19. package/dist/api/bank-transaction-api.d.ts +96 -34
  20. package/dist/api/bank-transaction-api.js +134 -35
  21. package/dist/api/default-api.d.ts +1 -1
  22. package/dist/api/default-api.js +1 -1
  23. package/dist/api/payment-methods-api.d.ts +38 -33
  24. package/dist/api/payment-methods-api.js +41 -31
  25. package/dist/api/payment-reminders-api.d.ts +23 -16
  26. package/dist/api/payment-reminders-api.js +13 -7
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +32 -26
  30. package/dist/api/payments-api.js +29 -19
  31. package/dist/api/refunds-api.d.ts +23 -14
  32. package/dist/api/refunds-api.js +24 -16
  33. package/dist/api/tenant-bank-account-api.d.ts +13 -4
  34. package/dist/api/tenant-bank-account-api.js +13 -7
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +1 -1
  38. package/dist/api.js +1 -1
  39. package/dist/base.d.ts +1 -1
  40. package/dist/base.js +2 -1
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-transaction-response-class.d.ts +1 -1
  48. package/dist/models/bank-transaction-response-class.js +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +4 -4
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/create-refund-request-dto.d.ts +1 -1
  54. package/dist/models/create-refund-request-dto.js +1 -1
  55. package/dist/models/create-refund-response-class.d.ts +1 -1
  56. package/dist/models/create-refund-response-class.js +1 -1
  57. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  58. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  59. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  60. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  61. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  62. package/dist/models/get-bank-transactions-response-class.js +1 -1
  63. package/dist/models/get-refund-response-class.d.ts +1 -1
  64. package/dist/models/get-refund-response-class.js +1 -1
  65. package/dist/models/get-request-dto.d.ts +2 -2
  66. package/dist/models/get-request-dto.js +1 -1
  67. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  68. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  69. package/dist/models/index.d.ts +0 -30
  70. package/dist/models/index.js +0 -30
  71. package/dist/models/inline-response200.d.ts +1 -1
  72. package/dist/models/inline-response200.js +1 -1
  73. package/dist/models/inline-response503.d.ts +1 -1
  74. package/dist/models/inline-response503.js +1 -1
  75. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  76. package/dist/models/list-bank-transactions-response-class.js +1 -1
  77. package/dist/models/list-refunds-response-class.d.ts +1 -1
  78. package/dist/models/list-refunds-response-class.js +1 -1
  79. package/dist/models/refund-class.d.ts +1 -1
  80. package/dist/models/refund-class.js +1 -1
  81. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  82. package/dist/models/tenant-bank-account-response-class.js +1 -1
  83. package/dist/models/transaction-class.d.ts +1 -1
  84. package/dist/models/transaction-class.js +1 -1
  85. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  86. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  87. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  88. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  89. package/index.ts +1 -1
  90. package/models/bank-transaction-response-class.ts +1 -1
  91. package/models/create-payment-reminder-request-dto.ts +1 -1
  92. package/models/create-payment-request-dto.ts +4 -4
  93. package/models/create-refund-request-dto.ts +1 -1
  94. package/models/create-refund-response-class.ts +1 -1
  95. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  96. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  97. package/models/get-bank-transactions-response-class.ts +1 -1
  98. package/models/get-refund-response-class.ts +1 -1
  99. package/models/get-request-dto.ts +2 -2
  100. package/models/get-tenant-bank-account-response-class.ts +1 -1
  101. package/models/index.ts +0 -30
  102. package/models/inline-response200.ts +1 -1
  103. package/models/inline-response503.ts +1 -1
  104. package/models/list-bank-transactions-response-class.ts +1 -1
  105. package/models/list-refunds-response-class.ts +1 -1
  106. package/models/refund-class.ts +1 -1
  107. package/models/tenant-bank-account-response-class.ts +1 -1
  108. package/models/transaction-class.ts +1 -1
  109. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  110. package/models/validate-pspconfig-request-dto.ts +2 -12
  111. package/package.json +1 -1
  112. package/dist/models/bank-account-class.d.ts +0 -54
  113. package/dist/models/bank-account-class.js +0 -15
  114. package/dist/models/billing-profile-dto.d.ts +0 -38
  115. package/dist/models/billing-profile-dto.js +0 -15
  116. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  117. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  118. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  119. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  120. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  121. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  122. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  123. package/dist/models/complete-payment-setup-response-class.js +0 -15
  124. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  125. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  126. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  127. package/dist/models/create-bank-account-request-dto.js +0 -15
  128. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  129. package/dist/models/create-payment-method-response-class.js +0 -15
  130. package/dist/models/create-payment-response-class.d.ts +0 -25
  131. package/dist/models/create-payment-response-class.js +0 -15
  132. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  133. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  134. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  135. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  136. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  137. package/dist/models/get-payment-method-response-class.js +0 -15
  138. package/dist/models/get-payment-response-class.d.ts +0 -25
  139. package/dist/models/get-payment-response-class.js +0 -15
  140. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  141. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  142. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  143. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  144. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  145. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  146. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  147. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  148. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  149. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  150. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  151. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  152. package/dist/models/link-bank-transaction-request-dto.d.ts +0 -30
  153. package/dist/models/link-bank-transaction-request-dto.js +0 -15
  154. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  155. package/dist/models/list-bank-accounts-response-class.js +0 -15
  156. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  157. package/dist/models/list-payment-methods-response-class.js +0 -15
  158. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  159. package/dist/models/list-payment-reminders-response-class.js +0 -15
  160. package/dist/models/list-payments-response-class.d.ts +0 -31
  161. package/dist/models/list-payments-response-class.js +0 -15
  162. package/dist/models/payment-class.d.ts +0 -103
  163. package/dist/models/payment-class.js +0 -15
  164. package/dist/models/payment-method-class.d.ts +0 -66
  165. package/dist/models/payment-method-class.js +0 -15
  166. package/dist/models/payment-reminder-class.d.ts +0 -112
  167. package/dist/models/payment-reminder-class.js +0 -36
  168. package/dist/models/sepa-direct-dto.d.ts +0 -24
  169. package/dist/models/sepa-direct-dto.js +0 -15
  170. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  171. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  172. package/models/bank-account-class.ts +0 -60
  173. package/models/billing-profile-dto.ts +0 -44
  174. package/models/billing-profile-limited-response-dto.ts +0 -60
  175. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  176. package/models/complete-payment-setup-request-dto.ts +0 -38
  177. package/models/complete-payment-setup-response-class.ts +0 -31
  178. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  179. package/models/create-bank-account-request-dto.ts +0 -36
  180. package/models/create-payment-method-response-class.ts +0 -31
  181. package/models/create-payment-response-class.ts +0 -31
  182. package/models/create-psp-payment-method-request-dto.ts +0 -70
  183. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  184. package/models/get-payment-method-response-class.ts +0 -31
  185. package/models/get-payment-response-class.ts +0 -31
  186. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  187. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  188. package/models/initiate-payment-setup-request-dto.ts +0 -50
  189. package/models/initiate-payment-setup-response-class.ts +0 -38
  190. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  191. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  192. package/models/link-bank-transaction-request-dto.ts +0 -36
  193. package/models/list-bank-accounts-response-class.ts +0 -37
  194. package/models/list-payment-methods-response-class.ts +0 -37
  195. package/models/list-payment-reminders-response-class.ts +0 -37
  196. package/models/list-payments-response-class.ts +0 -37
  197. package/models/payment-class.ts +0 -109
  198. package/models/payment-method-class.ts +0 -72
  199. package/models/payment-reminder-class.ts +0 -122
  200. package/models/sepa-direct-dto.ts +0 -30
  201. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -5,7 +5,7 @@
5
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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -5,7 +5,7 @@
5
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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -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 { CreatePaymentMethodResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreatePspPaymentMethodRequestDto } from '../models';
27
- // @ts-ignore
28
- import { GetPaymentMethodResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentMethodsResponseClass } from '../models';
31
23
  /**
32
24
  * PaymentMethodsApi - axios parameter creator
33
25
  * @export
@@ -37,14 +29,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
37
29
  /**
38
30
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
39
31
  * @summary Create the payment-method
40
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
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
- createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
47
- assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
37
+ createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('createPaymentMethod', 'body', body)
48
40
  const localVarPath = `/paymentservice/v1/payment-methods`;
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 PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
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(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
78
70
 
79
71
  return {
80
72
  url: toPathString(localVarUrlObj),
@@ -133,15 +125,19 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
133
125
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
134
126
  * @summary Retrieve a payment method
135
127
  * @param {string} code Unique identifier for the object.
128
+ * @param {string} expand Fields to expand response by
129
+ * @param {string} expand2 Fields to expand response by
136
130
  * @param {string} [authorization] Bearer Token
137
- * @param {string} [expand] Fields to expand response by
138
- * @param {string} [expand2] Fields to expand response by
139
131
  * @param {*} [options] Override http request option.
140
132
  * @throws {RequiredError}
141
133
  */
142
- getPaymentMethod: async (code: string, authorization?: string, expand?: string, expand2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
+ getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
135
  // verify required parameter 'code' is not null or undefined
144
136
  assertParamExists('getPaymentMethod', 'code', code)
137
+ // verify required parameter 'expand' is not null or undefined
138
+ assertParamExists('getPaymentMethod', 'expand', expand)
139
+ // verify required parameter 'expand2' is not null or undefined
140
+ assertParamExists('getPaymentMethod', 'expand2', expand2)
145
141
  const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
146
142
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -197,10 +193,11 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
197
193
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
198
194
  * @param {any} [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.
199
195
  * @param {any} [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.
196
+ * @param {any} [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.
200
197
  * @param {*} [options] Override http request option.
201
198
  * @throws {RequiredError}
202
199
  */
203
- listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ listPaymentMethods: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
201
  const localVarPath = `/paymentservice/v1/payment-methods`;
205
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -243,6 +240,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
243
240
  localVarQueryParameter['expand'] = expand;
244
241
  }
245
242
 
243
+ if (filters !== undefined) {
244
+ localVarQueryParameter['filters'] = filters;
245
+ }
246
+
246
247
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
248
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
249
  }
@@ -271,13 +272,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
271
272
  /**
272
273
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
273
274
  * @summary Create the payment-method
274
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
275
+ * @param {object} body
275
276
  * @param {string} [authorization] Bearer Token
276
277
  * @param {*} [options] Override http request option.
277
278
  * @throws {RequiredError}
278
279
  */
279
- async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
280
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
280
+ async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
281
282
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
282
283
  },
283
284
  /**
@@ -296,14 +297,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
296
297
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
297
298
  * @summary Retrieve a payment method
298
299
  * @param {string} code Unique identifier for the object.
300
+ * @param {string} expand Fields to expand response by
301
+ * @param {string} expand2 Fields to expand response by
299
302
  * @param {string} [authorization] Bearer Token
300
- * @param {string} [expand] Fields to expand response by
301
- * @param {string} [expand2] Fields to expand response by
302
303
  * @param {*} [options] Override http request option.
303
304
  * @throws {RequiredError}
304
305
  */
305
- async getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
306
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, expand, expand2, options);
306
+ async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
307
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
308
309
  },
309
310
  /**
@@ -316,11 +317,12 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
316
317
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
317
318
  * @param {any} [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.
318
319
  * @param {any} [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.
320
+ * @param {any} [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.
319
321
  * @param {*} [options] Override http request option.
320
322
  * @throws {RequiredError}
321
323
  */
322
- async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
323
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options);
324
+ async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
324
326
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
325
327
  },
326
328
  }
@@ -336,13 +338,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
336
338
  /**
337
339
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
338
340
  * @summary Create the payment-method
339
- * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
341
+ * @param {object} body
340
342
  * @param {string} [authorization] Bearer Token
341
343
  * @param {*} [options] Override http request option.
342
344
  * @throws {RequiredError}
343
345
  */
344
- createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
345
- return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
346
+ createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
347
+ return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
346
348
  },
347
349
  /**
348
350
  * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
@@ -359,14 +361,14 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
359
361
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
360
362
  * @summary Retrieve a payment method
361
363
  * @param {string} code Unique identifier for the object.
364
+ * @param {string} expand Fields to expand response by
365
+ * @param {string} expand2 Fields to expand response by
362
366
  * @param {string} [authorization] Bearer Token
363
- * @param {string} [expand] Fields to expand response by
364
- * @param {string} [expand2] Fields to expand response by
365
367
  * @param {*} [options] Override http request option.
366
368
  * @throws {RequiredError}
367
369
  */
368
- getPaymentMethod(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
369
- return localVarFp.getPaymentMethod(code, authorization, expand, expand2, options).then((request) => request(axios, basePath));
370
+ getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
371
+ return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
370
372
  },
371
373
  /**
372
374
  * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -378,11 +380,12 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
378
380
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
379
381
  * @param {any} [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.
380
382
  * @param {any} [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.
383
+ * @param {any} [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.
381
384
  * @param {*} [options] Override http request option.
382
385
  * @throws {RequiredError}
383
386
  */
384
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
385
- return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
387
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
388
+ return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
386
389
  },
387
390
  };
388
391
  };
@@ -395,10 +398,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
395
398
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
396
399
  /**
397
400
  *
398
- * @type {CreatePspPaymentMethodRequestDto}
401
+ * @type {object}
399
402
  * @memberof PaymentMethodsApiCreatePaymentMethod
400
403
  */
401
- readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
404
+ readonly body: object
402
405
 
403
406
  /**
404
407
  * Bearer Token
@@ -443,25 +446,25 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
443
446
  readonly code: string
444
447
 
445
448
  /**
446
- * Bearer Token
449
+ * Fields to expand response by
447
450
  * @type {string}
448
451
  * @memberof PaymentMethodsApiGetPaymentMethod
449
452
  */
450
- readonly authorization?: string
453
+ readonly expand: string
451
454
 
452
455
  /**
453
456
  * Fields to expand response by
454
457
  * @type {string}
455
458
  * @memberof PaymentMethodsApiGetPaymentMethod
456
459
  */
457
- readonly expand?: string
460
+ readonly expand2: string
458
461
 
459
462
  /**
460
- * Fields to expand response by
463
+ * Bearer Token
461
464
  * @type {string}
462
465
  * @memberof PaymentMethodsApiGetPaymentMethod
463
466
  */
464
- readonly expand2?: string
467
+ readonly authorization?: string
465
468
  }
466
469
 
467
470
  /**
@@ -518,6 +521,13 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
518
521
  * @memberof PaymentMethodsApiListPaymentMethods
519
522
  */
520
523
  readonly expand?: any
524
+
525
+ /**
526
+ * 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.
527
+ * @type {any}
528
+ * @memberof PaymentMethodsApiListPaymentMethods
529
+ */
530
+ readonly filters?: any
521
531
  }
522
532
 
523
533
  /**
@@ -536,7 +546,7 @@ export class PaymentMethodsApi extends BaseAPI {
536
546
  * @memberof PaymentMethodsApi
537
547
  */
538
548
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
539
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
549
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
540
550
  }
541
551
 
542
552
  /**
@@ -560,7 +570,7 @@ export class PaymentMethodsApi extends BaseAPI {
560
570
  * @memberof PaymentMethodsApi
561
571
  */
562
572
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
563
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then((request) => request(this.axios, this.basePath));
573
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
564
574
  }
565
575
 
566
576
  /**
@@ -572,6 +582,6 @@ export class PaymentMethodsApi extends BaseAPI {
572
582
  * @memberof PaymentMethodsApi
573
583
  */
574
584
  public listPaymentMethods(requestParameters: PaymentMethodsApiListPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
575
- return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
585
+ return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
576
586
  }
577
587
  }
@@ -5,7 +5,7 @@
5
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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -24,10 +24,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { CreatePaymentReminderRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { DeactivatePaymentReminderRequestDto } from '../models';
27
- // @ts-ignore
28
- import { DeactivatePaymentReminderResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListPaymentRemindersResponseClass } from '../models';
31
27
  /**
32
28
  * PaymentRemindersApi - axios parameter creator
33
29
  * @export
@@ -187,10 +183,11 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
187
183
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
188
184
  * @param {any} [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.
189
185
  * @param {any} [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.
186
+ * @param {any} [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.
190
187
  * @param {*} [options] Override http request option.
191
188
  * @throws {RequiredError}
192
189
  */
193
- listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
190
+ listPaymentReminders: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
191
  const localVarPath = `/paymentservice/v1/payment-reminders`;
195
192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
193
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -233,6 +230,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
233
230
  localVarQueryParameter['expand'] = expand;
234
231
  }
235
232
 
233
+ if (filters !== undefined) {
234
+ localVarQueryParameter['filters'] = filters;
235
+ }
236
+
236
237
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
238
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
239
  }
@@ -266,7 +267,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
266
267
  * @param {*} [options] Override http request option.
267
268
  * @throws {RequiredError}
268
269
  */
269
- async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
270
+ async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
270
271
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
271
272
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
272
273
  },
@@ -279,7 +280,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
279
280
  * @param {*} [options] Override http request option.
280
281
  * @throws {RequiredError}
281
282
  */
282
- async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
283
+ async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
283
284
  const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
284
285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
285
286
  },
@@ -291,7 +292,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
291
292
  * @param {*} [options] Override http request option.
292
293
  * @throws {RequiredError}
293
294
  */
294
- async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
295
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
295
296
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
296
297
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
297
298
  },
@@ -305,11 +306,12 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
305
306
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
306
307
  * @param {any} [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.
307
308
  * @param {any} [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.
309
+ * @param {any} [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.
308
310
  * @param {*} [options] Override http request option.
309
311
  * @throws {RequiredError}
310
312
  */
311
- async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
312
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options);
313
+ async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
313
315
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
316
  },
315
317
  }
@@ -330,7 +332,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
330
332
  * @param {*} [options] Override http request option.
331
333
  * @throws {RequiredError}
332
334
  */
333
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
335
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
334
336
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
335
337
  },
336
338
  /**
@@ -342,7 +344,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
342
344
  * @param {*} [options] Override http request option.
343
345
  * @throws {RequiredError}
344
346
  */
345
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
347
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
346
348
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
347
349
  },
348
350
  /**
@@ -353,7 +355,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
353
355
  * @param {*} [options] Override http request option.
354
356
  * @throws {RequiredError}
355
357
  */
356
- getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
358
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
357
359
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
358
360
  },
359
361
  /**
@@ -366,11 +368,12 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
366
368
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
367
369
  * @param {any} [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.
368
370
  * @param {any} [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.
371
+ * @param {any} [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.
369
372
  * @param {*} [options] Override http request option.
370
373
  * @throws {RequiredError}
371
374
  */
372
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
373
- return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
375
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
376
+ return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
374
377
  },
375
378
  };
376
379
  };
@@ -499,6 +502,13 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
499
502
  * @memberof PaymentRemindersApiListPaymentReminders
500
503
  */
501
504
  readonly expand?: any
505
+
506
+ /**
507
+ * 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.
508
+ * @type {any}
509
+ * @memberof PaymentRemindersApiListPaymentReminders
510
+ */
511
+ readonly filters?: any
502
512
  }
503
513
 
504
514
  /**
@@ -553,6 +563,6 @@ export class PaymentRemindersApi extends BaseAPI {
553
563
  * @memberof PaymentRemindersApi
554
564
  */
555
565
  public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
556
- return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
566
+ return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
557
567
  }
558
568
  }
@@ -5,7 +5,7 @@
5
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
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -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
@@ -36,14 +28,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
36
28
  return {
37
29
  /**
38
30
  *
39
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
31
+ * @param {object} body
40
32
  * @param {string} [authorization] Bearer Token
41
33
  * @param {*} [options] Override http request option.
42
34
  * @throws {RequiredError}
43
35
  */
44
- completePaymentSetup: async (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
- // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
46
- assertParamExists('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto)
36
+ completePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
+ // verify required parameter 'body' is not null or undefined
38
+ assertParamExists('completePaymentSetup', 'body', body)
47
39
  const localVarPath = `/paymentservice/v1/payment-setup/complete`;
48
40
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
41
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -73,7 +65,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
73
65
  setSearchParams(localVarUrlObj, localVarQueryParameter);
74
66
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
67
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
- localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
68
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
77
69
 
78
70
  return {
79
71
  url: toPathString(localVarUrlObj),
@@ -82,14 +74,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
82
74
  },
83
75
  /**
84
76
  *
85
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
77
+ * @param {object} body
86
78
  * @param {string} [authorization] Bearer Token
87
79
  * @param {*} [options] Override http request option.
88
80
  * @throws {RequiredError}
89
81
  */
90
- initiatePaymentSetup: async (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
91
- // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
92
- assertParamExists('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto)
82
+ initiatePaymentSetup: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
83
+ // verify required parameter 'body' is not null or undefined
84
+ assertParamExists('initiatePaymentSetup', 'body', body)
93
85
  const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
94
86
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
87
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -119,7 +111,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
119
111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
120
112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
113
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
122
- localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
114
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
123
115
 
124
116
  return {
125
117
  url: toPathString(localVarUrlObj),
@@ -138,24 +130,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
138
130
  return {
139
131
  /**
140
132
  *
141
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
133
+ * @param {object} body
142
134
  * @param {string} [authorization] Bearer Token
143
135
  * @param {*} [options] Override http request option.
144
136
  * @throws {RequiredError}
145
137
  */
146
- async completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
147
- const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options);
138
+ async completePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(body, authorization, options);
148
140
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
149
141
  },
150
142
  /**
151
143
  *
152
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
144
+ * @param {object} body
153
145
  * @param {string} [authorization] Bearer Token
154
146
  * @param {*} [options] Override http request option.
155
147
  * @throws {RequiredError}
156
148
  */
157
- async initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
158
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options);
149
+ async initiatePaymentSetup(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options);
159
151
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
160
152
  },
161
153
  }
@@ -170,23 +162,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
170
162
  return {
171
163
  /**
172
164
  *
173
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
165
+ * @param {object} body
174
166
  * @param {string} [authorization] Bearer Token
175
167
  * @param {*} [options] Override http request option.
176
168
  * @throws {RequiredError}
177
169
  */
178
- completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
179
- return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
170
+ completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
171
+ return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
180
172
  },
181
173
  /**
182
174
  *
183
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
175
+ * @param {object} body
184
176
  * @param {string} [authorization] Bearer Token
185
177
  * @param {*} [options] Override http request option.
186
178
  * @throws {RequiredError}
187
179
  */
188
- initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
189
- return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
180
+ initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
181
+ return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
190
182
  },
191
183
  };
192
184
  };
@@ -199,10 +191,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
199
191
  export interface PaymentSetupApiCompletePaymentSetupRequest {
200
192
  /**
201
193
  *
202
- * @type {CompletePaymentSetupRequestDto}
194
+ * @type {object}
203
195
  * @memberof PaymentSetupApiCompletePaymentSetup
204
196
  */
205
- readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
197
+ readonly body: object
206
198
 
207
199
  /**
208
200
  * Bearer Token
@@ -220,10 +212,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
220
212
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
221
213
  /**
222
214
  *
223
- * @type {InitiatePaymentSetupRequestDto}
215
+ * @type {object}
224
216
  * @memberof PaymentSetupApiInitiatePaymentSetup
225
217
  */
226
- readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
218
+ readonly body: object
227
219
 
228
220
  /**
229
221
  * Bearer Token
@@ -248,7 +240,7 @@ export class PaymentSetupApi extends BaseAPI {
248
240
  * @memberof PaymentSetupApi
249
241
  */
250
242
  public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
251
- return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
243
+ return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
252
244
  }
253
245
 
254
246
  /**
@@ -259,6 +251,6 @@ export class PaymentSetupApi extends BaseAPI {
259
251
  * @memberof PaymentSetupApi
260
252
  */
261
253
  public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
262
- return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
254
+ return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
263
255
  }
264
256
  }