@emilgroup/customer-sdk-node 1.9.0-beta.0 → 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 +3 -2
- package/README.md +2 -2
- package/api/customers-api.ts +85 -0
- package/api/policies-api.ts +128 -4
- package/api/products-api.ts +357 -0
- package/api.ts +2 -0
- package/dist/api/customers-api.d.ts +47 -0
- package/dist/api/customers-api.js +76 -0
- package/dist/api/policies-api.d.ts +77 -4
- package/dist/api/policies-api.js +97 -3
- package/dist/api/products-api.d.ts +215 -0
- package/dist/api/products-api.js +341 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/{shared-customer-product-class.d.ts → customer-product-class.d.ts} +8 -8
- package/dist/models/{shared-customer-product-class.js → customer-product-class.js} +0 -0
- package/dist/models/get-product-response-class.d.ts +25 -0
- package/dist/models/{to-grpc-customer-product-class.js → get-product-response-class.js} +0 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/list-policies-response-class.d.ts +4 -4
- package/dist/models/policy-class.d.ts +3 -3
- package/models/{shared-customer-product-class.ts → customer-product-class.ts} +8 -8
- package/models/get-product-response-class.ts +31 -0
- package/models/index.ts +2 -2
- package/models/list-policies-response-class.ts +4 -4
- package/models/policy-class.ts +3 -3
- package/package.json +1 -1
- package/dist/models/to-grpc-customer-product-class.d.ts +0 -54
- package/models/to-grpc-customer-product-class.ts +0 -60
|
@@ -26,10 +26,21 @@ import { WithdrawCustomerPolicyResponseClass } from '../models';
|
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
28
|
export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
|
+
/**
|
|
30
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
31
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
32
|
+
* @param {string} policyCode The policy code.
|
|
33
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
34
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
35
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
getCustomerPolicyDataByDate: (policyCode: string, customerCode: string, timesliceDate?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
40
|
/**
|
|
30
41
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
31
42
|
* @summary Get policy details
|
|
32
|
-
* @param {string} policyCode The
|
|
43
|
+
* @param {string} policyCode The policy code.
|
|
33
44
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
34
45
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
35
46
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -100,10 +111,21 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
100
111
|
* @export
|
|
101
112
|
*/
|
|
102
113
|
export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
114
|
+
/**
|
|
115
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
116
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
117
|
+
* @param {string} policyCode The policy code.
|
|
118
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
119
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
120
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
getCustomerPolicyDataByDate(policyCode: string, customerCode: string, timesliceDate?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
|
|
103
125
|
/**
|
|
104
126
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
105
127
|
* @summary Get policy details
|
|
106
|
-
* @param {string} policyCode The
|
|
128
|
+
* @param {string} policyCode The policy code.
|
|
107
129
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
108
130
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
109
131
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -174,10 +196,21 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
174
196
|
* @export
|
|
175
197
|
*/
|
|
176
198
|
export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
199
|
+
/**
|
|
200
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
201
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
202
|
+
* @param {string} policyCode The policy code.
|
|
203
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
204
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
205
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
getCustomerPolicyDataByDate(policyCode: string, customerCode: string, timesliceDate?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
|
|
177
210
|
/**
|
|
178
211
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
179
212
|
* @summary Get policy details
|
|
180
|
-
* @param {string} policyCode The
|
|
213
|
+
* @param {string} policyCode The policy code.
|
|
181
214
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
182
215
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
183
216
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -243,6 +276,37 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
243
276
|
*/
|
|
244
277
|
withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawCustomerPolicyResponseClass>;
|
|
245
278
|
};
|
|
279
|
+
/**
|
|
280
|
+
* Request parameters for getCustomerPolicyDataByDate operation in PoliciesApi.
|
|
281
|
+
* @export
|
|
282
|
+
* @interface PoliciesApiGetCustomerPolicyDataByDateRequest
|
|
283
|
+
*/
|
|
284
|
+
export interface PoliciesApiGetCustomerPolicyDataByDateRequest {
|
|
285
|
+
/**
|
|
286
|
+
* The policy code.
|
|
287
|
+
* @type {string}
|
|
288
|
+
* @memberof PoliciesApiGetCustomerPolicyDataByDate
|
|
289
|
+
*/
|
|
290
|
+
readonly policyCode: string;
|
|
291
|
+
/**
|
|
292
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof PoliciesApiGetCustomerPolicyDataByDate
|
|
295
|
+
*/
|
|
296
|
+
readonly customerCode: string;
|
|
297
|
+
/**
|
|
298
|
+
* This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof PoliciesApiGetCustomerPolicyDataByDate
|
|
301
|
+
*/
|
|
302
|
+
readonly timesliceDate?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof PoliciesApiGetCustomerPolicyDataByDate
|
|
307
|
+
*/
|
|
308
|
+
readonly authorization?: string;
|
|
309
|
+
}
|
|
246
310
|
/**
|
|
247
311
|
* Request parameters for getPolicy operation in PoliciesApi.
|
|
248
312
|
* @export
|
|
@@ -250,7 +314,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
250
314
|
*/
|
|
251
315
|
export interface PoliciesApiGetPolicyRequest {
|
|
252
316
|
/**
|
|
253
|
-
* The
|
|
317
|
+
* The policy code.
|
|
254
318
|
* @type {string}
|
|
255
319
|
* @memberof PoliciesApiGetPolicy
|
|
256
320
|
*/
|
|
@@ -448,6 +512,15 @@ export interface PoliciesApiWithdrawCustomerPolicyRequest {
|
|
|
448
512
|
* @extends {BaseAPI}
|
|
449
513
|
*/
|
|
450
514
|
export declare class PoliciesApi extends BaseAPI {
|
|
515
|
+
/**
|
|
516
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
517
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
518
|
+
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
519
|
+
* @param {*} [options] Override http request option.
|
|
520
|
+
* @throws {RequiredError}
|
|
521
|
+
* @memberof PoliciesApi
|
|
522
|
+
*/
|
|
523
|
+
getCustomerPolicyDataByDate(requestParameters: PoliciesApiGetCustomerPolicyDataByDateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
|
|
451
524
|
/**
|
|
452
525
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
453
526
|
* @summary Get policy details
|
package/dist/api/policies-api.js
CHANGED
|
@@ -96,10 +96,56 @@ var FormData = require('form-data');
|
|
|
96
96
|
var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
101
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
102
|
+
* @param {string} policyCode The policy code.
|
|
103
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
104
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
105
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
getCustomerPolicyDataByDate: function (policyCode, customerCode, timesliceDate, authorization, options) {
|
|
110
|
+
if (options === void 0) { options = {}; }
|
|
111
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('getCustomerPolicyDataByDate', 'policyCode', policyCode);
|
|
116
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('getCustomerPolicyDataByDate', 'customerCode', customerCode);
|
|
118
|
+
localVarPath = "/v1/customers/{customerCode}/policies/{policyCode}/current-version"
|
|
119
|
+
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
120
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
121
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
baseAccessToken = configuration.accessToken;
|
|
125
|
+
}
|
|
126
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
127
|
+
localVarHeaderParameter = {};
|
|
128
|
+
localVarQueryParameter = {};
|
|
129
|
+
if (timesliceDate !== undefined) {
|
|
130
|
+
localVarQueryParameter['timesliceDate'] = timesliceDate;
|
|
131
|
+
}
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
+
return [2 /*return*/, {
|
|
139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
}];
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
},
|
|
99
145
|
/**
|
|
100
146
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
101
147
|
* @summary Get policy details
|
|
102
|
-
* @param {string} policyCode The
|
|
148
|
+
* @param {string} policyCode The policy code.
|
|
103
149
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
104
150
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
105
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -393,10 +439,33 @@ exports.PoliciesApiAxiosParamCreator = PoliciesApiAxiosParamCreator;
|
|
|
393
439
|
var PoliciesApiFp = function (configuration) {
|
|
394
440
|
var localVarAxiosParamCreator = (0, exports.PoliciesApiAxiosParamCreator)(configuration);
|
|
395
441
|
return {
|
|
442
|
+
/**
|
|
443
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
444
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
445
|
+
* @param {string} policyCode The policy code.
|
|
446
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
447
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
448
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
getCustomerPolicyDataByDate: function (policyCode, customerCode, timesliceDate, authorization, options) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
454
|
+
var localVarAxiosArgs;
|
|
455
|
+
return __generator(this, function (_a) {
|
|
456
|
+
switch (_a.label) {
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerPolicyDataByDate(policyCode, customerCode, timesliceDate, authorization, options)];
|
|
458
|
+
case 1:
|
|
459
|
+
localVarAxiosArgs = _a.sent();
|
|
460
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
},
|
|
396
465
|
/**
|
|
397
466
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
398
467
|
* @summary Get policy details
|
|
399
|
-
* @param {string} policyCode The
|
|
468
|
+
* @param {string} policyCode The policy code.
|
|
400
469
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
401
470
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
402
471
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -543,10 +612,23 @@ exports.PoliciesApiFp = PoliciesApiFp;
|
|
|
543
612
|
var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
544
613
|
var localVarFp = (0, exports.PoliciesApiFp)(configuration);
|
|
545
614
|
return {
|
|
615
|
+
/**
|
|
616
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
617
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
618
|
+
* @param {string} policyCode The policy code.
|
|
619
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
620
|
+
* @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
|
|
621
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
getCustomerPolicyDataByDate: function (policyCode, customerCode, timesliceDate, authorization, options) {
|
|
626
|
+
return localVarFp.getCustomerPolicyDataByDate(policyCode, customerCode, timesliceDate, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
627
|
+
},
|
|
546
628
|
/**
|
|
547
629
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
548
630
|
* @summary Get policy details
|
|
549
|
-
* @param {string} policyCode The
|
|
631
|
+
* @param {string} policyCode The policy code.
|
|
550
632
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
551
633
|
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
552
634
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -637,6 +719,18 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
637
719
|
function PoliciesApi() {
|
|
638
720
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
639
721
|
}
|
|
722
|
+
/**
|
|
723
|
+
* Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
|
|
724
|
+
* @summary Get current policy version details. Can be filtered by a specific date.
|
|
725
|
+
* @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
|
|
726
|
+
* @param {*} [options] Override http request option.
|
|
727
|
+
* @throws {RequiredError}
|
|
728
|
+
* @memberof PoliciesApi
|
|
729
|
+
*/
|
|
730
|
+
PoliciesApi.prototype.getCustomerPolicyDataByDate = function (requestParameters, options) {
|
|
731
|
+
var _this = this;
|
|
732
|
+
return (0, exports.PoliciesApiFp)(this.configuration).getCustomerPolicyDataByDate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.timesliceDate, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
733
|
+
};
|
|
640
734
|
/**
|
|
641
735
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
642
736
|
* @summary Get policy details
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetProductResponseClass } from '../models';
|
|
16
|
+
import { ListPoliciesResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* ProductsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const ProductsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
24
|
+
* @summary Get product details
|
|
25
|
+
* @param {string} productCode The product code.
|
|
26
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
27
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
getProduct: (productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
34
|
+
* @summary List products available to insure for a customer
|
|
35
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
36
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
37
|
+
* @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.
|
|
38
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
39
|
+
* @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.
|
|
40
|
+
* @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.
|
|
41
|
+
* @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.
|
|
42
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* ProductsApi - functional programming interface
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
53
|
+
/**
|
|
54
|
+
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
55
|
+
* @summary Get product details
|
|
56
|
+
* @param {string} productCode The product code.
|
|
57
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
58
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
getProduct(productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
|
|
63
|
+
/**
|
|
64
|
+
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
65
|
+
* @summary List products available to insure for a customer
|
|
66
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
67
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
68
|
+
* @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.
|
|
69
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
70
|
+
* @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.
|
|
71
|
+
* @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.
|
|
72
|
+
* @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.
|
|
73
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* ProductsApi - factory interface
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const ProductsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
84
|
+
/**
|
|
85
|
+
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
86
|
+
* @summary Get product details
|
|
87
|
+
* @param {string} productCode The product code.
|
|
88
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
89
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
getProduct(productCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetProductResponseClass>;
|
|
94
|
+
/**
|
|
95
|
+
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
96
|
+
* @summary List products available to insure for a customer
|
|
97
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
98
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
99
|
+
* @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.
|
|
100
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
101
|
+
* @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.
|
|
102
|
+
* @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.
|
|
103
|
+
* @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.
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Request parameters for getProduct operation in ProductsApi.
|
|
112
|
+
* @export
|
|
113
|
+
* @interface ProductsApiGetProductRequest
|
|
114
|
+
*/
|
|
115
|
+
export interface ProductsApiGetProductRequest {
|
|
116
|
+
/**
|
|
117
|
+
* The product code.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof ProductsApiGetProduct
|
|
120
|
+
*/
|
|
121
|
+
readonly productCode: string;
|
|
122
|
+
/**
|
|
123
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof ProductsApiGetProduct
|
|
126
|
+
*/
|
|
127
|
+
readonly customerCode: string;
|
|
128
|
+
/**
|
|
129
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof ProductsApiGetProduct
|
|
132
|
+
*/
|
|
133
|
+
readonly authorization?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Request parameters for listProducts operation in ProductsApi.
|
|
137
|
+
* @export
|
|
138
|
+
* @interface ProductsApiListProductsRequest
|
|
139
|
+
*/
|
|
140
|
+
export interface ProductsApiListProductsRequest {
|
|
141
|
+
/**
|
|
142
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof ProductsApiListProducts
|
|
145
|
+
*/
|
|
146
|
+
readonly customerCode: string;
|
|
147
|
+
/**
|
|
148
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
149
|
+
* @type {any}
|
|
150
|
+
* @memberof ProductsApiListProducts
|
|
151
|
+
*/
|
|
152
|
+
readonly pageSize?: any;
|
|
153
|
+
/**
|
|
154
|
+
* 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.
|
|
155
|
+
* @type {any}
|
|
156
|
+
* @memberof ProductsApiListProducts
|
|
157
|
+
*/
|
|
158
|
+
readonly pageToken?: any;
|
|
159
|
+
/**
|
|
160
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
161
|
+
* @type {any}
|
|
162
|
+
* @memberof ProductsApiListProducts
|
|
163
|
+
*/
|
|
164
|
+
readonly filter?: any;
|
|
165
|
+
/**
|
|
166
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
167
|
+
* @type {any}
|
|
168
|
+
* @memberof ProductsApiListProducts
|
|
169
|
+
*/
|
|
170
|
+
readonly search?: any;
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
* @type {any}
|
|
174
|
+
* @memberof ProductsApiListProducts
|
|
175
|
+
*/
|
|
176
|
+
readonly order?: any;
|
|
177
|
+
/**
|
|
178
|
+
* 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.
|
|
179
|
+
* @type {any}
|
|
180
|
+
* @memberof ProductsApiListProducts
|
|
181
|
+
*/
|
|
182
|
+
readonly expand?: any;
|
|
183
|
+
/**
|
|
184
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof ProductsApiListProducts
|
|
187
|
+
*/
|
|
188
|
+
readonly authorization?: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* ProductsApi - object-oriented interface
|
|
192
|
+
* @export
|
|
193
|
+
* @class ProductsApi
|
|
194
|
+
* @extends {BaseAPI}
|
|
195
|
+
*/
|
|
196
|
+
export declare class ProductsApi extends BaseAPI {
|
|
197
|
+
/**
|
|
198
|
+
* Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
|
|
199
|
+
* @summary Get product details
|
|
200
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
* @memberof ProductsApi
|
|
204
|
+
*/
|
|
205
|
+
getProduct(requestParameters: ProductsApiGetProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
|
|
206
|
+
/**
|
|
207
|
+
* List all the products that a customer can insure, the products can be filtered by product code, product number.
|
|
208
|
+
* @summary List products available to insure for a customer
|
|
209
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
* @memberof ProductsApi
|
|
213
|
+
*/
|
|
214
|
+
listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
|
|
215
|
+
}
|