@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
@@ -20,32 +20,61 @@ git_push.sh
20
20
  index.ts
21
21
  models/bank-account-class.ts
22
22
  models/bank-transaction-response-class.ts
23
+ models/billing-profile-dto.ts
24
+ models/billing-profile-limited-response-dto.ts
25
+ models/complete-braintree-payment-setup-request-dto.ts
26
+ models/complete-payment-setup-request-dto.ts
27
+ models/complete-payment-setup-response-class.ts
28
+ models/complete-stripe-payment-setup-request-dto.ts
23
29
  models/create-bank-account-request-dto.ts
30
+ models/create-payment-method-response-class.ts
24
31
  models/create-payment-reminder-request-dto.ts
25
32
  models/create-payment-request-dto.ts
33
+ models/create-payment-response-class.ts
34
+ models/create-psp-payment-method-request-dto.ts
26
35
  models/create-refund-request-dto.ts
27
36
  models/create-refund-response-class.ts
28
37
  models/create-tenant-bank-account-request-dto.ts
29
38
  models/create-tenant-bank-account-response-class.ts
30
39
  models/deactivate-payment-reminder-request-dto.ts
40
+ models/deactivate-payment-reminder-response-class.ts
31
41
  models/get-bank-account-response-class.ts
32
42
  models/get-bank-transactions-response-class.ts
43
+ models/get-payment-method-response-class.ts
44
+ models/get-payment-response-class.ts
33
45
  models/get-refund-response-class.ts
34
46
  models/get-request-dto.ts
35
47
  models/get-tenant-bank-account-response-class.ts
36
48
  models/index.ts
49
+ models/initiate-braintree-payment-setup-request-dto.ts
50
+ models/initiate-braintree-payment-setup-response-class.ts
51
+ models/initiate-payment-setup-request-dto.ts
52
+ models/initiate-payment-setup-response-class.ts
53
+ models/initiate-stripe-payment-setup-request-dto.ts
54
+ models/initiate-stripe-payment-setup-response-class.ts
37
55
  models/inline-response200.ts
38
56
  models/inline-response503.ts
39
57
  models/link-bank-transaction-request-dto-rest.ts
58
+ models/list-bank-accounts-response-class.ts
40
59
  models/list-bank-transactions-response-class.ts
60
+ models/list-payment-methods-response-class.ts
61
+ models/list-payment-reminders-response-class.ts
62
+ models/list-payments-response-class.ts
41
63
  models/list-refunds-response-class.ts
42
64
  models/list-tenant-bank-account-response-class.ts
65
+ models/payment-class.ts
66
+ models/payment-method-class.ts
67
+ models/payment-reminder-class.ts
43
68
  models/primary-bank-account-response-class.ts
44
69
  models/refund-class.ts
70
+ models/sepa-direct-dto.ts
45
71
  models/set-primary-bank-account-request-dto-rest.ts
72
+ models/symphony-profile-limited-response-dto.ts
46
73
  models/tenant-bank-account-response-class.ts
47
74
  models/transaction-class.ts
48
75
  models/unlink-bank-transaction-request-dto-rest.ts
76
+ models/update-bank-account-request-dto-rest.ts
77
+ models/update-bank-account-request-dto.ts
49
78
  models/update-tenant-bank-account-rest-request-dto.ts
50
79
  models/validate-pspconfig-request-dto.ts
51
80
  package.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk@1.4.1-beta.17 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.19 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.4.1-beta.17
