@emilgroup/payment-sdk 1.13.1-beta.13 → 1.13.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 +349 -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 +471 -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 +10 -32
- 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 +352 -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 +452 -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 +2 -4
- package/dist/base.js +21 -40
- 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
|
/**
|
|
34
36
|
* BankOrdersApi - axios parameter creator
|
|
@@ -37,7 +39,7 @@ import { UpdateBankOrderResponseClass } from '../models';
|
|
|
37
39
|
export const BankOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
40
|
return {
|
|
39
41
|
/**
|
|
40
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
42
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
41
43
|
* @summary Create the bank order
|
|
42
44
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
43
45
|
* @param {string} [authorization] Bearer Token
|
|
@@ -84,7 +86,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
84
86
|
};
|
|
85
87
|
},
|
|
86
88
|
/**
|
|
87
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
89
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
88
90
|
* @summary Delete the bank order
|
|
89
91
|
* @param {string} code Unique identifier for the object.
|
|
90
92
|
* @param {string} [authorization] Bearer Token
|
|
@@ -129,14 +131,15 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
129
131
|
};
|
|
130
132
|
},
|
|
131
133
|
/**
|
|
132
|
-
* 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-
|
|
134
|
+
* 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\"
|
|
133
135
|
* @summary Retrieve the bank order
|
|
134
136
|
* @param {string} code
|
|
135
137
|
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @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>
|
|
136
139
|
* @param {*} [options] Override http request option.
|
|
137
140
|
* @throws {RequiredError}
|
|
138
141
|
*/
|
|
139
|
-
getBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
getBankOrder: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
140
143
|
// verify required parameter 'code' is not null or undefined
|
|
141
144
|
assertParamExists('getBankOrder', 'code', code)
|
|
142
145
|
const localVarPath = `/paymentservice/v1/bank-orders/{code}`
|
|
@@ -158,6 +161,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
158
161
|
// http bearer authentication required
|
|
159
162
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
160
163
|
|
|
164
|
+
if (expand !== undefined) {
|
|
165
|
+
localVarQueryParameter['expand'] = expand;
|
|
166
|
+
}
|
|
167
|
+
|
|
161
168
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
162
169
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
163
170
|
}
|
|
@@ -174,17 +181,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
174
181
|
};
|
|
175
182
|
},
|
|
176
183
|
/**
|
|
177
|
-
* 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-
|
|
184
|
+
* 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\"
|
|
178
185
|
* @summary List bank orders
|
|
179
186
|
* @param {string} [authorization] Bearer Token
|
|
180
|
-
* @param {
|
|
181
|
-
* @param {string} [
|
|
182
|
-
* @param {string} [
|
|
183
|
-
* @param {string} [
|
|
187
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @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.
|
|
189
|
+
* @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>
|
|
190
|
+
* @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>
|
|
191
|
+
* @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>
|
|
192
|
+
* @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>
|
|
193
|
+
* @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>
|
|
184
194
|
* @param {*} [options] Override http request option.
|
|
185
195
|
* @throws {RequiredError}
|
|
186
196
|
*/
|
|
187
|
-
listBankOrders: async (authorization?: string, filter?: string,
|
|
197
|
+
listBankOrders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
198
|
const localVarPath = `/paymentservice/v1/bank-orders`;
|
|
189
199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -203,12 +213,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
203
213
|
// http bearer authentication required
|
|
204
214
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
205
215
|
|
|
216
|
+
if (pageSize !== undefined) {
|
|
217
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (pageToken !== undefined) {
|
|
221
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
222
|
+
}
|
|
223
|
+
|
|
206
224
|
if (filter !== undefined) {
|
|
207
225
|
localVarQueryParameter['filter'] = filter;
|
|
208
226
|
}
|
|
209
227
|
|
|
210
|
-
if (
|
|
211
|
-
localVarQueryParameter['
|
|
228
|
+
if (search !== undefined) {
|
|
229
|
+
localVarQueryParameter['search'] = search;
|
|
212
230
|
}
|
|
213
231
|
|
|
214
232
|
if (order !== undefined) {
|
|
@@ -219,6 +237,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
219
237
|
localVarQueryParameter['expand'] = expand;
|
|
220
238
|
}
|
|
221
239
|
|
|
240
|
+
if (filters !== undefined) {
|
|
241
|
+
localVarQueryParameter['filters'] = filters;
|
|
242
|
+
}
|
|
243
|
+
|
|
222
244
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
223
245
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
224
246
|
}
|
|
@@ -235,16 +257,19 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
235
257
|
};
|
|
236
258
|
},
|
|
237
259
|
/**
|
|
238
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
260
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
239
261
|
* @summary Update the bank order
|
|
240
262
|
* @param {string} code Unique identifier for the object.
|
|
263
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
241
264
|
* @param {string} [authorization] Bearer Token
|
|
242
265
|
* @param {*} [options] Override http request option.
|
|
243
266
|
* @throws {RequiredError}
|
|
244
267
|
*/
|
|
245
|
-
updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
268
|
+
updateBankOrder: async (code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
246
269
|
// verify required parameter 'code' is not null or undefined
|
|
247
270
|
assertParamExists('updateBankOrder', 'code', code)
|
|
271
|
+
// verify required parameter 'updateBankOrderRequestDto' is not null or undefined
|
|
272
|
+
assertParamExists('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto)
|
|
248
273
|
const localVarPath = `/paymentservice/v1/bank-orders/{code}`
|
|
249
274
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
250
275
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -270,9 +295,12 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
270
295
|
|
|
271
296
|
|
|
272
297
|
|
|
298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
|
+
|
|
273
300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
274
301
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
302
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
303
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDto, localVarRequestOptions, configuration)
|
|
276
304
|
|
|
277
305
|
return {
|
|
278
306
|
url: toPathString(localVarUrlObj),
|
|
@@ -290,7 +318,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
290
318
|
const localVarAxiosParamCreator = BankOrdersApiAxiosParamCreator(configuration)
|
|
291
319
|
return {
|
|
292
320
|
/**
|
|
293
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
321
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
294
322
|
* @summary Create the bank order
|
|
295
323
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
296
324
|
* @param {string} [authorization] Bearer Token
|
|
@@ -302,7 +330,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
302
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
303
331
|
},
|
|
304
332
|
/**
|
|
305
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
333
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
306
334
|
* @summary Delete the bank order
|
|
307
335
|
* @param {string} code Unique identifier for the object.
|
|
308
336
|
* @param {string} [authorization] Bearer Token
|
|
@@ -314,42 +342,47 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
314
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
315
343
|
},
|
|
316
344
|
/**
|
|
317
|
-
* 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-
|
|
345
|
+
* 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\"
|
|
318
346
|
* @summary Retrieve the bank order
|
|
319
347
|
* @param {string} code
|
|
320
348
|
* @param {string} [authorization] Bearer Token
|
|
349
|
+
* @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>
|
|
321
350
|
* @param {*} [options] Override http request option.
|
|
322
351
|
* @throws {RequiredError}
|
|
323
352
|
*/
|
|
324
|
-
async getBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
|
|
325
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, options);
|
|
353
|
+
async getBankOrder(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
|
|
354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options);
|
|
326
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
327
356
|
},
|
|
328
357
|
/**
|
|
329
|
-
* 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-
|
|
358
|
+
* 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\"
|
|
330
359
|
* @summary List bank orders
|
|
331
360
|
* @param {string} [authorization] Bearer Token
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {string} [
|
|
334
|
-
* @param {string} [
|
|
335
|
-
* @param {string} [
|
|
361
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
|
+
* @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.
|
|
363
|
+
* @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>
|
|
364
|
+
* @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>
|
|
365
|
+
* @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>
|
|
366
|
+
* @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>
|
|
367
|
+
* @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>
|
|
336
368
|
* @param {*} [options] Override http request option.
|
|
337
369
|
* @throws {RequiredError}
|
|
338
370
|
*/
|
|
339
|
-
async listBankOrders(authorization?: string, filter?: string,
|
|
340
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter,
|
|
371
|
+
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>> {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
341
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
374
|
},
|
|
343
375
|
/**
|
|
344
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
376
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
345
377
|
* @summary Update the bank order
|
|
346
378
|
* @param {string} code Unique identifier for the object.
|
|
379
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
347
380
|
* @param {string} [authorization] Bearer Token
|
|
348
381
|
* @param {*} [options] Override http request option.
|
|
349
382
|
* @throws {RequiredError}
|
|
350
383
|
*/
|
|
351
|
-
async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
|
|
384
|
+
async updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
|
|
385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options);
|
|
353
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
387
|
},
|
|
355
388
|
}
|
|
@@ -363,7 +396,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
363
396
|
const localVarFp = BankOrdersApiFp(configuration)
|
|
364
397
|
return {
|
|
365
398
|
/**
|
|
366
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
399
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
367
400
|
* @summary Create the bank order
|
|
368
401
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
369
402
|
* @param {string} [authorization] Bearer Token
|
|
@@ -374,7 +407,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
374
407
|
return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
375
408
|
},
|
|
376
409
|
/**
|
|
377
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
410
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
378
411
|
* @summary Delete the bank order
|
|
379
412
|
* @param {string} code Unique identifier for the object.
|
|
380
413
|
* @param {string} [authorization] Bearer Token
|
|
@@ -385,40 +418,45 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
385
418
|
return localVarFp.deleteBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
386
419
|
},
|
|
387
420
|
/**
|
|
388
|
-
* 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-
|
|
421
|
+
* 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\"
|
|
389
422
|
* @summary Retrieve the bank order
|
|
390
423
|
* @param {string} code
|
|
391
424
|
* @param {string} [authorization] Bearer Token
|
|
425
|
+
* @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>
|
|
392
426
|
* @param {*} [options] Override http request option.
|
|
393
427
|
* @throws {RequiredError}
|
|
394
428
|
*/
|
|
395
|
-
getBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
|
|
396
|
-
return localVarFp.getBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
429
|
+
getBankOrder(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
|
|
430
|
+
return localVarFp.getBankOrder(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
397
431
|
},
|
|
398
432
|
/**
|
|
399
|
-
* 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-
|
|
433
|
+
* 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\"
|
|
400
434
|
* @summary List bank orders
|
|
401
435
|
* @param {string} [authorization] Bearer Token
|
|
402
|
-
* @param {
|
|
403
|
-
* @param {string} [
|
|
404
|
-
* @param {string} [
|
|
405
|
-
* @param {string} [
|
|
436
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
437
|
+
* @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.
|
|
438
|
+
* @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>
|
|
439
|
+
* @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>
|
|
440
|
+
* @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>
|
|
441
|
+
* @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>
|
|
442
|
+
* @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>
|
|
406
443
|
* @param {*} [options] Override http request option.
|
|
407
444
|
* @throws {RequiredError}
|
|
408
445
|
*/
|
|
409
|
-
listBankOrders(authorization?: string, filter?: string,
|
|
410
|
-
return localVarFp.listBankOrders(authorization, filter,
|
|
446
|
+
listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
|
|
447
|
+
return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
411
448
|
},
|
|
412
449
|
/**
|
|
413
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
450
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
414
451
|
* @summary Update the bank order
|
|
415
452
|
* @param {string} code Unique identifier for the object.
|
|
453
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
416
454
|
* @param {string} [authorization] Bearer Token
|
|
417
455
|
* @param {*} [options] Override http request option.
|
|
418
456
|
* @throws {RequiredError}
|
|
419
457
|
*/
|
|
420
|
-
updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
|
|
421
|
-
return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
|
|
458
|
+
updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
|
|
459
|
+
return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
460
|
},
|
|
423
461
|
};
|
|
424
462
|
};
|
|
@@ -484,6 +522,13 @@ export interface BankOrdersApiGetBankOrderRequest {
|
|
|
484
522
|
* @memberof BankOrdersApiGetBankOrder
|
|
485
523
|
*/
|
|
486
524
|
readonly authorization?: string
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* 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>
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof BankOrdersApiGetBankOrder
|
|
530
|
+
*/
|
|
531
|
+
readonly expand?: string
|
|
487
532
|
}
|
|
488
533
|
|
|
489
534
|
/**
|
|
@@ -500,32 +545,53 @@ export interface BankOrdersApiListBankOrdersRequest {
|
|
|
500
545
|
readonly authorization?: string
|
|
501
546
|
|
|
502
547
|
/**
|
|
503
|
-
*
|
|
548
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
549
|
+
* @type {number}
|
|
550
|
+
* @memberof BankOrdersApiListBankOrders
|
|
551
|
+
*/
|
|
552
|
+
readonly pageSize?: number
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof BankOrdersApiListBankOrders
|
|
558
|
+
*/
|
|
559
|
+
readonly pageToken?: string
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* 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>
|
|
504
563
|
* @type {string}
|
|
505
564
|
* @memberof BankOrdersApiListBankOrders
|
|
506
565
|
*/
|
|
507
566
|
readonly filter?: string
|
|
508
567
|
|
|
509
568
|
/**
|
|
510
|
-
*
|
|
569
|
+
* 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>
|
|
511
570
|
* @type {string}
|
|
512
571
|
* @memberof BankOrdersApiListBankOrders
|
|
513
572
|
*/
|
|
514
|
-
readonly
|
|
573
|
+
readonly search?: string
|
|
515
574
|
|
|
516
575
|
/**
|
|
517
|
-
* 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,
|
|
576
|
+
* 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>
|
|
518
577
|
* @type {string}
|
|
519
578
|
* @memberof BankOrdersApiListBankOrders
|
|
520
579
|
*/
|
|
521
580
|
readonly order?: string
|
|
522
581
|
|
|
523
582
|
/**
|
|
524
|
-
* 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/>
|
|
583
|
+
* 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>
|
|
525
584
|
* @type {string}
|
|
526
585
|
* @memberof BankOrdersApiListBankOrders
|
|
527
586
|
*/
|
|
528
587
|
readonly expand?: string
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* 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>
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof BankOrdersApiListBankOrders
|
|
593
|
+
*/
|
|
594
|
+
readonly filters?: string
|
|
529
595
|
}
|
|
530
596
|
|
|
531
597
|
/**
|
|
@@ -541,6 +607,13 @@ export interface BankOrdersApiUpdateBankOrderRequest {
|
|
|
541
607
|
*/
|
|
542
608
|
readonly code: string
|
|
543
609
|
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @type {UpdateBankOrderRequestDto}
|
|
613
|
+
* @memberof BankOrdersApiUpdateBankOrder
|
|
614
|
+
*/
|
|
615
|
+
readonly updateBankOrderRequestDto: UpdateBankOrderRequestDto
|
|
616
|
+
|
|
544
617
|
/**
|
|
545
618
|
* Bearer Token
|
|
546
619
|
* @type {string}
|
|
@@ -557,7 +630,7 @@ export interface BankOrdersApiUpdateBankOrderRequest {
|
|
|
557
630
|
*/
|
|
558
631
|
export class BankOrdersApi extends BaseAPI {
|
|
559
632
|
/**
|
|
560
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
633
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
561
634
|
* @summary Create the bank order
|
|
562
635
|
* @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
|
|
563
636
|
* @param {*} [options] Override http request option.
|
|
@@ -569,7 +642,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
569
642
|
}
|
|
570
643
|
|
|
571
644
|
/**
|
|
572
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
645
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
573
646
|
* @summary Delete the bank order
|
|
574
647
|
* @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
|
|
575
648
|
* @param {*} [options] Override http request option.
|
|
@@ -581,7 +654,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
581
654
|
}
|
|
582
655
|
|
|
583
656
|
/**
|
|
584
|
-
* 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-
|
|
657
|
+
* 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\"
|
|
585
658
|
* @summary Retrieve the bank order
|
|
586
659
|
* @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
|
|
587
660
|
* @param {*} [options] Override http request option.
|
|
@@ -589,11 +662,11 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
589
662
|
* @memberof BankOrdersApi
|
|
590
663
|
*/
|
|
591
664
|
public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
|
|
592
|
-
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
665
|
+
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
593
666
|
}
|
|
594
667
|
|
|
595
668
|
/**
|
|
596
|
-
* 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-
|
|
669
|
+
* 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\"
|
|
597
670
|
* @summary List bank orders
|
|
598
671
|
* @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
|
|
599
672
|
* @param {*} [options] Override http request option.
|
|
@@ -601,11 +674,11 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
601
674
|
* @memberof BankOrdersApi
|
|
602
675
|
*/
|
|
603
676
|
public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
|
|
604
|
-
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
677
|
+
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));
|
|
605
678
|
}
|
|
606
679
|
|
|
607
680
|
/**
|
|
608
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
681
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
609
682
|
* @summary Update the bank order
|
|
610
683
|
* @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
|
|
611
684
|
* @param {*} [options] Override http request option.
|
|
@@ -613,6 +686,6 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
613
686
|
* @memberof BankOrdersApi
|
|
614
687
|
*/
|
|
615
688
|
public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
616
|
-
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
689
|
+
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
617
690
|
}
|
|
618
691
|
}
|