@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30

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 (224) hide show
  1. package/.openapi-generator/FILES +10 -27
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +497 -43
  4. package/api/bank-transaction-api.ts +89 -53
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +62 -173
  7. package/api/payment-reminders-api.ts +21 -25
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +54 -59
  10. package/api/refunds-api.ts +20 -18
  11. package/api/tenant-bank-account-api.ts +71 -61
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +6 -2
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +295 -45
  18. package/dist/api/bank-accounts-api.js +412 -24
  19. package/dist/api/bank-transaction-api.d.ts +65 -45
  20. package/dist/api/bank-transaction-api.js +55 -40
  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 +48 -107
  24. package/dist/api/payment-methods-api.js +51 -143
  25. package/dist/api/payment-reminders-api.d.ts +25 -27
  26. package/dist/api/payment-reminders-api.js +12 -12
  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 +46 -49
  30. package/dist/api/payments-api.js +43 -41
  31. package/dist/api/refunds-api.d.ts +15 -15
  32. package/dist/api/refunds-api.js +15 -13
  33. package/dist/api/tenant-bank-account-api.d.ts +70 -57
  34. package/dist/api/tenant-bank-account-api.js +56 -42
  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 +2 -1
  40. package/dist/base.js +5 -2
  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-account-class.d.ts +23 -4
  48. package/dist/models/bank-account-class.js +1 -1
  49. package/dist/models/bank-transaction-response-class.d.ts +7 -1
  50. package/dist/models/bank-transaction-response-class.js +1 -1
  51. package/dist/models/create-bank-account-request-dto.d.ts +15 -3
  52. package/dist/models/create-bank-account-request-dto.js +1 -1
  53. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  54. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  55. package/dist/models/create-payment-request-dto.d.ts +4 -4
  56. package/dist/models/create-payment-request-dto.js +1 -1
  57. package/dist/models/create-refund-request-dto.d.ts +1 -1
  58. package/dist/models/create-refund-request-dto.js +1 -1
  59. package/dist/models/create-refund-response-class.d.ts +1 -1
  60. package/dist/models/create-refund-response-class.js +1 -1
  61. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  62. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  63. package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
  64. package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
  65. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  66. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  67. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  68. package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.js} +1 -1
  69. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  70. package/dist/models/get-bank-transactions-response-class.js +1 -1
  71. package/dist/models/get-refund-response-class.d.ts +1 -1
  72. package/dist/models/get-refund-response-class.js +1 -1
  73. package/dist/models/get-request-dto.d.ts +2 -2
  74. package/dist/models/get-request-dto.js +1 -1
  75. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  76. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  77. package/dist/models/index.d.ts +10 -27
  78. package/dist/models/index.js +10 -27
  79. package/dist/models/inline-response200.d.ts +1 -1
  80. package/dist/models/inline-response200.js +1 -1
  81. package/dist/models/inline-response503.d.ts +1 -1
  82. package/dist/models/inline-response503.js +1 -1
  83. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  84. package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
  85. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  86. package/dist/models/list-bank-transactions-response-class.js +1 -1
  87. package/dist/models/list-refunds-response-class.d.ts +1 -1
  88. package/dist/models/list-refunds-response-class.js +1 -1
  89. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  90. package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
  91. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  92. package/dist/models/primary-bank-account-response-class.js +15 -0
  93. package/dist/models/refund-class.d.ts +2 -1
  94. package/dist/models/refund-class.js +3 -2
  95. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  96. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  97. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  98. package/dist/models/tenant-bank-account-response-class.js +1 -1
  99. package/dist/models/transaction-class.d.ts +1 -1
  100. package/dist/models/transaction-class.js +1 -1
  101. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  102. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  103. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  104. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  105. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  106. package/dist/models/update-bank-account-request-dto.js +15 -0
  107. package/dist/models/update-bank-account-response-class.d.ts +25 -0
  108. package/dist/models/update-bank-account-response-class.js +15 -0
  109. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  110. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  111. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  112. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  113. package/index.ts +1 -1
  114. package/models/bank-account-class.ts +23 -4
  115. package/models/bank-transaction-response-class.ts +7 -1
  116. package/models/create-bank-account-request-dto.ts +15 -3
  117. package/models/create-payment-reminder-request-dto.ts +1 -1
  118. package/models/create-payment-request-dto.ts +4 -4
  119. package/models/create-refund-request-dto.ts +1 -1
  120. package/models/create-refund-response-class.ts +1 -1
  121. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  122. package/models/create-tenant-bank-account-response-class.ts +31 -0
  123. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  124. package/models/get-bank-account-response-class.ts +31 -0
  125. package/models/get-bank-transactions-response-class.ts +1 -1
  126. package/models/get-refund-response-class.ts +1 -1
  127. package/models/get-request-dto.ts +2 -2
  128. package/models/get-tenant-bank-account-response-class.ts +1 -1
  129. package/models/index.ts +10 -27
  130. package/models/inline-response200.ts +1 -1
  131. package/models/inline-response503.ts +1 -1
  132. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  133. package/models/list-bank-transactions-response-class.ts +1 -1
  134. package/models/list-refunds-response-class.ts +1 -1
  135. package/models/list-tenant-bank-account-response-class.ts +37 -0
  136. package/models/primary-bank-account-response-class.ts +48 -0
  137. package/models/refund-class.ts +3 -2
  138. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  139. package/models/tenant-bank-account-response-class.ts +1 -1
  140. package/models/transaction-class.ts +1 -1
  141. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  142. package/models/update-bank-account-request-dto-rest.ts +36 -0
  143. package/models/update-bank-account-request-dto.ts +42 -0
  144. package/models/update-bank-account-response-class.ts +31 -0
  145. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  146. package/models/validate-pspconfig-request-dto.ts +2 -12
  147. package/package.json +1 -1
  148. package/dist/models/billing-profile-dto.d.ts +0 -38
  149. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  150. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  151. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  152. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  153. package/dist/models/complete-payment-setup-response-class.js +0 -15
  154. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  155. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  156. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  157. package/dist/models/create-payment-method-response-class.js +0 -15
  158. package/dist/models/create-payment-response-class.d.ts +0 -25
  159. package/dist/models/create-payment-response-class.js +0 -15
  160. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  161. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  162. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  163. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  164. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  165. package/dist/models/get-payment-method-response-class.js +0 -15
  166. package/dist/models/get-payment-response-class.d.ts +0 -25
  167. package/dist/models/get-payment-response-class.js +0 -15
  168. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  169. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  170. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  171. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  172. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  173. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  174. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  175. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  176. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  177. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  178. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  179. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  180. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  181. package/dist/models/list-bank-accounts-response-class.js +0 -15
  182. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  183. package/dist/models/list-payment-methods-response-class.js +0 -15
  184. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  185. package/dist/models/list-payment-reminders-response-class.js +0 -15
  186. package/dist/models/list-payments-response-class.d.ts +0 -31
  187. package/dist/models/list-payments-response-class.js +0 -15
  188. package/dist/models/payment-class.d.ts +0 -103
  189. package/dist/models/payment-class.js +0 -15
  190. package/dist/models/payment-method-class.d.ts +0 -66
  191. package/dist/models/payment-method-class.js +0 -15
  192. package/dist/models/payment-reminder-class.d.ts +0 -112
  193. package/dist/models/payment-reminder-class.js +0 -36
  194. package/dist/models/sepa-direct-dto.d.ts +0 -24
  195. package/dist/models/sepa-direct-dto.js +0 -15
  196. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  197. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  198. package/models/billing-profile-dto.ts +0 -44
  199. package/models/billing-profile-limited-response-dto.ts +0 -60
  200. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  201. package/models/complete-payment-setup-request-dto.ts +0 -38
  202. package/models/complete-payment-setup-response-class.ts +0 -31
  203. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  204. package/models/create-payment-method-response-class.ts +0 -31
  205. package/models/create-payment-response-class.ts +0 -31
  206. package/models/create-psp-payment-method-request-dto.ts +0 -70
  207. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  208. package/models/get-payment-method-response-class.ts +0 -31
  209. package/models/get-payment-response-class.ts +0 -31
  210. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  211. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  212. package/models/initiate-payment-setup-request-dto.ts +0 -50
  213. package/models/initiate-payment-setup-response-class.ts +0 -38
  214. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  215. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  216. package/models/list-bank-accounts-response-class.ts +0 -37
  217. package/models/list-payment-methods-response-class.ts +0 -37
  218. package/models/list-payment-reminders-response-class.ts +0 -37
  219. package/models/list-payments-response-class.ts +0 -37
  220. package/models/payment-class.ts +0 -109
  221. package/models/payment-method-class.ts +0 -72
  222. package/models/payment-reminder-class.ts +0 -122
  223. package/models/sepa-direct-dto.ts +0 -30
  224. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
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
8
  * Contact: kontakt@emil.de
