@emilgroup/payment-sdk 1.3.1 → 1.4.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 +2 -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 +2 -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@1.3.1 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.3.1
24
+ yarn add @emilgroup/payment-sdk@1.4.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
  /**
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),
@@ -161,13 +157,13 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
161
157
  /**
162
158
  * Creates a bank account for a specified account.
163
159
  * @summary Create a bank account
164
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
160
+ * @param {object} body
165
161
  * @param {string} [authorization] Bearer Token
166
162
  * @param {*} [options] Override http request option.
167
163
  * @throws {RequiredError}
168
164
  */
169
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
170
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
165
+ async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
171
167
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
172
168
  },
173
169
  /**
@@ -183,7 +179,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
183
179
  * @param {*} [options] Override http request option.
184
180
  * @throws {RequiredError}
185
181
  */
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<ListBankAccountsResponseClass>> {
182
+ 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>> {
187
183
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
188
184
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
189
185
  },
@@ -200,13 +196,13 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
200
196
  /**
201
197
  * Creates a bank account for a specified account.
202
198
  * @summary Create a bank account
203
- * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
199
+ * @param {object} body
204
200
  * @param {string} [authorization] Bearer Token
205
201
  * @param {*} [options] Override http request option.
206
202
  * @throws {RequiredError}
207
203
  */
208
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
209
- return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
204
+ createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
205
+ return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
210
206
  },
211
207
  /**
212
208
  * 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.
@@ -221,7 +217,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
221
217
  * @param {*} [options] Override http request option.
222
218
  * @throws {RequiredError}
223
219
  */
224
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
220
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<void> {
225
221
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
226
222
  },
227
223
  };
@@ -235,10 +231,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
235
231
  export interface BankAccountsApiCreateBankAccountRequest {
236
232
  /**
237
233
  *
238
- * @type {CreateBankAccountRequestDto}
234
+ * @type {object}
239
235
  * @memberof BankAccountsApiCreateBankAccount
240
236
  */
241
- readonly createBankAccountRequestDto: CreateBankAccountRequestDto
237
+ readonly body: object
242
238
 
243
239
  /**
244
240
  * Bearer Token
@@ -320,7 +316,7 @@ export class BankAccountsApi extends BaseAPI {
320
316
  * @memberof BankAccountsApi
321
317
  */
322
318
  public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
323
- return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
319
+ return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
324
320
  }
325
321
 
326
322
  /**
@@ -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
  /**
30
28
  * BankTransactionApi - axios parameter creator
@@ -33,7 +31,8 @@ import { ListBankTransactionsResponseClass } from '../models';
33
31
  export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
34
32
  return {
35
33
  /**
36
- *
34
+ * 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.
35
+ * @summary Retrieve the Bank Transaction
37
36
  * @param {string} code
38
37
  * @param {string} [authorization] Bearer Token
39
38
  * @param {string} [expand] Expand the response with additional entities
@@ -83,7 +82,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
83
82
  },
84
83
  /**
85
84
  * Import bank transactions from a swift MT940 file
86
- * @summary Create the Bank Transactions
85
+ * @summary Create the bank transactions
87
86
  * @param {string} [authorization] Bearer Token
88
87
  * @param {any} [file]
89
88
  * @param {*} [options] Override http request option.
@@ -134,17 +133,14 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
134
133
  /**
135
134
  * Links a bank transaction with an invoice
136
135
  * @summary Link Bank Transaction
137
- * @param {string} code Code of the bank transcation to link
138
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
136
+ * @param {string} code Code of the bank transaction to link
139
137
  * @param {string} [authorization] Bearer Token
140
138
  * @param {*} [options] Override http request option.
141
139
  * @throws {RequiredError}
142
140
  */
143
- linkBankTransaction: async (code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
141
+ linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
142
  // verify required parameter 'code' is not null or undefined
145
143
  assertParamExists('linkBankTransaction', 'code', code)
146
- // verify required parameter 'linkBankTransactionRequestDto' is not null or undefined
147
- assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDto', linkBankTransactionRequestDto)
148
144
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
149
145
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
150
146
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -170,12 +166,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
170
166
 
171
167
 
172
168
 
173
- localVarHeaderParameter['Content-Type'] = 'application/json';
174
-
175
169
  setSearchParams(localVarUrlObj, localVarQueryParameter);
176
170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
171
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
178
- localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDto, localVarRequestOptions, configuration)
179
172
 
