@emilgroup/payment-sdk 1.4.1-beta.7 → 1.4.1-beta.9

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 (123) hide show
  1. package/.openapi-generator/FILES +2 -29
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +60 -26
  5. package/api/payment-methods-api.ts +37 -41
  6. package/api/payment-reminders-api.ts +8 -12
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +25 -27
  9. package/api/refunds-api.ts +15 -13
  10. package/api/tenant-bank-account-api.ts +48 -28
  11. package/dist/api/bank-accounts-api.d.ts +12 -14
  12. package/dist/api/bank-accounts-api.js +12 -12
  13. package/dist/api/bank-transaction-api.d.ts +41 -21
  14. package/dist/api/bank-transaction-api.js +32 -18
  15. package/dist/api/payment-methods-api.d.ts +27 -31
  16. package/dist/api/payment-methods-api.js +28 -24
  17. package/dist/api/payment-reminders-api.d.ts +12 -14
  18. package/dist/api/payment-setup-api.d.ts +18 -22
  19. package/dist/api/payment-setup-api.js +24 -24
  20. package/dist/api/payments-api.d.ts +21 -24
  21. package/dist/api/payments-api.js +16 -12
  22. package/dist/api/refunds-api.d.ts +10 -10
  23. package/dist/api/refunds-api.js +11 -9
  24. package/dist/api/tenant-bank-account-api.d.ts +48 -28
  25. package/dist/api/tenant-bank-account-api.js +43 -23
  26. package/dist/models/create-payment-request-dto.d.ts +3 -3
  27. package/dist/models/get-request-dto.d.ts +1 -1
  28. package/dist/models/index.d.ts +2 -29
  29. package/dist/models/index.js +2 -29
  30. package/dist/models/{sepa-direct-dto.d.ts → link-bank-transaction-request-dto-rest.d.ts} +5 -5
  31. package/dist/models/{initiate-braintree-payment-setup-response-class.d.ts → unlink-bank-transaction-request-dto-rest.d.ts} +5 -5
  32. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  33. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  34. package/models/create-payment-request-dto.ts +3 -3
  35. package/models/get-request-dto.ts +1 -1
  36. package/models/index.ts +2 -29
  37. package/models/{sepa-direct-dto.ts → link-bank-transaction-request-dto-rest.ts} +5 -5
  38. package/models/{initiate-braintree-payment-setup-response-class.ts → unlink-bank-transaction-request-dto-rest.ts} +5 -5
  39. package/models/validate-pspconfig-request-dto.ts +1 -11
  40. package/package.json +1 -1
  41. package/dist/models/bank-account-class.d.ts +0 -54
  42. package/dist/models/billing-profile-dto.d.ts +0 -38
  43. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  44. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  45. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  46. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  47. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  48. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  49. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  50. package/dist/models/complete-payment-setup-response-class.js +0 -15
  51. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  52. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  53. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  54. package/dist/models/create-bank-account-request-dto.js +0 -15
  55. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  56. package/dist/models/create-payment-method-response-class.js +0 -15
  57. package/dist/models/create-payment-response-class.d.ts +0 -25
  58. package/dist/models/create-payment-response-class.js +0 -15
  59. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  60. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  61. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  62. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  63. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  64. package/dist/models/get-payment-method-response-class.js +0 -15
  65. package/dist/models/get-payment-response-class.d.ts +0 -25
  66. package/dist/models/get-payment-response-class.js +0 -15
  67. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  68. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  69. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  70. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  71. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  72. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  73. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  74. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  75. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  76. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  77. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  78. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  79. package/dist/models/list-bank-accounts-response-class.js +0 -15
  80. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  81. package/dist/models/list-payment-methods-response-class.js +0 -15
  82. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  83. package/dist/models/list-payment-reminders-response-class.js +0 -15
  84. package/dist/models/list-payments-response-class.d.ts +0 -31
  85. package/dist/models/list-payments-response-class.js +0 -15
  86. package/dist/models/payment-class.d.ts +0 -103
  87. package/dist/models/payment-class.js +0 -15
  88. package/dist/models/payment-method-class.d.ts +0 -66
  89. package/dist/models/payment-method-class.js +0 -15
  90. package/dist/models/payment-reminder-class.d.ts +0 -112
  91. package/dist/models/payment-reminder-class.js +0 -36
  92. package/dist/models/sepa-direct-dto.js +0 -15
  93. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  94. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  95. package/models/bank-account-class.ts +0 -60
  96. package/models/billing-profile-dto.ts +0 -44
  97. package/models/billing-profile-limited-response-dto.ts +0 -60
  98. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  99. package/models/complete-payment-setup-request-dto.ts +0 -38
  100. package/models/complete-payment-setup-response-class.ts +0 -31
  101. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  102. package/models/create-bank-account-request-dto.ts +0 -36
  103. package/models/create-payment-method-response-class.ts +0 -31
  104. package/models/create-payment-response-class.ts +0 -31
  105. package/models/create-psp-payment-method-request-dto.ts +0 -70
  106. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  107. package/models/get-payment-method-response-class.ts +0 -31
  108. package/models/get-payment-response-class.ts +0 -31
  109. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  110. package/models/initiate-payment-setup-request-dto.ts +0 -50
  111. package/models/initiate-payment-setup-response-class.ts +0 -38
  112. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  113. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  114. package/models/list-bank-accounts-response-class.ts +0 -37
  115. package/models/list-payment-methods-response-class.ts +0 -37
  116. package/models/list-payment-reminders-response-class.ts +0 -37
  117. package/models/list-payments-response-class.ts +0 -37
  118. package/models/payment-class.ts +0 -109
  119. package/models/payment-method-class.ts +0 -72
  120. package/models/payment-reminder-class.ts +0 -122
  121. package/models/symphony-profile-limited-response-dto.ts +0 -48
  122. /package/dist/models/{bank-account-class.js → link-bank-transaction-request-dto-rest.js} +0 -0
  123. /package/dist/models/{billing-profile-dto.js → unlink-bank-transaction-request-dto-rest.js} +0 -0
