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

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 (198) hide show
  1. package/.openapi-generator/FILES +0 -35
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +17 -21
  4. package/api/bank-transaction-api.ts +3 -205
  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/tenant-bank-account-api.ts +1 -1
  11. package/api/webhooks-api.ts +1 -1
  12. package/api.ts +1 -3
  13. package/base.ts +1 -1
  14. package/common.ts +2 -2
  15. package/configuration.ts +1 -1
  16. package/dist/api/bank-accounts-api.d.ts +13 -15
  17. package/dist/api/bank-accounts-api.js +13 -13
  18. package/dist/api/bank-transaction-api.d.ts +4 -114
  19. package/dist/api/bank-transaction-api.js +1 -185
  20. package/dist/api/default-api.d.ts +1 -1
  21. package/dist/api/default-api.js +1 -1
  22. package/dist/api/payment-methods-api.d.ts +28 -32
  23. package/dist/api/payment-methods-api.js +29 -25
  24. package/dist/api/payment-reminders-api.d.ts +13 -15
  25. package/dist/api/payment-reminders-api.js +1 -1
  26. package/dist/api/payment-setup-api.d.ts +19 -23
  27. package/dist/api/payment-setup-api.js +25 -25
  28. package/dist/api/payments-api.d.ts +22 -25
  29. package/dist/api/payments-api.js +17 -13
  30. package/dist/api/tenant-bank-account-api.d.ts +1 -1
  31. package/dist/api/tenant-bank-account-api.js +1 -1
  32. package/dist/api/webhooks-api.d.ts +1 -1
  33. package/dist/api/webhooks-api.js +1 -1
  34. package/dist/api.d.ts +1 -2
  35. package/dist/api.js +1 -2
  36. package/dist/base.d.ts +1 -1
  37. package/dist/base.js +1 -1
  38. package/dist/common.d.ts +2 -2
  39. package/dist/common.js +1 -1
  40. package/dist/configuration.d.ts +1 -1
  41. package/dist/configuration.js +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/models/bank-transaction-response-class.d.ts +7 -1
  45. package/dist/models/bank-transaction-response-class.js +1 -1
  46. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  47. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  48. package/dist/models/create-payment-request-dto.d.ts +4 -4
  49. package/dist/models/create-payment-request-dto.js +1 -1
  50. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  51. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  52. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  53. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  54. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  55. package/dist/models/get-bank-transactions-response-class.js +1 -1
  56. package/dist/models/get-request-dto.d.ts +2 -2
  57. package/dist/models/get-request-dto.js +1 -1
  58. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  59. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  60. package/dist/models/index.d.ts +0 -34
  61. package/dist/models/index.js +0 -34
  62. package/dist/models/inline-response200.d.ts +1 -1
  63. package/dist/models/inline-response200.js +1 -1
  64. package/dist/models/inline-response503.d.ts +1 -1
  65. package/dist/models/inline-response503.js +1 -1
  66. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  67. package/dist/models/list-bank-transactions-response-class.js +1 -1
  68. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  69. package/dist/models/tenant-bank-account-response-class.js +1 -1
  70. package/dist/models/transaction-class.d.ts +1 -1
  71. package/dist/models/transaction-class.js +1 -1
  72. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  73. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  74. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  75. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  76. package/index.ts +1 -1
  77. package/models/bank-transaction-response-class.ts +7 -1
  78. package/models/create-payment-reminder-request-dto.ts +1 -1
  79. package/models/create-payment-request-dto.ts +4 -4
  80. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  81. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  82. package/models/get-bank-transactions-response-class.ts +1 -1
  83. package/models/get-request-dto.ts +2 -2
  84. package/models/get-tenant-bank-account-response-class.ts +1 -1
  85. package/models/index.ts +0 -34
  86. package/models/inline-response200.ts +1 -1
  87. package/models/inline-response503.ts +1 -1
  88. package/models/list-bank-transactions-response-class.ts +1 -1
  89. package/models/tenant-bank-account-response-class.ts +1 -1
  90. package/models/transaction-class.ts +1 -1
  91. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  92. package/models/validate-pspconfig-request-dto.ts +2 -12
  93. package/package.json +1 -1
  94. package/api/refunds-api.ts +0 -474
  95. package/dist/api/refunds-api.d.ts +0 -269
  96. package/dist/api/refunds-api.js +0 -447
  97. package/dist/models/bank-account-class.d.ts +0 -54
  98. package/dist/models/bank-account-class.js +0 -15
  99. package/dist/models/billing-profile-dto.d.ts +0 -38
  100. package/dist/models/billing-profile-dto.js +0 -15
  101. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  102. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  103. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  104. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  105. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  106. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  107. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  108. package/dist/models/complete-payment-setup-response-class.js +0 -15
  109. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  110. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  111. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  112. package/dist/models/create-bank-account-request-dto.js +0 -15
  113. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  114. package/dist/models/create-payment-method-response-class.js +0 -15
  115. package/dist/models/create-payment-response-class.d.ts +0 -25
  116. package/dist/models/create-payment-response-class.js +0 -15
  117. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  118. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  119. package/dist/models/create-refund-request-dto.d.ts +0 -24
  120. package/dist/models/create-refund-request-dto.js +0 -15
  121. package/dist/models/create-refund-response-class.d.ts +0 -25
  122. package/dist/models/create-refund-response-class.js +0 -15
  123. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  124. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  125. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  126. package/dist/models/get-payment-method-response-class.js +0 -15
  127. package/dist/models/get-payment-response-class.d.ts +0 -25
  128. package/dist/models/get-payment-response-class.js +0 -15
  129. package/dist/models/get-refund-response-class.d.ts +0 -25
  130. package/dist/models/get-refund-response-class.js +0 -15
  131. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  132. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  133. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  134. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  135. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  136. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  137. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  138. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  139. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  140. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  141. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  142. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  143. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  144. package/dist/models/list-bank-accounts-response-class.js +0 -15
  145. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  146. package/dist/models/list-payment-methods-response-class.js +0 -15
  147. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  148. package/dist/models/list-payment-reminders-response-class.js +0 -15
  149. package/dist/models/list-payments-response-class.d.ts +0 -31
  150. package/dist/models/list-payments-response-class.js +0 -15
  151. package/dist/models/list-refunds-response-class.d.ts +0 -31
  152. package/dist/models/list-refunds-response-class.js +0 -15
  153. package/dist/models/payment-class.d.ts +0 -103
  154. package/dist/models/payment-class.js +0 -15
  155. package/dist/models/payment-method-class.d.ts +0 -66
  156. package/dist/models/payment-method-class.js +0 -15
  157. package/dist/models/payment-reminder-class.d.ts +0 -112
  158. package/dist/models/payment-reminder-class.js +0 -36
  159. package/dist/models/refund-class.d.ts +0 -104
  160. package/dist/models/refund-class.js +0 -28
  161. package/dist/models/sepa-direct-dto.d.ts +0 -24
  162. package/dist/models/sepa-direct-dto.js +0 -15
  163. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  164. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  165. package/models/bank-account-class.ts +0 -60
  166. package/models/billing-profile-dto.ts +0 -44
  167. package/models/billing-profile-limited-response-dto.ts +0 -60
  168. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  169. package/models/complete-payment-setup-request-dto.ts +0 -38
  170. package/models/complete-payment-setup-response-class.ts +0 -31
  171. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  172. package/models/create-bank-account-request-dto.ts +0 -36
  173. package/models/create-payment-method-response-class.ts +0 -31
  174. package/models/create-payment-response-class.ts +0 -31
  175. package/models/create-psp-payment-method-request-dto.ts +0 -70
  176. package/models/create-refund-request-dto.ts +0 -30
  177. package/models/create-refund-response-class.ts +0 -31
  178. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  179. package/models/get-payment-method-response-class.ts +0 -31
  180. package/models/get-payment-response-class.ts +0 -31
  181. package/models/get-refund-response-class.ts +0 -31
  182. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  183. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  184. package/models/initiate-payment-setup-request-dto.ts +0 -50
  185. package/models/initiate-payment-setup-response-class.ts +0 -38
  186. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  187. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  188. package/models/list-bank-accounts-response-class.ts +0 -37
  189. package/models/list-payment-methods-response-class.ts +0 -37
  190. package/models/list-payment-reminders-response-class.ts +0 -37
  191. package/models/list-payments-response-class.ts +0 -37
  192. package/models/list-refunds-response-class.ts +0 -37
  193. package/models/payment-class.ts +0 -109
  194. package/models/payment-method-class.ts +0 -72
  195. package/models/payment-reminder-class.ts +0 -122
  196. package/models/refund-class.ts +0 -114
  197. package/models/sepa-direct-dto.ts +0 -30
  198. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -10,7 +10,6 @@ api/payment-methods-api.ts
