@emilgroup/payment-sdk 1.4.1-beta.2 → 1.4.1-beta.21

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 +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +5 -5
  4. package/api/bank-transaction-api.ts +82 -46
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +5 -5
  7. package/api/payment-reminders-api.ts +5 -5
  8. package/api/payment-setup-api.ts +1 -1
  9. package/api/payments-api.ts +5 -5
  10. package/api/refunds-api.ts +5 -5
  11. package/api/tenant-bank-account-api.ts +74 -64
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +1 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +5 -5
  18. package/dist/api/bank-accounts-api.js +4 -4
  19. package/dist/api/bank-transaction-api.d.ts +56 -36
  20. package/dist/api/bank-transaction-api.js +47 -33
  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 +5 -5
  24. package/dist/api/payment-methods-api.js +4 -4
  25. package/dist/api/payment-reminders-api.d.ts +5 -5
  26. package/dist/api/payment-reminders-api.js +4 -4
  27. package/dist/api/payment-setup-api.d.ts +1 -1
  28. package/dist/api/payment-setup-api.js +1 -1
  29. package/dist/api/payments-api.d.ts +5 -5
  30. package/dist/api/payments-api.js +4 -4
  31. package/dist/api/refunds-api.d.ts +5 -5
  32. package/dist/api/refunds-api.js +4 -4
  33. package/dist/api/tenant-bank-account-api.d.ts +73 -60
  34. package/dist/api/tenant-bank-account-api.js +56 -42
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +1 -1
  38. package/dist/api.js +1 -1
  39. package/dist/base.d.ts +1 -1
  40. package/dist/base.js +1 -1
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-transaction-response-class.d.ts +7 -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 +1 -1
  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/create-tenant-bank-account-response-class.d.ts +25 -0
  60. package/dist/models/create-tenant-bank-account-response-class.js +15 -0
  61. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  62. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  63. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  64. package/dist/models/get-bank-transactions-response-class.js +1 -1
  65. package/dist/models/get-refund-response-class.d.ts +1 -1
  66. package/dist/models/get-refund-response-class.js +1 -1
  67. package/dist/models/get-request-dto.d.ts +1 -1
  68. package/dist/models/get-request-dto.js +1 -1
  69. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  70. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  71. package/dist/models/index.d.ts +4 -0
  72. package/dist/models/index.js +4 -0
  73. package/dist/models/inline-response200.d.ts +1 -1
  74. package/dist/models/inline-response200.js +1 -1
  75. package/dist/models/inline-response503.d.ts +1 -1
  76. package/dist/models/inline-response503.js +1 -1
  77. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  78. package/dist/models/link-bank-transaction-request-dto-rest.js +15 -0
  79. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  80. package/dist/models/list-bank-transactions-response-class.js +1 -1
  81. package/dist/models/list-refunds-response-class.d.ts +1 -1
  82. package/dist/models/list-refunds-response-class.js +1 -1
  83. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  84. package/dist/models/list-tenant-bank-account-response-class.js +15 -0
  85. package/dist/models/refund-class.d.ts +2 -1
  86. package/dist/models/refund-class.js +3 -2
  87. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  88. package/dist/models/tenant-bank-account-response-class.js +1 -1
  89. package/dist/models/transaction-class.d.ts +1 -1
  90. package/dist/models/transaction-class.js +1 -1
  91. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  92. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  93. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  94. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  95. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -1
  96. package/dist/models/validate-pspconfig-request-dto.js +1 -1
  97. package/index.ts +1 -1
  98. package/models/bank-transaction-response-class.ts +7 -1
  99. package/models/create-payment-reminder-request-dto.ts +1 -1
  100. package/models/create-payment-request-dto.ts +1 -1
  101. package/models/create-refund-request-dto.ts +1 -1
  102. package/models/create-refund-response-class.ts +1 -1
  103. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  104. package/models/create-tenant-bank-account-response-class.ts +31 -0
  105. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  106. package/models/get-bank-transactions-response-class.ts +1 -1
  107. package/models/get-refund-response-class.ts +1 -1
  108. package/models/get-request-dto.ts +1 -1
  109. package/models/get-tenant-bank-account-response-class.ts +1 -1
  110. package/models/index.ts +4 -0
  111. package/models/inline-response200.ts +1 -1
  112. package/models/inline-response503.ts +1 -1
  113. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  114. package/models/list-bank-transactions-response-class.ts +1 -1
  115. package/models/list-refunds-response-class.ts +1 -1
  116. package/models/list-tenant-bank-account-response-class.ts +37 -0
  117. package/models/refund-class.ts +3 -2
  118. package/models/tenant-bank-account-response-class.ts +1 -1
  119. package/models/transaction-class.ts +1 -1
  120. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  121. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  122. package/models/validate-pspconfig-request-dto.ts +1 -1
  123. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  * 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.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- * Contact: z
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -148,7 +148,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
148
148
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
149
149
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
150
150
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
151
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
151
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
152
152
  * @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.
