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

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 (224) hide show
  1. package/.openapi-generator/FILES +10 -27
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +497 -43
  4. package/api/bank-transaction-api.ts +89 -53
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +62 -173
  7. package/api/payment-reminders-api.ts +21 -25
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +54 -59
  10. package/api/refunds-api.ts +20 -18
  11. package/api/tenant-bank-account-api.ts +71 -61
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +1 -1
  14. package/base.ts +6 -2
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +295 -45
  18. package/dist/api/bank-accounts-api.js +412 -24
  19. package/dist/api/bank-transaction-api.d.ts +65 -45
  20. package/dist/api/bank-transaction-api.js +55 -40
  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 +48 -107
  24. package/dist/api/payment-methods-api.js +51 -143
  25. package/dist/api/payment-reminders-api.d.ts +25 -27
  26. package/dist/api/payment-reminders-api.js +12 -12
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +46 -49
  30. package/dist/api/payments-api.js +43 -41
  31. package/dist/api/refunds-api.d.ts +15 -15
  32. package/dist/api/refunds-api.js +15 -13
  33. package/dist/api/tenant-bank-account-api.d.ts +70 -57
  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 +2 -1
  40. package/dist/base.js +5 -2
  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-account-class.d.ts +23 -4
  48. package/dist/models/bank-account-class.js +1 -1
  49. package/dist/models/bank-transaction-response-class.d.ts +7 -1
  50. package/dist/models/bank-transaction-response-class.js +1 -1
  51. package/dist/models/create-bank-account-request-dto.d.ts +15 -3
  52. package/dist/models/create-bank-account-request-dto.js +1 -1
  53. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  54. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  55. package/dist/models/create-payment-request-dto.d.ts +4 -4
  56. package/dist/models/create-payment-request-dto.js +1 -1
  57. package/dist/models/create-refund-request-dto.d.ts +1 -1
  58. package/dist/models/create-refund-request-dto.js +1 -1
  59. package/dist/models/create-refund-response-class.d.ts +1 -1
  60. package/dist/models/create-refund-response-class.js +1 -1
  61. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  62. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  63. package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
  64. package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
  65. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  66. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  67. package/dist/models/get-bank-account-response-class.d.ts +25 -0
  68. package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.js} +1 -1
  69. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  70. package/dist/models/get-bank-transactions-response-class.js +1 -1
  71. package/dist/models/get-refund-response-class.d.ts +1 -1
  72. package/dist/models/get-refund-response-class.js +1 -1
  73. package/dist/models/get-request-dto.d.ts +2 -2
  74. package/dist/models/get-request-dto.js +1 -1
  75. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  76. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  77. package/dist/models/index.d.ts +10 -27
  78. package/dist/models/index.js +10 -27
  79. package/dist/models/inline-response200.d.ts +1 -1
  80. package/dist/models/inline-response200.js +1 -1
  81. package/dist/models/inline-response503.d.ts +1 -1
  82. package/dist/models/inline-response503.js +1 -1
  83. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
  84. package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
  85. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  86. package/dist/models/list-bank-transactions-response-class.js +1 -1
  87. package/dist/models/list-refunds-response-class.d.ts +1 -1
  88. package/dist/models/list-refunds-response-class.js +1 -1
  89. package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
  90. package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
  91. package/dist/models/primary-bank-account-response-class.d.ts +42 -0
  92. package/dist/models/primary-bank-account-response-class.js +15 -0
  93. package/dist/models/refund-class.d.ts +2 -1
  94. package/dist/models/refund-class.js +3 -2
  95. package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
  96. package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
  97. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  98. package/dist/models/tenant-bank-account-response-class.js +1 -1
  99. package/dist/models/transaction-class.d.ts +1 -1
  100. package/dist/models/transaction-class.js +1 -1
  101. package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
  102. package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
  103. package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
  104. package/dist/models/update-bank-account-request-dto-rest.js +15 -0
  105. package/dist/models/update-bank-account-request-dto.d.ts +36 -0
  106. package/dist/models/update-bank-account-request-dto.js +15 -0
  107. package/dist/models/update-bank-account-response-class.d.ts +25 -0
  108. package/dist/models/update-bank-account-response-class.js +15 -0
  109. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  110. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  111. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  112. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  113. package/index.ts +1 -1
  114. package/models/bank-account-class.ts +23 -4
  115. package/models/bank-transaction-response-class.ts +7 -1
  116. package/models/create-bank-account-request-dto.ts +15 -3
  117. package/models/create-payment-reminder-request-dto.ts +1 -1
  118. package/models/create-payment-request-dto.ts +4 -4
  119. package/models/create-refund-request-dto.ts +1 -1
  120. package/models/create-refund-response-class.ts +1 -1
  121. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  122. package/models/create-tenant-bank-account-response-class.ts +31 -0
  123. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  124. package/models/get-bank-account-response-class.ts +31 -0
  125. package/models/get-bank-transactions-response-class.ts +1 -1
  126. package/models/get-refund-response-class.ts +1 -1
  127. package/models/get-request-dto.ts +2 -2
  128. package/models/get-tenant-bank-account-response-class.ts +1 -1
  129. package/models/index.ts +10 -27
  130. package/models/inline-response200.ts +1 -1
  131. package/models/inline-response503.ts +1 -1
  132. package/models/link-bank-transaction-request-dto-rest.ts +30 -0
  133. package/models/list-bank-transactions-response-class.ts +1 -1
  134. package/models/list-refunds-response-class.ts +1 -1
  135. package/models/list-tenant-bank-account-response-class.ts +37 -0
  136. package/models/primary-bank-account-response-class.ts +48 -0
  137. package/models/refund-class.ts +3 -2
  138. package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
  139. package/models/tenant-bank-account-response-class.ts +1 -1
  140. package/models/transaction-class.ts +1 -1
  141. package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
  142. package/models/update-bank-account-request-dto-rest.ts +36 -0
  143. package/models/update-bank-account-request-dto.ts +42 -0
  144. package/models/update-bank-account-response-class.ts +31 -0
  145. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  146. package/models/validate-pspconfig-request-dto.ts +2 -12
  147. package/package.json +1 -1
  148. package/dist/models/billing-profile-dto.d.ts +0 -38
  149. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  150. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  151. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  152. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  153. package/dist/models/complete-payment-setup-response-class.js +0 -15
  154. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  155. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  156. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  157. package/dist/models/create-payment-method-response-class.js +0 -15
  158. package/dist/models/create-payment-response-class.d.ts +0 -25
  159. package/dist/models/create-payment-response-class.js +0 -15
  160. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  161. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  162. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  163. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  164. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  165. package/dist/models/get-payment-method-response-class.js +0 -15
  166. package/dist/models/get-payment-response-class.d.ts +0 -25
  167. package/dist/models/get-payment-response-class.js +0 -15
  168. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  169. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  170. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  171. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  172. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  173. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  174. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  175. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  176. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  177. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  178. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  179. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  180. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  181. package/dist/models/list-bank-accounts-response-class.js +0 -15
  182. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  183. package/dist/models/list-payment-methods-response-class.js +0 -15
  184. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  185. package/dist/models/list-payment-reminders-response-class.js +0 -15
  186. package/dist/models/list-payments-response-class.d.ts +0 -31
  187. package/dist/models/list-payments-response-class.js +0 -15
  188. package/dist/models/payment-class.d.ts +0 -103
  189. package/dist/models/payment-class.js +0 -15
  190. package/dist/models/payment-method-class.d.ts +0 -66
  191. package/dist/models/payment-method-class.js +0 -15
  192. package/dist/models/payment-reminder-class.d.ts +0 -112
  193. package/dist/models/payment-reminder-class.js +0 -36
  194. package/dist/models/sepa-direct-dto.d.ts +0 -24
  195. package/dist/models/sepa-direct-dto.js +0 -15
  196. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  197. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  198. package/models/billing-profile-dto.ts +0 -44
  199. package/models/billing-profile-limited-response-dto.ts +0 -60
  200. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  201. package/models/complete-payment-setup-request-dto.ts +0 -38
  202. package/models/complete-payment-setup-response-class.ts +0 -31
  203. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  204. package/models/create-payment-method-response-class.ts +0 -31
  205. package/models/create-payment-response-class.ts +0 -31
  206. package/models/create-psp-payment-method-request-dto.ts +0 -70
  207. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  208. package/models/get-payment-method-response-class.ts +0 -31
  209. package/models/get-payment-response-class.ts +0 -31
  210. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  211. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  212. package/models/initiate-payment-setup-request-dto.ts +0 -50
  213. package/models/initiate-payment-setup-response-class.ts +0 -38
  214. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  215. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  216. package/models/list-bank-accounts-response-class.ts +0 -37
  217. package/models/list-payment-methods-response-class.ts +0 -37
  218. package/models/list-payment-reminders-response-class.ts +0 -37
  219. package/models/list-payments-response-class.ts +0 -37
  220. package/models/payment-class.ts +0 -109
  221. package/models/payment-method-class.ts +0 -72
  222. package/models/payment-reminder-class.ts +0 -122
  223. package/models/sepa-direct-dto.ts +0 -30
  224. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Emil Payment Service