24
+ yarn add @emilgroup/payment-sdk@1.4.1-beta.19
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -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
@@ -25,7 +25,11 @@ import { CreateBankAccountRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { GetBankAccountResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { ListBankAccountsResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { SetPrimaryBankAccountRequestDtoRest } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateBankAccountRequestDtoRest } from '../models';
29
33
  /**
30
34
  * BankAccountsApi - axios parameter creator
31
35
  * @export
@@ -246,8 +250,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
246
250
  };
247
251
  },
248
252
  /**
249
- * Set Primary Bank account
250
- * @summary Set Primary Bank account
253
+ * Set primary bank account
254
+ * @summary Set primary bank account
251
255
  * @param {string} code Code of the bank account to set primary
252
256
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
253
257
  * @param {string} [authorization] Bearer Token
@@ -291,6 +295,57 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
291
295
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
292
296
  localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
293
297
 
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
303
+ /**
304
+ * Update a bank account by code
305
+ * @summary Update the Update bank account
306
+ * @param {string} code Unique identifier for the object.
307
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
308
+ * @param {string} [authorization] Bearer Token
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
313
+ // verify required parameter 'code' is not null or undefined
314
+ assertParamExists('updateBankAccount', 'code', code)
315
+ // verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
316
+ assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
317
+ const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
318
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
321
+ let baseOptions;
322
+ let baseAccessToken;
323
+ if (configuration) {
324
+ baseOptions = configuration.baseOptions;
325
+ baseAccessToken = configuration.accessToken;
326
+ }
327
+
328
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
329
+ const localVarHeaderParameter = {} as any;
330
+ const localVarQueryParameter = {} as any;
331
+
332
+ // authentication bearer required
333
+ // http bearer authentication required
334
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
335
+
336
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
+ }
339
+
340
+
341
+
342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
343
+
344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
347
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
348
+
294
349
  return {
295
350
  url: toPathString(localVarUrlObj),
296
351
  options: localVarRequestOptions,
@@ -314,7 +369,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
314
369
  * @param {*} [options] Override http request option.
315
370
  * @throws {RequiredError}
316
371
  */
317
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
372
+ async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
318
373
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
319
374
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
320
375
  },
@@ -356,23 +411,36 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
356
411
  * @param {*} [options] Override http request option.
357
412
  * @throws {RequiredError}
358
413
  */
359
- async listBankAccounts(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>> {
414
+ async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
360
415
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
361
416
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
417
  },
363
418
  /**
364
- * Set Primary Bank account
365
- * @summary Set Primary Bank account
419
+ * Set primary bank account
420
+ * @summary Set primary bank account
366
421
  * @param {string} code Code of the bank account to set primary
367
422
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
368
423
  * @param {string} [authorization] Bearer Token
369
424
  * @param {*} [options] Override http request option.
370
425
  * @throws {RequiredError}
371
426
  */
372
- async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
427
+ async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
373
428
  const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
374
429
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
430
  },
431
+ /**
432
+ * Update a bank account by code
433
+ * @summary Update the Update bank account
434
+ * @param {string} code Unique identifier for the object.
435
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
436
+ * @param {string} [authorization] Bearer Token
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
442
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
443
+ },
376
444
  }
377
445
  };
378
446
 
@@ -391,7 +459,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
391
459
  * @param {*} [options] Override http request option.
392
460
  * @throws {RequiredError}
393
461
  */
394
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
462
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
395
463
  return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
396
464
  },
397
465
  /**
@@ -430,21 +498,33 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
430
498
  * @param {*} [options] Override http request option.
431
499
  * @throws {RequiredError}
432
500
  */
433
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
501
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
434
502
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
435
503
  },
436
504
  /**
437
- * Set Primary Bank account
438
- * @summary Set Primary Bank account
505
+ * Set primary bank account
506
+ * @summary Set primary bank account
439
507
  * @param {string} code Code of the bank account to set primary
440
508
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
441
509
  * @param {string} [authorization] Bearer Token
442
510
  * @param {*} [options] Override http request option.
443
511
  * @throws {RequiredError}
444
512
  */
445
- setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
513
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
446
514
  return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
447
515
  },
516
+ /**
517
+ * Update a bank account by code
518
+ * @summary Update the Update bank account
519
+ * @param {string} code Unique identifier for the object.
520
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
521
+ * @param {string} [authorization] Bearer Token
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
526
+ return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
527
+ },
448
528
  };
449
529
  };
450
530
 
@@ -602,6 +682,34 @@ export interface BankAccountsApiSetPrimaryBankAccountRequest {
602
682
  readonly authorization?: string
603
683
  }
604
684
 
685
+ /**
686
+ * Request parameters for updateBankAccount operation in BankAccountsApi.
687
+ * @export
688
+ * @interface BankAccountsApiUpdateBankAccountRequest
689
+ */
690
+ export interface BankAccountsApiUpdateBankAccountRequest {
691
+ /**
692
+ * Unique identifier for the object.
693
+ * @type {string}
694
+ * @memberof BankAccountsApiUpdateBankAccount
695
+ */
696
+ readonly code: string
697
+
698
+ /**
699
+ *
700
+ * @type {UpdateBankAccountRequestDtoRest}
701
+ * @memberof BankAccountsApiUpdateBankAccount
702
+ */
703
+ readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
704
+
705
+ /**
706
+ * Bearer Token
707
+ * @type {string}
708
+ * @memberof BankAccountsApiUpdateBankAccount
709
+ */
710
+ readonly authorization?: string
711
+ }
712
+
605
713
  /**
606
714
  * BankAccountsApi - object-oriented interface
607
715
  * @export
@@ -658,8 +766,8 @@ export class BankAccountsApi extends BaseAPI {
658
766
  }
659
767
 
660
768
  /**
661
- * Set Primary Bank account
662
- * @summary Set Primary Bank account
769
+ * Set primary bank account
770
+ * @summary Set primary bank account
663
771
  * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
664
772
  * @param {*} [options] Override http request option.
665
773
  * @throws {RequiredError}
@@ -668,4 +776,16 @@ export class BankAccountsApi extends BaseAPI {
668
776
  public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
669
777
  return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
670
778
  }
779
+
780
+ /**
781
+ * Update a bank account by code
782
+ * @summary Update the Update bank account
783
+ * @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ * @memberof BankAccountsApi
787
+ */
788
+ public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
789
+ return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
790
+ }
671
791
  }
@@ -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
@@ -376,7 +376,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
376
376
  * @param {*} [options] Override http request option.
377
377
  * @throws {RequiredError}
378
378
  */
379
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
379
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
380
380
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
381
381
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
382
  },
@@ -452,7 +452,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
452
452
  * @param {*} [options] Override http request option.
453
453
  * @throws {RequiredError}
454
454
  */
455
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void> {
455
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
456
456
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
457
457
  },
458
458
  /**
@@ -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
@@ -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 { CreatePaymentMethodResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePspPaymentMethodRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { GetPaymentMethodResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPaymentMethodsResponseClass } from '../models';
23
31
  /**
24
32
  * PaymentMethodsApi - axios parameter creator
25
33
  * @export
@@ -29,14 +37,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
29
37
  /**
30
38
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
31
39
  * @summary Create the payment method
32
- * @param {object} body
40
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
33
41
  * @param {string} [authorization] Bearer Token
34
42
  * @param {*} [options] Override http request option.
35
43
  * @throws {RequiredError}
36
44
  */
37
- createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
- // verify required parameter 'body' is not null or undefined
39
- assertParamExists('createPaymentMethod', 'body', body)
45
+ createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
47
+ assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
40
48
  const localVarPath = `/paymentservice/v1/payment-methods`;
41
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -66,7 +74,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
66
74
  setSearchParams(localVarUrlObj, localVarQueryParameter);
67
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
70
78
 
71
79
  return {
72
80
  url: toPathString(localVarUrlObj),
@@ -78,18 +86,16 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
78
86
  * @summary Retrieve the payment method
79
87
  * @param {string} code
80
88
  * @param {string} code2 Unique identifier for the object.
81
- * @param {string} expand Fields to expand response by
82
89
  * @param {string} [authorization] Bearer Token
90
+ * @param {string} [expand] Fields to expand response by
83
91
  * @param {*} [options] Override http request option.
84
92
  * @throws {RequiredError}
85
93
  */
86
- getPaymentMethod: async (code: string, code2: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
94
+ getPaymentMethod: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
87
95
  // verify required parameter 'code' is not null or undefined
88
96
  assertParamExists('getPaymentMethod', 'code', code)
89
97
  // verify required parameter 'code2' is not null or undefined
90
98
  assertParamExists('getPaymentMethod', 'code2', code2)
91
- // verify required parameter 'expand' is not null or undefined
92
- assertParamExists('getPaymentMethod', 'expand', expand)
93
99
  const localVarPath = `/paymentservice/v1/payment-methods/{code}`
94
100
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
95
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -221,13 +227,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
221
227
  /**
222
228
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
223
229
  * @summary Create the payment method
224
- * @param {object} body
230
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
225
231
  * @param {string} [authorization] Bearer Token
226
232
  * @param {*} [options] Override http request option.
227
233
  * @throws {RequiredError}
228
234
  */
229
- async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
230
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
235
+ async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
236
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
231
237
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
232
238
  },
233
239
  /**
@@ -235,13 +241,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
235
241
  * @summary Retrieve the payment method
236
242
  * @param {string} code
237
243
  * @param {string} code2 Unique identifier for the object.
238
- * @param {string} expand Fields to expand response by
239
244
  * @param {string} [authorization] Bearer Token
245
+ * @param {string} [expand] Fields to expand response by
240
246
  * @param {*} [options] Override http request option.
241
247
  * @throws {RequiredError}
242
248
  */
243
- async getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options);
249
+ async getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
250
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, authorization, expand, options);
245
251
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
246
252
  },
