@emilgroup/public-api-sdk 1.4.0 → 1.6.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.
@@ -145,6 +145,54 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
+ /**
149
+ * This will send the customer the public key to load the payment form and complete the payment setup.
150
+ * @summary Get public key and psp
151
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getPublicPSPConfig: function (idempotencyKey, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ localVarPath = "/publicapi/v1/payment-setup/get-psp-config";
164
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ baseAccessToken = configuration.accessToken;
168
+ }
169
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
170
+ localVarHeaderParameter = {};
171
+ localVarQueryParameter = {};
172
+ // authentication bearer required
173
+ // http bearer authentication required
174
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
175
+ case 1:
176
+ // authentication bearer required
177
+ // http bearer authentication required
178
+ _a.sent();
179
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
180
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
181
+ }
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
148
196
  /**
149
197
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
150
198
  * @summary Initiate a payment setup
@@ -230,6 +278,27 @@ var PaymentsSetupApiFp = function (configuration) {
230
278
  });
231
279
  });
232
280
  },
281
+ /**
282
+ * This will send the customer the public key to load the payment form and complete the payment setup.
283
+ * @summary Get public key and psp
284
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
285
+ * @param {string} [authorization] Bearer Token
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ getPublicPSPConfig: function (idempotencyKey, authorization, options) {
290
+ return __awaiter(this, void 0, void 0, function () {
291
+ var localVarAxiosArgs;
292
+ return __generator(this, function (_a) {
293
+ switch (_a.label) {
294
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options)];
295
+ case 1:
296
+ localVarAxiosArgs = _a.sent();
297
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
298
+ }
299
+ });
300
+ });
301
+ },
233
302
  /**
234
303
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
235
304
  * @summary Initiate a payment setup
@@ -274,6 +343,17 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
274
343
  completePaymentSetup: function (completePaymentSetupRequestDto, idempotencyKey, authorization, options) {
275
344
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
276
345
  },
346
+ /**
347
+ * This will send the customer the public key to load the payment form and complete the payment setup.
348
+ * @summary Get public key and psp
349
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
350
+ * @param {string} [authorization] Bearer Token
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ getPublicPSPConfig: function (idempotencyKey, authorization, options) {
355
+ return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
356
+ },
277
357
  /**
278
358
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
279
359
  * @summary Initiate a payment setup
@@ -312,6 +392,19 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
312
392
  var _this = this;
313
393
  return (0, exports.PaymentsSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
314
394
  };
395
+ /**
396
+ * This will send the customer the public key to load the payment form and complete the payment setup.
397
+ * @summary Get public key and psp
398
+ * @param {PaymentsSetupApiGetPublicPSPConfigRequest} requestParameters Request parameters.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ * @memberof PaymentsSetupApi
402
+ */
403
+ PaymentsSetupApi.prototype.getPublicPSPConfig = function (requestParameters, options) {
404
+ var _this = this;
405
+ if (requestParameters === void 0) { requestParameters = {}; }
406
+ return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
407
+ };
315
408
  /**
316
409
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
317
410
  * @summary Initiate a payment setup
@@ -86,11 +86,11 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
86
86
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
87
87
  * @summary List products
88
88
  * @param {string} [authorization] Bearer Token
89
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
90
- * @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} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
90
+ * @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.
91
91
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
92
92
  * @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.
93
- * @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.
93
+ * @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.
94
94
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
95
95
  * @param {*} [options] Override http request option.
96
96
  * @throws {RequiredError}
@@ -162,11 +162,11 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
162
162
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
163
163
  * @summary List products
164
164
  * @param {string} [authorization] Bearer Token
165
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
166
- * @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.
165
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
166
+ * @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.
167
167
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
168
168
  * @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.
169
- * @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.
169
+ * @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.
170
170
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
171
171
  * @param {*} [options] Override http request option.
172
172
  * @throws {RequiredError}
@@ -238,11 +238,11 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
238
238
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
239
239
  * @summary List products
240
240
  * @param {string} [authorization] Bearer Token
241
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
242
- * @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.
241
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
242
+ * @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.
243
243
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
244
244
  * @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.
245
- * @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.
245
+ * @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.
246
246
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
247
247
  * @param {*} [options] Override http request option.
248
248
  * @throws {RequiredError}
@@ -388,13 +388,13 @@ export interface ProductsApiListProductsRequest {
388
388
  */
389
389
  readonly authorization?: string;
390
390
  /**
391
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
391
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
392
392
  * @type {any}
393
393
  * @memberof ProductsApiListProducts
394
394
  */
395
395
  readonly pageSize?: any;
396
396
  /**
397
- * 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.
397
+ * 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.
398
398
  * @type {any}
399
399
  * @memberof ProductsApiListProducts
400
400
  */