@@ -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
@@ -133,7 +129,7 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
133
129
  };
134
130
  },
135
131
  /**
136
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
132
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
137
133
  * @summary Retrieve the payment reminder
138
134
  * @param {string} code Unique identifier for the object.
139
135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -178,13 +174,13 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
178
174
  };
179
175
  },
180
176
  /**
181
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
177
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
182
178
  * @summary List payment reminders
183
179
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
180
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
181
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
186
182
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
187
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
183
+ * @param {any} [search] To search the list by any field, pass search=xxx 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.
190
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.
@@ -271,7 +267,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
271
267
  * @param {*} [options] Override http request option.
272
268
  * @throws {RequiredError}
273
269
  */
274
- 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>> {
275
271
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
276
272
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
277
273
  },
@@ -284,37 +280,37 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
284
280
  * @param {*} [options] Override http request option.
285
281
  * @throws {RequiredError}
286
282
  */
287
- 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>> {
288
284
  const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
289
285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
286
  },
291
287
  /**
292
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
288
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
293
289
  * @summary Retrieve the payment reminder
294
290
  * @param {string} code Unique identifier for the object.
295
291
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
292
  * @param {*} [options] Override http request option.
297
293
  * @throws {RequiredError}
298
294
  */
299
- 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>> {
300
296
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
301
297
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
302
298
  },