153
153
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
154
154
  * @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.
@@ -251,7 +251,7 @@ var BankAccountsApiFp = function (configuration) {
251
251
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
252
252
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
253
253
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
254
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
255
255
  * @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.
256
256
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
257
257
  * @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.
@@ -299,7 +299,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
299
299
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
300
300
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
301
301
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
302
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
302
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
303
303
  * @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.
304
304
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
305
305
  * @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.
@@ -3,7 +3,7 @@
3
3
  * 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.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- * Contact: z
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -13,7 +13,9 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetBankTransactionsResponseClass } from '../models';
16
+ import { LinkBankTransactionRequestDtoRest } from '../models';
16
17
  import { ListBankTransactionsResponseClass } from '../models';
18
+ import { UnlinkBankTransactionRequestDtoRest } from '../models';
17
19
  /**
18
20
  * BankTransactionApi - axios parameter creator
19
21
  * @export
@@ -32,45 +34,47 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
32
34
  /**
33
35
  * Import bank transactions from a swift MT940 file
34
36
  * @summary Create the bank transactions
37
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
35
38
  * @param {string} [authorization] Bearer Token
36
- * @param {any} [file]
37
39
  * @param {*} [options] Override http request option.
38
40
  * @throws {RequiredError}
39
41
  */
40
- importBankTransactions: (authorization?: string, file?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ importBankTransactions: (file: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
43
  /**
42
44
  * Links a bank transaction with an invoice
43
45
  * @summary Link Bank Transaction
44
46
  * @param {string} code Code of the bank transaction to link
47
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
45
48
  * @param {string} [authorization] Bearer Token
46
49
  * @param {*} [options] Override http request option.
47
50
  * @throws {RequiredError}
48
51
  */
49
- linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
53
  /**
51
54
  * 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.
52
55
  * @summary List bank transactions
53
56
  * @param {string} [authorization] Bearer Token
54
57
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
55
58
  * @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.
56
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
57
- * @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.
59
+ * @param {any} [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;
60
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
58
61
  * @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.
59
- * @param {string} [expand] Expand the response with additional entities
62
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
60
63
  * @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.
61
64
  * @param {*} [options] Override http request option.
62
65
  * @throws {RequiredError}
63
66
  */
64
- listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
68
  /**
66
69
  * Unlinks an already linked bank transaction
67
70
  * @summary Unlink Bank Transaction
68
71
  * @param {string} code Code of the bank transaction to unlink
72
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
69
73
  * @param {string} [authorization] Bearer Token
70
74
  * @param {*} [options] Override http request option.
71
75
  * @throws {RequiredError}
72
76
  */
73
- unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ unlinkBankTransaction: (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
78
  };
75
79
  /**
76
80
  * BankTransactionApi - functional programming interface
@@ -90,45 +94,47 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
90
94
  /**
91
95
  * Import bank transactions from a swift MT940 file
92
96
  * @summary Create the bank transactions
97
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
93
98
  * @param {string} [authorization] Bearer Token
94
- * @param {any} [file]
95
99
  * @param {*} [options] Override http request option.
96
100
  * @throws {RequiredError}
97
101
  */
98
- importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
102
+ importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
99
103
  /**
100
104
  * Links a bank transaction with an invoice
101
105
  * @summary Link Bank Transaction
102
106
  * @param {string} code Code of the bank transaction to link
107
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
103
108
  * @param {string} [authorization] Bearer Token
104
109
  * @param {*} [options] Override http request option.
105
110
  * @throws {RequiredError}
106
111
  */
107
- linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
112
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
108
113
  /**
109
114
  * 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.
110
115
  * @summary List bank transactions
111
116
  * @param {string} [authorization] Bearer Token
112
117
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
113
118
  * @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.
114
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
115
- * @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.
119
+ * @param {any} [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;
120
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
116
121
  * @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.
117
- * @param {string} [expand] Expand the response with additional entities
122
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
118
123
  * @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.
119
124
  * @param {*} [options] Override http request option.
120
125
  * @throws {RequiredError}
121
126
  */
122
- 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>>;
127
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
128
  /**
124
129
  * Unlinks an already linked bank transaction
125
130
  * @summary Unlink Bank Transaction
126
131
  * @param {string} code Code of the bank transaction to unlink
132
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
127
133
  * @param {string} [authorization] Bearer Token
128
134
  * @param {*} [options] Override http request option.
129
135
  * @throws {RequiredError}
130
136
  */
131
- unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
137
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
132
138
  };
133
139
  /**
134
140
  * BankTransactionApi - factory interface
@@ -148,45 +154,47 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
148
154
  /**
149
155
  * Import bank transactions from a swift MT940 file
150
156
  * @summary Create the bank transactions
157
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
151
158
  * @param {string} [authorization] Bearer Token
152
- * @param {any} [file]
153
159
  * @param {*} [options] Override http request option.
154
160
  * @throws {RequiredError}
155
161
  */
156
- importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
162
+ importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
157
163
  /**
158
164
  * Links a bank transaction with an invoice
159
165
  * @summary Link Bank Transaction
160
166
  * @param {string} code Code of the bank transaction to link
167
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
161
168
  * @param {string} [authorization] Bearer Token
162
169
  * @param {*} [options] Override http request option.
163
170
  * @throws {RequiredError}
164
171
  */
165
- linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
172
+ linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
166
173
  /**
167
174
  * 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.
168
175
  * @summary List bank transactions
169
176
  * @param {string} [authorization] Bearer Token
170
177
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
171
178
  * @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.
172
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
173
- * @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.
179
+ * @param {any} [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;
180
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
174
181
  * @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.
175
- * @param {string} [expand] Expand the response with additional entities
182
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
176
183
  * @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.
177
184
  * @param {*} [options] Override http request option.
178
185
  * @throws {RequiredError}
179
186
  */
180
- listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, filters?: any, options?: any): AxiosPromise<void>;
187
+ listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void>;
181
188
  /**
182
189
  * Unlinks an already linked bank transaction
183
190
  * @summary Unlink Bank Transaction
184
191
  * @param {string} code Code of the bank transaction to unlink
192
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
185
193
  * @param {string} [authorization] Bearer Token
186
194
  * @param {*} [options] Override http request option.
187
195
  * @throws {RequiredError}
188
196
  */
