@emilgroup/payment-sdk 1.4.1-beta.17 → 1.4.1-beta.19

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 (225) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +135 -15
  4. package/api/bank-transaction-api.ts +3 -3
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +38 -32
  7. package/api/payment-reminders-api.ts +13 -9
  8. package/api/payment-setup-api.ts +37 -29
  9. package/api/payments-api.ts +24 -20
  10. package/api/refunds-api.ts +14 -16
  11. package/api/tenant-bank-account-api.ts +1 -1
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +1 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +84 -18
  18. package/dist/api/bank-accounts-api.js +108 -9
  19. package/dist/api/bank-transaction-api.d.ts +4 -4
  20. package/dist/api/bank-transaction-api.js +1 -1
  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 +28 -24
  24. package/dist/api/payment-methods-api.js +22 -24
  25. package/dist/api/payment-reminders-api.d.ts +15 -13
  26. package/dist/api/payment-reminders-api.js +1 -1
  27. package/dist/api/payment-setup-api.d.ts +23 -19
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +21 -18
  30. package/dist/api/payments-api.js +10 -12
  31. package/dist/api/refunds-api.d.ts +11 -11
  32. package/dist/api/refunds-api.js +10 -12
  33. package/dist/api/tenant-bank-account-api.d.ts +1 -1
  34. package/dist/api/tenant-bank-account-api.js +1 -1
  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 +1 -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-account-class.d.ts +15 -3
  48. package/dist/models/bank-account-class.js +1 -1
  49. package/dist/models/bank-transaction-response-class.d.ts +1 -1
  50. package/dist/models/bank-transaction-response-class.js +1 -1
  51. package/dist/models/billing-profile-dto.d.ts +38 -0
  52. package/dist/models/billing-profile-dto.js +15 -0
  53. package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
  54. package/dist/models/billing-profile-limited-response-dto.js +15 -0
  55. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  56. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  57. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  58. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  59. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  60. package/dist/models/complete-payment-setup-response-class.js +15 -0
  61. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  62. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  63. package/dist/models/create-bank-account-request-dto.d.ts +19 -7
  64. package/dist/models/create-bank-account-request-dto.js +1 -1
  65. package/dist/models/create-payment-method-response-class.d.ts +25 -0
  66. package/dist/models/create-payment-method-response-class.js +15 -0
  67. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  68. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  69. package/dist/models/create-payment-request-dto.d.ts +4 -4
  70. package/dist/models/create-payment-request-dto.js +1 -1
  71. package/dist/models/create-payment-response-class.d.ts +25 -0
  72. package/dist/models/create-payment-response-class.js +15 -0
  73. package/dist/models/create-psp-payment-method-request-dto.d.ts +61 -0
  74. package/dist/models/create-psp-payment-method-request-dto.js +32 -0
  75. package/dist/models/create-refund-request-dto.d.ts +1 -1
  76. package/dist/models/create-refund-request-dto.js +1 -1
  77. package/dist/models/create-refund-response-class.d.ts +1 -1
  78. package/dist/models/create-refund-response-class.js +1 -1
  79. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  80. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  81. package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
  82. package/dist/models/create-tenant-bank-account-response-class.js +1 -1
  83. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  84. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  85. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  86. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  87. package/dist/models/get-bank-account-response-class.d.ts +2 -2
  88. package/dist/models/get-bank-account-response-class.js +1 -1
  89. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  90. package/dist/models/get-bank-transactions-response-class.js +1 -1
  91. package/dist/models/get-payment-method-response-class.d.ts +25 -0
  92. package/dist/models/get-payment-method-response-class.js +15 -0
  93. package/dist/models/get-payment-response-class.d.ts +25 -0
  94. package/dist/models/get-payment-response-class.js +15 -0
  95. package/dist/models/get-refund-response-class.d.ts +1 -1
  96. package/dist/models/get-refund-response-class.js +1 -1
  97. package/dist/models/get-request-dto.d.ts +2 -2
  98. package/dist/models/get-request-dto.js +1 -1
  99. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  100. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  101. package/dist/models/index.d.ts +29 -0
  102. package/dist/models/index.js +29 -0
  103. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  104. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  105. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  106. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  107. package/dist/models/initiate-payment-setup-request-dto.d.ts +44 -0
  108. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  109. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  110. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  111. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  112. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  113. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  114. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  115. package/dist/models/inline-response200.d.ts +1 -1
  116. package/dist/models/inline-response200.js +1 -1
  117. package/dist/models/inline-response503.d.ts +1 -1
  118. package/dist/models/inline-response503.js +1 -1
  119. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
  120. package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
  121. package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
  122. package/dist/models/list-bank-accounts-response-class.js +15 -0
  123. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  124. package/dist/models/list-bank-transactions-response-class.js +1 -1
  125. package/dist/models/list-payment-methods-response-class.d.ts +31 -0
  126. package/dist/models/list-payment-methods-response-class.js +15 -0
  127. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  128. package/dist/models/list-payment-reminders-response-class.js +15 -0
  129. package/dist/models/list-payments-response-class.d.ts +31 -0
  130. package/dist/models/list-payments-response-class.js +15 -0
  131. package/dist/models/list-refunds-response-class.d.ts +1 -1
  132. package/dist/models/list-refunds-response-class.js +1 -1
  133. package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
  134. package/dist/models/list-tenant-bank-account-response-class.js +1 -1
  135. package/dist/models/payment-class.d.ts +103 -0
  136. package/dist/models/payment-class.js +15 -0
  137. package/dist/models/payment-method-class.d.ts +66 -0
  138. package/dist/models/payment-method-class.js +15 -0
  139. package/dist/models/payment-reminder-class.d.ts +112 -0
  140. package/dist/models/payment-reminder-class.js +36 -0
  141. package/dist/models/primary-bank-account-response-class.d.ts +2 -2
  142. package/dist/models/primary-bank-account-response-class.js +1 -1
  143. package/dist/models/refund-class.d.ts +1 -1
  144. package/dist/models/refund-class.js +1 -1
  145. package/dist/models/sepa-direct-dto.d.ts +24 -0
  146. package/dist/models/sepa-direct-dto.js +15 -0
  147. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +2 -2
  148. package/dist/models/set-primary-bank-account-request-dto-rest.js +1 -1
  149. package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
  150. package/dist/models/symphony-profile-limited-response-dto.js +15 -0
  151. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  152. package/dist/models/tenant-bank-account-response-class.js +1 -1
  153. package/dist/models/transaction-class.d.ts +1 -1
  154. package/dist/models/transaction-class.js +1 -1
  155. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
  156. package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
  157. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  158. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  159. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  160. package/dist/models/update-bank-account-request-dto.js +15 -0
  161. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  162. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  163. package/dist/models/validate-pspconfig-request-dto.d.ts +9 -2
  164. package/dist/models/validate-pspconfig-request-dto.js +8 -1
  165. package/index.ts +1 -1
  166. package/models/bank-account-class.ts +15 -3
  167. package/models/bank-transaction-response-class.ts +1 -1
  168. package/models/billing-profile-dto.ts +44 -0
  169. package/models/billing-profile-limited-response-dto.ts +60 -0
  170. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  171. package/models/complete-payment-setup-request-dto.ts +38 -0
  172. package/models/complete-payment-setup-response-class.ts +31 -0
  173. package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
  174. package/models/create-bank-account-request-dto.ts +19 -7
  175. package/models/create-payment-method-response-class.ts +31 -0
  176. package/models/create-payment-reminder-request-dto.ts +1 -1
  177. package/models/create-payment-request-dto.ts +4 -4
  178. package/models/create-payment-response-class.ts +31 -0
  179. package/models/create-psp-payment-method-request-dto.ts +70 -0
  180. package/models/create-refund-request-dto.ts +1 -1
  181. package/models/create-refund-response-class.ts +1 -1
  182. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  183. package/models/create-tenant-bank-account-response-class.ts +1 -1
  184. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  185. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  186. package/models/get-bank-account-response-class.ts +2 -2
  187. package/models/get-bank-transactions-response-class.ts +1 -1
  188. package/models/get-payment-method-response-class.ts +31 -0
  189. package/models/get-payment-response-class.ts +31 -0
  190. package/models/get-refund-response-class.ts +1 -1
  191. package/models/get-request-dto.ts +2 -2
  192. package/models/get-tenant-bank-account-response-class.ts +1 -1
  193. package/models/index.ts +29 -0
  194. package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
  195. package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
  196. package/models/initiate-payment-setup-request-dto.ts +50 -0
  197. package/models/initiate-payment-setup-response-class.ts +38 -0
  198. package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
  199. package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
  200. package/models/inline-response200.ts +1 -1
  201. package/models/inline-response503.ts +1 -1
  202. package/models/link-bank-transaction-request-dto-rest.ts +1 -1
  203. package/models/list-bank-accounts-response-class.ts +37 -0
  204. package/models/list-bank-transactions-response-class.ts +1 -1
  205. package/models/list-payment-methods-response-class.ts +37 -0
  206. package/models/list-payment-reminders-response-class.ts +37 -0
  207. package/models/list-payments-response-class.ts +37 -0
  208. package/models/list-refunds-response-class.ts +1 -1
  209. package/models/list-tenant-bank-account-response-class.ts +1 -1
  210. package/models/payment-class.ts +109 -0
  211. package/models/payment-method-class.ts +72 -0
  212. package/models/payment-reminder-class.ts +122 -0
  213. package/models/primary-bank-account-response-class.ts +2 -2
  214. package/models/refund-class.ts +1 -1
  215. package/models/sepa-direct-dto.ts +30 -0
  216. package/models/set-primary-bank-account-request-dto-rest.ts +2 -2
  217. package/models/symphony-profile-limited-response-dto.ts +48 -0
  218. package/models/tenant-bank-account-response-class.ts +1 -1
  219. package/models/transaction-class.ts +1 -1
  220. package/models/unlink-bank-transaction-request-dto-rest.ts +1 -1
  221. package/models/update-bank-account-request-dto-rest.ts +36 -0
  222. package/models/update-bank-account-request-dto.ts +42 -0
  223. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  224. package/models/validate-pspconfig-request-dto.ts +12 -2
  225. package/package.json +1 -1