10
10
  api/payment-reminders-api.ts
11
11
  api/payment-setup-api.ts
12
12
  api/payments-api.ts
13
- api/refunds-api.ts
14
13
  api/tenant-bank-account-api.ts
15
14
  api/webhooks-api.ts
16
15
  base.ts
@@ -18,52 +17,18 @@ common.ts
18
17
  configuration.ts
19
18
  git_push.sh
20
19
  index.ts
21
- models/bank-account-class.ts
22
20
  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
21
  models/create-payment-reminder-request-dto.ts
32
22
  models/create-payment-request-dto.ts
33
- models/create-payment-response-class.ts
34
- models/create-psp-payment-method-request-dto.ts
35
- models/create-refund-request-dto.ts
36
- models/create-refund-response-class.ts
37
23
  models/create-tenant-bank-account-request-dto.ts
38
24
  models/deactivate-payment-reminder-request-dto.ts
39
- models/deactivate-payment-reminder-response-class.ts
40
25
  models/get-bank-transactions-response-class.ts
41
- models/get-payment-method-response-class.ts
42
- models/get-payment-response-class.ts
43
- models/get-refund-response-class.ts
44
26
  models/get-request-dto.ts
45
27
  models/get-tenant-bank-account-response-class.ts
46
28
  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
29
  models/inline-response200.ts