@@ -18,54 +18,27 @@ 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/list-bank-accounts-response-class.ts
35
+ models/link-bank-transaction-request-dto-rest.ts
56
36
  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
37
  models/list-refunds-response-class.ts
61
- models/payment-class.ts
62
- models/payment-method-class.ts
63
- models/payment-reminder-class.ts
64
38
  models/refund-class.ts
65
- models/sepa-direct-dto.ts
66
- models/symphony-profile-limited-response-dto.ts
67
39
  models/tenant-bank-account-response-class.ts
68
40
  models/transaction-class.ts
41
+ models/unlink-bank-transaction-request-dto-rest.ts
69
42
  models/update-tenant-bank-account-rest-request-dto.ts
70
43
  models/validate-pspconfig-request-dto.ts
71
44
  package.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk@1.4.1-beta.7 --save
20
+ npm install @emilgroup/payment-sdk@1.4.1-beta.9 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.4.1-beta.7
24
+ yarn add @emilgroup/payment-sdk@1.4.1-beta.9
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -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
  /**
@@ -23,7 +23,11 @@ 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 { LinkBankTransactionRequestDtoRest } from '../models';
27
+ // @ts-ignore
26
28
  import { ListBankTransactionsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { UnlinkBankTransactionRequestDtoRest } from '../models';
27
31
  /**
28
32
  * BankTransactionApi - axios parameter creator
29
33
  * @export
@@ -134,13 +138,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
134
138
  * Links a bank transaction with an invoice
135
139
  * @summary Link Bank Transaction
136
140
  * @param {string} code Code of the bank transaction to link
141
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
137
142
  * @param {string} [authorization] Bearer Token
138
143
  * @param {*} [options] Override http request option.
139
144
  * @throws {RequiredError}
140
145
  */
141
- linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
147
  // verify required parameter 'code' is not null or undefined
143
148
  assertParamExists('linkBankTransaction', 'code', code)
149
+ // verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
150
+ assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
144
151
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
145
152
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -166,9 +173,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
166
173
 
167
174
 
168
175
 
176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
177
+
169
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
170
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
+ localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
172
182
 
173
183
  return {
174
184
  url: toPathString(localVarUrlObj),
@@ -181,15 +191,15 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
181
191
  * @param {string} [authorization] Bearer Token
182
192
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
193
  * @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.
184
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
194
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
185
195
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
186
196
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
187
- * @param {string} [expand] Expand the response with additional entities
197
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
188
198
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
189
199
  * @param {*} [options] Override http request option.
190
200
  * @throws {RequiredError}
191
201
  */
192
- listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
+ listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
203
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
194
204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -255,13 +265,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
255
265
  * Unlinks an already linked bank transaction
256
266
  * @summary Unlink Bank Transaction
257
267
  * @param {string} code Code of the bank transaction to unlink
268
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
258
269
  * @param {string} [authorization] Bearer Token
259
270
  * @param {*} [options] Override http request option.
260
271
  * @throws {RequiredError}
261
272
  */
262
- unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
274
  // verify required parameter 'code' is not null or undefined
264
275
  assertParamExists('unlinkBankTransaction', 'code', code)
276
+ // verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
277
+ assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
265
278
  const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
266
279
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
280
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -287,9 +300,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
287
300
 
288
301
 
289
302
 
303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
304
+
290
305
  setSearchParams(localVarUrlObj, localVarQueryParameter);
291
306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
307
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
308
+ localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
293
309
 
294
310
  return {
295
311
  url: toPathString(localVarUrlObj),
@@ -335,12 +351,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
335
351
  * Links a bank transaction with an invoice
336
352
  * @summary Link Bank Transaction
337
353
  * @param {string} code Code of the bank transaction to link
354
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
338
355
  * @param {string} [authorization] Bearer Token
339
356
  * @param {*} [options] Override http request option.
340
357
  * @throws {RequiredError}
341
358
  */
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);
359
+ async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
344
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
362
  },