5
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -23,7 +23,13 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateBankAccountRequestDto } from '../models';
25
25
  // @ts-ignore
26
- import { ListBankAccountsResponseClass } from '../models';
26
+ import { GetBankAccountResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { SetPrimaryBankAccountRequestDtoRest } from '../models';
29
+ // @ts-ignore
30
+ import { UpdateBankAccountRequestDtoRest } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateBankAccountResponseClass } from '../models';
27
33
  /**
28
34
  * BankAccountsApi - axios parameter creator
29
35
  * @export
@@ -31,7 +37,7 @@ import { ListBankAccountsResponseClass } from '../models';
31
37
  export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
32
38
  return {
33
39
  /**
34
- * Creates a bank account for a specified account.
40
+ * Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
35
41
  * @summary Create a bank account
36
42
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
37
43
  * @param {string} [authorization] Bearer Token
@@ -78,20 +84,115 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
78
84
  };
79
85
  },
80
86
  /**
81
- * 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.
87
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
88
+ * @summary Delete the bank account
89
+ * @param {string} code Unique identifier for the object.
90
+ * @param {string} [authorization] Bearer Token
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ deleteBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ // verify required parameter 'code' is not null or undefined
96
+ assertParamExists('deleteBankAccount', 'code', code)
97
+ const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
98
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
101
+ let baseOptions;
102
+ let baseAccessToken;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ baseAccessToken = configuration.accessToken;
106
+ }
107
+
108
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
109
+ const localVarHeaderParameter = {} as any;
110
+ const localVarQueryParameter = {} as any;
111
+
112
+ // authentication bearer required
113
+ // http bearer authentication required
114
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
+
116
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
118
+ }
119
+
120
+
121
+
122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
125
+
126
+ return {
127
+ url: toPathString(localVarUrlObj),
128
+ options: localVarRequestOptions,
129
+ };
130
+ },
131
+ /**
132
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
133
+ * @summary Retrieve the bank account
134
+ * @param {string} code Unique identifier for the object.
135
+ * @param {string} [authorization] Bearer Token
136
+ * @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ getBankAccount: async (code: string, authorization?: string, expand?: 'primaryBankAccount', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
141
+ // verify required parameter 'code' is not null or undefined
142
+ assertParamExists('getBankAccount', 'code', code)
143
+ const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
144
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ let baseAccessToken;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ baseAccessToken = configuration.accessToken;
152
+ }
153
+
154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
155
+ const localVarHeaderParameter = {} as any;
156
+ const localVarQueryParameter = {} as any;
157
+
158
+ // authentication bearer required
159
+ // http bearer authentication required
160
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
161
+
162
+ if (expand !== undefined) {
163
+ localVarQueryParameter['expand'] = expand;
164
+ }
165
+
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
+ }
169
+
170
+
171
+
172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
82
183
  * @summary List bank accounts
83
184
  * @param {string} [authorization] Bearer Token
84
185
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
85
186
  * @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.
86
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
87
- * @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.
88
- * @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.
89
- * @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.
90
- * @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.
187
+ * @param {string} [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: code, id, accountCode, partnerCode&lt;/i&gt;
188
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
189
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
190
+ * @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
191
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
91
192
  * @param {*} [options] Override http request option.
92
193
  * @throws {RequiredError}
93
194
  */