54
30
  models/inline-response503.ts
55
- models/list-bank-accounts-response-class.ts
56
31
  models/list-bank-transactions-response-class.ts
57
- models/list-payment-methods-response-class.ts
58
- models/list-payment-reminders-response-class.ts
59
- models/list-payments-response-class.ts
60
- models/list-refunds-response-class.ts
61
- models/payment-class.ts
62
- models/payment-method-class.ts
63
- models/payment-reminder-class.ts
64
- models/refund-class.ts
65
- models/sepa-direct-dto.ts
66
- models/symphony-profile-limited-response-dto.ts
67
32
  models/tenant-bank-account-response-class.ts
68
33
  models/transaction-class.ts
69
34
  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@1.4.1-beta.3 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.4 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.4.1-beta.3
24
+ yarn add @emilgroup/payment-sdk@1.4.1-beta.4
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
  /**
28
24
  * BankAccountsApi - axios parameter creator
29
25
  * @export
@@ -33,14 +29,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
33
29
  /**
34
30
  * Creates a bank account for a specified account.
35
31
  * @summary Create a bank account
36
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
32
+ * @param {object} body
37
33
  * @param {string} [authorization] Bearer Token
38
34
  * @param {*} [options] Override http request option.
39
35
  * @throws {RequiredError}
40
36
  */
41
- createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'createBankAccountRequestDto' is not null or undefined
43
- assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
37
+ createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'body' is not null or undefined
39
+ assertParamExists('createBankAccount', 'body', body)
44
40
  const localVarPath = `/paymentservice/v1/bank-accounts`;
45
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
42
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -70,7 +66,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
70
66
  setSearchParams(localVarUrlObj, localVarQueryParameter);
71
67
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
68
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
69
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
74
70
 
75
71
  return {
76
72
  url: toPathString(localVarUrlObj),
@@ -166,13 +162,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
166
162
  /**
167
163
  * Creates a bank account for a specified account.
168
164
  * @summary Create a bank account
169
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
165
+ * @param {object} body
170
166
  * @param {string} [authorization] Bearer Token
171
167
  * @param {*} [options] Override http request option.
172
168
  * @throws {RequiredError}
173
169
  */
174
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
175
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
170
+ async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
176
172
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
177
173
  },
178
174
  /**
@@ -189,7 +185,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
189
185
  * @param {*} [options] Override http request option.
190
186
  * @throws {RequiredError}
191
187
  */
192
- 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>> {
188
+ 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>> {
193
189
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
194
190
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
195
191
  },
@@ -206,13 +202,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
206
202
  /**
207
203
  * Creates a bank account for a specified account.
208
204
  * @summary Create a bank account
209
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
205
+ * @param {object} body
210
206
  * @param {string} [authorization] Bearer Token
211
207
  * @param {*} [options] Override http request option.
212
208
  * @throws {RequiredError}
213
209
  */
214
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
215
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
210
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
211
+ return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
216
212
  },