@@ -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,6 +24,10 @@ 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';
27
31
  /**
28
32
  * PaymentRemindersApi - axios parameter creator
29
33
  * @export
@@ -267,7 +271,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
267
271
  * @param {*} [options] Override http request option.
268
272
  * @throws {RequiredError}
269
273
  */
270
- async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
274
+ async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
271
275
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
272
276
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
277
  },
@@ -280,7 +284,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
280
284
  * @param {*} [options] Override http request option.
281
285
  * @throws {RequiredError}
282
286
  */
283
- async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
287
+ async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
284
288
  const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
285
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
286
290
  },
@@ -292,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
292
296
  * @param {*} [options] Override http request option.
293
297
  * @throws {RequiredError}
294
298
  */
295
- async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
299
+ async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
296
300
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
297
301
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
302
  },
@@ -310,7 +314,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
310
314
  * @param {*} [options] Override http request option.
311
315
  * @throws {RequiredError}
312
316
  */
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>> {
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>> {
314
318
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
315
319
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
316
320
  },
@@ -332,7 +336,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
332
336
  * @param {*} [options] Override http request option.
333
337
  * @throws {RequiredError}
334
338
  */
335
- createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
339
+ createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
336
340
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
337
341
  },
338
342
  /**
@@ -344,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
344
348
  * @param {*} [options] Override http request option.
345
349
  * @throws {RequiredError}
346
350
  */