346
363
  /**
@@ -349,15 +366,15 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
349
366
  * @param {string} [authorization] Bearer Token
350
367
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
351
368
  * @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.
352
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
369
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
353
370
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
354
371
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
355
- * @param {string} [expand] Expand the response with additional entities
372
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
356
373
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
357
374
  * @param {*} [options] Override http request option.
358
375
  * @throws {RequiredError}
359
376
  */
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>> {
377
+ async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
361
378
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
362
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
380
  },
@@ -365,12 +382,13 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
365
382
  * Unlinks an already linked bank transaction
366
383
  * @summary Unlink Bank Transaction
367
384
  * @param {string} code Code of the bank transaction to unlink
385
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
368
386
  * @param {string} [authorization] Bearer Token
369
387
  * @param {*} [options] Override http request option.
370
388
  * @throws {RequiredError}
371
389
  */
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);
390
+ async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
374
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
375
393
  },
376
394
  }
@@ -410,12 +428,13 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
410
428
  * Links a bank transaction with an invoice
411
429
  * @summary Link Bank Transaction
412
430
  * @param {string} code Code of the bank transaction to link
431
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
413
432
  * @param {string} [authorization] Bearer Token
414
433
  * @param {*} [options] Override http request option.
415
434
  * @throws {RequiredError}
416
435
  */
417
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
418
- return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
436
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
437
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
419
438
  },
420
439
  /**
421
440
  * 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.
@@ -423,27 +442,28 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
423
442
  * @param {string} [authorization] Bearer Token
424
443
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
425
444
  * @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.
426
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
445
+ * @param {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
427
446
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
428
447
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
429
- * @param {string} [expand] Expand the response with additional entities
448
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
430
449
  * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
431
450
  * @param {*} [options] Override http request option.
432
451
  * @throws {RequiredError}
433
452
  */
434
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
453
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked', search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void> {
435
454
  return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
436
455
  },
437
456
  /**
438
457
  * Unlinks an already linked bank transaction
439
458
  * @summary Unlink Bank Transaction
440
459
  * @param {string} code Code of the bank transaction to unlink
460
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
441
461
  * @param {string} [authorization] Bearer Token
442
462
  * @param {*} [options] Override http request option.
443
463
  * @throws {RequiredError}
444
464
  */
445
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
446
- return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
465
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
466
+ return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
447
467
  },
448
468
  };
449
469
  };
@@ -510,6 +530,13 @@ export interface BankTransactionApiLinkBankTransactionRequest {
510
530
  */
511
531
  readonly code: string
512
532
 
533
+ /**
534
+ *
535
+ * @type {LinkBankTransactionRequestDtoRest}
536
+ * @memberof BankTransactionApiLinkBankTransaction
537
+ */
538
+ readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
539
+
513
540
  /**
514
541
  * Bearer Token
515
542
  * @type {string}
@@ -546,11 +573,11 @@ export interface BankTransactionApiListBankTransactionsRequest {
546
573
  readonly pageToken?: any
547
574
 
548
575
  /**
549
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
550
- * @type {any}
576
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
577
+ * @type {'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'}
551
578
  * @memberof BankTransactionApiListBankTransactions
552
579
  */
553
- readonly filter?: any
580
+ readonly filter?: 'id' | 'code' | 'bankAccountId' | 'bankAccountNumber' | 'swiftMessageReference' | 'amount' | 'currency' | 'transactionReference' | 'transactionDate' | 'entryDate' | 'isLinked'
554
581
 
555
582
  /**
556
583
  * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
@@ -568,10 +595,10 @@ export interface BankTransactionApiListBankTransactionsRequest {
568
595
 
569
596
  /**
570
597
  * Expand the response with additional entities
571
- * @type {string}
598
+ * @type {'bankAccount' | 'transaction'}
572
599
  * @memberof BankTransactionApiListBankTransactions
573
600
  */
574
- readonly expand?: string
601
+ readonly expand?: 'bankAccount' | 'transaction'
575
602
 
576
603
  /**
577
604
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -594,6 +621,13 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
594
621
  */
595
622
  readonly code: string
596
623
 
624
+ /**
625
+ *
626
+ * @type {UnlinkBankTransactionRequestDtoRest}
627
+ * @memberof BankTransactionApiUnlinkBankTransaction
628
+ */
629
+ readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
630
+
597
631
  /**
598
632
  * Bearer Token
599
633
  * @type {string}
@@ -642,7 +676,7 @@ export class BankTransactionApi extends BaseAPI {
642
676
  * @memberof BankTransactionApi
643
677
  */
644
678
  public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
645
- return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
+ return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
646
680
  }
647
681
 
648
682
  /**
@@ -666,6 +700,6 @@ export class BankTransactionApi extends BaseAPI {
666
700
  * @memberof BankTransactionApi
667
701
  */
668
702
  public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
669
- return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
703
+ return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
670
704
  }
671
705
  }