180
173
  return {
181
174
  url: toPathString(localVarUrlObj),
@@ -183,7 +176,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
183
176
  };
184
177
  },
185
178
  /**
186
- *
179
+ * 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
+ * @summary List bank transactions
187
181
  * @param {string} [authorization] Bearer Token
188
182
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
189
183
  * @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.
@@ -243,6 +237,51 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
243
237
 
244
238
 
245
239
 
240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
242
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
243
+
244
+ return {
245
+ url: toPathString(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ };
248
+ },
249
+ /**
250
+ * Unlinks an already linked bank transaction
251
+ * @summary Unlink Bank Transaction
252
+ * @param {string} code Code of the bank transaction to unlink
253
+ * @param {string} [authorization] Bearer Token
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
258
+ // verify required parameter 'code' is not null or undefined
259
+ assertParamExists('unlinkBankTransaction', 'code', code)
260
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
261
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
264
+ let baseOptions;
265
+ let baseAccessToken;
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+
271
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
272
+ const localVarHeaderParameter = {} as any;
273
+ const localVarQueryParameter = {} as any;
274
+
275
+ // authentication bearer required
276
+ // http bearer authentication required
277
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
278
+
279
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
+ }
282
+
283
+
284
+
246
285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
247
286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
287
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -263,7 +302,8 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
263
302
  const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
264
303
  return {
265
304
  /**
266
- *
305
+ * 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.
306
+ * @summary Retrieve the Bank Transaction
267
307
  * @param {string} code
268
308
  * @param {string} [authorization] Bearer Token
269
309
  * @param {string} [expand] Expand the response with additional entities
@@ -276,7 +316,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
276
316
  },
277
317
  /**
278
318
  * Import bank transactions from a swift MT940 file
279
- * @summary Create the Bank Transactions
319
+ * @summary Create the bank transactions
280
320
  * @param {string} [authorization] Bearer Token
281
321
  * @param {any} [file]
282
322
  * @param {*} [options] Override http request option.
@@ -289,18 +329,18 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
289
329
  /**
290
330
  * Links a bank transaction with an invoice
291
331
  * @summary Link Bank Transaction
292
- * @param {string} code Code of the bank transcation to link
293
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
332
+ * @param {string} code Code of the bank transaction to link
294
333
  * @param {string} [authorization] Bearer Token
295
334
  * @param {*} [options] Override http request option.
296
335
  * @throws {RequiredError}
297
336
  */
298
- async linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
299
- const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options);
337
+ async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
300
339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
301
340
  },
302
341
  /**
303
- *
342
+ * 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.
343
+ * @summary List bank transactions
304
344
  * @param {string} [authorization] Bearer Token
305
345
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
306
346
  * @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.
@@ -311,10 +351,22 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
311
351
  * @param {*} [options] Override http request option.
312
352
  * @throws {RequiredError}
313
353
  */
314
- 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>> {
354
+ 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>> {
315
355
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options);
316
356
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
317
357
  },
358
+ /**
359
+ * Unlinks an already linked bank transaction
360
+ * @summary Unlink Bank Transaction
361
+ * @param {string} code Code of the bank transaction to unlink
362
+ * @param {string} [authorization] Bearer Token
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
368
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
+ },
318
370
  }
319
371
  };
320
372
 
@@ -326,7 +378,8 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
326
378
  const localVarFp = BankTransactionApiFp(configuration)
327
379
  return {
328
380
  /**
329
- *
381
+ * 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.
382
+ * @summary Retrieve the Bank Transaction
330
383
  * @param {string} code
331
384
  * @param {string} [authorization] Bearer Token
332
385
  * @param {string} [expand] Expand the response with additional entities
@@ -338,7 +391,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
338
391
  },
339
392
  /**
340
393
  * Import bank transactions from a swift MT940 file
341
- * @summary Create the Bank Transactions
394
+ * @summary Create the bank transactions
342
395
  * @param {string} [authorization] Bearer Token
343
396
  * @param {any} [file]
344
397
  * @param {*} [options] Override http request option.
@@ -350,17 +403,17 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
350
403
  /**
351
404
  * Links a bank transaction with an invoice
352
405
  * @summary Link Bank Transaction
353
- * @param {string} code Code of the bank transcation to link
354
- * @param {LinkBankTransactionRequestDto} linkBankTransactionRequestDto
406
+ * @param {string} code Code of the bank transaction to link
355
407
  * @param {string} [authorization] Bearer Token
356
408
  * @param {*} [options] Override http request option.
357
409
  * @throws {RequiredError}
358
410
  */