303
299
  /**
304
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
300
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
305
301
  * @summary List payment reminders
306
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
307
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
308
304
  * @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.
309
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
310
- * @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
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
311
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.
312
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.
313
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.
314
310
  * @param {*} [options] Override http request option.
315
311
  * @throws {RequiredError}
316
312
  */
317
- 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<ListPaymentRemindersResponseClass>> {
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>> {
318
314
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
319
315
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
320
316
  },
@@ -336,7 +332,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
336
332
  * @param {*} [options] Override http request option.
337
333
  * @throws {RequiredError}
338
334
  */
339
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
335
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
340
336
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
341
337
  },
342
338
  /**
@@ -348,35 +344,35 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
348
344
  * @param {*} [options] Override http request option.
349
345
  * @throws {RequiredError}
350
346
  */
351
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
347
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
352
348
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
353
349
  },
354
350
  /**
355
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
351
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
356
352
  * @summary Retrieve the payment reminder
357
353
  * @param {string} code Unique identifier for the object.
358
354
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
355
  * @param {*} [options] Override http request option.
360
356
  * @throws {RequiredError}
361
357
  */
362
- getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
358
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
363
359
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
364
360
  },
365
361
  /**
366
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
362
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
367
363
  * @summary List payment reminders
368
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
369
365
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
366
  * @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.
371
367
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
372
- * @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.
368
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
373
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.
374
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.
375
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.
376
372
  * @param {*} [options] Override http request option.
377
373
  * @throws {RequiredError}
378
374
  */
379
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
375
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
380
376
  return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
381
377
  },
382
378
  };
@@ -487,7 +483,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
487
483
  readonly filter?: any
488
484
 
489
485
  /**
490
- * 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.
486
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
491
487
  * @type {any}
492
488
  * @memberof PaymentRemindersApiListPaymentReminders
493
489
  */
@@ -547,7 +543,7 @@ export class PaymentRemindersApi extends BaseAPI {
547
543
  }
548
544
 
549
545
  /**
550
- * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
546
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
551
547
  * @summary Retrieve the payment reminder
552
548
  * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
553
549
  * @param {*} [options] Override http request option.
@@ -559,7 +555,7 @@ export class PaymentRemindersApi extends BaseAPI {
559
555
  }
560
556
 
561
557
  /**
562
- * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
558
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
563
559
  * @summary List payment reminders
564
560
  * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
565
561
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
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
8
  * Contact: kontakt@emil.de
@@ -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
  }