94
- listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
195
+ listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
196
  const localVarPath = `/paymentservice/v1/bank-accounts`;
96
197
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
198
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -148,6 +249,108 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
148
249
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
250
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
150
251
 
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ },
257
+ /**
258
+ * Set the primary bank account for the specified partner/account
259
+ * @summary Set primary bank account
260
+ * @param {string} code Code of the bank account to set primary
261
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
262
+ * @param {string} [authorization] Bearer Token
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ setPrimaryBankAccount: async (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
267
+ // verify required parameter 'code' is not null or undefined
268
+ assertParamExists('setPrimaryBankAccount', 'code', code)
269
+ // verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
270
+ assertParamExists('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest)
271
+ const localVarPath = `/paymentservice/v1/bank-accounts/{code}/primary`
272
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
275
+ let baseOptions;
276
+ let baseAccessToken;
277
+ if (configuration) {
278
+ baseOptions = configuration.baseOptions;
279
+ baseAccessToken = configuration.accessToken;
280
+ }
281
+
282
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
283
+ const localVarHeaderParameter = {} as any;
284
+ const localVarQueryParameter = {} as any;
285
+
286
+ // authentication bearer required
287
+ // http bearer authentication required
288
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
289
+
290
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
+ }
293
+
294
+
295
+
296
+ localVarHeaderParameter['Content-Type'] = 'application/json';
297
+
298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
301
+ localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
302
+
303
+ return {
304
+ url: toPathString(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ };
307
+ },
308
+ /**
309
+ * Update a bank account by code
310
+ * @summary Update the Update bank account
311
+ * @param {string} code Unique identifier for the object.
312
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
313
+ * @param {string} [authorization] Bearer Token
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
318
+ // verify required parameter 'code' is not null or undefined
319
+ assertParamExists('updateBankAccount', 'code', code)
320
+ // verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
321
+ assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
322
+ const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
323
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
326
+ let baseOptions;
327
+ let baseAccessToken;
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ baseAccessToken = configuration.accessToken;
331
+ }
332
+
333
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
334
+ const localVarHeaderParameter = {} as any;
335
+ const localVarQueryParameter = {} as any;
336
+
337
+ // authentication bearer required
338
+ // http bearer authentication required
339
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
340
+
341
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
342
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ }
344
+
345
+
346
+
347
+ localVarHeaderParameter['Content-Type'] = 'application/json';
348
+
349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
352
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
353
+
151
354
  return {
152
355
  url: toPathString(localVarUrlObj),
153
356
  options: localVarRequestOptions,
@@ -164,35 +367,86 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
164
367
  const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
165
368
  return {
166
369
  /**
167
- * Creates a bank account for a specified account.
370
+ * Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
168
371
  * @summary Create a bank account
169
372
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
170
373
  * @param {string} [authorization] Bearer Token
171
374
  * @param {*} [options] Override http request option.
172
375
  * @throws {RequiredError}
173
376
  */