347
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
351
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
348
352
  return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
349
353
  },
350
354
  /**
@@ -355,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
355
359
  * @param {*} [options] Override http request option.
356
360
  * @throws {RequiredError}
357
361
  */
358
- getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
362
+ getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
359
363
  return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
360
364
  },
361
365
  /**
@@ -372,7 +376,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
372
376
  * @param {*} [options] Override http request option.
373
377
  * @throws {RequiredError}
374
378
  */
375
- listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
379
+ listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
376
380
  return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
377
381
  },
378
382
  };
@@ -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,6 +20,14 @@ 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';
23
31
  /**
24
32
  * PaymentSetupApi - axios parameter creator
25
33
  * @export
@@ -28,14 +36,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
28
36
  return {
29
37
  /**
30
38
  *
31
- * @param {object} body
39
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
32
40
  * @param {string} [authorization] Bearer Token
33
41
  * @param {*} [options] Override http request option.
34
42
  * @throws {RequiredError}
35
43
  */
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)
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)
39
47
  const localVarPath = `/paymentservice/v1/payment-setup/complete`;
40
48
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
49
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -65,7 +73,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
65
73
  setSearchParams(localVarUrlObj, localVarQueryParameter);
66
74
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
75
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
68
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
76
+ localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupRequestDto, localVarRequestOptions, configuration)
69
77
 
