@emilgroup/payment-sdk-node 1.12.1 → 1.13.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.openapi-generator/FILES +0 -30
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +17 -21
  4. package/api/bank-transaction-api.ts +134 -42
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +38 -42
  7. package/api/payment-reminders-api.ts +9 -13
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +26 -28
  10. package/api/refunds-api.ts +16 -14
  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 +13 -15
  18. package/dist/api/bank-accounts-api.js +13 -13
  19. package/dist/api/bank-transaction-api.d.ts +86 -33
  20. package/dist/api/bank-transaction-api.js +122 -29
  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 -32
  24. package/dist/api/payment-methods-api.js +29 -25
  25. package/dist/api/payment-reminders-api.d.ts +13 -15
  26. package/dist/api/payment-reminders-api.js +1 -1
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +22 -25
  30. package/dist/api/payments-api.js +17 -13
  31. package/dist/api/refunds-api.d.ts +11 -11
  32. package/dist/api/refunds-api.js +12 -10
  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-transaction-response-class.d.ts +1 -1
  48. package/dist/models/bank-transaction-response-class.js +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +4 -4
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/create-refund-request-dto.d.ts +1 -1
  54. package/dist/models/create-refund-request-dto.js +1 -1
  55. package/dist/models/create-refund-response-class.d.ts +1 -1
  56. package/dist/models/create-refund-response-class.js +1 -1
  57. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  58. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  59. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  60. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  61. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  62. package/dist/models/get-bank-transactions-response-class.js +1 -1
  63. package/dist/models/get-refund-response-class.d.ts +1 -1
  64. package/dist/models/get-refund-response-class.js +1 -1
  65. package/dist/models/get-request-dto.d.ts +2 -2
  66. package/dist/models/get-request-dto.js +1 -1
  67. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  68. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  69. package/dist/models/index.d.ts +0 -30
  70. package/dist/models/index.js +0 -30
  71. package/dist/models/inline-response200.d.ts +1 -1
  72. package/dist/models/inline-response200.js +1 -1
  73. package/dist/models/inline-response503.d.ts +1 -1
  74. package/dist/models/inline-response503.js +1 -1
  75. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  76. package/dist/models/list-bank-transactions-response-class.js +1 -1
  77. package/dist/models/list-refunds-response-class.d.ts +1 -1
  78. package/dist/models/list-refunds-response-class.js +1 -1
  79. package/dist/models/refund-class.d.ts +1 -1
  80. package/dist/models/refund-class.js +1 -1
  81. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  82. package/dist/models/tenant-bank-account-response-class.js +1 -1
  83. package/dist/models/transaction-class.d.ts +1 -1
  84. package/dist/models/transaction-class.js +1 -1
  85. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  86. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  87. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  88. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  89. package/index.ts +1 -1
  90. package/models/bank-transaction-response-class.ts +1 -1
  91. package/models/create-payment-reminder-request-dto.ts +1 -1
  92. package/models/create-payment-request-dto.ts +4 -4
  93. package/models/create-refund-request-dto.ts +1 -1
  94. package/models/create-refund-response-class.ts +1 -1
  95. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  96. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  97. package/models/get-bank-transactions-response-class.ts +1 -1
  98. package/models/get-refund-response-class.ts +1 -1
  99. package/models/get-request-dto.ts +2 -2
  100. package/models/get-tenant-bank-account-response-class.ts +1 -1
  101. package/models/index.ts +0 -30
  102. package/models/inline-response200.ts +1 -1
  103. package/models/inline-response503.ts +1 -1
  104. package/models/list-bank-transactions-response-class.ts +1 -1
  105. package/models/list-refunds-response-class.ts +1 -1
  106. package/models/refund-class.ts +1 -1
  107. package/models/tenant-bank-account-response-class.ts +1 -1
  108. package/models/transaction-class.ts +1 -1
  109. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  110. package/models/validate-pspconfig-request-dto.ts +2 -12
  111. package/package.json +1 -1
  112. package/dist/models/bank-account-class.d.ts +0 -54
  113. package/dist/models/bank-account-class.js +0 -15
  114. package/dist/models/billing-profile-dto.d.ts +0 -38
  115. package/dist/models/billing-profile-dto.js +0 -15
  116. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  117. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  118. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  119. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  120. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  121. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  122. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  123. package/dist/models/complete-payment-setup-response-class.js +0 -15
  124. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  125. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  126. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  127. package/dist/models/create-bank-account-request-dto.js +0 -15
  128. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  129. package/dist/models/create-payment-method-response-class.js +0 -15
  130. package/dist/models/create-payment-response-class.d.ts +0 -25
  131. package/dist/models/create-payment-response-class.js +0 -15
  132. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  133. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  134. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  135. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  136. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  137. package/dist/models/get-payment-method-response-class.js +0 -15
  138. package/dist/models/get-payment-response-class.d.ts +0 -25
  139. package/dist/models/get-payment-response-class.js +0 -15
  140. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  141. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  142. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  143. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  144. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  145. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  146. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  147. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  148. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  149. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  150. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  151. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  152. package/dist/models/link-bank-transaction-request-dto.d.ts +0 -30
  153. package/dist/models/link-bank-transaction-request-dto.js +0 -15
  154. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  155. package/dist/models/list-bank-accounts-response-class.js +0 -15
  156. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  157. package/dist/models/list-payment-methods-response-class.js +0 -15
  158. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  159. package/dist/models/list-payment-reminders-response-class.js +0 -15
  160. package/dist/models/list-payments-response-class.d.ts +0 -31
  161. package/dist/models/list-payments-response-class.js +0 -15
  162. package/dist/models/payment-class.d.ts +0 -103
  163. package/dist/models/payment-class.js +0 -15
  164. package/dist/models/payment-method-class.d.ts +0 -66
  165. package/dist/models/payment-method-class.js +0 -15
  166. package/dist/models/payment-reminder-class.d.ts +0 -112
  167. package/dist/models/payment-reminder-class.js +0 -36
  168. package/dist/models/sepa-direct-dto.d.ts +0 -24
  169. package/dist/models/sepa-direct-dto.js +0 -15
  170. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  171. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  172. package/models/bank-account-class.ts +0 -60
  173. package/models/billing-profile-dto.ts +0 -44
  174. package/models/billing-profile-limited-response-dto.ts +0 -60
  175. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  176. package/models/complete-payment-setup-request-dto.ts +0 -38
  177. package/models/complete-payment-setup-response-class.ts +0 -31
  178. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  179. package/models/create-bank-account-request-dto.ts +0 -36
  180. package/models/create-payment-method-response-class.ts +0 -31
  181. package/models/create-payment-response-class.ts +0 -31
  182. package/models/create-psp-payment-method-request-dto.ts +0 -70
  183. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  184. package/models/get-payment-method-response-class.ts +0 -31
  185. package/models/get-payment-response-class.ts +0 -31
  186. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  187. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  188. package/models/initiate-payment-setup-request-dto.ts +0 -50
  189. package/models/initiate-payment-setup-response-class.ts +0 -38
  190. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  191. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  192. package/models/link-bank-transaction-request-dto.ts +0 -36
  193. package/models/list-bank-accounts-response-class.ts +0 -37
  194. package/models/list-payment-methods-response-class.ts +0 -37
  195. package/models/list-payment-reminders-response-class.ts +0 -37
  196. package/models/list-payments-response-class.ts +0 -37
  197. package/models/payment-class.ts +0 -109
  198. package/models/payment-method-class.ts +0 -72
  199. package/models/payment-reminder-class.ts +0 -122
  200. package/models/sepa-direct-dto.ts +0 -30
  201. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -18,53 +18,23 @@ common.ts