@@ -412,7 +412,7 @@ export interface ProductsApiListProductsRequest {
412
412
  */
413
413
  readonly search?: any;
414
414
  /**
415
- * 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.
415
+ * 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.
416
416
  * @type {any}
417
417
  * @memberof ProductsApiListProducts
418
418
  */
@@ -396,11 +396,11 @@ var ProductsApiAxiosParamCreator = function (configuration) {
396
396
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
397
397
  * @summary List products
398
398
  * @param {string} [authorization] Bearer Token
399
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
400
- * @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.
399
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
400
+ * @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.
401
401
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
402
402
  * @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.
403
- * @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.
403
+ * @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.
404
404
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
405
405
  * @param {*} [options] Override http request option.
406
406
  * @throws {RequiredError}
@@ -602,11 +602,11 @@ var ProductsApiFp = function (configuration) {
602
602
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
603
603
  * @summary List products
604
604
  * @param {string} [authorization] Bearer Token
605
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
606
- * @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.
605
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
606
+ * @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.
607
607
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
608
608
  * @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.
609
- * @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.
609
+ * @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.
610
610
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
611
611
  * @param {*} [options] Override http request option.
612
612
  * @throws {RequiredError}
@@ -706,11 +706,11 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
706
706
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
707
707
  * @summary List products
708
708
  * @param {string} [authorization] Bearer Token
709
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
710
- * @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.
709
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
710
+ * @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.
711
711
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
712
712
  * @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.
713
- * @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.
713
+ * @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.
714
714
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
715
715
  * @param {*} [options] Override http request option.
716
716
  * @throws {RequiredError}
package/dist/base.js CHANGED
@@ -204,6 +204,9 @@ var BaseAPI = /** @class */ (function () {
204
204
  if (typeof window !== 'undefined') {
205
205
  this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
206
206
  }
207
+ else {
208
+ this.tokenData = {};
209
+ }
207
210
  };
208
211
  BaseAPI.prototype.cleanTokenData = function () {
209
212
  this.storeTokenData(null);
@@ -63,11 +63,11 @@ export interface CreateLeadRequestDto {
63
63
  */
64
64
  'uploadedDocument'?: UploadedDocumentDto;
65
65
  /**
66
- * Lead status that contains \"created\",\"approved\",\"activated\" and \"declined\" statuses.
66
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
67
67
  * @type {string}
68
68
  * @memberof CreateLeadRequestDto
69
69
  */
70
- 'status'?: CreateLeadRequestDtoStatusEnum;
70
+ 'status'?: string;
71
71
  /**
72
72
  * Premium Override.
73
73
  * @type {PremiumOverrideRequestDto}
@@ -79,12 +79,11 @@ export interface CreateLeadRequestDto {
79
79
  * @type {CreateAccountRequestDto}
80
80
  * @memberof CreateLeadRequestDto
81
81
  */
82
- 'account': CreateAccountRequestDto;
82
+ 'account'?: CreateAccountRequestDto;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof CreateLeadRequestDto
87
+ */
88
+ 'accountCode': string;
83
89
  }
84
- export declare const CreateLeadRequestDtoStatusEnum: {
85
- readonly Created: "created";
86
- readonly Approved: "approved";
87
- readonly Activated: "activated";
88
- readonly Declined: "declined";
89
- };
90
- export type CreateLeadRequestDtoStatusEnum = typeof CreateLeadRequestDtoStatusEnum[keyof typeof CreateLeadRequestDtoStatusEnum];
@@ -13,10 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateLeadRequestDtoStatusEnum = void 0;
17
- exports.CreateLeadRequestDtoStatusEnum = {
18
- Created: 'created',
19
- Approved: 'approved',
20
- Activated: 'activated',
21
- Declined: 'declined'
22
- };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public 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
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetPublicPspSettingsResponseClass
16
+ */
17
+ export interface GetPublicPspSettingsResponseClass {
18
+ /**
19
+ * Public key. Used on frontend to load the payment form component.
20
+ * @type {string}
21
+ * @memberof GetPublicPspSettingsResponseClass
22
+ */
23
+ 'publicKey': string;
24
+ /**
25
+ * Name of payment system provider.
26
+ * @type {string}
27
+ * @memberof GetPublicPspSettingsResponseClass
28
+ */
29
+ 'psp': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,7 @@ export * from './create-lead-response-class';
14
14
  export * from './document-class';
15
15
  export * from './get-custom-css-response-class';
16
16
  export * from './get-lead-response-class';
17
+ export * from './get-public-psp-settings-response-class';
17
18
  export * from './initiate-braintree-payment-setup-request-dto';
18
19
  export * from './initiate-braintree-payment-setup-response-class';
19
20
  export * from './initiate-lead-response-class';
@@ -30,6 +30,7 @@ __exportStar(require("./create-lead-response-class"), exports);
30
30
  __exportStar(require("./document-class"), exports);
31
31
  __exportStar(require("./get-custom-css-response-class"), exports);
32
32
  __exportStar(require("./get-lead-response-class"), exports);
33
+ __exportStar(require("./get-public-psp-settings-response-class"), exports);
33
34
  __exportStar(require("./initiate-braintree-payment-setup-request-dto"), exports);
34
35
  __exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
35
36
  __exportStar(require("./initiate-lead-response-class"), exports);
@@ -52,6 +52,24 @@ export interface InsuredObjectClass {
52
52
  * @memberof InsuredObjectClass
53
53
  */
54
54
  'productFields': Array<ProductFieldClass>;
55
+ /**
56
+ * Insured object count default to 1.
57
+ * @type {number}
58
+ * @memberof InsuredObjectClass
59
+ */
60
+ 'count': number;
61
+ /**
62
+ * Minimum insured object count default to 0.
63
+ * @type {number}
64
+ * @memberof InsuredObjectClass
65
+ */
66
+ 'min': number;
67
+ /**
68
+ * Maximum insured object count default to 1.
69
+ * @type {number}
70
+ * @memberof InsuredObjectClass
71
+ */
72
+ 'max': number;
55
73
  /**
56
74
  * Time at which the object was created.
57
75
  * @type {string}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { InvoiceClass } from './invoice-class';
12
13
  import { LeadAccountClass } from './lead-account-class';
13
14
  import { LeadBankAccountClass } from './lead-bank-account-class';
14
15
  import { LeadPolicyClass } from './lead-policy-class';
@@ -74,6 +75,12 @@ export interface LeadClass {
74
75
  * @memberof LeadClass
75
76
  */
76
77
  'customData'?: object;
78
+ /**
79
+ * Quote or price details.
80
+ * @type {InvoiceClass}
81
+ * @memberof LeadClass
82
+ */
83
+ 'quote': InvoiceClass;
77
84
  /**
78
85
  * Time at which the object was created.
79
86
  * @type {string}
@@ -69,6 +69,18 @@ export interface ProductFieldClass {
69
69
  * @memberof ProductFieldClass
70
70
  */
71
71
  'isHidden': boolean;
72
+ /**
73
+ * Is field hidden on the customer portal?
74
+ * @type {boolean}
75
+ * @memberof ProductFieldClass
76
+ */
77
+ 'isHiddenCustomerPortal': boolean;
78
+ /**
79
+ * Is field editable on the customer portal?
80
+ * @type {boolean}
81
+ * @memberof ProductFieldClass
82
+ */
83
+ 'isEditableCustomerPortal': boolean;
72
84
  /**
73
85
  * Is this a system field? - System fields can neither be deleted nor modified
74
86
  * @type {boolean}
@@ -12,7 +12,6 @@
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
14
  import { PolicyObjectRequestDto } from './policy-object-request-dto';
15
- import { PremiumOverrideRequestDto } from './premium-override-request-dto';
16
15
  import { UploadedDocumentDto } from './uploaded-document-dto';
17
16
  /**
18
17
  *
@@ -63,28 +62,15 @@ export interface UpdateLeadRequestDto {
63
62
  */
64
63
  'uploadedDocument'?: UploadedDocumentDto;
65
64
  /**
66
- * Premium Override
67
- * @type {PremiumOverrideRequestDto}
65
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
66
+ * @type {string}
68
67
  * @memberof UpdateLeadRequestDto
69
68
  */
70
- 'premiumOverride'?: PremiumOverrideRequestDto;
69
+ 'status': string;
71
70
  /**
72
71
  *
73
72
  * @type {CreateAccountRequestDto}
74
73
  * @memberof UpdateLeadRequestDto
75
74
  */
76
75
  'account': CreateAccountRequestDto;
77
- /**
78
- *
79
- * @type {string}
80
- * @memberof UpdateLeadRequestDto
81
- */
82
- 'status': UpdateLeadRequestDtoStatusEnum;
83
76
  }
84
- export declare const UpdateLeadRequestDtoStatusEnum: {
85
- readonly Created: "created";
86
- readonly Approved: "approved";
87
- readonly Activated: "activated";
88
- readonly Declined: "declined";
89
- };
90
- export type UpdateLeadRequestDtoStatusEnum = typeof UpdateLeadRequestDtoStatusEnum[keyof typeof UpdateLeadRequestDtoStatusEnum];
@@ -13,10 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UpdateLeadRequestDtoStatusEnum = void 0;
17
- exports.UpdateLeadRequestDtoStatusEnum = {
18
- Created: 'created',
19
- Approved: 'approved',
20
- Activated: 'activated',
21
- Declined: 'declined'
22
- };
@@ -68,11 +68,11 @@ export interface CreateLeadRequestDto {
68
68
  */
69
69
  'uploadedDocument'?: UploadedDocumentDto;
70
70
  /**
71
- * Lead status that contains \"created\",\"approved\",\"activated\" and \"declined\" statuses.
71
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
72
72
  * @type {string}
73
73
  * @memberof CreateLeadRequestDto
74
74
  */
75
- 'status'?: CreateLeadRequestDtoStatusEnum;
75
+ 'status'?: string;
76
76
  /**
77
77
  * Premium Override.
78
78
  * @type {PremiumOverrideRequestDto}
@@ -84,16 +84,12 @@ export interface CreateLeadRequestDto {
84
84
  * @type {CreateAccountRequestDto}
85
85
  * @memberof CreateLeadRequestDto
86
86
  */
87
- 'account': CreateAccountRequestDto;
87
+ 'account'?: CreateAccountRequestDto;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof CreateLeadRequestDto
92
+ */
93
+ 'accountCode': string;
88
94
  }
89
95
 
90
- export const CreateLeadRequestDtoStatusEnum = {
91
- Created: 'created',
92
- Approved: 'approved',
93
- Activated: 'activated',
94
- Declined: 'declined'
95
- } as const;
96
-
97
- export type CreateLeadRequestDtoStatusEnum = typeof CreateLeadRequestDtoStatusEnum[keyof typeof CreateLeadRequestDtoStatusEnum];
98
-
99
-
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GetPublicPspSettingsResponseClass
21
+ */
22
+ export interface GetPublicPspSettingsResponseClass {
23
+ /**
24
+ * Public key. Used on frontend to load the payment form component.
25
+ * @type {string}
26
+ * @memberof GetPublicPspSettingsResponseClass
27
+ */
28
+ 'publicKey': string;
29
+ /**
30
+ * Name of payment system provider.
31
+ * @type {string}
32
+ * @memberof GetPublicPspSettingsResponseClass
33
+ */
34
+ 'psp': string;
35
+ }
36
+
package/models/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './create-lead-response-class';
14
14
  export * from './document-class';
15
15
  export * from './get-custom-css-response-class';
16
16
  export * from './get-lead-response-class';
17
+ export * from './get-public-psp-settings-response-class';
17
18
  export * from './initiate-braintree-payment-setup-request-dto';
18
19
  export * from './initiate-braintree-payment-setup-response-class';
19
20
  export * from './initiate-lead-response-class';
@@ -57,6 +57,24 @@ export interface InsuredObjectClass {
57
57
  * @memberof InsuredObjectClass
58
58
  */
59
59
  'productFields': Array<ProductFieldClass>;
60
+ /**
61
+ * Insured object count default to 1.
62
+ * @type {number}
63
+ * @memberof InsuredObjectClass
64
+ */
65
+ 'count': number;
66
+ /**
67
+ * Minimum insured object count default to 0.
68
+ * @type {number}
69
+ * @memberof InsuredObjectClass
70
+ */
71
+ 'min': number;
72
+ /**
73
+ * Maximum insured object count default to 1.
74
+ * @type {number}
75
+ * @memberof InsuredObjectClass
76
+ */
77
+ 'max': number;
60
78
  /**
61
79
  * Time at which the object was created.
62
80
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { InvoiceClass } from './invoice-class';
16
17
  import { LeadAccountClass } from './lead-account-class';
17
18
  import { LeadBankAccountClass } from './lead-bank-account-class';
18
19
  import { LeadPolicyClass } from './lead-policy-class';
@@ -79,6 +80,12 @@ export interface LeadClass {
79
80
  * @memberof LeadClass
80
81
  */
81
82
  'customData'?: object;
83
+ /**
84
+ * Quote or price details.
85
+ * @type {InvoiceClass}
86
+ * @memberof LeadClass
87
+ */
88
+ 'quote': InvoiceClass;
82
89
  /**
83
90
  * Time at which the object was created.
84
91
  * @type {string}
@@ -74,6 +74,18 @@ export interface ProductFieldClass {
74
74
  * @memberof ProductFieldClass
75
75
  */
76
76
  'isHidden': boolean;
77
+ /**
78
+ * Is field hidden on the customer portal?
79
+ * @type {boolean}
80
+ * @memberof ProductFieldClass
81
+ */
82
+ 'isHiddenCustomerPortal': boolean;
83
+ /**
84
+ * Is field editable on the customer portal?
85
+ * @type {boolean}
86
+ * @memberof ProductFieldClass
87
+ */
88
+ 'isEditableCustomerPortal': boolean;
77
89
  /**
78
90
  * Is this a system field? - System fields can neither be deleted nor modified
79
91
  * @type {boolean}