@emilgroup/public-api-sdk-node 1.26.0 → 1.27.1

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.
Files changed (172) hide show
  1. package/README.md +2 -2
  2. package/dist/api/address-completions-validations-api.d.ts +215 -0
  3. package/dist/api/address-completions-validations-api.js +373 -0
  4. package/dist/api/default-api.d.ts +66 -0
  5. package/dist/api/default-api.js +200 -0
  6. package/dist/api/documents-api.d.ts +539 -0
  7. package/dist/api/documents-api.js +855 -0
  8. package/dist/api/leads-api.d.ts +441 -0
  9. package/dist/api/leads-api.js +791 -0
  10. package/dist/api/notifications-api.d.ts +211 -0
  11. package/dist/api/notifications-api.js +414 -0
  12. package/dist/api/payments-setup-api.d.ts +228 -0
  13. package/dist/api/payments-setup-api.js +426 -0
  14. package/dist/api/products-api.d.ts +563 -0
  15. package/dist/api/products-api.js +926 -0
  16. package/dist/api.d.ts +18 -0
  17. package/dist/api.js +36 -0
  18. package/dist/base.d.ts +78 -0
  19. package/dist/base.js +394 -0
  20. package/dist/common.d.ts +92 -0
  21. package/dist/common.js +277 -0
  22. package/dist/configuration.d.ts +90 -0
  23. package/dist/configuration.js +44 -0
  24. package/dist/index.d.ts +15 -0
  25. package/dist/index.js +36 -0
  26. package/dist/models/address-completion-item-class.d.ts +49 -0
  27. package/dist/models/address-completion-item-class.js +15 -0
  28. package/dist/models/address-completion-response-class.d.ts +25 -0
  29. package/dist/models/address-completion-response-class.js +15 -0
  30. package/dist/models/address-field-score-class.d.ts +48 -0
  31. package/dist/models/address-field-score-class.js +15 -0
  32. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  33. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  34. package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
  35. package/dist/models/calculate-product-fields-response-class.js +15 -0
  36. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  37. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  38. package/dist/models/complete-email-verification-dto.d.ts +30 -0
  39. package/dist/models/complete-email-verification-dto.js +15 -0
  40. package/dist/models/complete-email-verification-response-class.d.ts +24 -0
  41. package/dist/models/complete-email-verification-response-class.js +15 -0
  42. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  43. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  44. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  45. package/dist/models/complete-payment-setup-response-class.js +15 -0
  46. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  47. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  48. package/dist/models/create-account-request-dto.d.ts +132 -0
  49. package/dist/models/create-account-request-dto.js +31 -0
  50. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  51. package/dist/models/create-bank-account-request-dto.js +15 -0
  52. package/dist/models/create-custom-application-request-dto.d.ts +35 -0
  53. package/dist/models/create-custom-application-request-dto.js +20 -0
  54. package/dist/models/create-custom-application-response-class.d.ts +24 -0
  55. package/dist/models/create-custom-application-response-class.js +15 -0
  56. package/dist/models/create-document-request-dto.d.ts +132 -0
  57. package/dist/models/create-document-request-dto.js +43 -0
  58. package/dist/models/create-estimated-invoice-request-dto.d.ts +55 -0
  59. package/dist/models/create-estimated-invoice-request-dto.js +20 -0
  60. package/dist/models/create-estimated-invoice-response-class.d.ts +38 -0
  61. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  62. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  63. package/dist/models/create-lead-async-response-class.js +15 -0
  64. package/dist/models/create-lead-request-dto.d.ts +108 -0
  65. package/dist/models/create-lead-request-dto.js +15 -0
  66. package/dist/models/create-lead-response-class.d.ts +25 -0
  67. package/dist/models/create-lead-response-class.js +15 -0
  68. package/dist/models/create-payment-method-request-dto.d.ts +36 -0
  69. package/dist/models/create-payment-method-request-dto.js +20 -0
  70. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  71. package/dist/models/create-presigned-post-request-dto.js +52 -0
  72. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  73. package/dist/models/create-presigned-post-response-class.js +15 -0
  74. package/dist/models/document-class.d.ts +144 -0
  75. package/dist/models/document-class.js +49 -0
  76. package/dist/models/get-custom-css-response-class.d.ts +24 -0
  77. package/dist/models/get-custom-css-response-class.js +15 -0
  78. package/dist/models/get-lead-response-class.d.ts +25 -0
  79. package/dist/models/get-lead-response-class.js +15 -0
  80. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  81. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  82. package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
  83. package/dist/models/get-public-psp-settings-response-class.js +15 -0
  84. package/dist/models/index.d.ts +72 -0
  85. package/dist/models/index.js +88 -0
  86. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  87. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  88. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  89. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  90. package/dist/models/initiate-email-verification-dto.d.ts +30 -0
  91. package/dist/models/initiate-email-verification-dto.js +15 -0
  92. package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
  93. package/dist/models/initiate-email-verification-response-class.js +15 -0
  94. package/dist/models/initiate-lead-response-class.d.ts +24 -0
  95. package/dist/models/initiate-lead-response-class.js +15 -0
  96. package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
  97. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  98. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  99. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  100. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  101. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  102. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  103. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  104. package/dist/models/inline-response200.d.ts +54 -0
  105. package/dist/models/inline-response200.js +15 -0
  106. package/dist/models/inline-response503.d.ts +54 -0
  107. package/dist/models/inline-response503.js +15 -0
  108. package/dist/models/insured-object-class.d.ts +85 -0
  109. package/dist/models/insured-object-class.js +15 -0
  110. package/dist/models/insured-object-type-class.d.ts +48 -0
  111. package/dist/models/insured-object-type-class.js +15 -0
  112. package/dist/models/invoice-class.d.ts +134 -0
  113. package/dist/models/invoice-class.js +15 -0
  114. package/dist/models/invoice-item-class.d.ts +120 -0
  115. package/dist/models/invoice-item-class.js +15 -0
  116. package/dist/models/invoice-status-class.d.ts +42 -0
  117. package/dist/models/invoice-status-class.js +15 -0
  118. package/dist/models/lead-account-class.d.ts +109 -0
  119. package/dist/models/lead-account-class.js +22 -0
  120. package/dist/models/lead-bank-account-class.d.ts +30 -0
  121. package/dist/models/lead-bank-account-class.js +15 -0
  122. package/dist/models/lead-class.d.ts +109 -0
  123. package/dist/models/lead-class.js +15 -0
  124. package/dist/models/lead-policy-class.d.ts +43 -0
  125. package/dist/models/lead-policy-class.js +15 -0
  126. package/dist/models/lead-policy-object-class.d.ts +36 -0
  127. package/dist/models/lead-policy-object-class.js +15 -0
  128. package/dist/models/list-documents-response-class.d.ts +31 -0
  129. package/dist/models/list-documents-response-class.js +15 -0
  130. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  131. package/dist/models/list-product-documents-response-class.js +15 -0
  132. package/dist/models/list-products-response-class.d.ts +31 -0
  133. package/dist/models/list-products-response-class.js +15 -0
  134. package/dist/models/payment-method-class.d.ts +60 -0
  135. package/dist/models/payment-method-class.js +15 -0
  136. package/dist/models/policy-object-request-dto.d.ts +42 -0
  137. package/dist/models/policy-object-request-dto.js +15 -0
  138. package/dist/models/policy-object-response-class.d.ts +36 -0
  139. package/dist/models/policy-object-response-class.js +15 -0
  140. package/dist/models/premium-override-dto.d.ts +55 -0
  141. package/dist/models/premium-override-dto.js +27 -0
  142. package/dist/models/premium-override-request-dto.d.ts +25 -0
  143. package/dist/models/premium-override-request-dto.js +15 -0
  144. package/dist/models/product-class.d.ts +80 -0
  145. package/dist/models/product-class.js +15 -0
  146. package/dist/models/product-document-class.d.ts +111 -0
  147. package/dist/models/product-document-class.js +36 -0
  148. package/dist/models/product-factor-for-version-class.d.ts +60 -0
  149. package/dist/models/product-factor-for-version-class.js +15 -0
  150. package/dist/models/product-field-class.d.ts +132 -0
  151. package/dist/models/product-field-class.js +15 -0
  152. package/dist/models/product-version-class.d.ts +61 -0
  153. package/dist/models/product-version-class.js +22 -0
  154. package/dist/models/send-notification-request-dto.d.ts +36 -0
  155. package/dist/models/send-notification-request-dto.js +15 -0
  156. package/dist/models/send-notification-response-class.d.ts +24 -0
  157. package/dist/models/send-notification-response-class.js +15 -0
  158. package/dist/models/sepa-dto.d.ts +30 -0
  159. package/dist/models/sepa-dto.js +15 -0
  160. package/dist/models/structured-address-class.d.ts +54 -0
  161. package/dist/models/structured-address-class.js +15 -0
  162. package/dist/models/suggested-address-details-class.d.ts +90 -0
  163. package/dist/models/suggested-address-details-class.js +15 -0
  164. package/dist/models/update-lead-request-dto.d.ts +95 -0
  165. package/dist/models/update-lead-request-dto.js +15 -0
  166. package/dist/models/update-lead-response-class.d.ts +25 -0
  167. package/dist/models/update-lead-response-class.js +15 -0
  168. package/dist/models/uploaded-document-dto.d.ts +24 -0
  169. package/dist/models/uploaded-document-dto.js +15 -0
  170. package/dist/models/validate-address-response-class.d.ts +50 -0
  171. package/dist/models/validate-address-response-class.js +15 -0
  172. package/package.json +1 -1
