@emilgroup/customer-sdk-node 1.41.0 → 1.44.1-beta.0
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 +1 -0
- package/README.md +2 -2
- package/api/claims-api.ts +28 -28
- package/api/customers-api.ts +28 -28
- package/api/documents-api.ts +51 -34
- package/api/invoices-api.ts +28 -28
- package/api/leads-api.ts +62 -62
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +1 -0
- package/dist/api/claims-api.d.ts +20 -20
- package/dist/api/claims-api.js +18 -18
- package/dist/api/customers-api.d.ts +20 -20
- package/dist/api/customers-api.js +18 -18
- package/dist/api/documents-api.d.ts +33 -23
- package/dist/api/documents-api.js +31 -24
- package/dist/api/invoices-api.d.ts +20 -20
- package/dist/api/invoices-api.js +18 -18
- package/dist/api/leads-api.d.ts +40 -40
- package/dist/api/leads-api.js +48 -48
- package/dist/api/policies-api.d.ts +20 -20
- package/dist/api/policies-api.js +18 -18
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/base.d.ts +1 -0
- package/dist/base.js +1 -0
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/create-account-request-dto.d.ts +2 -8
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/customer-product-class.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
- package/dist/models/upload-account-documents-request-dto.js +19 -0
- package/models/account-class.ts +1 -1
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/create-account-request-dto.ts +2 -8
- package/models/customer-product-class.ts +2 -2
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
|
@@ -46,18 +46,18 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
46
46
|
/**
|
|
47
47
|
* Get customer list.
|
|
48
48
|
* @summary Get customers list
|
|
49
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
49
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
50
50
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
51
51
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
52
|
-
* @param {any} [
|
|
53
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
52
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
54
53
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
55
54
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
55
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
56
56
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
57
|
* @param {*} [options] Override http request option.
|
|
58
58
|
* @throws {RequiredError}
|
|
59
59
|
*/
|
|
60
|
-
listCustomers: (pageSize?: any, pageToken?: any, filter?: any,
|
|
60
|
+
listCustomers: (pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
61
|
/**
|
|
62
62
|
* Request a token to change the email address for the customer.
|
|
63
63
|
* @summary Request customer email change
|
|
@@ -114,18 +114,18 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
/**
|
|
115
115
|
* Get customer list.
|
|
116
116
|
* @summary Get customers list
|
|
117
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
118
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
119
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
-
* @param {any} [
|
|
121
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
120
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
122
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
123
122
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
123
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
124
124
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
listCustomers(pageSize?: any, pageToken?: any, filter?: any,
|
|
128
|
+
listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
129
129
|
/**
|
|
130
130
|
* Request a token to change the email address for the customer.
|
|
131
131
|
* @summary Request customer email change
|
|
@@ -182,18 +182,18 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
182
182
|
/**
|
|
183
183
|
* Get customer list.
|
|
184
184
|
* @summary Get customers list
|
|
185
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
185
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
186
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
187
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
188
|
-
* @param {any} [
|
|
189
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
188
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
190
189
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
191
190
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
191
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
listCustomers(pageSize?: any, pageToken?: any, filter?: any,
|
|
196
|
+
listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<object>;
|
|
197
197
|
/**
|
|
198
198
|
* Request a token to change the email address for the customer.
|
|
199
199
|
* @summary Request customer email change
|
|
@@ -269,7 +269,7 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
269
269
|
*/
|
|
270
270
|
export interface CustomersApiListCustomersRequest {
|
|
271
271
|
/**
|
|
272
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
272
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
273
273
|
* @type {any}
|
|
274
274
|
* @memberof CustomersApiListCustomers
|
|
275
275
|
*/
|
|
@@ -287,13 +287,7 @@ export interface CustomersApiListCustomersRequest {
|
|
|
287
287
|
*/
|
|
288
288
|
readonly filter?: any;
|
|
289
289
|
/**
|
|
290
|
-
*
|
|
291
|
-
* @type {any}
|
|
292
|
-
* @memberof CustomersApiListCustomers
|
|
293
|
-
*/
|
|
294
|
-
readonly filters?: any;
|
|
295
|
-
/**
|
|
296
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
290
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
297
291
|
* @type {any}
|
|
298
292
|
* @memberof CustomersApiListCustomers
|
|
299
293
|
*/
|
|
@@ -310,6 +304,12 @@ export interface CustomersApiListCustomersRequest {
|
|
|
310
304
|
* @memberof CustomersApiListCustomers
|
|
311
305
|
*/
|
|
312
306
|
readonly expand?: any;
|
|
307
|
+
/**
|
|
308
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
309
|
+
* @type {any}
|
|
310
|
+
* @memberof CustomersApiListCustomers
|
|
311
|
+
*/
|
|
312
|
+
readonly filters?: any;
|
|
313
313
|
/**
|
|
314
314
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
315
|
* @type {string}
|
|
@@ -176,18 +176,18 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
176
176
|
/**
|
|
177
177
|
* Get customer list.
|
|
178
178
|
* @summary Get customers list
|
|
179
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
179
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
180
180
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
181
181
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
182
|
-
* @param {any} [
|
|
183
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
182
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
184
183
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
185
184
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
185
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
186
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
190
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
191
191
|
if (options === void 0) { options = {}; }
|
|
192
192
|
return __awaiter(_this, void 0, void 0, function () {
|
|
193
193
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -210,9 +210,6 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
if (filter !== undefined) {
|
|
211
211
|
localVarQueryParameter['filter'] = filter;
|
|
212
212
|
}
|
|
213
|
-
if (filters !== undefined) {
|
|
214
|
-
localVarQueryParameter['filters'] = filters;
|
|
215
|
-
}
|
|
216
213
|
if (search !== undefined) {
|
|
217
214
|
localVarQueryParameter['search'] = search;
|
|
218
215
|
}
|
|
@@ -222,6 +219,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
222
219
|
if (expand !== undefined) {
|
|
223
220
|
localVarQueryParameter['expand'] = expand;
|
|
224
221
|
}
|
|
222
|
+
if (filters !== undefined) {
|
|
223
|
+
localVarQueryParameter['filters'] = filters;
|
|
224
|
+
}
|
|
225
225
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
226
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
227
|
}
|
|
@@ -415,23 +415,23 @@ var CustomersApiFp = function (configuration) {
|
|
|
415
415
|
/**
|
|
416
416
|
* Get customer list.
|
|
417
417
|
* @summary Get customers list
|
|
418
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
418
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
419
419
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
420
420
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
421
|
-
* @param {any} [
|
|
422
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
421
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
423
422
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
424
423
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
424
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
425
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
429
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
429
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
430
430
|
return __awaiter(this, void 0, void 0, function () {
|
|
431
431
|
var localVarAxiosArgs;
|
|
432
432
|
return __generator(this, function (_a) {
|
|
433
433
|
switch (_a.label) {
|
|
434
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter,
|
|
434
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
435
435
|
case 1:
|
|
436
436
|
localVarAxiosArgs = _a.sent();
|
|
437
437
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -539,19 +539,19 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
539
539
|
/**
|
|
540
540
|
* Get customer list.
|
|
541
541
|
* @summary Get customers list
|
|
542
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
542
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
543
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
544
544
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
545
|
-
* @param {any} [
|
|
546
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
545
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
547
546
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
548
547
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
548
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
549
549
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
550
550
|
* @param {*} [options] Override http request option.
|
|
551
551
|
* @throws {RequiredError}
|
|
552
552
|
*/
|
|
553
|
-
listCustomers: function (pageSize, pageToken, filter,
|
|
554
|
-
return localVarFp.listCustomers(pageSize, pageToken, filter,
|
|
553
|
+
listCustomers: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
554
|
+
return localVarFp.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
555
555
|
},
|
|
556
556
|
/**
|
|
557
557
|
* Request a token to change the email address for the customer.
|
|
@@ -637,7 +637,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
637
637
|
CustomersApi.prototype.listCustomers = function (requestParameters, options) {
|
|
638
638
|
var _this = this;
|
|
639
639
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
640
|
-
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
640
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
641
641
|
};
|
|
642
642
|
/**
|
|
643
643
|
* Request a token to change the email address for the customer.
|
|
@@ -15,6 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
16
|
import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
|
|
17
17
|
import { ListDocumentsResponseClass } from '../models';
|
|
18
|
+
import { UploadAccountDocumentsRequestDto } from '../models';
|
|
18
19
|
/**
|
|
19
20
|
* DocumentsApi - axios parameter creator
|
|
20
21
|
* @export
|
|
@@ -35,26 +36,27 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
35
36
|
* List all the documents of a customer.
|
|
36
37
|
* @summary List documents of a customer
|
|
37
38
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
38
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
39
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
39
40
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
40
41
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
41
|
-
* @param {any} [
|
|
42
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
42
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
43
43
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
44
44
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
45
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
45
46
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
47
|
* @param {*} [options] Override http request option.
|
|
47
48
|
* @throws {RequiredError}
|
|
48
49
|
*/
|
|
49
|
-
listDocuments: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
50
|
+
listDocuments: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
51
|
/**
|
|
51
52
|
* API to upload and attach documents to an account.
|
|
52
53
|
* @summary Upload account documents
|
|
53
54
|
* @param {string} customerCode
|
|
55
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
54
56
|
* @param {*} [options] Override http request option.
|
|
55
57
|
* @throws {RequiredError}
|
|
56
58
|
*/
|
|
57
|
-
uploadAccountDocuments: (customerCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
|
+
uploadAccountDocuments: (customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
60
|
};
|
|
59
61
|
/**
|
|
60
62
|
* DocumentsApi - functional programming interface
|
|
@@ -76,26 +78,27 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
76
78
|
* List all the documents of a customer.
|
|
77
79
|
* @summary List documents of a customer
|
|
78
80
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
79
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
81
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
80
82
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
81
83
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
82
|
-
* @param {any} [
|
|
83
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
84
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
84
85
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
85
86
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
87
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
86
88
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
89
|
* @param {*} [options] Override http request option.
|
|
88
90
|
* @throws {RequiredError}
|
|
89
91
|
*/
|
|
90
|
-
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
92
|
+
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
|
|
91
93
|
/**
|
|
92
94
|
* API to upload and attach documents to an account.
|
|
93
95
|
* @summary Upload account documents
|
|
94
96
|
* @param {string} customerCode
|
|
97
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
95
98
|
* @param {*} [options] Override http request option.
|
|
96
99
|
* @throws {RequiredError}
|
|
97
100
|
*/
|
|
98
|
-
uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
101
|
+
uploadAccountDocuments(customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
99
102
|
};
|
|
100
103
|
/**
|
|
101
104
|
* DocumentsApi - factory interface
|
|
@@ -117,26 +120,27 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
117
120
|
* List all the documents of a customer.
|
|
118
121
|
* @summary List documents of a customer
|
|
119
122
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
120
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
123
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
121
124
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
122
125
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
123
|
-
* @param {any} [
|
|
124
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
126
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
125
127
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
126
128
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
129
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
127
130
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
128
131
|
* @param {*} [options] Override http request option.
|
|
129
132
|
* @throws {RequiredError}
|
|
130
133
|
*/
|
|
131
|
-
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any,
|
|
134
|
+
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
132
135
|
/**
|
|
133
136
|
* API to upload and attach documents to an account.
|
|
134
137
|
* @summary Upload account documents
|
|
135
138
|
* @param {string} customerCode
|
|
139
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
136
140
|
* @param {*} [options] Override http request option.
|
|
137
141
|
* @throws {RequiredError}
|
|
138
142
|
*/
|
|
139
|
-
uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
143
|
+
uploadAccountDocuments(customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
140
144
|
};
|
|
141
145
|
/**
|
|
142
146
|
* Request parameters for getCustomerDocumentDownloadUrl operation in DocumentsApi.
|
|
@@ -182,7 +186,7 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
182
186
|
*/
|
|
183
187
|
readonly customerCode: string;
|
|
184
188
|
/**
|
|
185
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
189
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
190
|
* @type {any}
|
|
187
191
|
* @memberof DocumentsApiListDocuments
|
|
188
192
|
*/
|
|
@@ -200,13 +204,7 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
200
204
|
*/
|
|
201
205
|
readonly filter?: any;
|
|
202
206
|
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {any}
|
|
205
|
-
* @memberof DocumentsApiListDocuments
|
|
206
|
-
*/
|
|
207
|
-
readonly filters?: any;
|
|
208
|
-
/**
|
|
209
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
207
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
210
208
|
* @type {any}
|
|
211
209
|
* @memberof DocumentsApiListDocuments
|
|
212
210
|
*/
|
|
@@ -223,6 +221,12 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
223
221
|
* @memberof DocumentsApiListDocuments
|
|
224
222
|
*/
|
|
225
223
|
readonly expand?: any;
|
|
224
|
+
/**
|
|
225
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
226
|
+
* @type {any}
|
|
227
|
+
* @memberof DocumentsApiListDocuments
|
|
228
|
+
*/
|
|
229
|
+
readonly filters?: any;
|
|
226
230
|
/**
|
|
227
231
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
232
|
* @type {string}
|
|
@@ -242,6 +246,12 @@ export interface DocumentsApiUploadAccountDocumentsRequest {
|
|
|
242
246
|
* @memberof DocumentsApiUploadAccountDocuments
|
|
243
247
|
*/
|
|
244
248
|
readonly customerCode: string;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {UploadAccountDocumentsRequestDto}
|
|
252
|
+
* @memberof DocumentsApiUploadAccountDocuments
|
|
253
|
+
*/
|
|
254
|
+
readonly uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto;
|
|
245
255
|
}
|
|
246
256
|
/**
|
|
247
257
|
* DocumentsApi - object-oriented interface
|
|
@@ -146,18 +146,18 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
* List all the documents of a customer.
|
|
147
147
|
* @summary List documents of a customer
|
|
148
148
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
149
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
149
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
150
150
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
151
151
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
152
|
-
* @param {any} [
|
|
153
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
152
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
154
153
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
155
154
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
155
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
156
156
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
listDocuments: function (customerCode, pageSize, pageToken, filter,
|
|
160
|
+
listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
161
161
|
if (options === void 0) { options = {}; }
|
|
162
162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
163
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -183,9 +183,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
183
183
|
if (filter !== undefined) {
|
|
184
184
|
localVarQueryParameter['filter'] = filter;
|
|
185
185
|
}
|
|
186
|
-
if (filters !== undefined) {
|
|
187
|
-
localVarQueryParameter['filters'] = filters;
|
|
188
|
-
}
|
|
189
186
|
if (search !== undefined) {
|
|
190
187
|
localVarQueryParameter['search'] = search;
|
|
191
188
|
}
|
|
@@ -195,6 +192,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
195
192
|
if (expand !== undefined) {
|
|
196
193
|
localVarQueryParameter['expand'] = expand;
|
|
197
194
|
}
|
|
195
|
+
if (filters !== undefined) {
|
|
196
|
+
localVarQueryParameter['filters'] = filters;
|
|
197
|
+
}
|
|
198
198
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
199
199
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
200
200
|
}
|
|
@@ -212,16 +212,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
212
212
|
* API to upload and attach documents to an account.
|
|
213
213
|
* @summary Upload account documents
|
|
214
214
|
* @param {string} customerCode
|
|
215
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
215
216
|
* @param {*} [options] Override http request option.
|
|
216
217
|
* @throws {RequiredError}
|
|
217
218
|
*/
|
|
218
|
-
uploadAccountDocuments: function (customerCode, options) {
|
|
219
|
+
uploadAccountDocuments: function (customerCode, uploadAccountDocumentsRequestDto, options) {
|
|
219
220
|
if (options === void 0) { options = {}; }
|
|
220
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
221
222
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
222
223
|
return __generator(this, function (_a) {
|
|
223
224
|
// verify required parameter 'customerCode' is not null or undefined
|
|
224
225
|
(0, common_1.assertParamExists)('uploadAccountDocuments', 'customerCode', customerCode);
|
|
226
|
+
// verify required parameter 'uploadAccountDocumentsRequestDto' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('uploadAccountDocuments', 'uploadAccountDocumentsRequestDto', uploadAccountDocumentsRequestDto);
|
|
225
228
|
localVarPath = "/v1/customers/{customerCode}/documents"
|
|
226
229
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
227
230
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -232,9 +235,11 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
232
235
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
233
236
|
localVarHeaderParameter = {};
|
|
234
237
|
localVarQueryParameter = {};
|
|
238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
235
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
240
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
241
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
242
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadAccountDocumentsRequestDto, localVarRequestOptions, configuration);
|
|
238
243
|
return [2 /*return*/, {
|
|
239
244
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
245
|
options: localVarRequestOptions,
|
|
@@ -279,23 +284,23 @@ var DocumentsApiFp = function (configuration) {
|
|
|
279
284
|
* List all the documents of a customer.
|
|
280
285
|
* @summary List documents of a customer
|
|
281
286
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
282
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
287
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
283
288
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
284
289
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
285
|
-
* @param {any} [
|
|
286
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
290
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
287
291
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
288
292
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
293
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
289
294
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
290
295
|
* @param {*} [options] Override http request option.
|
|
291
296
|
* @throws {RequiredError}
|
|
292
297
|
*/
|
|
293
|
-
listDocuments: function (customerCode, pageSize, pageToken, filter,
|
|
298
|
+
listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
294
299
|
return __awaiter(this, void 0, void 0, function () {
|
|
295
300
|
var localVarAxiosArgs;
|
|
296
301
|
return __generator(this, function (_a) {
|
|
297
302
|
switch (_a.label) {
|
|
298
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter,
|
|
303
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
|
|
299
304
|
case 1:
|
|
300
305
|
localVarAxiosArgs = _a.sent();
|
|
301
306
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -307,15 +312,16 @@ var DocumentsApiFp = function (configuration) {
|
|
|
307
312
|
* API to upload and attach documents to an account.
|
|
308
313
|
* @summary Upload account documents
|
|
309
314
|
* @param {string} customerCode
|
|
315
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
310
316
|
* @param {*} [options] Override http request option.
|
|
311
317
|
* @throws {RequiredError}
|
|
312
318
|
*/
|
|
313
|
-
uploadAccountDocuments: function (customerCode, options) {
|
|
319
|
+
uploadAccountDocuments: function (customerCode, uploadAccountDocumentsRequestDto, options) {
|
|
314
320
|
return __awaiter(this, void 0, void 0, function () {
|
|
315
321
|
var localVarAxiosArgs;
|
|
316
322
|
return __generator(this, function (_a) {
|
|
317
323
|
switch (_a.label) {
|
|
318
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options)];
|
|
324
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadAccountDocuments(customerCode, uploadAccountDocumentsRequestDto, options)];
|
|
319
325
|
case 1:
|
|
320
326
|
localVarAxiosArgs = _a.sent();
|
|
321
327
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -350,29 +356,30 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
350
356
|
* List all the documents of a customer.
|
|
351
357
|
* @summary List documents of a customer
|
|
352
358
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
353
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
359
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
354
360
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
355
361
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
356
|
-
* @param {any} [
|
|
357
|
-
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
362
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
358
363
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
359
364
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
365
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
360
366
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
367
|
* @param {*} [options] Override http request option.
|
|
362
368
|
* @throws {RequiredError}
|
|
363
369
|
*/
|
|
364
|
-
listDocuments: function (customerCode, pageSize, pageToken, filter,
|
|
365
|
-
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter,
|
|
370
|
+
listDocuments: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
371
|
+
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
366
372
|
},
|
|
367
373
|
/**
|
|
368
374
|
* API to upload and attach documents to an account.
|
|
369
375
|
* @summary Upload account documents
|
|
370
376
|
* @param {string} customerCode
|
|
377
|
+
* @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
|
|
371
378
|
* @param {*} [options] Override http request option.
|
|
372
379
|
* @throws {RequiredError}
|
|
373
380
|
*/
|
|
374
|
-
uploadAccountDocuments: function (customerCode, options) {
|
|
375
|
-
return localVarFp.uploadAccountDocuments(customerCode, options).then(function (request) { return request(axios, basePath); });
|
|
381
|
+
uploadAccountDocuments: function (customerCode, uploadAccountDocumentsRequestDto, options) {
|
|
382
|
+
return localVarFp.uploadAccountDocuments(customerCode, uploadAccountDocumentsRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
376
383
|
},
|
|
377
384
|
};
|
|
378
385
|
};
|
|
@@ -410,7 +417,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
410
417
|
*/
|
|
411
418
|
DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
|
|
412
419
|
var _this = this;
|
|
413
|
-
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.
|
|
420
|
+
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
414
421
|
};
|
|
415
422
|
/**
|
|
416
423
|
* API to upload and attach documents to an account.
|
|
@@ -422,7 +429,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
422
429
|
*/
|
|
423
430
|
DocumentsApi.prototype.uploadAccountDocuments = function (requestParameters, options) {
|
|
424
431
|
var _this = this;
|
|
425
|
-
return (0, exports.DocumentsApiFp)(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
432
|
+
return (0, exports.DocumentsApiFp)(this.configuration).uploadAccountDocuments(requestParameters.customerCode, requestParameters.uploadAccountDocumentsRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
426
433
|
};
|
|
427
434
|
return DocumentsApi;
|
|
428
435
|
}(base_1.BaseAPI));
|