70
78
  return {
71
79
  url: toPathString(localVarUrlObj),
@@ -74,14 +82,14 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
74
82
  },
75
83
  /**
76
84
  *
77
- * @param {object} body
85
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
78
86
  * @param {string} [authorization] Bearer Token
79
87
  * @param {*} [options] Override http request option.
80
88
  * @throws {RequiredError}
81
89
  */
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)
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)
85
93
  const localVarPath = `/paymentservice/v1/payment-setup/initiate`;
86
94
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
95
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -111,7 +119,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
111
119
  setSearchParams(localVarUrlObj, localVarQueryParameter);
112
120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
121
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
114
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
122
+ localVarRequestOptions.data = serializeDataIfNeeded(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration)
115
123
 
116
124
  return {
117
125
  url: toPathString(localVarUrlObj),
@@ -130,24 +138,24 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
130
138
  return {
131
139
  /**
132
140
  *
133
- * @param {object} body
141
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
134
142
  * @param {string} [authorization] Bearer Token
135
143
  * @param {*} [options] Override http request option.
136
144
  * @throws {RequiredError}
137
145
  */
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);
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);
140
148
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
141
149
  },
142
150
  /**
143
151
  *
144
- * @param {object} body
152
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
145
153
  * @param {string} [authorization] Bearer Token
146
154
  * @param {*} [options] Override http request option.
147
155
  * @throws {RequiredError}
148
156
  */
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);
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);
151
159
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
160
  },
153
161
  }
@@ -162,23 +170,23 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
162
170
  return {
163
171
  /**
164
172
  *
165
- * @param {object} body
173
+ * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
166
174
  * @param {string} [authorization] Bearer Token
167
175
  * @param {*} [options] Override http request option.
168
176
  * @throws {RequiredError}
169
177
  */
170
- completePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
171
- return localVarFp.completePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
178
+ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
179
+ return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
172
180
  },
173
181
  /**
174
182
  *
175
- * @param {object} body
183
+ * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
176
184
  * @param {string} [authorization] Bearer Token
177
185
  * @param {*} [options] Override http request option.
178
186
  * @throws {RequiredError}
179
187
  */
180
- initiatePaymentSetup(body: object, authorization?: string, options?: any): AxiosPromise<void> {
181
- return localVarFp.initiatePaymentSetup(body, authorization, options).then((request) => request(axios, basePath));
188
+ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
189
+ return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
182
190
  },
183
191
  };
184
192
  };
@@ -191,10 +199,10 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
191
199
  export interface PaymentSetupApiCompletePaymentSetupRequest {
192
200
  /**
193
201
  *
194
- * @type {object}
202
+ * @type {CompletePaymentSetupRequestDto}
195
203
  * @memberof PaymentSetupApiCompletePaymentSetup
196
204
  */
197
- readonly body: object
205
+ readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto
198
206
 
199
207
  /**
200
208
  * Bearer Token
@@ -212,10 +220,10 @@ export interface PaymentSetupApiCompletePaymentSetupRequest {
212
220
  export interface PaymentSetupApiInitiatePaymentSetupRequest {
213
221
  /**
214
222
  *
215
- * @type {object}
223
+ * @type {InitiatePaymentSetupRequestDto}
216
224
  * @memberof PaymentSetupApiInitiatePaymentSetup
217
225
  */
218
- readonly body: object
226
+ readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto
219
227
 
220
228
  /**
221
229
  * Bearer Token
@@ -240,7 +248,7 @@ export class PaymentSetupApi extends BaseAPI {
240
248
  * @memberof PaymentSetupApi
241
249
  */
242
250
  public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
243
- return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
251
+ return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
244
252
  }