189
- unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
197
+ unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
190
198
  };
191
199
  /**
192
200
  * Request parameters for getBankTransaction operation in BankTransactionApi.
@@ -220,17 +228,17 @@ export interface BankTransactionApiGetBankTransactionRequest {
220
228
  */
221
229
  export interface BankTransactionApiImportBankTransactionsRequest {
222
230
  /**
223
- * Bearer Token
224
- * @type {string}
231
+ * Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
232
+ * @type {any}
225
233
  * @memberof BankTransactionApiImportBankTransactions
226
234
  */
227
- readonly authorization?: string;
235
+ readonly file: any;
228
236
  /**
229
- *
230
- * @type {any}
237
+ * Bearer Token
238
+ * @type {string}
231
239
  * @memberof BankTransactionApiImportBankTransactions
232
240
  */
233
- readonly file?: any;
241
+ readonly authorization?: string;
234
242
  }
235
243
  /**
236
244
  * Request parameters for linkBankTransaction operation in BankTransactionApi.
@@ -244,6 +252,12 @@ export interface BankTransactionApiLinkBankTransactionRequest {
244
252
  * @memberof BankTransactionApiLinkBankTransaction
245
253
  */
246
254
  readonly code: string;
255
+ /**
256
+ *
257
+ * @type {LinkBankTransactionRequestDtoRest}
258
+ * @memberof BankTransactionApiLinkBankTransaction
259
+ */
260
+ readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest;
247
261
  /**
248
262
  * Bearer Token
249
263
  * @type {string}
@@ -276,13 +290,13 @@ export interface BankTransactionApiListBankTransactionsRequest {
276
290
  */