18
18
  configuration.ts
19
19
  git_push.sh
20
20
  index.ts
21
- models/bank-account-class.ts
22
21
  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
29
- models/create-bank-account-request-dto.ts
30
- models/create-payment-method-response-class.ts
31
22
  models/create-payment-reminder-request-dto.ts
32
23
  models/create-payment-request-dto.ts
33
- models/create-payment-response-class.ts
34
- models/create-psp-payment-method-request-dto.ts
35
24
  models/create-refund-request-dto.ts
36
25
  models/create-refund-response-class.ts
37
26
  models/create-tenant-bank-account-request-dto.ts
38
27
  models/deactivate-payment-reminder-request-dto.ts
39
- models/deactivate-payment-reminder-response-class.ts
40
28
  models/get-bank-transactions-response-class.ts
41
- models/get-payment-method-response-class.ts
42
- models/get-payment-response-class.ts
43
29
  models/get-refund-response-class.ts
44
30
  models/get-request-dto.ts
45
31
  models/get-tenant-bank-account-response-class.ts
46
32
  models/index.ts
47
- models/initiate-braintree-payment-setup-request-dto.ts
48
- models/initiate-braintree-payment-setup-response-class.ts
49
- models/initiate-payment-setup-request-dto.ts
50
- models/initiate-payment-setup-response-class.ts
51
- models/initiate-stripe-payment-setup-request-dto.ts
52
- models/initiate-stripe-payment-setup-response-class.ts
53
33
  models/inline-response200.ts
