@emilgroup/customer-sdk-node 1.6.1 → 1.9.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 +18 -0
- package/README.md +2 -2
- package/api/claims-api.ts +557 -0
- package/api/customers-api.ts +305 -684
- package/api/policies-api.ts +980 -0
- package/api/products-api.ts +357 -0
- package/api.ts +7 -1
- package/base.ts +24 -32
- package/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/api/claims-api.d.ts +327 -0
- package/dist/api/claims-api.js +508 -0
- package/dist/api/customers-api.d.ts +213 -443
- package/dist/api/customers-api.js +232 -475
- package/dist/api/policies-api.d.ts +578 -0
- package/dist/api/policies-api.js +808 -0
- package/dist/api/products-api.d.ts +215 -0
- package/dist/api/products-api.js +341 -0
- package/dist/api.d.ts +4 -1
- package/dist/api.js +4 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -21
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/account-policy-class.d.ts +1 -1
- package/dist/models/account-policy-class.js +1 -1
- package/dist/models/authentication-result-class.d.ts +1 -1
- package/dist/models/authentication-result-class.js +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
- package/dist/models/complete-payment-setup-psp-request.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +96 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
- package/dist/models/create-customer-claim-request-dto.js +15 -0
- package/dist/models/create-customer-request-dto.d.ts +8 -1
- package/dist/models/create-customer-request-dto.js +1 -1
- package/dist/models/create-customer-response-class.d.ts +1 -1
- package/dist/models/create-customer-response-class.js +1 -1
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/customer-class.d.ts +8 -2
- package/dist/models/customer-class.js +1 -1
- package/dist/models/customer-document-class.d.ts +2 -2
- package/dist/models/customer-document-class.js +1 -1
- package/dist/models/customer-product-class.d.ts +54 -0
- package/dist/models/customer-product-class.js +15 -0
- package/dist/models/forgot-password-request-dto.d.ts +1 -1
- package/dist/models/forgot-password-request-dto.js +1 -1
- package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-customer-document-download-url-response-class.js +1 -1
- package/dist/models/get-customer-response-class.d.ts +1 -1
- package/dist/models/get-customer-response-class.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +1 -1
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/get-product-response-class.js +15 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/initiate-auth-request-dto.d.ts +1 -1
- package/dist/models/initiate-auth-request-dto.js +1 -1
- package/dist/models/initiate-auth-response-class.d.ts +1 -1
- package/dist/models/initiate-auth-response-class.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
- package/dist/models/invite-by-customer-request-dto.js +1 -1
- package/dist/models/invite-by-customer-response-class.d.ts +1 -1
- package/dist/models/invite-by-customer-response-class.js +1 -1
- package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
- package/dist/models/invite-by-tenant-response-class.js +1 -1
- package/dist/models/invite-class.d.ts +1 -1
- package/dist/models/invite-class.js +1 -1
- package/dist/models/invoice-class.d.ts +3 -3
- package/dist/models/invoice-class.js +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.js +1 -1
- package/dist/models/list-invoices-response-class.d.ts +1 -1
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-response-class.d.ts +5 -5
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/policy-class.d.ts +14 -1
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +1 -1
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-premium-class.d.ts +1 -1
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +1 -1
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/refresh-token-dto.d.ts +1 -1
- package/dist/models/refresh-token-dto.js +1 -1
- package/dist/models/request-policy-update-request-dto.d.ts +1 -1
- package/dist/models/request-policy-update-request-dto.js +1 -1
- package/dist/models/request-policy-update-response-class.d.ts +1 -1
- package/dist/models/request-policy-update-response-class.js +1 -1
- package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
- package/dist/models/reset-password-by-customer-request-dto.js +1 -1
- package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-class.js +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
- package/dist/models/shared-invoice-item-class.d.ts +1 -1
- package/dist/models/shared-invoice-item-class.js +1 -1
- package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
- package/dist/models/terminate-customer-policy-request-dto.js +1 -1
- package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-customer-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +1 -1
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/update-account-request-dto.d.ts +2 -2
- package/dist/models/update-account-request-dto.js +1 -1
- package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
- package/dist/models/update-customer-claim-request-dto.js +15 -0
- package/dist/models/update-customer-request-dto.d.ts +1 -1
- package/dist/models/update-customer-request-dto.js +1 -1
- package/dist/models/update-customer-response-class.d.ts +1 -1
- package/dist/models/update-customer-response-class.js +1 -1
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
- package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
- package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
- package/dist/models/verify-customer-invite-response-class.js +1 -1
- package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-customer-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/account-class.ts +1 -1
- package/models/account-policy-class.ts +1 -1
- package/models/authentication-result-class.ts +1 -1
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-psp-request.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +30 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-account-request-dto.ts +105 -0
- package/models/create-customer-claim-request-dto.ts +114 -0
- package/models/create-customer-request-dto.ts +8 -1
- package/models/create-customer-response-class.ts +1 -1
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/customer-class.ts +8 -2
- package/models/customer-document-class.ts +1 -1
- package/models/customer-product-class.ts +60 -0
- package/models/forgot-password-request-dto.ts +1 -1
- package/models/get-customer-document-download-url-response-class.ts +1 -1
- package/models/get-customer-response-class.ts +1 -1
- package/models/get-policy-response-class.ts +1 -1
- package/models/get-product-response-class.ts +31 -0
- package/models/index.ts +15 -0
- package/models/initiate-auth-request-dto.ts +1 -1
- package/models/initiate-auth-response-class.ts +1 -1
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/invite-by-customer-request-dto.ts +1 -1
- package/models/invite-by-customer-response-class.ts +1 -1
- package/models/invite-by-tenant-response-class.ts +1 -1
- package/models/invite-class.ts +1 -1
- package/models/invoice-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-invoices-response-class.ts +1 -1
- package/models/list-policies-response-class.ts +5 -5
- package/models/policy-class.ts +14 -1
- package/models/policy-object-class.ts +1 -1
- package/models/policy-premium-class.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/policy-version-class.ts +1 -1
- package/models/refresh-token-dto.ts +1 -1
- package/models/request-policy-update-request-dto.ts +1 -1
- package/models/request-policy-update-response-class.ts +1 -1
- package/models/reset-password-by-customer-request-dto.ts +1 -1
- package/models/respond-to-auth-challenge-class.ts +1 -1
- package/models/respond-to-auth-challenge-request-dto.ts +1 -1
- package/models/shared-customer-policy-object-request-dto.ts +1 -1
- package/models/shared-invoice-item-class.ts +1 -1
- package/models/terminate-customer-policy-request-dto.ts +1 -1
- package/models/terminate-customer-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +1 -1
- package/models/update-account-request-dto.ts +1 -1
- package/models/update-customer-claim-request-dto.ts +126 -0
- package/models/update-customer-request-dto.ts +1 -1
- package/models/update-customer-response-class.ts +1 -1
- package/models/upload-customer-claim-documents-request-dto.ts +42 -0
- package/models/upload-customer-policy-documents-request-dto.ts +56 -0
- package/models/verify-customer-invite-response-class.ts +1 -1
- package/models/withdraw-customer-policy-response-class.ts +1 -1
- package/package.json +2 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/claims-api.ts
|
|
6
7
|
api/customers-api.ts
|
|
8
|
+
api/policies-api.ts
|
|
9
|
+
api/products-api.ts
|
|
7
10
|
base.ts
|
|
8
11
|
common.ts
|
|
9
12
|
configuration.ts
|
|
@@ -12,17 +15,29 @@ index.ts
|
|
|
12
15
|
models/account-class.ts
|
|
13
16
|
models/account-policy-class.ts
|
|
14
17
|
models/authentication-result-class.ts
|
|
18
|
+
models/complete-braintree-payment-setup-request-dto.ts
|
|
19
|
+
models/complete-payment-setup-psp-request.ts
|
|
20
|
+
models/complete-payment-setup-response-class.ts
|
|
21
|
+
models/complete-stripe-payment-setup-request-dto.ts
|
|
22
|
+
models/create-account-request-dto.ts
|
|
23
|
+
models/create-customer-claim-request-dto.ts
|
|
15
24
|
models/create-customer-request-dto.ts
|
|
16
25
|
models/create-customer-response-class.ts
|
|
26
|
+
models/create-presigned-post-response-class.ts
|
|
17
27
|
models/customer-class.ts
|
|
18
28
|
models/customer-document-class.ts
|
|
29
|
+
models/customer-product-class.ts
|
|
19
30
|
models/forgot-password-request-dto.ts
|
|
20
31
|
models/get-customer-document-download-url-response-class.ts
|
|
21
32
|
models/get-customer-response-class.ts
|
|
22
33
|
models/get-policy-response-class.ts
|
|
34
|
+
models/get-product-response-class.ts
|
|
23
35
|
models/index.ts
|
|
24
36
|
models/initiate-auth-request-dto.ts
|
|
25
37
|
models/initiate-auth-response-class.ts
|
|
38
|
+
models/initiate-braintree-payment-setup-response-class.ts
|
|
39
|
+
models/initiate-payment-setup-response-class.ts
|
|
40
|
+
models/initiate-stripe-payment-setup-response-class.ts
|
|
26
41
|
models/invite-by-customer-request-dto.ts
|
|
27
42
|
models/invite-by-customer-response-class.ts
|
|
28
43
|
models/invite-by-tenant-response-class.ts
|
|
@@ -48,8 +63,11 @@ models/terminate-customer-policy-request-dto.ts
|
|
|
48
63
|
models/terminate-customer-policy-response-class.ts
|
|
49
64
|
models/timeslice-class.ts
|
|
50
65
|
models/update-account-request-dto.ts
|
|
66
|
+
models/update-customer-claim-request-dto.ts
|
|
51
67
|
models/update-customer-request-dto.ts
|
|
52
68
|
models/update-customer-response-class.ts
|
|
69
|
+
models/upload-customer-claim-documents-request-dto.ts
|
|
70
|
+
models/upload-customer-policy-documents-request-dto.ts
|
|
53
71
|
models/verify-customer-invite-response-class.ts
|
|
54
72
|
models/withdraw-customer-policy-response-class.ts
|
|
55
73
|
package.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.9.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.9.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CustomerService
|
|
5
|
+
* The EMIL CustomerService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateCustomerClaimRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { UpdateCustomerClaimRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UploadCustomerClaimDocumentsRequestDto } from '../models';
|
|
31
|
+
// URLSearchParams not necessarily used
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { URL, URLSearchParams } from 'url';
|
|
34
|
+
const FormData = require('form-data');
|
|
35
|
+
/**
|
|
36
|
+
* ClaimsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const ClaimsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* Create a new claim for customer.
|
|
43
|
+
* @summary Create a new claim for customer
|
|
44
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
45
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
51
|
+
assertParamExists('createCustomerClaim', 'customerCode', customerCode)
|
|
52
|
+
// verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
|
|
53
|
+
assertParamExists('createCustomerClaim', 'createCustomerClaimRequestDto', createCustomerClaimRequestDto)
|
|
54
|
+
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
55
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
let baseAccessToken;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
baseAccessToken = configuration.accessToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerClaimRequestDto, localVarRequestOptions, configuration)
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* List claims by customer.
|
|
85
|
+
* @summary List claims by customer
|
|
86
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
87
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
88
|
+
* @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.
|
|
89
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
90
|
+
* @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.
|
|
91
|
+
* @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.
|
|
92
|
+
* @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.
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
listCustomerClaims: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
98
|
+
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
99
|
+
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
100
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
if (pageSize !== undefined) {
|
|
115
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (pageToken !== undefined) {
|
|
119
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (filter !== undefined) {
|
|
123
|
+
localVarQueryParameter['filter'] = filter;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (search !== undefined) {
|
|
127
|
+
localVarQueryParameter['search'] = search;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (order !== undefined) {
|
|
131
|
+
localVarQueryParameter['order'] = order;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (expand !== undefined) {
|
|
135
|
+
localVarQueryParameter['expand'] = expand;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
url: toPathString(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* Update claim for customer.
|
|
151
|
+
* @summary Update claim for customer
|
|
152
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
153
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
154
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
160
|
+
assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
|
|
161
|
+
// verify required parameter 'claimCode' is not null or undefined
|
|
162
|
+
assertParamExists('updateCustomerClaim', 'claimCode', claimCode)
|
|
163
|
+
// verify required parameter 'updateCustomerClaimRequestDto' is not null or undefined
|
|
164
|
+
assertParamExists('updateCustomerClaim', 'updateCustomerClaimRequestDto', updateCustomerClaimRequestDto)
|
|
165
|
+
const localVarPath = `/v1/customers/{customerCode}/claims/{claimCode}`
|
|
166
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)))
|
|
167
|
+
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
170
|
+
let baseOptions;
|
|
171
|
+
let baseAccessToken;
|
|
172
|
+
if (configuration) {
|
|
173
|
+
baseOptions = configuration.baseOptions;
|
|
174
|
+
baseAccessToken = configuration.accessToken;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
178
|
+
const localVarHeaderParameter = {} as any;
|
|
179
|
+
const localVarQueryParameter = {} as any;
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
|
|
185
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
188
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerClaimRequestDto, localVarRequestOptions, configuration)
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
* API to upload and attach documents to a claim.
|
|
197
|
+
* @summary Upload claim documents
|
|
198
|
+
* @param {string} customerCode
|
|
199
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
200
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
206
|
+
assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
|
|
207
|
+
// verify required parameter 'claimCode' is not null or undefined
|
|
208
|
+
assertParamExists('uploadCustomerClaimDocuments', 'claimCode', claimCode)
|
|
209
|
+
// verify required parameter 'uploadCustomerClaimDocumentsRequestDto' is not null or undefined
|
|
210
|
+
assertParamExists('uploadCustomerClaimDocuments', 'uploadCustomerClaimDocumentsRequestDto', uploadCustomerClaimDocumentsRequestDto)
|
|
211
|
+
const localVarPath = `/v1/customers/{customerCode}/claims/{claimCode}/documents`
|
|
212
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)))
|
|
213
|
+
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
216
|
+
let baseOptions;
|
|
217
|
+
let baseAccessToken;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
baseAccessToken = configuration.accessToken;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
224
|
+
const localVarHeaderParameter = {} as any;
|
|
225
|
+
const localVarQueryParameter = {} as any;
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
|
|
231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
234
|
+
localVarRequestOptions.data = serializeDataIfNeeded(uploadCustomerClaimDocumentsRequestDto, localVarRequestOptions, configuration)
|
|
235
|
+
|
|
236
|
+
return {
|
|
237
|
+
url: toPathString(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* ClaimsApi - functional programming interface
|
|
246
|
+
* @export
|
|
247
|
+
*/
|
|
248
|
+
export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
249
|
+
const localVarAxiosParamCreator = ClaimsApiAxiosParamCreator(configuration)
|
|
250
|
+
return {
|
|
251
|
+
/**
|
|
252
|
+
* Create a new claim for customer.
|
|
253
|
+
* @summary Create a new claim for customer
|
|
254
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
255
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
260
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options);
|
|
261
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* List claims by customer.
|
|
265
|
+
* @summary List claims by customer
|
|
266
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
267
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
268
|
+
* @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.
|
|
269
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
270
|
+
* @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.
|
|
271
|
+
* @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.
|
|
272
|
+
* @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.
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
async listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options);
|
|
278
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Update claim for customer.
|
|
282
|
+
* @summary Update claim for customer
|
|
283
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
284
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
285
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options);
|
|
291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* API to upload and attach documents to a claim.
|
|
295
|
+
* @summary Upload claim documents
|
|
296
|
+
* @param {string} customerCode
|
|
297
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
298
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options);
|
|
304
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
|
+
},
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* ClaimsApi - factory interface
|
|
311
|
+
* @export
|
|
312
|
+
*/
|
|
313
|
+
export const ClaimsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
314
|
+
const localVarFp = ClaimsApiFp(configuration)
|
|
315
|
+
return {
|
|
316
|
+
/**
|
|
317
|
+
* Create a new claim for customer.
|
|
318
|
+
* @summary Create a new claim for customer
|
|
319
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
320
|
+
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<object> {
|
|
325
|
+
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* List claims by customer.
|
|
329
|
+
* @summary List claims by customer
|
|
330
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
331
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
332
|
+
* @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.
|
|
333
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
334
|
+
* @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.
|
|
335
|
+
* @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.
|
|
336
|
+
* @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.
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<object> {
|
|
341
|
+
return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Update claim for customer.
|
|
345
|
+
* @summary Update claim for customer
|
|
346
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
347
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
348
|
+
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<object> {
|
|
353
|
+
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* API to upload and attach documents to a claim.
|
|
357
|
+
* @summary Upload claim documents
|
|
358
|
+
* @param {string} customerCode
|
|
359
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
360
|
+
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
365
|
+
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(axios, basePath));
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Request parameters for createCustomerClaim operation in ClaimsApi.
|
|
372
|
+
* @export
|
|
373
|
+
* @interface ClaimsApiCreateCustomerClaimRequest
|
|
374
|
+
*/
|
|
375
|
+
export interface ClaimsApiCreateCustomerClaimRequest {
|
|
376
|
+
/**
|
|
377
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
378
|
+
* @type {string}
|
|
379
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
380
|
+
*/
|
|
381
|
+
readonly customerCode: string
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {CreateCustomerClaimRequestDto}
|
|
386
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
387
|
+
*/
|
|
388
|
+
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Request parameters for listCustomerClaims operation in ClaimsApi.
|
|
393
|
+
* @export
|
|
394
|
+
* @interface ClaimsApiListCustomerClaimsRequest
|
|
395
|
+
*/
|
|
396
|
+
export interface ClaimsApiListCustomerClaimsRequest {
|
|
397
|
+
/**
|
|
398
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
401
|
+
*/
|
|
402
|
+
readonly customerCode: string
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
406
|
+
* @type {any}
|
|
407
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
408
|
+
*/
|
|
409
|
+
readonly pageSize?: any
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* 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.
|
|
413
|
+
* @type {any}
|
|
414
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
415
|
+
*/
|
|
416
|
+
readonly pageToken?: any
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
420
|
+
* @type {any}
|
|
421
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
422
|
+
*/
|
|
423
|
+
readonly filter?: any
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
427
|
+
* @type {any}
|
|
428
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
429
|
+
*/
|
|
430
|
+
readonly search?: any
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* 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.
|
|
434
|
+
* @type {any}
|
|
435
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
436
|
+
*/
|
|
437
|
+
readonly order?: any
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* 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.
|
|
441
|
+
* @type {any}
|
|
442
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
443
|
+
*/
|
|
444
|
+
readonly expand?: any
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Request parameters for updateCustomerClaim operation in ClaimsApi.
|
|
449
|
+
* @export
|
|
450
|
+
* @interface ClaimsApiUpdateCustomerClaimRequest
|
|
451
|
+
*/
|
|
452
|
+
export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
453
|
+
/**
|
|
454
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
455
|
+
* @type {string}
|
|
456
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
457
|
+
*/
|
|
458
|
+
readonly customerCode: string
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The claim code to identify a claim.
|
|
462
|
+
* @type {string}
|
|
463
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
464
|
+
*/
|
|
465
|
+
readonly claimCode: string
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {UpdateCustomerClaimRequestDto}
|
|
470
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
471
|
+
*/
|
|
472
|
+
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Request parameters for uploadCustomerClaimDocuments operation in ClaimsApi.
|
|
477
|
+
* @export
|
|
478
|
+
* @interface ClaimsApiUploadCustomerClaimDocumentsRequest
|
|
479
|
+
*/
|
|
480
|
+
export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @type {string}
|
|
484
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
485
|
+
*/
|
|
486
|
+
readonly customerCode: string
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* The claim code to identify a claim.
|
|
490
|
+
* @type {string}
|
|
491
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
492
|
+
*/
|
|
493
|
+
readonly claimCode: string
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
*
|
|
497
|
+
* @type {UploadCustomerClaimDocumentsRequestDto}
|
|
498
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
499
|
+
*/
|
|
500
|
+
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* ClaimsApi - object-oriented interface
|
|
505
|
+
* @export
|
|
506
|
+
* @class ClaimsApi
|
|
507
|
+
* @extends {BaseAPI}
|
|
508
|
+
*/
|
|
509
|
+
export class ClaimsApi extends BaseAPI {
|
|
510
|
+
/**
|
|
511
|
+
* Create a new claim for customer.
|
|
512
|
+
* @summary Create a new claim for customer
|
|
513
|
+
* @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
* @memberof ClaimsApi
|
|
517
|
+
*/
|
|
518
|
+
public createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
519
|
+
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* List claims by customer.
|
|
524
|
+
* @summary List claims by customer
|
|
525
|
+
* @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
* @memberof ClaimsApi
|
|
529
|
+
*/
|
|
530
|
+
public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
|
|
531
|
+
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Update claim for customer.
|
|
536
|
+
* @summary Update claim for customer
|
|
537
|
+
* @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
|
|
538
|
+
* @param {*} [options] Override http request option.
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
* @memberof ClaimsApi
|
|
541
|
+
*/
|
|
542
|
+
public updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
543
|
+
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* API to upload and attach documents to a claim.
|
|
548
|
+
* @summary Upload claim documents
|
|
549
|
+
* @param {ClaimsApiUploadCustomerClaimDocumentsRequest} requestParameters Request parameters.
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
* @memberof ClaimsApi
|
|
553
|
+
*/
|
|
554
|
+
public uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig) {
|
|
555
|
+
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
556
|
+
}
|
|
557
|
+
}
|