277
291
  readonly pageToken?: any;
278
292
  /**
279
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
293
+ * 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;
280
294
  * @type {any}
281
295
  * @memberof BankTransactionApiListBankTransactions
282
296
  */
283
297
  readonly filter?: any;
284
298
  /**
285
- * 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.
299
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
286
300
  * @type {any}
287
301
  * @memberof BankTransactionApiListBankTransactions
288
302
  */
@@ -295,10 +309,10 @@ export interface BankTransactionApiListBankTransactionsRequest {
295
309
  readonly order?: any;
296
310
  /**
297
311
  * Expand the response with additional entities
298
- * @type {string}
312
+ * @type {'bankAccount' | 'transaction'}
299
313
  * @memberof BankTransactionApiListBankTransactions
300
314
  */
301
- readonly expand?: string;
315
+ readonly expand?: 'bankAccount' | 'transaction';
302
316
  /**
303
317
  * 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.
304
318
  * @type {any}
@@ -318,6 +332,12 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
318
332
  * @memberof BankTransactionApiUnlinkBankTransaction
319
333
  */
320
334
  readonly code: string;
335
+ /**
336
+ *
337
+ * @type {UnlinkBankTransactionRequestDtoRest}
338
+ * @memberof BankTransactionApiUnlinkBankTransaction
339
+ */
340
+ readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
321
341
  /**
322
342
  * Bearer Token
323
343
  * @type {string}
@@ -349,7 +369,7 @@ export declare class BankTransactionApi extends BaseAPI {
349
369
  * @throws {RequiredError}
350
370
  * @memberof BankTransactionApi
351
371
  */
352
- importBankTransactions(requestParameters?: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
372
+ importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
353
373
  /**
354
374
  * Links a bank transaction with an invoice
355
375
  * @summary Link Bank Transaction
@@ -6,7 +6,7 @@
6
6
  * 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.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- * Contact: z
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -147,18 +147,20 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
147
147
  /**
148
148
  * Import bank transactions from a swift MT940 file
149
149
  * @summary Create the bank transactions
150
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
150
151
  * @param {string} [authorization] Bearer Token
151
- * @param {any} [file]
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
155
- importBankTransactions: function (authorization, file, options) {
155
+ importBankTransactions: function (file, authorization, options) {
156
156
  if (options === void 0) { options = {}; }
157
157
  return __awaiter(_this, void 0, void 0, function () {
158
158
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
159
159
  return __generator(this, function (_a) {
160
160
  switch (_a.label) {
161
161
  case 0:
162
+ // verify required parameter 'file' is not null or undefined
163
+ (0, common_1.assertParamExists)('importBankTransactions', 'file', file);
162
164
  localVarPath = "/paymentservice/v1/tenant/bank-transactions/import";
163
165
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
166
  if (configuration) {
@@ -182,7 +184,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
182
184
  if (file !== undefined) {
183
185
  localVarFormParams.append('file', file);
184
186
  }
185
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
186
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
187
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
189
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -199,11 +200,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
199
200
  * Links a bank transaction with an invoice
200
201
  * @summary Link Bank Transaction
201
202
  * @param {string} code Code of the bank transaction to link
203
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
202
204
  * @param {string} [authorization] Bearer Token
203
205
  * @param {*} [options] Override http request option.
204
206
  * @throws {RequiredError}
205
207
  */
206
- linkBankTransaction: function (code, authorization, options) {
208
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
207
209
  if (options === void 0) { options = {}; }
208
210
  return __awaiter(_this, void 0, void 0, function () {
209
211
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -212,6 +214,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
212
214
  case 0:
213
215
  // verify required parameter 'code' is not null or undefined
214
216
  (0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
217
+ // verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
218
+ (0, common_1.assertParamExists)('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest);
215
219
  localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link"
216
220
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
217
221
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -232,9 +236,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
232
236
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
237
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
238
  }
239
+ localVarHeaderParameter['Content-Type'] = 'application/json';
235
240
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
241
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
242
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
243
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
238
244
  return [2 /*return*/, {
239
245
  url: (0, common_1.toPathString)(localVarUrlObj),
240
246
  options: localVarRequestOptions,
@@ -249,10 +255,10 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
249
255
  * @param {string} [authorization] Bearer Token
250
256
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
257
  * @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.
252
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
253
- * @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.
258
+ * @param {any} [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;
259
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
254
260
  * @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.
255
- * @param {string} [expand] Expand the response with additional entities
261
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
256
262
  * @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.
257
263
  * @param {*} [options] Override http request option.
258
264
  * @throws {RequiredError}
@@ -319,11 +325,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
319
325
  * Unlinks an already linked bank transaction
320
326
  * @summary Unlink Bank Transaction
321
327
  * @param {string} code Code of the bank transaction to unlink
328
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
322
329
  * @param {string} [authorization] Bearer Token
323
330
  * @param {*} [options] Override http request option.
324
331
  * @throws {RequiredError}
325
332
  */
326
- unlinkBankTransaction: function (code, authorization, options) {
333
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
327
334
  if (options === void 0) { options = {}; }
328
335
  return __awaiter(_this, void 0, void 0, function () {
329
336
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -332,6 +339,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
332
339
  case 0:
333
340
  // verify required parameter 'code' is not null or undefined
334
341
  (0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
342
+ // verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
343
+ (0, common_1.assertParamExists)('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest);
335
344
  localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
336
345
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
337
346
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -352,9 +361,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
352
361
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
362
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
354
363
  }
364
+ localVarHeaderParameter['Content-Type'] = 'application/json';
355
365
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
356
366
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
367
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
368
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
358
369
  return [2 /*return*/, {
359
370
  url: (0, common_1.toPathString)(localVarUrlObj),
360
371
  options: localVarRequestOptions,
@@ -398,17 +409,17 @@ var BankTransactionApiFp = function (configuration) {
398
409
  /**
399
410
  * Import bank transactions from a swift MT940 file
400
411
  * @summary Create the bank transactions
412
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
401
413
  * @param {string} [authorization] Bearer Token
402
- * @param {any} [file]
403
414
  * @param {*} [options] Override http request option.
404
415
  * @throws {RequiredError}
405
416
  */
406
- importBankTransactions: function (authorization, file, options) {
417
+ importBankTransactions: function (file, authorization, options) {
407
418
  return __awaiter(this, void 0, void 0, function () {
408
419
  var localVarAxiosArgs;
409
420
  return __generator(this, function (_a) {
410
421
  switch (_a.label) {
411
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.importBankTransactions(authorization, file, options)];
422
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.importBankTransactions(file, authorization, options)];
412
423
  case 1:
413
424
  localVarAxiosArgs = _a.sent();
414
425
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -420,16 +431,17 @@ var BankTransactionApiFp = function (configuration) {
420
431
  * Links a bank transaction with an invoice
421
432
  * @summary Link Bank Transaction
422
433
  * @param {string} code Code of the bank transaction to link
434
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
423
435
  * @param {string} [authorization] Bearer Token
424
436
  * @param {*} [options] Override http request option.
425
437
  * @throws {RequiredError}
426
438
  */
427
- linkBankTransaction: function (code, authorization, options) {
439
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
428
440
  return __awaiter(this, void 0, void 0, function () {
429
441
  var localVarAxiosArgs;
430
442
  return __generator(this, function (_a) {
431
443
  switch (_a.label) {
432
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, authorization, options)];
444
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options)];
433
445
  case 1:
434
446
  localVarAxiosArgs = _a.sent();
435
447
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -443,10 +455,10 @@ var BankTransactionApiFp = function (configuration) {
443
455
  * @param {string} [authorization] Bearer Token
444
456
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
445
457
  * @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.
446
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
447
- * @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.
458
+ * @param {any} [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;
459
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
448
460
  * @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.
449
- * @param {string} [expand] Expand the response with additional entities
461
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
450
462
  * @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.
451
463
  * @param {*} [options] Override http request option.
452
464
  * @throws {RequiredError}
@@ -468,16 +480,17 @@ var BankTransactionApiFp = function (configuration) {
468
480
  * Unlinks an already linked bank transaction
469
481
  * @summary Unlink Bank Transaction
470
482
  * @param {string} code Code of the bank transaction to unlink
483
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
471
484
  * @param {string} [authorization] Bearer Token
472
485
  * @param {*} [options] Override http request option.
473
486
  * @throws {RequiredError}
474
487
  */
475
- unlinkBankTransaction: function (code, authorization, options) {
488
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
476
489
  return __awaiter(this, void 0, void 0, function () {
477
490
  var localVarAxiosArgs;
478
491
  return __generator(this, function (_a) {
479
492
  switch (_a.label) {
480
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
493
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options)];
481
494
  case 1:
482
495
  localVarAxiosArgs = _a.sent();
483
496
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -510,24 +523,25 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
510
523
  /**
511
524
  * Import bank transactions from a swift MT940 file
512
525
  * @summary Create the bank transactions
526
+ * @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.&lt;br/&gt; Allowed Content Types: text/plain, application/octet-stream
513
527
  * @param {string} [authorization] Bearer Token
514
- * @param {any} [file]
515
528
  * @param {*} [options] Override http request option.
516
529
  * @throws {RequiredError}
517
530
  */
518
- importBankTransactions: function (authorization, file, options) {
519
- return localVarFp.importBankTransactions(authorization, file, options).then(function (request) { return request(axios, basePath); });
531
+ importBankTransactions: function (file, authorization, options) {
532
+ return localVarFp.importBankTransactions(file, authorization, options).then(function (request) { return request(axios, basePath); });
520
533
  },
521
534
  /**
522
535
  * Links a bank transaction with an invoice
523
536
  * @summary Link Bank Transaction
524
537
  * @param {string} code Code of the bank transaction to link
538
+ * @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
525
539
  * @param {string} [authorization] Bearer Token
526
540
  * @param {*} [options] Override http request option.
527
541
  * @throws {RequiredError}
528
542
  */
529
- linkBankTransaction: function (code, authorization, options) {
530
- return localVarFp.linkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
543
+ linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
544
+ return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
531
545
  },
532
546
  /**
533
547
  * 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.
@@ -535,10 +549,10 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
535
549
  * @param {string} [authorization] Bearer Token
536
550
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
537
551
  * @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.
538
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
539
- * @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.
552
+ * @param {any} [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;
553
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
540
554
  * @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.
541
- * @param {string} [expand] Expand the response with additional entities
555
+ * @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
542
556
  * @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.
543
557
  * @param {*} [options] Override http request option.
544
558
  * @throws {RequiredError}
@@ -550,12 +564,13 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
550
564
  * Unlinks an already linked bank transaction
551
565
  * @summary Unlink Bank Transaction
552
566
  * @param {string} code Code of the bank transaction to unlink
567
+ * @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
553
568
  * @param {string} [authorization] Bearer Token
554
569
  * @param {*} [options] Override http request option.
555
570
  * @throws {RequiredError}
556
571
  */
557
- unlinkBankTransaction: function (code, authorization, options) {
558
- return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
572
+ unlinkBankTransaction: function (code, unlinkBankTransactionRequestDtoRest, authorization, options) {
573
+ return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
559
574
  },
560
575
  };
561
576
  };
@@ -593,8 +608,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
593
608
  */
594
609
  BankTransactionApi.prototype.importBankTransactions = function (requestParameters, options) {
595
610
  var _this = this;
596
- if (requestParameters === void 0) { requestParameters = {}; }
597
- return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.authorization, requestParameters.file, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
+ return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
598
612
  };
599
613
  /**
600
614
  * Links a bank transaction with an invoice
@@ -606,7 +620,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
606
620
  */
607
621
  BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
608
622
  var _this = this;
609
- return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
610
624
  };
611
625
  /**
612
626
  * 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.
@@ -631,7 +645,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
631
645
  */
632
646
  BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
633
647
  var _this = this;
634
- return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
648
+ return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
649
  };
636
650
  return BankTransactionApi;
637
651
  }(base_1.BaseAPI));
@@ -3,7 +3,7 @@
3
3
  * 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.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- * Contact: z
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech