@emilgroup/customer-sdk-node 1.3.0 → 1.4.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 +6 -0
- package/README.md +2 -2
- package/api/customers-api.ts +431 -68
- package/dist/api/customers-api.d.ts +251 -36
- package/dist/api/customers-api.js +308 -40
- package/dist/models/get-customer-response-class.d.ts +24 -0
- package/dist/models/get-customer-response-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/list-documents-response-class.d.ts +30 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/request-policy-update-request-dto.d.ts +42 -0
- package/dist/models/request-policy-update-request-dto.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +96 -0
- package/dist/models/update-account-request-dto.js +21 -0
- package/dist/models/update-customer-request-dto.d.ts +31 -0
- package/dist/models/update-customer-request-dto.js +15 -0
- package/dist/models/update-customer-response-class.d.ts +24 -0
- package/dist/models/update-customer-response-class.js +15 -0
- package/models/get-customer-response-class.ts +30 -0
- package/models/index.ts +6 -0
- package/models/list-documents-response-class.ts +36 -0
- package/models/request-policy-update-request-dto.ts +48 -0
- package/models/update-account-request-dto.ts +105 -0
- package/models/update-customer-request-dto.ts +37 -0
- package/models/update-customer-response-class.ts +30 -0
- package/package.json +1 -1
package/api/customers-api.ts
CHANGED
|
@@ -27,6 +27,8 @@ import { CreateCustomerResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { ForgotPasswordRequestDto } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { GetCustomerResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { GetPolicyResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { InitiateAuthRequestDto } from '../models';
|
|
@@ -39,12 +41,16 @@ import { InviteByCustomerResponseClass } from '../models';
|
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
import { InviteByTenantResponseClass } from '../models';
|
|
41
43
|
// @ts-ignore
|
|
44
|
+
import { ListDocumentsResponseClass } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
42
46
|
import { ListInvoicesResponseClass } from '../models';
|
|
43
47
|
// @ts-ignore
|
|
44
48
|
import { ListPoliciesResponseClass } from '../models';
|
|
45
49
|
// @ts-ignore
|
|
46
50
|
import { RefreshTokenDto } from '../models';
|
|
47
51
|
// @ts-ignore
|
|
52
|
+
import { RequestPolicyUpdateRequestDto } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
48
54
|
import { RequestPolicyUpdateResponseClass } from '../models';
|
|
49
55
|
// @ts-ignore
|
|
50
56
|
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
@@ -53,6 +59,10 @@ import { RespondToAuthChallengeClass } from '../models';
|
|
|
53
59
|
// @ts-ignore
|
|
54
60
|
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
55
61
|
// @ts-ignore
|
|
62
|
+
import { UpdateCustomerRequestDto } from '../models';
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import { UpdateCustomerResponseClass } from '../models';
|
|
65
|
+
// @ts-ignore
|
|
56
66
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
57
67
|
// URLSearchParams not necessarily used
|
|
58
68
|
// @ts-ignore
|
|
@@ -140,6 +150,52 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
140
150
|
options: localVarRequestOptions,
|
|
141
151
|
};
|
|
142
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* Get customer details
|
|
155
|
+
* @summary Get customer details
|
|
156
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
157
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
158
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
getCustomer: async (customerCode: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
163
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
164
|
+
assertParamExists('getCustomer', 'customerCode', customerCode)
|
|
165
|
+
const localVarPath = `/v1/customers/{customerCode}`
|
|
166
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
let baseAccessToken;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
baseAccessToken = configuration.accessToken;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
177
|
+
const localVarHeaderParameter = {} as any;
|
|
178
|
+
const localVarQueryParameter = {} as any;
|
|
179
|
+
|
|
180
|
+
if (expand !== undefined) {
|
|
181
|
+
localVarQueryParameter['expand'] = expand;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
url: toPathString(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
};
|
|
198
|
+
},
|
|
143
199
|
/**
|
|
144
200
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
145
201
|
* @summary Get policy details
|
|
@@ -314,6 +370,77 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
314
370
|
options: localVarRequestOptions,
|
|
315
371
|
};
|
|
316
372
|
},
|
|
373
|
+
/**
|
|
374
|
+
* List all the documents of a customer
|
|
375
|
+
* @summary List documents of a customer
|
|
376
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
377
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
378
|
+
* @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.
|
|
379
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
380
|
+
* @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.
|
|
381
|
+
* @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.
|
|
382
|
+
* @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.
|
|
383
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
388
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
389
|
+
assertParamExists('listDocuments', 'customerCode', customerCode)
|
|
390
|
+
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
391
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
let baseAccessToken;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
baseAccessToken = configuration.accessToken;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
402
|
+
const localVarHeaderParameter = {} as any;
|
|
403
|
+
const localVarQueryParameter = {} as any;
|
|
404
|
+
|
|
405
|
+
if (pageSize !== undefined) {
|
|
406
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (pageToken !== undefined) {
|
|
410
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (filter !== undefined) {
|
|
414
|
+
localVarQueryParameter['filter'] = filter;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (search !== undefined) {
|
|
418
|
+
localVarQueryParameter['search'] = search;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (order !== undefined) {
|
|
422
|
+
localVarQueryParameter['order'] = order;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (expand !== undefined) {
|
|
426
|
+
localVarQueryParameter['expand'] = expand;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
430
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
438
|
+
|
|
439
|
+
return {
|
|
440
|
+
url: toPathString(localVarUrlObj),
|
|
441
|
+
options: localVarRequestOptions,
|
|
442
|
+
};
|
|
443
|
+
},
|
|
317
444
|
/**
|
|
318
445
|
* List all the invoices of a customer
|
|
319
446
|
* @summary List invoices of a customer
|
|
@@ -504,25 +631,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
504
631
|
* @summary Request policy update by customer
|
|
505
632
|
* @param {string} policyCode The policy code
|
|
506
633
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
507
|
-
* @param {
|
|
508
|
-
* @param {Array<string>} policyObjects Policy objects
|
|
509
|
-
* @param {string} from Update from
|
|
510
|
-
* @param {string} [to] Update to
|
|
634
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
511
635
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
636
|
* @param {*} [options] Override http request option.
|
|
513
637
|
* @throws {RequiredError}
|
|
514
638
|
*/
|
|
515
|
-
requestPolicyUpdate: async (policyCode: string, customerCode: string,
|
|
639
|
+
requestPolicyUpdate: async (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
516
640
|
// verify required parameter 'policyCode' is not null or undefined
|
|
517
641
|
assertParamExists('requestPolicyUpdate', 'policyCode', policyCode)
|
|
518
642
|
// verify required parameter 'customerCode' is not null or undefined
|
|
519
643
|
assertParamExists('requestPolicyUpdate', 'customerCode', customerCode)
|
|
520
|
-
// verify required parameter '
|
|
521
|
-
assertParamExists('requestPolicyUpdate', '
|
|
522
|
-
// verify required parameter 'policyObjects' is not null or undefined
|
|
523
|
-
assertParamExists('requestPolicyUpdate', 'policyObjects', policyObjects)
|
|
524
|
-
// verify required parameter 'from' is not null or undefined
|
|
525
|
-
assertParamExists('requestPolicyUpdate', 'from', from)
|
|
644
|
+
// verify required parameter 'requestPolicyUpdateRequestDto' is not null or undefined
|
|
645
|
+
assertParamExists('requestPolicyUpdate', 'requestPolicyUpdateRequestDto', requestPolicyUpdateRequestDto)
|
|
526
646
|
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/request-update`
|
|
527
647
|
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
528
648
|
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
@@ -539,35 +659,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
539
659
|
const localVarHeaderParameter = {} as any;
|
|
540
660
|
const localVarQueryParameter = {} as any;
|
|
541
661
|
|
|
542
|
-
if (code !== undefined) {
|
|
543
|
-
localVarQueryParameter['code'] = code;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
if (policyObjects) {
|
|
547
|
-
localVarQueryParameter['policyObjects'] = policyObjects;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
if (from !== undefined) {
|
|
551
|
-
localVarQueryParameter['from'] = (from as any instanceof Date) ?
|
|
552
|
-
(from as any).toISOString() :
|
|
553
|
-
from;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
if (to !== undefined) {
|
|
557
|
-
localVarQueryParameter['to'] = (to as any instanceof Date) ?
|
|
558
|
-
(to as any).toISOString() :
|
|
559
|
-
to;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
662
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
563
663
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
564
664
|
}
|
|
565
665
|
|
|
566
666
|
|
|
567
667
|
|
|
668
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
669
|
+
|
|
568
670
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
569
671
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
570
672
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
673
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestPolicyUpdateRequestDto, localVarRequestOptions, configuration)
|
|
571
674
|
|
|
572
675
|
return {
|
|
573
676
|
url: toPathString(localVarUrlObj),
|
|
@@ -650,6 +753,53 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
650
753
|
options: localVarRequestOptions,
|
|
651
754
|
};
|
|
652
755
|
},
|
|
756
|
+
/**
|
|
757
|
+
* Update customer details like phone, email, names, addresses etc
|
|
758
|
+
* @summary Update customer details
|
|
759
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
760
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
761
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
766
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
767
|
+
assertParamExists('updateCustomer', 'customerCode', customerCode)
|
|
768
|
+
// verify required parameter 'updateCustomerRequestDto' is not null or undefined
|
|
769
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
|
|
770
|
+
const localVarPath = `/v1/customers/{customerCode}`
|
|
771
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
774
|
+
let baseOptions;
|
|
775
|
+
let baseAccessToken;
|
|
776
|
+
if (configuration) {
|
|
777
|
+
baseOptions = configuration.baseOptions;
|
|
778
|
+
baseAccessToken = configuration.accessToken;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
782
|
+
const localVarHeaderParameter = {} as any;
|
|
783
|
+
const localVarQueryParameter = {} as any;
|
|
784
|
+
|
|
785
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
786
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
792
|
+
|
|
793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
795
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
796
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
|
|
797
|
+
|
|
798
|
+
return {
|
|
799
|
+
url: toPathString(localVarUrlObj),
|
|
800
|
+
options: localVarRequestOptions,
|
|
801
|
+
};
|
|
802
|
+
},
|
|
653
803
|
/**
|
|
654
804
|
* Verify the invite sent to the customer via email.
|
|
655
805
|
* @summary Verify customer\'s invite token
|
|
@@ -760,6 +910,19 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
760
910
|
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordRequestDto, options);
|
|
761
911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
762
912
|
},
|
|
913
|
+
/**
|
|
914
|
+
* Get customer details
|
|
915
|
+
* @summary Get customer details
|
|
916
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
917
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
918
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
async getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>> {
|
|
923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(customerCode, expand, authorization, options);
|
|
924
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
925
|
+
},
|
|
763
926
|
/**
|
|
764
927
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
765
928
|
* @summary Get policy details
|
|
@@ -809,6 +972,24 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
809
972
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(inviteByCustomerRequestDto, authorization, options);
|
|
810
973
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
811
974
|
},
|
|
975
|
+
/**
|
|
976
|
+
* List all the documents of a customer
|
|
977
|
+
* @summary List documents of a customer
|
|
978
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
979
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
980
|
+
* @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.
|
|
981
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
982
|
+
* @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.
|
|
983
|
+
* @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.
|
|
984
|
+
* @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.
|
|
985
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
async listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
|
|
990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
991
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
992
|
+
},
|
|
812
993
|
/**
|
|
813
994
|
* List all the invoices of a customer
|
|
814
995
|
* @summary List invoices of a customer
|
|
@@ -862,16 +1043,13 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
862
1043
|
* @summary Request policy update by customer
|
|
863
1044
|
* @param {string} policyCode The policy code
|
|
864
1045
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
865
|
-
* @param {
|
|
866
|
-
* @param {Array<string>} policyObjects Policy objects
|
|
867
|
-
* @param {string} from Update from
|
|
868
|
-
* @param {string} [to] Update to
|
|
1046
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
869
1047
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
870
1048
|
* @param {*} [options] Override http request option.
|
|
871
1049
|
* @throws {RequiredError}
|
|
872
1050
|
*/
|
|
873
|
-
async requestPolicyUpdate(policyCode: string, customerCode: string,
|
|
874
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode,
|
|
1051
|
+
async requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>> {
|
|
1052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options);
|
|
875
1053
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
876
1054
|
},
|
|
877
1055
|
/**
|
|
@@ -896,6 +1074,19 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
896
1074
|
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToAuthChallenge(respondToAuthChallengeRequestDto, options);
|
|
897
1075
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
898
1076
|
},
|
|
1077
|
+
/**
|
|
1078
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1079
|
+
* @summary Update customer details
|
|
1080
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1081
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1082
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
1087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
|
|
1088
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1089
|
+
},
|
|
899
1090
|
/**
|
|
900
1091
|
* Verify the invite sent to the customer via email.
|
|
901
1092
|
* @summary Verify customer\'s invite token
|
|
@@ -948,6 +1139,18 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
948
1139
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void> {
|
|
949
1140
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
|
|
950
1141
|
},
|
|
1142
|
+
/**
|
|
1143
|
+
* Get customer details
|
|
1144
|
+
* @summary Get customer details
|
|
1145
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1146
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
1147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass> {
|
|
1152
|
+
return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1153
|
+
},
|
|
951
1154
|
/**
|
|
952
1155
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
953
1156
|
* @summary Get policy details
|
|
@@ -993,6 +1196,23 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
993
1196
|
inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass> {
|
|
994
1197
|
return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
995
1198
|
},
|
|
1199
|
+
/**
|
|
1200
|
+
* List all the documents of a customer
|
|
1201
|
+
* @summary List documents of a customer
|
|
1202
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1203
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1204
|
+
* @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.
|
|
1205
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1206
|
+
* @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.
|
|
1207
|
+
* @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.
|
|
1208
|
+
* @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.
|
|
1209
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
1214
|
+
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1215
|
+
},
|
|
996
1216
|
/**
|
|
997
1217
|
* List all the invoices of a customer
|
|
998
1218
|
* @summary List invoices of a customer
|
|
@@ -1043,16 +1263,13 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1043
1263
|
* @summary Request policy update by customer
|
|
1044
1264
|
* @param {string} policyCode The policy code
|
|
1045
1265
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1046
|
-
* @param {
|
|
1047
|
-
* @param {Array<string>} policyObjects Policy objects
|
|
1048
|
-
* @param {string} from Update from
|
|
1049
|
-
* @param {string} [to] Update to
|
|
1266
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
1050
1267
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1051
1268
|
* @param {*} [options] Override http request option.
|
|
1052
1269
|
* @throws {RequiredError}
|
|
1053
1270
|
*/
|
|
1054
|
-
requestPolicyUpdate(policyCode: string, customerCode: string,
|
|
1055
|
-
return localVarFp.requestPolicyUpdate(policyCode, customerCode,
|
|
1271
|
+
requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass> {
|
|
1272
|
+
return localVarFp.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1056
1273
|
},
|
|
1057
1274
|
/**
|
|
1058
1275
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
@@ -1074,6 +1291,18 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1074
1291
|
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass> {
|
|
1075
1292
|
return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then((request) => request(axios, basePath));
|
|
1076
1293
|
},
|
|
1294
|
+
/**
|
|
1295
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1296
|
+
* @summary Update customer details
|
|
1297
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1298
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1299
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
1304
|
+
return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1305
|
+
},
|
|
1077
1306
|
/**
|
|
1078
1307
|
* Verify the invite sent to the customer via email.
|
|
1079
1308
|
* @summary Verify customer\'s invite token
|
|
@@ -1125,6 +1354,34 @@ export interface CustomersApiForgotPasswordRequest {
|
|
|
1125
1354
|
readonly forgotPasswordRequestDto: ForgotPasswordRequestDto
|
|
1126
1355
|
}
|
|
1127
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* Request parameters for getCustomer operation in CustomersApi.
|
|
1359
|
+
* @export
|
|
1360
|
+
* @interface CustomersApiGetCustomerRequest
|
|
1361
|
+
*/
|
|
1362
|
+
export interface CustomersApiGetCustomerRequest {
|
|
1363
|
+
/**
|
|
1364
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1365
|
+
* @type {string}
|
|
1366
|
+
* @memberof CustomersApiGetCustomer
|
|
1367
|
+
*/
|
|
1368
|
+
readonly customerCode: string
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Fields to expand response by - [account]
|
|
1372
|
+
* @type {string}
|
|
1373
|
+
* @memberof CustomersApiGetCustomer
|
|
1374
|
+
*/
|
|
1375
|
+
readonly expand?: string
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1379
|
+
* @type {string}
|
|
1380
|
+
* @memberof CustomersApiGetCustomer
|
|
1381
|
+
*/
|
|
1382
|
+
readonly authorization?: string
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1128
1385
|
/**
|
|
1129
1386
|
* Request parameters for getPolicy operation in CustomersApi.
|
|
1130
1387
|
* @export
|
|
@@ -1216,6 +1473,69 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
1216
1473
|
readonly authorization?: string
|
|
1217
1474
|
}
|
|
1218
1475
|
|
|
1476
|
+
/**
|
|
1477
|
+
* Request parameters for listDocuments operation in CustomersApi.
|
|
1478
|
+
* @export
|
|
1479
|
+
* @interface CustomersApiListDocumentsRequest
|
|
1480
|
+
*/
|
|
1481
|
+
export interface CustomersApiListDocumentsRequest {
|
|
1482
|
+
/**
|
|
1483
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1484
|
+
* @type {string}
|
|
1485
|
+
* @memberof CustomersApiListDocuments
|
|
1486
|
+
*/
|
|
1487
|
+
readonly customerCode: string
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1491
|
+
* @type {any}
|
|
1492
|
+
* @memberof CustomersApiListDocuments
|
|
1493
|
+
*/
|
|
1494
|
+
readonly pageSize?: any
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* 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.
|
|
1498
|
+
* @type {any}
|
|
1499
|
+
* @memberof CustomersApiListDocuments
|
|
1500
|
+
*/
|
|
1501
|
+
readonly pageToken?: any
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1505
|
+
* @type {any}
|
|
1506
|
+
* @memberof CustomersApiListDocuments
|
|
1507
|
+
*/
|
|
1508
|
+
readonly filter?: any
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1512
|
+
* @type {any}
|
|
1513
|
+
* @memberof CustomersApiListDocuments
|
|
1514
|
+
*/
|
|
1515
|
+
readonly search?: any
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* 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.
|
|
1519
|
+
* @type {any}
|
|
1520
|
+
* @memberof CustomersApiListDocuments
|
|
1521
|
+
*/
|
|
1522
|
+
readonly order?: any
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* 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.
|
|
1526
|
+
* @type {any}
|
|
1527
|
+
* @memberof CustomersApiListDocuments
|
|
1528
|
+
*/
|
|
1529
|
+
readonly expand?: any
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1533
|
+
* @type {string}
|
|
1534
|
+
* @memberof CustomersApiListDocuments
|
|
1535
|
+
*/
|
|
1536
|
+
readonly authorization?: string
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1219
1539
|
/**
|
|
1220
1540
|
* Request parameters for listInvoices operation in CustomersApi.
|
|
1221
1541
|
* @export
|
|
@@ -1384,32 +1704,11 @@ export interface CustomersApiRequestPolicyUpdateRequest {
|
|
|
1384
1704
|
readonly customerCode: string
|
|
1385
1705
|
|
|
1386
1706
|
/**
|
|
1387
|
-
*
|
|
1388
|
-
* @type {
|
|
1389
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1390
|
-
*/
|
|
1391
|
-
readonly code: string
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* Policy objects
|
|
1395
|
-
* @type {Array<string>}
|
|
1396
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1397
|
-
*/
|
|
1398
|
-
readonly policyObjects: Array<string>
|
|
1399
|
-
|
|
1400
|
-
/**
|
|
1401
|
-
* Update from
|
|
1402
|
-
* @type {string}
|
|
1403
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1404
|
-
*/
|
|
1405
|
-
readonly from: string
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* Update to
|
|
1409
|
-
* @type {string}
|
|
1707
|
+
*
|
|
1708
|
+
* @type {RequestPolicyUpdateRequestDto}
|
|
1410
1709
|
* @memberof CustomersApiRequestPolicyUpdate
|
|
1411
1710
|
*/
|
|
1412
|
-
readonly
|
|
1711
|
+
readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto
|
|
1413
1712
|
|
|
1414
1713
|
/**
|
|
1415
1714
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -1447,6 +1746,34 @@ export interface CustomersApiRespondToAuthChallengeRequest {
|
|
|
1447
1746
|
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto
|
|
1448
1747
|
}
|
|
1449
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* Request parameters for updateCustomer operation in CustomersApi.
|
|
1751
|
+
* @export
|
|
1752
|
+
* @interface CustomersApiUpdateCustomerRequest
|
|
1753
|
+
*/
|
|
1754
|
+
export interface CustomersApiUpdateCustomerRequest {
|
|
1755
|
+
/**
|
|
1756
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1757
|
+
* @type {string}
|
|
1758
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1759
|
+
*/
|
|
1760
|
+
readonly customerCode: string
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @type {UpdateCustomerRequestDto}
|
|
1765
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1766
|
+
*/
|
|
1767
|
+
readonly updateCustomerRequestDto: UpdateCustomerRequestDto
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1771
|
+
* @type {string}
|
|
1772
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1773
|
+
*/
|
|
1774
|
+
readonly authorization?: string
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1450
1777
|
/**
|
|
1451
1778
|
* Request parameters for verifyInvite operation in CustomersApi.
|
|
1452
1779
|
* @export
|
|
@@ -1506,6 +1833,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1506
1833
|
return CustomersApiFp(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1507
1834
|
}
|
|
1508
1835
|
|
|
1836
|
+
/**
|
|
1837
|
+
* Get customer details
|
|
1838
|
+
* @summary Get customer details
|
|
1839
|
+
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
1840
|
+
* @param {*} [options] Override http request option.
|
|
1841
|
+
* @throws {RequiredError}
|
|
1842
|
+
* @memberof CustomersApi
|
|
1843
|
+
*/
|
|
1844
|
+
public getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: AxiosRequestConfig) {
|
|
1845
|
+
return CustomersApiFp(this.configuration).getCustomer(requestParameters.customerCode, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1509
1848
|
/**
|
|
1510
1849
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
1511
1850
|
* @summary Get policy details
|
|
@@ -1554,6 +1893,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1554
1893
|
return CustomersApiFp(this.configuration).inviteByTenant(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1555
1894
|
}
|
|
1556
1895
|
|
|
1896
|
+
/**
|
|
1897
|
+
* List all the documents of a customer
|
|
1898
|
+
* @summary List documents of a customer
|
|
1899
|
+
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
* @memberof CustomersApi
|
|
1903
|
+
*/
|
|
1904
|
+
public listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1905
|
+
return CustomersApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1557
1908
|
/**
|
|
1558
1909
|
* List all the invoices of a customer
|
|
1559
1910
|
* @summary List invoices of a customer
|
|
@@ -1599,7 +1950,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
1599
1950
|
* @memberof CustomersApi
|
|
1600
1951
|
*/
|
|
1601
1952
|
public requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig) {
|
|
1602
|
-
return CustomersApiFp(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.
|
|
1953
|
+
return CustomersApiFp(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.requestPolicyUpdateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1603
1954
|
}
|
|
1604
1955
|
|
|
1605
1956
|
/**
|
|
@@ -1626,6 +1977,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1626
1977
|
return CustomersApiFp(this.configuration).respondToAuthChallenge(requestParameters.respondToAuthChallengeRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1627
1978
|
}
|
|
1628
1979
|
|
|
1980
|
+
/**
|
|
1981
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1982
|
+
* @summary Update customer details
|
|
1983
|
+
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
1984
|
+
* @param {*} [options] Override http request option.
|
|
1985
|
+
* @throws {RequiredError}
|
|
1986
|
+
* @memberof CustomersApi
|
|
1987
|
+
*/
|
|
1988
|
+
public updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1989
|
+
return CustomersApiFp(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1629
1992
|
/**
|
|
1630
1993
|
* Verify the invite sent to the customer via email.
|
|
1631
1994
|
* @summary Verify customer\'s invite token
|