174
- async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
377
+ async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
175
378
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
176
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
177
380
  },
178
381
  /**
179
- * 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.
382
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
383
+ * @summary Delete the bank account
384
+ * @param {string} code Unique identifier for the object.
385
+ * @param {string} [authorization] Bearer Token
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
390
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
391
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
392
+ },
393
+ /**
394
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
395
+ * @summary Retrieve the bank account
396
+ * @param {string} code Unique identifier for the object.
397
+ * @param {string} [authorization] Bearer Token
398
+ * @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ async getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
404
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
405
+ },
406
+ /**
407
+ * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
180
408
  * @summary List bank accounts
181
409
  * @param {string} [authorization] Bearer Token
182
410
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
411
  * @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.
185
- * @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
- * @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 {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.
188
- * @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.
412
+ * @param {string} [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: code, id, accountCode, partnerCode&lt;/i&gt;
413
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
414
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
415
+ * @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
416
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
189
417
  * @param {*} [options] Override http request option.
190
418
  * @throws {RequiredError}
191
419
  */
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>> {
420
+ async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
193
421
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
194
422
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
195
423
  },
424
+ /**
425
+ * Set the primary bank account for the specified partner/account
426
+ * @summary Set primary bank account
427
+ * @param {string} code Code of the bank account to set primary
428
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
429
+ * @param {string} [authorization] Bearer Token
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
434
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
435
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
436
+ },
437
+ /**
438
+ * Update a bank account by code
439
+ * @summary Update the Update bank account
440
+ * @param {string} code Unique identifier for the object.
441
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
442
+ * @param {string} [authorization] Bearer Token
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>> {
447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
448
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
+ },
196
450
  }
197
451
  };
198
452
 
@@ -204,33 +458,80 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
204
458
  const localVarFp = BankAccountsApiFp(configuration)
205
459
  return {
206
460
  /**
207
- * Creates a bank account for a specified account.
461
+ * Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
208
462
  * @summary Create a bank account
209
463
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
210
464
  * @param {string} [authorization] Bearer Token
211
465
  * @param {*} [options] Override http request option.
212
466
  * @throws {RequiredError}
213
467
  */
214
- createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
468
+ createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
215
469
  return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
216
470
  },