245
253
 
246
254
  /**
@@ -251,6 +259,6 @@ export class PaymentSetupApi extends BaseAPI {
251
259
  * @memberof PaymentSetupApi
252
260
  */
253
261
  public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
254
- return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
262
+ return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
255
263
  }
256
264
  }
@@ -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
@@ -22,6 +22,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreatePaymentRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePaymentResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetPaymentResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentsResponseClass } from '../models';
25
31
  /**
26
32
  * PaymentsApi - axios parameter creator
27
33
  * @export
@@ -87,18 +93,16 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
87
93
  * @summary Retrieve the payment
88
94
  * @param {string} code
89
95
  * @param {string} code2 Unique identifier for the object.
90
- * @param {string} expand Fields to expand response by
91
96
  * @param {string} [authorization] Bearer Token
97
+ * @param {string} [expand] Fields to expand response by
92
98
  * @param {*} [options] Override http request option.
93
99
  * @throws {RequiredError}
94
100
  */
95
- getPayment: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ getPayment: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
102
  // verify required parameter 'code' is not null or undefined
97
103
  assertParamExists('getPayment', 'code', code)
98
104
  // verify required parameter 'code2' is not null or undefined
99
105
  assertParamExists('getPayment', 'code2', code2)
100
- // verify required parameter 'expand' is not null or undefined
101
- assertParamExists('getPayment', 'expand', expand)
102
106
  const localVarPath = `/paymentservice/v1/payments/{code}`
103
107
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
108
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -236,7 +240,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
236
240
  * @param {*} [options] Override http request option.
237
241
  * @throws {RequiredError}
238
242
  */
239
- async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
243
+ async createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>> {
240
244
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options);
241
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
242
246
  },
@@ -245,13 +249,13 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
245
249
  * @summary Retrieve the payment
246
250
  * @param {string} code
247
251
  * @param {string} code2 Unique identifier for the object.
248
- * @param {string} expand Fields to expand response by
249
252
  * @param {string} [authorization] Bearer Token
253
+ * @param {string} [expand] Fields to expand response by
250
254
  * @param {*} [options] Override http request option.
251
255
  * @throws {RequiredError}
252
256
  */
253
- async getPayment(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
254
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, code2, expand, authorization, options);
257
+ async getPayment(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>> {
258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPayment(code, code2, authorization, expand, options);
255
259
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
256
260
  },
257
261
  /**
@@ -268,7 +272,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
268
272
  * @param {*} [options] Override http request option.
269
273
  * @throws {RequiredError}
270
274
  */
271
- async listPayments(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>> {
275
+ async listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
272
276
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
273
277
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
274
278
  },
@@ -291,7 +295,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
291
295
  * @param {*} [options] Override http request option.
292
296
  * @throws {RequiredError}
293
297
  */
294
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
298
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass> {
295
299
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
296
300
  },
297
301
  /**
@@ -299,13 +303,13 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
299
303
  * @summary Retrieve the payment
300
304
  * @param {string} code
301
305
  * @param {string} code2 Unique identifier for the object.
302
- * @param {string} expand Fields to expand response by
303
306
  * @param {string} [authorization] Bearer Token
307
+ * @param {string} [expand] Fields to expand response by
304
308
  * @param {*} [options] Override http request option.
305
309
  * @throws {RequiredError}
306
310
  */
307
- getPayment(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
308
- return localVarFp.getPayment(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
311
+ getPayment(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentResponseClass> {
312
+ return localVarFp.getPayment(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
309
313
  },
310
314
  /**
311
315
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -321,7 +325,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
321
325
  * @param {*} [options] Override http request option.
322
326
  * @throws {RequiredError}
323
327
  */
324
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
328
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentsResponseClass> {
325
329
  return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
326
330
  },
327
331
  };
@@ -376,18 +380,18 @@ export interface PaymentsApiGetPaymentRequest {
376
380
  readonly code2: string
377
381
 
378
382
  /**
379
- * Fields to expand response by
383
+ * Bearer Token
380
384
  * @type {string}
381
385
  * @memberof PaymentsApiGetPayment
382
386
  */
383
- readonly expand: string
387
+ readonly authorization?: string
384
388
 
385
389
  /**
386
- * Bearer Token
390
+ * Fields to expand response by
387
391
  * @type {string}
388
392
  * @memberof PaymentsApiGetPayment
389
393
  */
390
- readonly authorization?: string
394
+ readonly expand?: string
391
395
  }
392
396
 
393
397
  /**
@@ -481,7 +485,7 @@ export class PaymentsApi extends BaseAPI {
481
485
  * @memberof PaymentsApi
482
486
  */
483
487
  public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
484
- return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
488
+ return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
485
489
  }
486
490
 
487
491
  /**
@@ -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
@@ -84,18 +84,16 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
84
84
  *
85
85
  * @param {string} code
86
86
  * @param {string} code2 Unique identifier for the object.
87
- * @param {string} expand Fields to expand response by
88
87
  * @param {string} [authorization] Bearer Token
88
+ * @param {string} [expand] Fields to expand response by
89
89
  * @param {*} [options] Override http request option.
90
90
  * @throws {RequiredError}
91
91
  */
92
- getRefund: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ getRefund: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
93
  // verify required parameter 'code' is not null or undefined
94
94
  assertParamExists('getRefund', 'code', code)
95
95
  // verify required parameter 'code2' is not null or undefined
96
96
  assertParamExists('getRefund', 'code2', code2)
97
- // verify required parameter 'expand' is not null or undefined
98
- assertParamExists('getRefund', 'expand', expand)
99
97
  const localVarPath = `/paymentservice/v1/refunds/{code}`
100
98
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
101
99
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -238,13 +236,13 @@ export const RefundsApiFp = function(configuration?: Configuration) {
238
236
  *
239
237
  * @param {string} code
240
238
  * @param {string} code2 Unique identifier for the object.
241
- * @param {string} expand Fields to expand response by
242
239
  * @param {string} [authorization] Bearer Token
240
+ * @param {string} [expand] Fields to expand response by
243
241
  * @param {*} [options] Override http request option.
244
242
  * @throws {RequiredError}
245
243
  */
246
- async getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
247
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options);
244
+ async getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>> {
245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options);
248
246
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
249
247
  },
250
248
  /**
@@ -288,13 +286,13 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
288
286
  *
289
287
  * @param {string} code
290
288
  * @param {string} code2 Unique identifier for the object.
291
- * @param {string} expand Fields to expand response by
292
289
  * @param {string} [authorization] Bearer Token
290
+ * @param {string} [expand] Fields to expand response by
293
291
  * @param {*} [options] Override http request option.
294
292
  * @throws {RequiredError}
295
293
  */
296
- getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
297
- return localVarFp.getRefund(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
294
+ getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass> {
295
+ return localVarFp.getRefund(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
298
296
  },
299
297
  /**
300
298
  *
@@ -357,18 +355,18 @@ export interface RefundsApiGetRefundRequest {
357
355
  readonly code2: string
358
356
 
359
357
  /**
360
- * Fields to expand response by
358
+ * Bearer Token
361
359
  * @type {string}
362
360
  * @memberof RefundsApiGetRefund
363
361
  */
364
- readonly expand: string
362
+ readonly authorization?: string
365
363
 
366
364
  /**
367
- * Bearer Token
365
+ * Fields to expand response by
368
366
  * @type {string}
369
367
  * @memberof RefundsApiGetRefund
370
368
  */
371
- readonly authorization?: string
369
+ readonly expand?: string
372
370
  }
373
371
 
374
372
  /**
@@ -460,7 +458,7 @@ export class RefundsApi extends BaseAPI {
460
458
  * @memberof RefundsApi
461
459
  */
462
460
  public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
463
- return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
461
+ return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
464
462
  }
465
463
 
466
464
  /**
@@ -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
@@ -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
package/api.ts CHANGED
@@ -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
package/base.ts CHANGED
@@ -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
package/common.ts CHANGED
@@ -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
@@ -140,7 +140,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
140
140
  /* eslint-disable */
141
141
  /**
142
142
  * Emil Payment Service
143
- * 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.
143
+ * 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.
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
146
  * Contact: kontakt@emil.de
package/configuration.ts CHANGED
@@ -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