54
34
  models/inline-response503.ts
55
- models/link-bank-transaction-request-dto.ts
56
- models/list-bank-accounts-response-class.ts
57
35
  models/list-bank-transactions-response-class.ts
58
- models/list-payment-methods-response-class.ts
59
- models/list-payment-reminders-response-class.ts
60
- models/list-payments-response-class.ts
61
36
  models/list-refunds-response-class.ts
62
- models/payment-class.ts
63
- models/payment-method-class.ts
64
- models/payment-reminder-class.ts
65
37
  models/refund-class.ts
66
- models/sepa-direct-dto.ts
67
- models/symphony-profile-limited-response-dto.ts
68
38
  models/tenant-bank-account-response-class.ts
69
39
  models/transaction-class.ts
70
40
  models/update-tenant-bank-account-rest-request-dto.ts
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-node@1.12.1 --save
20
+ npm install @emilgroup/payment-sdk-node@1.13.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.12.1
24
+ yarn add @emilgroup/payment-sdk-node@1.13.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -5,7 +5,7 @@
5
5
  * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -20,10 +20,6 @@ import { Configuration } from '../configuration';
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateBankAccountRequestDto } from '../models';
25
- // @ts-ignore
26
- import { ListBankAccountsResponseClass } from '../models';
27
23
  // URLSearchParams not necessarily used
28
24
  // @ts-ignore
29
25
  import { URL, URLSearchParams } from 'url';
@@ -37,14 +33,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
37
33
  /**
38
34
  * Creates a bank account for a specified account.
39
35
  * @summary Create a bank account
40
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
36
+ * @param {object} body
41
37
  * @param {string} [authorization] Bearer Token
42
38
  * @param {*} [options] Override http request option.
43
39
  * @throws {RequiredError}
44
40
  */
45
- createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
47
- assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
41
+ createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'body' is not null or undefined
43
+ assertParamExists('createBankAccount', 'body', body)
48
44
  const localVarPath = `/paymentservice/v1/bank-accounts`;
49
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,7 +70,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
74
70
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
71
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
72
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
73
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
78
74
 
79
75
  return {
80
76
  url: toPathString(localVarUrlObj),
@@ -165,13 +161,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
165
161
  /**
166
162
  * Creates a bank account for a specified account.
167
163
  * @summary Create a bank account
168
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
164
+ * @param {object} body
169
165
  * @param {string} [authorization] Bearer Token
170
166
  * @param {*} [options] Override http request option.
171
167
  * @throws {RequiredError}
172
168
  */
173
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
174
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
169
+ async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
175
171
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
176
172
  },
177
173
  /**
@@ -187,7 +183,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
187
183
  * @param {*} [options] Override http request option.
188
184
  * @throws {RequiredError}
189
185
  */
190
- async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
186
+ async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
191
187
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
192
188
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
193
189
  },