247
253
  /**
@@ -258,7 +264,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
258
264
  * @param {*} [options] Override http request option.
259
265
  * @throws {RequiredError}
260
266
  */
261
- async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
267
+ async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
262
268
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
263
269
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
264
270
  },
@@ -275,26 +281,26 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
275
281
  /**
276
282
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
277
283
  * @summary Create the payment method
278
- * @param {object} body
284
+ * @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
279
285
  * @param {string} [authorization] Bearer Token
280
286
  * @param {*} [options] Override http request option.
281
287
  * @throws {RequiredError}
282
288
  */
283
- createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
284
- return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
289
+ createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
290
+ return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
285
291
  },
286
292
  /**
287
293
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
288
294
  * @summary Retrieve the payment method
289
295
  * @param {string} code
290
296
  * @param {string} code2 Unique identifier for the object.
291
- * @param {string} expand Fields to expand response by
292
297
  * @param {string} [authorization] Bearer Token
298
+ * @param {string} [expand] Fields to expand response by
293
299
  * @param {*} [options] Override http request option.
294
300
  * @throws {RequiredError}
295
301
  */
296
- getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
297
- return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then((request) => request(axios, basePath));
302
+ getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
303
+ return localVarFp.getPaymentMethod(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
298
304
  },
299
305
  /**
300
306
  * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -310,7 +316,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
310
316
  * @param {*} [options] Override http request option.
311
317
  * @throws {RequiredError}
312
318
  */
313
- listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
319
+ listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
314
320
  return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
315
321
  },
316
322
  };
@@ -324,10 +330,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
324
330
  export interface PaymentMethodsApiCreatePaymentMethodRequest {
325
331
  /**
326
332
  *
327
- * @type {object}
333
+ * @type {CreatePspPaymentMethodRequestDto}
328
334
  * @memberof PaymentMethodsApiCreatePaymentMethod
329
335
  */
330
- readonly body: object
336
+ readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
331
337
 
332
338
  /**
333
339
  * Bearer Token
@@ -358,18 +364,18 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
358
364
  readonly code2: string
359
365
 
360
366
  /**
361
- * Fields to expand response by
367
+ * Bearer Token
362
368
  * @type {string}
363
369
  * @memberof PaymentMethodsApiGetPaymentMethod
364
370
  */
365
- readonly expand: string
371
+ readonly authorization?: string
366
372
 
367
373
  /**
368
- * Bearer Token
374
+ * Fields to expand response by
369
375
  * @type {string}
370
376
  * @memberof PaymentMethodsApiGetPaymentMethod
371
377
  */
372
- readonly authorization?: string
378
+ readonly expand?: string
373
379
  }
374
380
 
375
381
  /**
@@ -451,7 +457,7 @@ export class PaymentMethodsApi extends BaseAPI {
451
457
  * @memberof PaymentMethodsApi
452
458
  */
453
459
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
454
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
460
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
455
461
  }
456
462
 
457
463
  /**
@@ -463,7 +469,7 @@ export class PaymentMethodsApi extends BaseAPI {
463
469
  * @memberof PaymentMethodsApi
464
470
  */
465
471
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
466
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
472
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
467
473
  }
468
474
 
469
475
  /**