217
471
  /**
218
- * 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.
472
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
473
+ * @summary Delete the bank account
474
+ * @param {string} code Unique identifier for the object.
475
+ * @param {string} [authorization] Bearer Token
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
480
+ return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
481
+ },
482
+ /**
483
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
484
+ * @summary Retrieve the bank account
485
+ * @param {string} code Unique identifier for the object.
486
+ * @param {string} [authorization] Bearer Token
487
+ * @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ getBankAccount(code: string, authorization?: string, expand?: 'primaryBankAccount', options?: any): AxiosPromise<GetBankAccountResponseClass> {
492
+ return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
493
+ },
494
+ /**
495
+ * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
219
496
  * @summary List bank accounts
220
497
  * @param {string} [authorization] Bearer Token
221
498
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
222
499
  * @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.
223
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
224
- * @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.
225
- * @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.
226
- * @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.
227
- * @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.
500
+ * @param {string} [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: code, id, accountCode, partnerCode&lt;/i&gt;
501
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
502
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
503
+ * @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
504
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
228
505
  * @param {*} [options] Override http request option.
229
506
  * @throws {RequiredError}
230
507
  */
231
- listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
508
+ listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: 'primaryBankAccount', filters?: string, options?: any): AxiosPromise<void> {
232
509
  return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
233
510
  },
511
+ /**
512
+ * Set the primary bank account for the specified partner/account
513
+ * @summary Set primary bank account
514
+ * @param {string} code Code of the bank account to set primary
515
+ * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
516
+ * @param {string} [authorization] Bearer Token
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
521
+ return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
522
+ },
523
+ /**
524
+ * Update a bank account by code
525
+ * @summary Update the Update bank account
526
+ * @param {string} code Unique identifier for the object.
527
+ * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
528
+ * @param {string} [authorization] Bearer Token
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass> {
533
+ return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
534
+ },
234
535
  };
235
536
  };
236
537
 
@@ -255,6 +556,55 @@ export interface BankAccountsApiCreateBankAccountRequest {
255
556
  readonly authorization?: string
256
557
  }
257
558
 
559
+ /**
560
+ * Request parameters for deleteBankAccount operation in BankAccountsApi.
561
+ * @export
562
+ * @interface BankAccountsApiDeleteBankAccountRequest
563
+ */
564
+ export interface BankAccountsApiDeleteBankAccountRequest {
565
+ /**
566
+ * Unique identifier for the object.
567
+ * @type {string}
568
+ * @memberof BankAccountsApiDeleteBankAccount
569
+ */
570
+ readonly code: string
571
+
572
+ /**
573
+ * Bearer Token
574
+ * @type {string}
575
+ * @memberof BankAccountsApiDeleteBankAccount
576
+ */
577
+ readonly authorization?: string
578
+ }
579
+
580
+ /**
581
+ * Request parameters for getBankAccount operation in BankAccountsApi.
582
+ * @export
583
+ * @interface BankAccountsApiGetBankAccountRequest
584
+ */
585
+ export interface BankAccountsApiGetBankAccountRequest {
586
+ /**
587
+ * Unique identifier for the object.
588
+ * @type {string}
589
+ * @memberof BankAccountsApiGetBankAccount
590
+ */
591
+ readonly code: string
592
+
593
+ /**
594
+ * Bearer Token
595
+ * @type {string}
596
+ * @memberof BankAccountsApiGetBankAccount
597
+ */
598
+ readonly authorization?: string
599
+
600
+ /**
601
+ * Expand the response with additional entities. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
602
+ * @type {'primaryBankAccount'}
603
+ * @memberof BankAccountsApiGetBankAccount
604
+ */
605
+ readonly expand?: 'primaryBankAccount'
606
+ }
607
+
258
608
  /**
259
609
  * Request parameters for listBankAccounts operation in BankAccountsApi.
260
610
  * @export
@@ -283,39 +633,95 @@ export interface BankAccountsApiListBankAccountsRequest {
283
633
  readonly pageToken?: any
284
634
 
285
635
  /**
286
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
287
- * @type {any}
636
+ * 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: code, id, accountCode, partnerCode&lt;/i&gt;
637
+ * @type {string}
288
638
  * @memberof BankAccountsApiListBankAccounts
289
639
  */
290
- readonly filter?: any
640
+ readonly filter?: string
291
641
 
292
642
  /**
293
- * 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.
643
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
294
644
  * @type {any}
295
645
  * @memberof BankAccountsApiListBankAccounts
296
646
  */
297
647
  readonly search?: any
298
648
 
299
649
  /**
300
- * 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.
301
- * @type {any}
650
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
651
+ * @type {string}
302
652
  * @memberof BankAccountsApiListBankAccounts
303
653
  */
304
- readonly order?: any
654
+ readonly order?: string
305
655
 
306
656
  /**
307
- * 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.
308
- * @type {any}
657
+ * Expand to fetch additional information about the list items. For example, using the \&quot;primaryBankAccount\&quot; expand, you can get information about whether a given bank account is primary.
658
+ * @type {'primaryBankAccount'}
309
659
  * @memberof BankAccountsApiListBankAccounts
310
660
  */
311
- readonly expand?: any
661
+ readonly expand?: 'primaryBankAccount'
312
662
 
313
663
  /**
314
- * 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.
315
- * @type {any}
664
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
665
+ * @type {string}
316
666
  * @memberof BankAccountsApiListBankAccounts
317
667
  */
318
- readonly filters?: any
668
+ readonly filters?: string
669
+ }
670
+
671
+ /**
672
+ * Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
673
+ * @export
674
+ * @interface BankAccountsApiSetPrimaryBankAccountRequest
675
+ */
676
+ export interface BankAccountsApiSetPrimaryBankAccountRequest {
677
+ /**
678
+ * Code of the bank account to set primary
679
+ * @type {string}
680
+ * @memberof BankAccountsApiSetPrimaryBankAccount
681
+ */
682
+ readonly code: string
683
+
684
+ /**
685
+ *
686
+ * @type {SetPrimaryBankAccountRequestDtoRest}
687
+ * @memberof BankAccountsApiSetPrimaryBankAccount
688
+ */
689
+ readonly setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest
690
+
691
+ /**
692
+ * Bearer Token
693
+ * @type {string}
694
+ * @memberof BankAccountsApiSetPrimaryBankAccount
695
+ */
696
+ readonly authorization?: string
697
+ }
698
+
699
+ /**
700
+ * Request parameters for updateBankAccount operation in BankAccountsApi.
701
+ * @export
702
+ * @interface BankAccountsApiUpdateBankAccountRequest
703
+ */
704
+ export interface BankAccountsApiUpdateBankAccountRequest {
705
+ /**
706
+ * Unique identifier for the object.
707
+ * @type {string}
708
+ * @memberof BankAccountsApiUpdateBankAccount
709
+ */
710
+ readonly code: string
711
+
712
+ /**
713
+ *
714
+ * @type {UpdateBankAccountRequestDtoRest}
715
+ * @memberof BankAccountsApiUpdateBankAccount
716
+ */
717
+ readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
718
+
719
+ /**
720
+ * Bearer Token
721
+ * @type {string}
722
+ * @memberof BankAccountsApiUpdateBankAccount
723
+ */
724
+ readonly authorization?: string
319
725
  }
320
726
 
321
727
  /**
@@ -326,7 +732,7 @@ export interface BankAccountsApiListBankAccountsRequest {
326
732
  */
327
733
  export class BankAccountsApi extends BaseAPI {
328
734
  /**
329
- * Creates a bank account for a specified account.
735
+ * Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
330
736
  * @summary Create a bank account
331
737
  * @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
332
738
  * @param {*} [options] Override http request option.
@@ -338,7 +744,31 @@ export class BankAccountsApi extends BaseAPI {
338
744
  }
339
745
 
340
746
  /**
341
- * 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.
747
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
748
+ * @summary Delete the bank account
749
+ * @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ * @memberof BankAccountsApi
753
+ */
754
+ public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
755
+ return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
756
+ }
757
+
758
+ /**
759
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
760
+ * @summary Retrieve the bank account
761
+ * @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ * @memberof BankAccountsApi
765
+ */
766
+ public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
767
+ return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
768
+ }
769
+
770
+ /**
771
+ * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
342
772
  * @summary List bank accounts
343
773
  * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
344
774
  * @param {*} [options] Override http request option.
@@ -348,4 +778,28 @@ export class BankAccountsApi extends BaseAPI {
348
778
  public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
349
779
  return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
350
780
  }
781
+
782
+ /**
783
+ * Set the primary bank account for the specified partner/account
784
+ * @summary Set primary bank account
785
+ * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ * @memberof BankAccountsApi
789
+ */
790
+ public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
791
+ return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
792
+ }
793
+
794
+ /**
795
+ * Update a bank account by code
796
+ * @summary Update the Update bank account
797
+ * @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ * @memberof BankAccountsApi
801
+ */
802
+ public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
803
+ return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
804
+ }
351
805
  }