@@ -204,13 +200,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
204
200
  /**
205
201
  * Creates a bank account for a specified account.
206
202
  * @summary Create a bank account
207
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
203
+ * @param {object} body
208
204
  * @param {string} [authorization] Bearer Token
209
205
  * @param {*} [options] Override http request option.
210
206
  * @throws {RequiredError}
211
207
  */
212
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
213
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
208
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
209
+ return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
214
210
  },
215
211
  /**
216
212
  * Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
@@ -225,7 +221,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
225
221
  * @param {*} [options] Override http request option.
226
222
  * @throws {RequiredError}
227
223
  */
228
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
224
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
229
225
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
230
226
  },
231
227
  };
@@ -239,10 +235,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
239
235
  export interface BankAccountsApiCreateBankAccountRequest {
240
236
  /**
241
237
  *
242
- * @type {CreateBankAccountRequestDto}
238
+ * @type {object}
243
239
  * @memberof BankAccountsApiCreateBankAccount
244
240
  */
245
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto
241
+ readonly body: object
246
242
 
247
243
  /**
248
244
  * Bearer Token
@@ -324,7 +320,7 @@ export class BankAccountsApi extends BaseAPI {
324
320
  * @memberof BankAccountsApi
325
321
  */
326
322
  public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
327
- return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
323
+ return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
328
324
  }
329
325
 
330
326
  /**
@@ -5,7 +5,7 @@
5
5
  * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -23,8 +23,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { GetBankTransactionsResponseClass } from '../models';
25
25
  // @ts-ignore
26
- import { LinkBankTransactionRequestDto } from '../models';
27
- // @ts-ignore
28
26
  import { ListBankTransactionsResponseClass } from '../models';
29
27
  // URLSearchParams not necessarily used
30
28
  // @ts-ignore
@@ -37,7 +35,8 @@ const FormData = require('form-data');
37
35
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
38
36
  return {
39
37
  /**
40
- *
38
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
39
+ * @summary Retrieve the Bank Transaction
41
40
  * @param {string} code
42
41
  * @param {string} [authorization] Bearer Token
43
42
  * @param {string} [expand] Expand the response with additional entities
@@ -87,7 +86,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
87
86
  },
88
87
  /**
89
88
  * Import bank transactions from a swift MT940 file
90
- * @summary Create the Bank Transactions
89
+ * @summary Create the bank transactions
91
90
  * @param {string} [authorization] Bearer Token
92
91
  * @param {any} [file]
93
92
  * @param {*} [options] Override http request option.
@@ -138,17 +137,14 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
138
137
  /**
139
138
  * Links a bank transaction with an invoice
140
139
  * @summary Link Bank Transaction
141
- * @param {string} code Code of the bank transcation to link
142
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
140
+ * @param {string} code Code of the bank transaction to link
143
141
  * @param {string} [authorization] Bearer Token
144
142
  * @param {*} [options] Override http request option.
145
143
  * @throws {RequiredError}
146
144
  */
147
- linkBankTransaction: async (code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
146
  // verify required parameter 'code' is not null or undefined
149
147
  assertParamExists('linkBankTransaction', 'code', code)
150
- // verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
151
- assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto)
152
148
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
153
149
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
154
150
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -174,12 +170,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
174
170
 
175
171
 
176
172
 
177
- localVarHeaderParameter['Content-Type'] = 'application/json';
178
-
179
173
  setSearchParams(localVarUrlObj, localVarQueryParameter);
180
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
182
- localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDto, localVarRequestOptions, configuration)
183
176
 
184
177
  return {
185
178
  url: toPathString(localVarUrlObj),
@@ -187,7 +180,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
187
180
  };
188
181
  },