359
- linkBankTransaction(code: string, linkBankTransactionRequestDto: LinkBankTransactionRequestDto, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
360
- return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDto, authorization, options).then((request) => request(axios, basePath));
411
+ linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
412
+ return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
361
413
  },
362
414
  /**
363
- *
415
+ * 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.
416
+ * @summary List bank transactions
364
417
  * @param {string} [authorization] Bearer Token
365
418
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
419
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -371,9 +424,20 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
371
424
  * @param {*} [options] Override http request option.
372
425
  * @throws {RequiredError}
373
426
  */
374
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
427
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void> {
375
428
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
376
429
  },
430
+ /**
431
+ * Unlinks an already linked bank transaction
432
+ * @summary Unlink Bank Transaction
433
+ * @param {string} code Code of the bank transaction to unlink
434
+ * @param {string} [authorization] Bearer Token
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
439
+ return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
440
+ },
377
441
  };
378
442
  };
379
443
 
@@ -433,19 +497,12 @@ export interface BankTransactionApiImportBankTransactionsRequest {
433
497
  */
434
498
  export interface BankTransactionApiLinkBankTransactionRequest {
435
499
  /**
436
- * Code of the bank transcation to link
500
+ * Code of the bank transaction to link
437
501
  * @type {string}
438
502
  * @memberof BankTransactionApiLinkBankTransaction
439
503
  */
440
504
  readonly code: string
441
505
 
442
- /**
443
- *
444
- * @type {LinkBankTransactionRequestDto}
445
- * @memberof BankTransactionApiLinkBankTransaction
446
- */
447
- readonly linkBankTransactionRequestDto: LinkBankTransactionRequestDto
448
-
449
506
  /**
450
507
  * Bearer Token
451
508
  * @type {string}
@@ -510,6 +567,27 @@ export interface BankTransactionApiListBankTransactionsRequest {
510
567
  readonly expand?: string
511
568
  }
512
569
 
570
+ /**
571
+ * Request parameters for unlinkBankTransaction operation in BankTransactionApi.
572
+ * @export
573
+ * @interface BankTransactionApiUnlinkBankTransactionRequest
574
+ */
575
+ export interface BankTransactionApiUnlinkBankTransactionRequest {
576
+ /**
577
+ * Code of the bank transaction to unlink
578
+ * @type {string}
579
+ * @memberof BankTransactionApiUnlinkBankTransaction
580
+ */
581
+ readonly code: string
582
+
583
+ /**
584
+ * Bearer Token
585
+ * @type {string}
586
+ * @memberof BankTransactionApiUnlinkBankTransaction
587
+ */
588
+ readonly authorization?: string
589
+ }
590
+
513
591
  /**
514
592
  * BankTransactionApi - object-oriented interface
515
593
  * @export
@@ -518,7 +596,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
518
596
  */
519
597
  export class BankTransactionApi extends BaseAPI {
520
598
  /**
521
- *
599
+ * 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.
600
+ * @summary Retrieve the Bank Transaction
522
601
  * @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
523
602
  * @param {*} [options] Override http request option.
524
603
  * @throws {RequiredError}
@@ -530,7 +609,7 @@ export class BankTransactionApi extends BaseAPI {
530
609
 
531
610
  /**
532
611
  * Import bank transactions from a swift MT940 file
533
- * @summary Create the Bank Transactions
612
+ * @summary Create the bank transactions
534
613
  * @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
535
614
  * @param {*} [options] Override http request option.
536
615
  * @throws {RequiredError}
@@ -549,11 +628,12 @@ export class BankTransactionApi extends BaseAPI {
549
628
  * @memberof BankTransactionApi
550
629
  */
551
630
  public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
552
- return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
631
+ return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
553
632
  }
554
633
 
555
634
  /**
556
- *
635
+ * 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.
636
+ * @summary List bank transactions
557
637
  * @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
558
638
  * @param {*} [options] Override http request option.
559
639
  * @throws {RequiredError}
@@ -562,4 +642,16 @@ export class BankTransactionApi extends BaseAPI {
562
642
  public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
563
643
  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));
564
644
  }
645
+
646
+ /**
647
+ * Unlinks an already linked bank transaction
648
+ * @summary Unlink Bank Transaction
649
+ * @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof BankTransactionApi
653
+ */
654
+ public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
655
+ return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
656
+ }
565
657
  }
@@ -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