@@ -0,0 +1,132 @@
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 CreateDocumentRequestDto
16
+ */
17
+ export interface CreateDocumentRequestDto {
18
+ /**
19
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
20
+ * @type {string}
21
+ * @memberof CreateDocumentRequestDto
22
+ */
23
+ 'templateSlug': string;
24
+ /**
25
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
+ * @type {string}
27
+ * @memberof CreateDocumentRequestDto
28
+ */
29
+ 'productSlug'?: string;
30
+ /**
31
+ * Document payload.
32
+ * @type {object}
33
+ * @memberof CreateDocumentRequestDto
34
+ */
35
+ 'payload': object;
36
+ /**
37
+ * Document entity type.
38
+ * @type {string}
39
+ * @memberof CreateDocumentRequestDto
40
+ */
41
+ 'entityType': string;
42
+ /**
43
+ * Document description.
44
+ * @type {string}
45
+ * @memberof CreateDocumentRequestDto
46
+ */
47
+ 'description': string;
48
+ /**
49
+ * Unique identifier of the policy that this object belongs to.
50
+ * @type {string}
51
+ * @memberof CreateDocumentRequestDto
52
+ */
53
+ 'policyCode'?: string;
54
+ /**
55
+ * Unique identifier of the account that this object belongs to.
56
+ * @type {string}
57
+ * @memberof CreateDocumentRequestDto
58
+ */
59
+ 'accountCode'?: string;
60
+ /**
61
+ * Unique identifier referencing the entity.
62
+ * @type {number}
63
+ * @memberof CreateDocumentRequestDto
64
+ */
65
+ 'entityId'?: number;
66
+ /**
67
+ * Document requester.
68
+ * @type {string}
69
+ * @memberof CreateDocumentRequestDto
70
+ */
71
+ 'requester': CreateDocumentRequestDtoRequesterEnum;
72
+ /**
73
+ * Metadata contains extra information that the document would need for specific cases.
74
+ * @type {object}
75
+ * @memberof CreateDocumentRequestDto
76
+ */
77
+ 'metadata'?: object;
78
+ /**
79
+ * Document type.
80
+ * @type {string}
81
+ * @memberof CreateDocumentRequestDto
82
+ */
83
+ 'contentType': CreateDocumentRequestDtoContentTypeEnum;
84
+ /**
85
+ * Document file name.
86
+ * @type {string}
87
+ * @memberof CreateDocumentRequestDto
88
+ */
89
+ 'filename'?: string;
90
+ /**
91
+ * If true, the default margins will be skipped when generating the document.
92
+ * @type {boolean}
93
+ * @memberof CreateDocumentRequestDto
94
+ */
95
+ 'shouldSkipDefaultMargins'?: boolean;
96
+ /**
97
+ * Type of the document engine to use to generate the document. Defaults to HTML.
98
+ * @type {string}
99
+ * @memberof CreateDocumentRequestDto
100
+ */
101
+ 'engine'?: CreateDocumentRequestDtoEngineEnum;
102
+ }
103
+ export declare const CreateDocumentRequestDtoRequesterEnum: {
104
+ readonly Publicapi: "publicapi";
105
+ };
106
+ export type CreateDocumentRequestDtoRequesterEnum = typeof CreateDocumentRequestDtoRequesterEnum[keyof typeof CreateDocumentRequestDtoRequesterEnum];
107
+ export declare const CreateDocumentRequestDtoContentTypeEnum: {
108
+ readonly Pdf: "pdf";
109
+ readonly Jpg: "jpg";
110
+ readonly Png: "png";
111
+ readonly Gz: "gz";
112
+ readonly Csv: "csv";
113
+ readonly Doc: "doc";
114
+ readonly Docx: "docx";
115
+ readonly Html: "html";
116
+ readonly Json: "json";
117
+ readonly Xml: "xml";
118
+ readonly Txt: "txt";
119
+ readonly Zip: "zip";
120
+ readonly Tar: "tar";
121
+ readonly Rar: "rar";
122
+ readonly Mp4: "MP4";
123
+ readonly Mov: "MOV";
124
+ readonly Wmv: "WMV";
125
+ readonly Avi: "AVI";
126
+ };
127
+ export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
128
+ export declare const CreateDocumentRequestDtoEngineEnum: {
129
+ readonly Docx: "docx";
130
+ readonly Html: "html";
131
+ };
132
+ export type CreateDocumentRequestDtoEngineEnum = typeof CreateDocumentRequestDtoEngineEnum[keyof typeof CreateDocumentRequestDtoEngineEnum];
@@ -0,0 +1,43 @@
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 });
16
+ exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = void 0;
17
+ exports.CreateDocumentRequestDtoRequesterEnum = {
18
+ Publicapi: 'publicapi'
19
+ };
20
+ exports.CreateDocumentRequestDtoContentTypeEnum = {
21
+ Pdf: 'pdf',
22
+ Jpg: 'jpg',
23
+ Png: 'png',
24
+ Gz: 'gz',
25
+ Csv: 'csv',
26
+ Doc: 'doc',
27
+ Docx: 'docx',
28
+ Html: 'html',
29
+ Json: 'json',
30
+ Xml: 'xml',
31
+ Txt: 'txt',
32
+ Zip: 'zip',
33
+ Tar: 'tar',
34
+ Rar: 'rar',
35
+ Mp4: 'MP4',
36
+ Mov: 'MOV',
37
+ Wmv: 'WMV',
38
+ Avi: 'AVI'
39
+ };
40
+ exports.CreateDocumentRequestDtoEngineEnum = {
41
+ Docx: 'docx',
42
+ Html: 'html'
43
+ };
@@ -0,0 +1,55 @@
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
+ import { PolicyObjectRequestDto } from './policy-object-request-dto';
13
+ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CreateEstimatedInvoiceRequestDto
18
+ */
19
+ export interface CreateEstimatedInvoiceRequestDto {
20
+ /**
21
+ * Unique identifier referencing the product version.
22
+ * @type {number}
23
+ * @memberof CreateEstimatedInvoiceRequestDto
24
+ */
25
+ 'productVersionId'?: number;
26
+ /**
27
+ * The policy objects to calculate premium.
28
+ * @type {Array<PolicyObjectRequestDto>}
29
+ * @memberof CreateEstimatedInvoiceRequestDto
30
+ */
31
+ 'policyObjects'?: Array<PolicyObjectRequestDto>;
32
+ /**
33
+ * Customer custom data for premium calculation. Necessary when no policyObjects are provided.
34
+ * @type {object}
35
+ * @memberof CreateEstimatedInvoiceRequestDto
36
+ */
37
+ 'data'?: object;
38
+ /**
39
+ * Custom provider name. Necessary if data is provided.
40
+ * @type {string}
41
+ * @memberof CreateEstimatedInvoiceRequestDto
42
+ */
43
+ 'provider'?: CreateEstimatedInvoiceRequestDtoProviderEnum;
44
+ /**
45
+ * Premium Override.
46
+ * @type {PremiumOverrideRequestDto}
47
+ * @memberof CreateEstimatedInvoiceRequestDto
48
+ */
49
+ 'premiumOverride'?: PremiumOverrideRequestDto;
50
+ }
51
+ export declare const CreateEstimatedInvoiceRequestDtoProviderEnum: {
52
+ readonly Squarelife: "squarelife";
53
+ readonly Janitos: "janitos";
54
+ };
55
+ export type CreateEstimatedInvoiceRequestDtoProviderEnum = typeof CreateEstimatedInvoiceRequestDtoProviderEnum[keyof typeof CreateEstimatedInvoiceRequestDtoProviderEnum];
@@ -0,0 +1,20 @@
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 });
16
+ exports.CreateEstimatedInvoiceRequestDtoProviderEnum = void 0;
17
+ exports.CreateEstimatedInvoiceRequestDtoProviderEnum = {
18
+ Squarelife: 'squarelife',
19
+ Janitos: 'janitos'
20
+ };
@@ -0,0 +1,38 @@
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
+ import { CalculateProductFieldsResponseClass } from './calculate-product-fields-response-class';
13
+ import { InvoiceClass } from './invoice-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CreateEstimatedInvoiceResponseClass
18
+ */
19
+ export interface CreateEstimatedInvoiceResponseClass {
20
+ /**
21
+ * Estimated invoice response
22
+ * @type {InvoiceClass}
23
+ * @memberof CreateEstimatedInvoiceResponseClass
24
+ */
25
+ 'invoice'?: InvoiceClass;
26
+ /**
27
+ * In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
28
+ * @type {object}
29
+ * @memberof CreateEstimatedInvoiceResponseClass
30
+ */
31
+ 'custom'?: object;
32
+ /**
33
+ * Calculated policy obejcts response
34
+ * @type {CalculateProductFieldsResponseClass}
35
+ * @memberof CreateEstimatedInvoiceResponseClass
36
+ */
37
+ 'policyObjects'?: CalculateProductFieldsResponseClass;
38
+ }
@@ -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 });
@@ -0,0 +1,24 @@
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 CreateLeadAsyncResponseClass
16
+ */
17
+ export interface CreateLeadAsyncResponseClass {
18
+ /**
19
+ * Unique identifier of the lead that this object belongs to.
20
+ * @type {string}
21
+ * @memberof CreateLeadAsyncResponseClass
22
+ */
23
+ 'code': string;
24
+ }
@@ -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 });
@@ -0,0 +1,108 @@
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
+ import { CreateAccountRequestDto } from './create-account-request-dto';
13
+ import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
14
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
15
+ import { PolicyObjectRequestDto } from './policy-object-request-dto';
16
+ import { PremiumOverrideRequestDto } from './premium-override-request-dto';
17
+ import { UploadedDocumentDto } from './uploaded-document-dto';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateLeadRequestDto
22
+ */
23
+ export interface CreateLeadRequestDto {
24
+ /**
25
+ * The lead code is used in cases where the lead has been initiated before the lead creation.
26
+ * @type {string}
27
+ * @memberof CreateLeadRequestDto
28
+ */
29
+ 'code'?: string;
30
+ /**
31
+ * The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
32
+ * @type {number}
33
+ * @memberof CreateLeadRequestDto
34
+ */
35
+ 'productVersionId'?: number;
36
+ /**
37
+ * Unique identifier of the product that this object belongs to.
38
+ * @type {string}
39
+ * @memberof CreateLeadRequestDto
40
+ */
41
+ 'productCode'?: string;
42
+ /**
43
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
44
+ * @type {string}
45
+ * @memberof CreateLeadRequestDto
46
+ */
47
+ 'productSlug'?: string;
48
+ /**
49
+ * Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
50
+ * @type {CreateAccountRequestDto}
51
+ * @memberof CreateLeadRequestDto
52
+ */
53
+ 'account'?: CreateAccountRequestDto;
54
+ /**
55
+ * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
56
+ * @type {string}
57
+ * @memberof CreateLeadRequestDto
58
+ */
59
+ 'accountCode'?: string;
60
+ /**
61
+ * The policy objects contains necessary information to create a policy. The Policy objects array will be validated if the \'validate\' flag is set to true
62
+ * @type {Array<PolicyObjectRequestDto>}
63
+ * @memberof CreateLeadRequestDto
64
+ */
65
+ 'policyObjects'?: Array<PolicyObjectRequestDto>;
66
+ /**
67
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
68
+ * @type {CreateBankAccountRequestDto}
69
+ * @memberof CreateLeadRequestDto
70
+ */
71
+ 'bankAccount'?: CreateBankAccountRequestDto;
72
+ /**
73
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
74
+ * @type {object}
75
+ * @memberof CreateLeadRequestDto
76
+ */
77
+ 'customData'?: object;
78
+ /**
79
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
80
+ * @type {UploadedDocumentDto}
81
+ * @memberof CreateLeadRequestDto
82
+ */
83
+ 'uploadedDocument'?: UploadedDocumentDto;
84
+ /**
85
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
86
+ * @type {string}
87
+ * @memberof CreateLeadRequestDto
88
+ */
89
+ 'status'?: string;
90
+ /**
91
+ * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
92
+ * @type {Array<PremiumOverrideRequestDto>}
93
+ * @memberof CreateLeadRequestDto
94
+ */
95
+ 'premiumOverride'?: Array<PremiumOverrideRequestDto>;
96
+ /**
97
+ * Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
98
+ * @type {CreatePaymentMethodRequestDto}
99
+ * @memberof CreateLeadRequestDto
100
+ */
101
+ 'paymentMethod'?: CreatePaymentMethodRequestDto;
102
+ /**
103
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
104
+ * @type {boolean}
105
+ * @memberof CreateLeadRequestDto
106
+ */
107
+ 'validate'?: boolean;
108
+ }
@@ -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 });
@@ -0,0 +1,25 @@
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
+ import { LeadClass } from './lead-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateLeadResponseClass
17
+ */
18
+ export interface CreateLeadResponseClass {
19
+ /**
20
+ * The list of leads.
21
+ * @type {LeadClass}
22
+ * @memberof CreateLeadResponseClass
23
+ */
24
+ 'lead': LeadClass;
25
+ }
@@ -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 });
@@ -0,0 +1,36 @@
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
+ import { SepaDto } from './sepa-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreatePaymentMethodRequestDto
17
+ */
18
+ export interface CreatePaymentMethodRequestDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreatePaymentMethodRequestDto
23
+ */
24
+ 'type': CreatePaymentMethodRequestDtoTypeEnum;
25
+ /**
26
+ *
27
+ * @type {SepaDto}
28
+ * @memberof CreatePaymentMethodRequestDto
29
+ */
30
+ 'sepa'?: SepaDto;
31
+ }
32
+ export declare const CreatePaymentMethodRequestDtoTypeEnum: {
33
+ readonly Sepa: "sepa";
34
+ readonly Invoice: "invoice";
35
+ };
36
+ export type CreatePaymentMethodRequestDtoTypeEnum = typeof CreatePaymentMethodRequestDtoTypeEnum[keyof typeof CreatePaymentMethodRequestDtoTypeEnum];
@@ -0,0 +1,20 @@
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 });
16
+ exports.CreatePaymentMethodRequestDtoTypeEnum = void 0;
17
+ exports.CreatePaymentMethodRequestDtoTypeEnum = {
18
+ Sepa: 'sepa',
19
+ Invoice: 'invoice'
20
+ };