189
182
  /**
190
- *
183
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
184
+ * @summary List bank transactions
191
185
  * @param {string} [authorization] Bearer Token
192
186
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
193
187
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -247,6 +241,51 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
247
241
 
248
242
 
249
243
 
244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
247
+
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ },
253
+ /**
254
+ * Unlinks an already linked bank transaction
255
+ * @summary Unlink Bank Transaction
256
+ * @param {string} code Code of the bank transaction to unlink
257
+ * @param {string} [authorization] Bearer Token
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
262
+ // verify required parameter 'code' is not null or undefined
263
+ assertParamExists('unlinkBankTransaction', 'code', code)
264
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
265
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
268
+ let baseOptions;
269
+ let baseAccessToken;
270
+ if (configuration) {
271
+ baseOptions = configuration.baseOptions;
272
+ baseAccessToken = configuration.accessToken;
273
+ }
274
+
275
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
276
+ const localVarHeaderParameter = {} as any;
277
+ const localVarQueryParameter = {} as any;
278
+
279
+ // authentication bearer required
280
+ // http bearer authentication required
281
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
282
+
283
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
+ }
286
+
287
+
288
+
250
289
  setSearchParams(localVarUrlObj, localVarQueryParameter);
251
290
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
291
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -267,7 +306,8 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
267
306
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
268
307
  return {
269
308
  /**
270
- *
309
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
310
+ * @summary Retrieve the Bank Transaction
271
311
  * @param {string} code
272
312
  * @param {string} [authorization] Bearer Token
273
313
  * @param {string} [expand] Expand the response with additional entities
@@ -280,7 +320,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
280
320
  },
281
321
  /**
282
322
  * Import bank transactions from a swift MT940 file
283
- * @summary Create the Bank Transactions
323
+ * @summary Create the bank transactions
284
324
  * @param {string} [authorization] Bearer Token
285
325
  * @param {any} [file]
286
326
  * @param {*} [options] Override http request option.
@@ -293,18 +333,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
293
333
  /**
294
334
  * Links a bank transaction with an invoice
295
335
  * @summary Link Bank Transaction
296
- * @param {string} code Code of the bank transcation to link
297
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
336
+ * @param {string} code Code of the bank transaction to link
298
337
  * @param {string} [authorization] Bearer Token
299
338
  * @param {*} [options] Override http request option.
300
339
  * @throws {RequiredError}
301
340
  */
302
- async linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
303
- const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options);
341
+ async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
342
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
304
343
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
305
344
  },
306
345
  /**
307
- *
346
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
347
+ * @summary List bank transactions
308
348
  * @param {string} [authorization] Bearer Token
309
349
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
310
350
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -315,10 +355,22 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
315
355
  * @param {*} [options] Override http request option.
316
356
  * @throws {RequiredError}
317
357
  */
318
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
358
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
319
359
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options);
320
360
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
361
  },
362
+ /**
363
+ * Unlinks an already linked bank transaction
364
+ * @summary Unlink Bank Transaction
365
+ * @param {string} code Code of the bank transaction to unlink
366
+ * @param {string} [authorization] Bearer Token
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
372
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
+ },
322
374
  }
323
375
  };
324
376
 
@@ -330,7 +382,8 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
330
382
  const localVarFp = BankTransactionApiFp(configuration)
331
383
  return {
332
384
  /**
333
- *
385
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
386
+ * @summary Retrieve the Bank Transaction
334
387
  * @param {string} code
335
388
  * @param {string} [authorization] Bearer Token
336
389
  * @param {string} [expand] Expand the response with additional entities
@@ -342,7 +395,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
342
395
  },
343
396
  /**
344
397
  * Import bank transactions from a swift MT940 file
345
- * @summary Create the Bank Transactions
398
+ * @summary Create the bank transactions
346
399
  * @param {string} [authorization] Bearer Token
347
400
  * @param {any} [file]
348
401
  * @param {*} [options] Override http request option.
@@ -354,17 +407,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
354
407
  /**
355
408
  * Links a bank transaction with an invoice
356
409
  * @summary Link Bank Transaction
357
- * @param {string} code Code of the bank transcation to link
358
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
410
+ * @param {string} code Code of the bank transaction to link
359
411
  * @param {string} [authorization] Bearer Token
360
412
  * @param {*} [options] Override http request option.
361
413
  * @throws {RequiredError}
362
414
  */
363
- linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
364
- return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options).then((request) => request(axios, basePath));
415
+ linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
416
+ return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
365
417
  },
