@emilgroup/payment-sdk-node 1.21.1-beta.13 → 1.21.1-beta.131
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.
- package/.openapi-generator/FILES +24 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +130 -57
- package/api/bank-transaction-api.ts +59 -48
- package/api/exceeding-credits-api.ts +353 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +180 -17
- package/api/policy-payment-methods-api.ts +475 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +4 -0
- package/base.ts +3 -4
- package/common.ts +2 -2
- package/configuration.ts +0 -9
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +92 -46
- package/dist/api/bank-orders-api.js +83 -52
- package/dist/api/bank-transaction-api.d.ts +39 -31
- package/dist/api/bank-transaction-api.js +36 -31
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +356 -0
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +104 -12
- package/dist/api/payments-api.js +133 -14
- package/dist/api/policy-payment-methods-api.d.ts +272 -0
- package/dist/api/policy-payment-methods-api.js +456 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +1 -2
- package/dist/base.js +1 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +0 -6
- package/dist/configuration.js +0 -8
- package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
- package/dist/models/bank-order-class.d.ts +23 -3
- package/dist/models/bank-order-xml-file-class.d.ts +72 -0
- package/dist/models/bank-order-xml-file-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +60 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +9 -9
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
- package/dist/models/eis-sepa-debit-dto.js +15 -0
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +22 -1
- package/dist/models/index.js +22 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-policy-payment-methods-response-class.js +15 -0
- package/dist/models/mandate-dto.d.ts +43 -0
- package/dist/models/mandate-dto.js +15 -0
- package/dist/models/mandate-hash-data-dto.d.ts +42 -0
- package/dist/models/mandate-hash-data-dto.js +15 -0
- package/dist/models/mandate-reference-class.d.ts +90 -0
- package/dist/models/mandate-reference-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +86 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
- package/dist/models/tenant-bank-account-class.d.ts +30 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +12 -12
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
- package/models/activate-policy-payment-method-request-dto.ts +30 -0
- package/models/bank-order-class.ts +23 -3
- package/models/bank-order-xml-file-class.ts +78 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +66 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +9 -9
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +30 -2
- package/models/create-tenant-bank-account-request-dto.ts +30 -0
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/eis-sepa-debit-dto.ts +61 -0
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +22 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/list-policy-payment-methods-response-class.ts +37 -0
- package/models/mandate-dto.ts +49 -0
- package/models/mandate-hash-data-dto.ts +48 -0
- package/models/mandate-reference-class.ts +96 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +92 -0
- package/models/refund-class.ts +7 -1
- package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
- package/models/tenant-bank-account-class.ts +30 -0
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +12 -12
- package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
- package/package.json +1 -1
- package/tsconfig.json +0 -1
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
package/api/bank-orders-api.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { GetBankOrderResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListBankOrdersResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { UpdateBankOrderRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { UpdateBankOrderResponseClass } from '../models';
|
|
33
35
|
// URLSearchParams not necessarily used
|
|
34
36
|
// @ts-ignore
|
|
@@ -41,7 +43,7 @@ const FormData = require('form-data');
|
|
|
41
43
|
export const BankOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
44
|
return {
|
|
43
45
|
/**
|
|
44
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
46
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
45
47
|
* @summary Create the bank order
|
|
46
48
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
47
49
|
* @param {string} [authorization] Bearer Token
|
|
@@ -88,7 +90,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
88
90
|
};
|
|
89
91
|
},
|
|
90
92
|
/**
|
|
91
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
93
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
92
94
|
* @summary Delete the bank order
|
|
93
95
|
* @param {string} code Unique identifier for the object.
|
|
94
96
|
* @param {string} [authorization] Bearer Token
|
|
@@ -133,14 +135,15 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
133
135
|
};
|
|
134
136
|
},
|
|
135
137
|
/**
|
|
136
|
-
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-
|
|
138
|
+
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
137
139
|
* @summary Retrieve the bank order
|
|
138
140
|
* @param {string} code
|
|
139
141
|
* @param {string} [authorization] Bearer Token
|
|
142
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
140
143
|
* @param {*} [options] Override http request option.
|
|
141
144
|
* @throws {RequiredError}
|
|
142
145
|
*/
|
|
143
|
-
getBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
getBankOrder: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
147
|
// verify required parameter 'code' is not null or undefined
|
|
145
148
|
assertParamExists('getBankOrder', 'code', code)
|
|
146
149
|
const localVarPath = `/paymentservice/v1/bank-orders/{code}`
|
|
@@ -162,6 +165,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
162
165
|
// http bearer authentication required
|
|
163
166
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
167
|
|
|
168
|
+
if (expand !== undefined) {
|
|
169
|
+
localVarQueryParameter['expand'] = expand;
|
|
170
|
+
}
|
|
171
|
+
|
|
165
172
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
166
173
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
167
174
|
}
|
|
@@ -178,17 +185,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
178
185
|
};
|
|
179
186
|
},
|
|
180
187
|
/**
|
|
181
|
-
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-
|
|
188
|
+
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
182
189
|
* @summary List bank orders
|
|
183
190
|
* @param {string} [authorization] Bearer Token
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {string} [
|
|
186
|
-
* @param {string} [
|
|
187
|
-
* @param {string} [
|
|
191
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
192
|
+
* @param {string} [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.
|
|
193
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
194
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
|
|
195
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
196
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
197
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
188
198
|
* @param {*} [options] Override http request option.
|
|
189
199
|
* @throws {RequiredError}
|
|
190
200
|
*/
|
|
191
|
-
listBankOrders: async (authorization?: string, filter?: string,
|
|
201
|
+
listBankOrders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
202
|
const localVarPath = `/paymentservice/v1/bank-orders`;
|
|
193
203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
194
204
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -207,12 +217,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
207
217
|
// http bearer authentication required
|
|
208
218
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
209
219
|
|
|
220
|
+
if (pageSize !== undefined) {
|
|
221
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (pageToken !== undefined) {
|
|
225
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
226
|
+
}
|
|
227
|
+
|
|
210
228
|
if (filter !== undefined) {
|
|
211
229
|
localVarQueryParameter['filter'] = filter;
|
|
212
230
|
}
|
|
213
231
|
|
|
214
|
-
if (
|
|
215
|
-
localVarQueryParameter['
|
|
232
|
+
if (search !== undefined) {
|
|
233
|
+
localVarQueryParameter['search'] = search;
|
|
216
234
|
}
|
|
217
235
|
|
|
218
236
|
if (order !== undefined) {
|
|
@@ -223,6 +241,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
223
241
|
localVarQueryParameter['expand'] = expand;
|
|
224
242
|
}
|
|
225
243
|
|
|
244
|
+
if (filters !== undefined) {
|
|
245
|
+
localVarQueryParameter['filters'] = filters;
|
|
246
|
+
}
|
|
247
|
+
|
|
226
248
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
249
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
250
|
}
|
|
@@ -239,16 +261,19 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
239
261
|
};
|
|
240
262
|
},
|
|
241
263
|
/**
|
|
242
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
264
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
243
265
|
* @summary Update the bank order
|
|
244
266
|
* @param {string} code Unique identifier for the object.
|
|
267
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
245
268
|
* @param {string} [authorization] Bearer Token
|
|
246
269
|
* @param {*} [options] Override http request option.
|
|
247
270
|
* @throws {RequiredError}
|
|
248
271
|
*/
|
|
249
|
-
updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
272
|
+
updateBankOrder: async (code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
250
273
|
// verify required parameter 'code' is not null or undefined
|
|
251
274
|
assertParamExists('updateBankOrder', 'code', code)
|
|
275
|
+
// verify required parameter 'updateBankOrderRequestDto' is not null or undefined
|
|
276
|
+
assertParamExists('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto)
|
|
252
277
|
const localVarPath = `/paymentservice/v1/bank-orders/{code}`
|
|
253
278
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
254
279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -274,9 +299,12 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
274
299
|
|
|
275
300
|
|
|
276
301
|
|
|
302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
303
|
+
|
|
277
304
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
305
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
306
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
307
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDto, localVarRequestOptions, configuration)
|
|
280
308
|
|
|
281
309
|
return {
|
|
282
310
|
url: toPathString(localVarUrlObj),
|
|
@@ -294,7 +322,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
294
322
|
const localVarAxiosParamCreator = BankOrdersApiAxiosParamCreator(configuration)
|
|
295
323
|
return {
|
|
296
324
|
/**
|
|
297
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
325
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
298
326
|
* @summary Create the bank order
|
|
299
327
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
300
328
|
* @param {string} [authorization] Bearer Token
|
|
@@ -306,7 +334,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
306
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
335
|
},
|
|
308
336
|
/**
|
|
309
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
337
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
310
338
|
* @summary Delete the bank order
|
|
311
339
|
* @param {string} code Unique identifier for the object.
|
|
312
340
|
* @param {string} [authorization] Bearer Token
|
|
@@ -318,42 +346,47 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
318
346
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
319
347
|
},
|
|
320
348
|
/**
|
|
321
|
-
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-
|
|
349
|
+
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
322
350
|
* @summary Retrieve the bank order
|
|
323
351
|
* @param {string} code
|
|
324
352
|
* @param {string} [authorization] Bearer Token
|
|
353
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
325
354
|
* @param {*} [options] Override http request option.
|
|
326
355
|
* @throws {RequiredError}
|
|
327
356
|
*/
|
|
328
|
-
async getBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
|
|
329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, options);
|
|
357
|
+
async getBankOrder(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
|
|
358
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options);
|
|
330
359
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
360
|
},
|
|
332
361
|
/**
|
|
333
|
-
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-
|
|
362
|
+
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
334
363
|
* @summary List bank orders
|
|
335
364
|
* @param {string} [authorization] Bearer Token
|
|
336
|
-
* @param {
|
|
337
|
-
* @param {string} [
|
|
338
|
-
* @param {string} [
|
|
339
|
-
* @param {string} [
|
|
365
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
|
+
* @param {string} [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.
|
|
367
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
368
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
|
|
369
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
370
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
371
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
340
372
|
* @param {*} [options] Override http request option.
|
|
341
373
|
* @throws {RequiredError}
|
|
342
374
|
*/
|
|
343
|
-
async listBankOrders(authorization?: string, filter?: string,
|
|
344
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter,
|
|
375
|
+
async listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
|
|
376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
345
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
346
378
|
},
|
|
347
379
|
/**
|
|
348
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
380
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
349
381
|
* @summary Update the bank order
|
|
350
382
|
* @param {string} code Unique identifier for the object.
|
|
383
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
351
384
|
* @param {string} [authorization] Bearer Token
|
|
352
385
|
* @param {*} [options] Override http request option.
|
|
353
386
|
* @throws {RequiredError}
|
|
354
387
|
*/
|
|
355
|
-
async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
|
|
356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
|
|
388
|
+
async updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options);
|
|
357
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
391
|
},
|
|
359
392
|
}
|
|
@@ -367,7 +400,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
367
400
|
const localVarFp = BankOrdersApiFp(configuration)
|
|
368
401
|
return {
|
|
369
402
|
/**
|
|
370
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
403
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
371
404
|
* @summary Create the bank order
|
|
372
405
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
373
406
|
* @param {string} [authorization] Bearer Token
|
|
@@ -378,7 +411,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
378
411
|
return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
379
412
|
},
|
|
380
413
|
/**
|
|
381
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
414
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
382
415
|
* @summary Delete the bank order
|
|
383
416
|
* @param {string} code Unique identifier for the object.
|
|
384
417
|
* @param {string} [authorization] Bearer Token
|
|
@@ -389,40 +422,45 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
389
422
|
return localVarFp.deleteBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
390
423
|
},
|
|
391
424
|
/**
|
|
392
|
-
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-
|
|
425
|
+
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
393
426
|
* @summary Retrieve the bank order
|
|
394
427
|
* @param {string} code
|
|
395
428
|
* @param {string} [authorization] Bearer Token
|
|
429
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
396
430
|
* @param {*} [options] Override http request option.
|
|
397
431
|
* @throws {RequiredError}
|
|
398
432
|
*/
|
|
399
|
-
getBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
|
|
400
|
-
return localVarFp.getBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
433
|
+
getBankOrder(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
|
|
434
|
+
return localVarFp.getBankOrder(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
401
435
|
},
|
|
402
436
|
/**
|
|
403
|
-
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-
|
|
437
|
+
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
404
438
|
* @summary List bank orders
|
|
405
439
|
* @param {string} [authorization] Bearer Token
|
|
406
|
-
* @param {
|
|
407
|
-
* @param {string} [
|
|
408
|
-
* @param {string} [
|
|
409
|
-
* @param {string} [
|
|
440
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
441
|
+
* @param {string} [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.
|
|
442
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
443
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
|
|
444
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
445
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
446
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
410
447
|
* @param {*} [options] Override http request option.
|
|
411
448
|
* @throws {RequiredError}
|
|
412
449
|
*/
|
|
413
|
-
listBankOrders(authorization?: string, filter?: string,
|
|
414
|
-
return localVarFp.listBankOrders(authorization, filter,
|
|
450
|
+
listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
|
|
451
|
+
return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
415
452
|
},
|
|
416
453
|
/**
|
|
417
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
454
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
418
455
|
* @summary Update the bank order
|
|
419
456
|
* @param {string} code Unique identifier for the object.
|
|
457
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
420
458
|
* @param {string} [authorization] Bearer Token
|
|
421
459
|
* @param {*} [options] Override http request option.
|
|
422
460
|
* @throws {RequiredError}
|
|
423
461
|
*/
|
|
424
|
-
updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
|
|
425
|
-
return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
462
|
+
updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
|
|
463
|
+
return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
426
464
|
},
|
|
427
465
|
};
|
|
428
466
|
};
|
|
@@ -488,6 +526,13 @@ export interface BankOrdersApiGetBankOrderRequest {
|
|
|
488
526
|
* @memberof BankOrdersApiGetBankOrder
|
|
489
527
|
*/
|
|
490
528
|
readonly authorization?: string
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof BankOrdersApiGetBankOrder
|
|
534
|
+
*/
|
|
535
|
+
readonly expand?: string
|
|
491
536
|
}
|
|
492
537
|
|
|
493
538
|
/**
|
|
@@ -504,32 +549,53 @@ export interface BankOrdersApiListBankOrdersRequest {
|
|
|
504
549
|
readonly authorization?: string
|
|
505
550
|
|
|
506
551
|
/**
|
|
507
|
-
*
|
|
552
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
553
|
+
* @type {number}
|
|
554
|
+
* @memberof BankOrdersApiListBankOrders
|
|
555
|
+
*/
|
|
556
|
+
readonly pageSize?: number
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* 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.
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof BankOrdersApiListBankOrders
|
|
562
|
+
*/
|
|
563
|
+
readonly pageToken?: string
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
508
567
|
* @type {string}
|
|
509
568
|
* @memberof BankOrdersApiListBankOrders
|
|
510
569
|
*/
|
|
511
570
|
readonly filter?: string
|
|
512
571
|
|
|
513
572
|
/**
|
|
514
|
-
*
|
|
573
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
|
|
515
574
|
* @type {string}
|
|
516
575
|
* @memberof BankOrdersApiListBankOrders
|
|
517
576
|
*/
|
|
518
|
-
readonly
|
|
577
|
+
readonly search?: string
|
|
519
578
|
|
|
520
579
|
/**
|
|
521
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, orderNumber,
|
|
580
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
522
581
|
* @type {string}
|
|
523
582
|
* @memberof BankOrdersApiListBankOrders
|
|
524
583
|
*/
|
|
525
584
|
readonly order?: string
|
|
526
585
|
|
|
527
586
|
/**
|
|
528
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
587
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
|
|
529
588
|
* @type {string}
|
|
530
589
|
* @memberof BankOrdersApiListBankOrders
|
|
531
590
|
*/
|
|
532
591
|
readonly expand?: string
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof BankOrdersApiListBankOrders
|
|
597
|
+
*/
|
|
598
|
+
readonly filters?: string
|
|
533
599
|
}
|
|
534
600
|
|
|
535
601
|
/**
|
|
@@ -545,6 +611,13 @@ export interface BankOrdersApiUpdateBankOrderRequest {
|
|
|
545
611
|
*/
|
|
546
612
|
readonly code: string
|
|
547
613
|
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {UpdateBankOrderRequestDto}
|
|
617
|
+
* @memberof BankOrdersApiUpdateBankOrder
|
|
618
|
+
*/
|
|
619
|
+
readonly updateBankOrderRequestDto: UpdateBankOrderRequestDto
|
|
620
|
+
|
|
548
621
|
/**
|
|
549
622
|
* Bearer Token
|
|
550
623
|
* @type {string}
|
|
@@ -561,7 +634,7 @@ export interface BankOrdersApiUpdateBankOrderRequest {
|
|
|
561
634
|
*/
|
|
562
635
|
export class BankOrdersApi extends BaseAPI {
|
|
563
636
|
/**
|
|
564
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
637
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
565
638
|
* @summary Create the bank order
|
|
566
639
|
* @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
|
|
567
640
|
* @param {*} [options] Override http request option.
|
|
@@ -573,7 +646,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
573
646
|
}
|
|
574
647
|
|
|
575
648
|
/**
|
|
576
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
649
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
577
650
|
* @summary Delete the bank order
|
|
578
651
|
* @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
|
|
579
652
|
* @param {*} [options] Override http request option.
|
|
@@ -585,7 +658,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
585
658
|
}
|
|
586
659
|
|
|
587
660
|
/**
|
|
588
|
-
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-
|
|
661
|
+
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
589
662
|
* @summary Retrieve the bank order
|
|
590
663
|
* @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
|
|
591
664
|
* @param {*} [options] Override http request option.
|
|
@@ -593,11 +666,11 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
593
666
|
* @memberof BankOrdersApi
|
|
594
667
|
*/
|
|
595
668
|
public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
|
|
596
|
-
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
669
|
+
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
597
670
|
}
|
|
598
671
|
|
|
599
672
|
/**
|
|
600
|
-
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-
|
|
673
|
+
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
601
674
|
* @summary List bank orders
|
|
602
675
|
* @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
|
|
603
676
|
* @param {*} [options] Override http request option.
|
|
@@ -605,11 +678,11 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
605
678
|
* @memberof BankOrdersApi
|
|
606
679
|
*/
|
|
607
680
|
public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
|
|
608
|
-
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
681
|
+
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
609
682
|
}
|
|
610
683
|
|
|
611
684
|
/**
|
|
612
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
685
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
613
686
|
* @summary Update the bank order
|
|
614
687
|
* @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
|
|
615
688
|
* @param {*} [options] Override http request option.
|
|
@@ -617,6 +690,6 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
617
690
|
* @memberof BankOrdersApi
|
|
618
691
|
*/
|
|
619
692
|
public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
693
|
+
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
621
694
|
}
|
|
622
695
|
}
|