217
213
  /**
218
214
  * 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.
@@ -228,7 +224,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
228
224
  * @param {*} [options] Override http request option.
229
225
  * @throws {RequiredError}
230
226
  */
231
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
227
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
232
228
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
233
229
  },
234
230
  };
@@ -242,10 +238,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
242
238
  export interface BankAccountsApiCreateBankAccountRequest {
243
239
  /**
244
240
  *
245
- * @type {CreateBankAccountRequestDto}
241
+ * @type {object}
246
242
  * @memberof BankAccountsApiCreateBankAccount
247
243
  */
248
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto
244
+ readonly body: object
249
245
 
250
246
  /**
251
247
  * Bearer Token
@@ -334,7 +330,7 @@ export class BankAccountsApi extends BaseAPI {
334
330
  * @memberof BankAccountsApi
335
331
  */
336
332
  public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
337
- return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
333
+ return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
338
334
  }
339
335
 
340
336
  /**
@@ -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
@@ -130,51 +130,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
130
130
  options: localVarRequestOptions,
131
131
  };
132
132
  },
133
- /**
134
- * Links a bank transaction with an invoice
135
- * @summary Link Bank Transaction
136
- * @param {string} code Code of the bank transaction to link
137
- * @param {string} [authorization] Bearer Token
138
- * @param {*} [options] Override http request option.
139
- * @throws {RequiredError}
140
- */
141
- linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
- // verify required parameter 'code' is not null or undefined
143
- assertParamExists('linkBankTransaction', 'code', code)
144
- const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
145
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
- let baseOptions;
149
- let baseAccessToken;
150
- if (configuration) {
151
- baseOptions = configuration.baseOptions;
152
- baseAccessToken = configuration.accessToken;
153
- }
154
-
155
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
156
- const localVarHeaderParameter = {} as any;
157
- const localVarQueryParameter = {} as any;
158
-
159
- // authentication bearer required
160
- // http bearer authentication required
161
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
-
163
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
- }
166
-
167
-
168
-
169
- setSearchParams(localVarUrlObj, localVarQueryParameter);
170
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
-
173
- return {
174
- url: toPathString(localVarUrlObj),
175
- options: localVarRequestOptions,
176
- };
177
- },
178
133
  /**
179
134
  * 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.
180
135
  * @summary List bank transactions
@@ -242,51 +197,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
242
197
 
243
198
 
244
199
 
245
- setSearchParams(localVarUrlObj, localVarQueryParameter);
246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
-
249
- return {
250
- url: toPathString(localVarUrlObj),
251
- options: localVarRequestOptions,
252
- };
253
- },
254
- /**
255
- * Unlinks an already linked bank transaction
256
- * @summary Unlink Bank Transaction
257
- * @param {string} code Code of the bank transaction to unlink
258
- * @param {string} [authorization] Bearer Token
259
- * @param {*} [options] Override http request option.
260
- * @throws {RequiredError}
261
- */
262
- unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
- // verify required parameter 'code' is not null or undefined
264
- assertParamExists('unlinkBankTransaction', 'code', code)
265
- const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
266
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
- let baseOptions;
270
- let baseAccessToken;
271
- if (configuration) {
272
- baseOptions = configuration.baseOptions;
273
- baseAccessToken = configuration.accessToken;
274
- }
275
-
276
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
277
- const localVarHeaderParameter = {} as any;
278
- const localVarQueryParameter = {} as any;
279
-
280
- // authentication bearer required
281
- // http bearer authentication required
282
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
283
-
284
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
- }
287
-
288
-
289
-
290
200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
291
201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
202
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -331,18 +241,6 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
331
241
  const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(authorization, file, options);
332
242
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
333
243
  },
334
- /**
335
- * Links a bank transaction with an invoice
336
- * @summary Link Bank Transaction
337
- * @param {string} code Code of the bank transaction to link
338
- * @param {string} [authorization] Bearer Token
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
343
- const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
344
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
- },
346
244
  /**
347
245
  * 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.
348
246
  * @summary List bank transactions
@@ -357,22 +255,10 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
357
255
  * @param {*} [options] Override http request option.
358
256
  * @throws {RequiredError}
359
257
  */
360
- async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
258
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
361
259
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
362
260
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
261
  },
364
- /**
365
- * Unlinks an already linked bank transaction
366
- * @summary Unlink Bank Transaction
367
- * @param {string} code Code of the bank transaction to unlink
368
- * @param {string} [authorization] Bearer Token
369
- * @param {*} [options] Override http request option.
370
- * @throws {RequiredError}
371
- */
372
- async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
373
- const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
374
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
- },
376
262
  }
377
263
  };
378
264
 
@@ -406,17 +292,6 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
406
292
  importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
407
293
  return localVarFp.importBankTransactions(authorization, file, options).then((request) => request(axios, basePath));
408
294
  },
409
- /**
410
- * Links a bank transaction with an invoice
411
- * @summary Link Bank Transaction
412
- * @param {string} code Code of the bank transaction to link
413
- * @param {string} [authorization] Bearer Token
414
- * @param {*} [options] Override http request option.
415
- * @throws {RequiredError}
416
- */
417
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
418
- return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
419
- },
420
295
  /**
421
296
  * 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.
422
297
  * @summary List bank transactions
@@ -431,20 +306,9 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
431
306
  * @param {*} [options] Override http request option.
432
307
  * @throws {RequiredError}
433
308
  */
434
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
309
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void> {
435
310
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
436
311
  },
437
- /**
438
- * Unlinks an already linked bank transaction
439
- * @summary Unlink Bank Transaction
440
- * @param {string} code Code of the bank transaction to unlink
441
- * @param {string} [authorization] Bearer Token
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- */
445
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
446
- return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
447
- },
448
312
  };
449
313
  };
450
314
 
@@ -497,27 +361,6 @@ export interface BankTransactionApiImportBankTransactionsRequest {
497
361
  readonly file?: any
498
362
  }
499
363
 
500
- /**
501
- * Request parameters for linkBankTransaction operation in BankTransactionApi.
502
- * @export
503
- * @interface BankTransactionApiLinkBankTransactionRequest
504
- */
505
- export interface BankTransactionApiLinkBankTransactionRequest {
506
- /**
507
- * Code of the bank transaction to link
508
- * @type {string}
509
- * @memberof BankTransactionApiLinkBankTransaction
510
- */
511
- readonly code: string
512
-
513
- /**
514
- * Bearer Token
515
- * @type {string}
516
- * @memberof BankTransactionApiLinkBankTransaction
517
- */
518
- readonly authorization?: string
519
- }
520
-
521
364
  /**
522
365
  * Request parameters for listBankTransactions operation in BankTransactionApi.
523
366
  * @export
@@ -581,27 +424,6 @@ export interface BankTransactionApiListBankTransactionsRequest {
581
424
  readonly filters?: any
582
425
  }
583
426
 
584
- /**
585
- * Request parameters for unlinkBankTransaction operation in BankTransactionApi.
586
- * @export
587
- * @interface BankTransactionApiUnlinkBankTransactionRequest
588
- */
589
- export interface BankTransactionApiUnlinkBankTransactionRequest {
590
- /**
591
- * Code of the bank transaction to unlink
592
- * @type {string}
593
- * @memberof BankTransactionApiUnlinkBankTransaction
594
- */
595
- readonly code: string
596
-
597
- /**
598
- * Bearer Token
599
- * @type {string}
600
- * @memberof BankTransactionApiUnlinkBankTransaction
601
- */
602
- readonly authorization?: string
603
- }
604
-
605
427
  /**
606
428
  * BankTransactionApi - object-oriented interface
607
429
  * @export
@@ -633,18 +455,6 @@ export class BankTransactionApi extends BaseAPI {
633
455
  return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
634
456
  }
635
457
 
636
- /**
637
- * Links a bank transaction with an invoice
638
- * @summary Link Bank Transaction
639
- * @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- * @memberof BankTransactionApi
643
- */
644
- public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
645
- return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
646
- }
647
-
648
458
  /**
649
459
  * 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.
650
460
  * @summary List bank transactions
@@ -656,16 +466,4 @@ export class BankTransactionApi extends BaseAPI {
656
466
  public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
657
467
  return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
658
468
  }
659
-
660
- /**
661
- * Unlinks an already linked bank transaction
662
- * @summary Unlink Bank Transaction
663
- * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
664
- * @param {*} [options] Override http request option.
665
- * @throws {RequiredError}
666
- * @memberof BankTransactionApi
667
- */
668
- public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
669
- return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
670
- }
671
469
  }
@@ -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