366
418
  /**
367
- *
419
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
420
+ * @summary List bank transactions
368
421
  * @param {string} [authorization] Bearer Token
369
422
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
370
423
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -375,9 +428,20 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
375
428
  * @param {*} [options] Override http request option.
376
429
  * @throws {RequiredError}
377
430
  */
378
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
431
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void> {
379
432
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
380
433
  },
434
+ /**
435
+ * Unlinks an already linked bank transaction
436
+ * @summary Unlink Bank Transaction
437
+ * @param {string} code Code of the bank transaction to unlink
438
+ * @param {string} [authorization] Bearer Token
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
443
+ return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
444
+ },
381
445
  };
382
446
  };
383
447
 
@@ -437,19 +501,12 @@ export interface BankTransactionApiImportBankTransactionsRequest {
437
501
  */
438
502
  export interface BankTransactionApiLinkBankTransactionRequest {
439
503
  /**
440
- * Code of the bank transcation to link
504
+ * Code of the bank transaction to link
441
505
  * @type {string}
442
506
  * @memberof BankTransactionApiLinkBankTransaction
443
507
  */
444
508
  readonly code: string
445
509
 
446
- /**
447
- *
448
- * @type {LinkBankTransactionRequestDto}
449
- * @memberof BankTransactionApiLinkBankTransaction
450
- */
451
- readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto
452
-
453
510
  /**
454
511
  * Bearer Token
455
512
  * @type {string}
@@ -514,6 +571,27 @@ export interface BankTransactionApiListBankTransactionsRequest {
514
571
  readonly expand?: string
515
572
  }
516
573
 
574
+ /**
575
+ * Request parameters for unlinkBankTransaction operation in BankTransactionApi.
576
+ * @export
577
+ * @interface BankTransactionApiUnlinkBankTransactionRequest
578
+ */
579
+ export interface BankTransactionApiUnlinkBankTransactionRequest {
580
+ /**
581
+ * Code of the bank transaction to unlink
582
+ * @type {string}
583
+ * @memberof BankTransactionApiUnlinkBankTransaction
584
+ */
585
+ readonly code: string
586
+
587
+ /**
588
+ * Bearer Token
589
+ * @type {string}
590
+ * @memberof BankTransactionApiUnlinkBankTransaction
591
+ */
592
+ readonly authorization?: string
593
+ }
594
+
517
595
  /**
518
596
  * BankTransactionApi - object-oriented interface
519
597
  * @export
@@ -522,7 +600,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
522
600
  */
523
601
  export class BankTransactionApi extends BaseAPI {
524
602
  /**
525
- *
603
+ * Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
604
+ * @summary Retrieve the Bank Transaction
526
605
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
527
606
  * @param {*} [options] Override http request option.
528
607
  * @throws {RequiredError}
@@ -534,7 +613,7 @@ export class BankTransactionApi extends BaseAPI {
534
613
 
535
614
  /**
536
615
  * Import bank transactions from a swift MT940 file
537
- * @summary Create the Bank Transactions
616
+ * @summary Create the bank transactions
538
617
  * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
539
618
  * @param {*} [options] Override http request option.
540
619
  * @throws {RequiredError}
@@ -553,11 +632,12 @@ export class BankTransactionApi extends BaseAPI {
553
632
  * @memberof BankTransactionApi
554
633
  */
555
634
  public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
556
- return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
635
+ return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
557
636
  }
558
637
 
559
638
  /**
560
- *
639
+ * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
640
+ * @summary List bank transactions
561
641
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
562
642
  * @param {*} [options] Override http request option.
563
643
  * @throws {RequiredError}
@@ -566,4 +646,16 @@ export class BankTransactionApi extends BaseAPI {
566
646
  public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
567
647
  return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
568
648
  }
649
+
650
+ /**
651
+ * Unlinks an already linked bank transaction
652
+ * @summary Unlink Bank Transaction
653
+ * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof BankTransactionApi
657
+ */
658
+ public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
659
+ return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
+ }
569
661
  }
@@ -5,7 +5,7 @@
5
5
  * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
8
+ * Contact: z
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech