@emilgroup/partner-portal-sdk 1.1.1 → 1.5.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.
Files changed (126) hide show
  1. package/.openapi-generator/FILES +46 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -1
  5. package/api/intermediary-api.ts +1222 -0
  6. package/api.ts +27 -0
  7. package/base.ts +331 -0
  8. package/common.ts +198 -0
  9. package/configuration.ts +110 -0
  10. package/dist/api/intermediary-api.d.ts +704 -0
  11. package/dist/api/intermediary-api.js +1015 -0
  12. package/dist/api.d.ts +12 -0
  13. package/dist/api.js +30 -0
  14. package/dist/base.d.ts +86 -0
  15. package/dist/base.js +367 -0
  16. package/dist/common.d.ts +91 -0
  17. package/dist/common.js +276 -0
  18. package/dist/configuration.d.ts +89 -0
  19. package/dist/configuration.js +52 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +36 -0
  22. package/dist/models/account-class.d.ts +176 -0
  23. package/dist/models/account-class.js +22 -0
  24. package/dist/models/account-policy-class.d.ts +147 -0
  25. package/dist/models/account-policy-class.js +15 -0
  26. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  27. package/dist/models/create-payment-method-request-dto.js +15 -0
  28. package/dist/models/create-policy-request-dto.d.ts +55 -0
  29. package/dist/models/create-policy-request-dto.js +15 -0
  30. package/dist/models/index.d.ts +32 -0
  31. package/dist/models/index.js +48 -0
  32. package/dist/models/insured-object-type-class.d.ts +60 -0
  33. package/dist/models/insured-object-type-class.js +15 -0
  34. package/dist/models/invoice-class.d.ts +152 -0
  35. package/dist/models/invoice-class.js +32 -0
  36. package/dist/models/invoice-item-class.d.ts +117 -0
  37. package/dist/models/invoice-item-class.js +24 -0
  38. package/dist/models/invoice-status-class.d.ts +49 -0
  39. package/dist/models/invoice-status-class.js +22 -0
  40. package/dist/models/lead-bank-account-class.d.ts +30 -0
  41. package/dist/models/lead-bank-account-class.js +15 -0
  42. package/dist/models/lead-class.d.ts +157 -0
  43. package/dist/models/lead-class.js +15 -0
  44. package/dist/models/list-accounts-response-class.d.ts +31 -0
  45. package/dist/models/list-accounts-response-class.js +15 -0
  46. package/dist/models/list-leads-response-class.d.ts +43 -0
  47. package/dist/models/list-leads-response-class.js +15 -0
  48. package/dist/models/list-partners-response-class.d.ts +31 -0
  49. package/dist/models/list-partners-response-class.js +15 -0
  50. package/dist/models/list-policies-response-class.d.ts +43 -0
  51. package/dist/models/list-policies-response-class.js +15 -0
  52. package/dist/models/omit-type-class.d.ts +84 -0
  53. package/dist/models/omit-type-class.js +15 -0
  54. package/dist/models/partner-class.d.ts +103 -0
  55. package/dist/models/partner-class.js +15 -0
  56. package/dist/models/partner-link-class.d.ts +98 -0
  57. package/dist/models/partner-link-class.js +15 -0
  58. package/dist/models/partner-role-class.d.ts +72 -0
  59. package/dist/models/partner-role-class.js +15 -0
  60. package/dist/models/policy-class.d.ts +147 -0
  61. package/dist/models/policy-class.js +15 -0
  62. package/dist/models/policy-object-class.d.ts +84 -0
  63. package/dist/models/policy-object-class.js +15 -0
  64. package/dist/models/policy-premium-class.d.ts +61 -0
  65. package/dist/models/policy-premium-class.js +15 -0
  66. package/dist/models/policy-premium-item-class.d.ts +67 -0
  67. package/dist/models/policy-premium-item-class.js +15 -0
  68. package/dist/models/policy-version-class.d.ts +79 -0
  69. package/dist/models/policy-version-class.js +15 -0
  70. package/dist/models/premium-formula-class.d.ts +108 -0
  71. package/dist/models/premium-formula-class.js +15 -0
  72. package/dist/models/premium-override-dto.d.ts +55 -0
  73. package/dist/models/premium-override-dto.js +27 -0
  74. package/dist/models/premium-override-request-dto.d.ts +25 -0
  75. package/dist/models/premium-override-request-dto.js +15 -0
  76. package/dist/models/product-class.d.ts +92 -0
  77. package/dist/models/product-class.js +15 -0
  78. package/dist/models/product-version-class.d.ts +73 -0
  79. package/dist/models/product-version-class.js +22 -0
  80. package/dist/models/sepa-dto.d.ts +30 -0
  81. package/dist/models/sepa-dto.js +15 -0
  82. package/dist/models/tag-class.d.ts +54 -0
  83. package/dist/models/tag-class.js +15 -0
  84. package/dist/models/timeslice-class.d.ts +74 -0
  85. package/dist/models/timeslice-class.js +15 -0
  86. package/dist/models/uploaded-document-dto.d.ts +24 -0
  87. package/dist/models/uploaded-document-dto.js +15 -0
  88. package/git_push.sh +57 -0
  89. package/index.ts +19 -0
  90. package/models/account-class.ts +185 -0
  91. package/models/account-policy-class.ts +153 -0
  92. package/models/create-payment-method-request-dto.ts +37 -0
  93. package/models/create-policy-request-dto.ts +61 -0
  94. package/models/index.ts +32 -0
  95. package/models/insured-object-type-class.ts +66 -0
  96. package/models/invoice-class.ts +162 -0
  97. package/models/invoice-item-class.ts +126 -0
  98. package/models/invoice-status-class.ts +58 -0
  99. package/models/lead-bank-account-class.ts +36 -0
  100. package/models/lead-class.ts +163 -0
  101. package/models/list-accounts-response-class.ts +37 -0
  102. package/models/list-leads-response-class.ts +49 -0
  103. package/models/list-partners-response-class.ts +37 -0
  104. package/models/list-policies-response-class.ts +49 -0
  105. package/models/omit-type-class.ts +90 -0
  106. package/models/partner-class.ts +109 -0
  107. package/models/partner-link-class.ts +104 -0
  108. package/models/partner-role-class.ts +78 -0
  109. package/models/policy-class.ts +153 -0
  110. package/models/policy-object-class.ts +90 -0
  111. package/models/policy-premium-class.ts +67 -0
  112. package/models/policy-premium-item-class.ts +73 -0
  113. package/models/policy-version-class.ts +85 -0
  114. package/models/premium-formula-class.ts +114 -0
  115. package/models/premium-override-dto.ts +65 -0
  116. package/models/premium-override-request-dto.ts +31 -0
  117. package/models/product-class.ts +98 -0
  118. package/models/product-version-class.ts +82 -0
  119. package/models/sepa-dto.ts +36 -0
  120. package/models/tag-class.ts +60 -0
  121. package/models/timeslice-class.ts +80 -0
  122. package/models/uploaded-document-dto.ts +30 -0
  123. package/package.json +22 -8
  124. package/tsconfig.json +23 -0
  125. package/index.js +0 -99
  126. package/scripts/deploy.js +0 -225
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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.ProductVersionClassStatusEnum = void 0;
17
+ exports.ProductVersionClassStatusEnum = {
18
+ Draft: 'draft',
19
+ Active: 'active',
20
+ Passive: 'passive',
21
+ Archived: 'archived'
22
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL PartnerPortal
3
+ * The EMIL PartnerPortal 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 SepaDto
16
+ */
17
+ export interface SepaDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SepaDto
22
+ */
23
+ 'iban': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SepaDto
28
+ */
29
+ 'holderName'?: string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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,54 @@
1
+ /**
2
+ * EMIL PartnerPortal
3
+ * The EMIL PartnerPortal 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 TagClass
16
+ */
17
+ export interface TagClass {
18
+ /**
19
+ * Unique identifier for the object.
20
+ * @type {string}
21
+ * @memberof TagClass
22
+ */
23
+ 'code': 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 TagClass
28
+ */
29
+ 'slug': string;
30
+ /**
31
+ * The label of the tag
32
+ * @type {string}
33
+ * @memberof TagClass
34
+ */
35
+ 'label': string;
36
+ /**
37
+ * A short description for the tag
38
+ * @type {string}
39
+ * @memberof TagClass
40
+ */
41
+ 'description': string;
42
+ /**
43
+ * Time at which the object was created.
44
+ * @type {string}
45
+ * @memberof TagClass
46
+ */
47
+ 'createdAt': string;
48
+ /**
49
+ * Time at which the object was updated.
50
+ * @type {string}
51
+ * @memberof TagClass
52
+ */
53
+ 'updatedAt': string;
54
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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,74 @@
1
+ /**
2
+ * EMIL PartnerPortal
3
+ * The EMIL PartnerPortal 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 { PolicyObjectClass } from './policy-object-class';
13
+ import { PolicyPremiumClass } from './policy-premium-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TimesliceClass
18
+ */
19
+ export interface TimesliceClass {
20
+ /**
21
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
22
+ * @type {number}
23
+ * @memberof TimesliceClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * Timeslice policy data.
28
+ * @type {Array<PolicyObjectClass>}
29
+ * @memberof TimesliceClass
30
+ */
31
+ 'policyObjects': Array<PolicyObjectClass>;
32
+ /**
33
+ * Timeslice validity start.
34
+ * @type {string}
35
+ * @memberof TimesliceClass
36
+ */
37
+ 'from': string;
38
+ /**
39
+ * Timeslice validity end.
40
+ * @type {string}
41
+ * @memberof TimesliceClass
42
+ */
43
+ 'to'?: string | null;
44
+ /**
45
+ * Timeslice premium.
46
+ * @type {PolicyPremiumClass}
47
+ * @memberof TimesliceClass
48
+ */
49
+ 'premium': PolicyPremiumClass;
50
+ /**
51
+ * Time at which the object was created.
52
+ * @type {string}
53
+ * @memberof TimesliceClass
54
+ */
55
+ 'createdAt': string;
56
+ /**
57
+ * Time at which the object was updated.
58
+ * @type {string}
59
+ * @memberof TimesliceClass
60
+ */
61
+ 'updatedAt': string;
62
+ /**
63
+ * Identifier of the user who created the record.
64
+ * @type {string}
65
+ * @memberof TimesliceClass
66
+ */
67
+ 'createdBy': string;
68
+ /**
69
+ * Identifier of the user who last updated the record.
70
+ * @type {string}
71
+ * @memberof TimesliceClass
72
+ */
73
+ 'updatedBy': string;
74
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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 PartnerPortal
3
+ * The EMIL PartnerPortal 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 UploadedDocumentDto
16
+ */
17
+ export interface UploadedDocumentDto {
18
+ /**
19
+ * Uploaded document codes.
20
+ * @type {Array<string>}
21
+ * @memberof UploadedDocumentDto
22
+ */
23
+ 'codes': Array<string>;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerPortal
6
+ * The EMIL PartnerPortal 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 });
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="Emil"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="partner-portal-sdk"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerPortal
5
+ * The EMIL PartnerPortal 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
+ export { Environment, BaseAPI } from "./base";
17
+ export * from "./api";
18
+ export * from "./configuration";
19
+ export * from "./models";
@@ -0,0 +1,185 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerPortal
5
+ * The EMIL PartnerPortal API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountPolicyClass } from './account-policy-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface AccountClass
22
+ */
23
+ export interface AccountClass {
24
+ /**
25
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
26
+ * @type {number}
27
+ * @memberof AccountClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Unique identifier for the object.
32
+ * @type {string}
33
+ * @memberof AccountClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * Optional field in order to use a specific account number.
38
+ * @type {string}
39
+ * @memberof AccountClass
40
+ */
41
+ 'accountNumber': string;
42
+ /**
43
+ * The account\'s title.
44
+ * @type {string}
45
+ * @memberof AccountClass
46
+ */
47
+ 'title'?: AccountClassTitleEnum;
48
+ /**
49
+ * The account\'s first name.
50
+ * @type {string}
51
+ * @memberof AccountClass
52
+ */
53
+ 'firstName': string;
54
+ /**
55
+ * The account\'s last name.
56
+ * @type {string}
57
+ * @memberof AccountClass
58
+ */
59
+ 'lastName': string;
60
+ /**
61
+ * The account\'s email address, It is displayed alongside the account in your dashboard and can be useful for searching and tracking.
62
+ * @type {string}
63
+ * @memberof AccountClass
64
+ */
65
+ 'email': string;
66
+ /**
67
+ * The account\'s gender.
68
+ * @type {string}
69
+ * @memberof AccountClass
70
+ */
71
+ 'gender': string;
72
+ /**
73
+ * The account\'s street name.
74
+ * @type {string}
75
+ * @memberof AccountClass
76
+ */
77
+ 'street': string;
78
+ /**
79
+ * The account\'s house number.
80
+ * @type {string}
81
+ * @memberof AccountClass
82
+ */
83
+ 'houseNumber': string;
84
+ /**
85
+ * The account\'s ZIP or postal code
86
+ * @type {string}
87
+ * @memberof AccountClass
88
+ */
89
+ 'zipCode': string;
90
+ /**
91
+ * The account\'s city, district, suburb, town, or village.
92
+ * @type {string}
93
+ * @memberof AccountClass
94
+ */
95
+ 'city': string;
96
+ /**
97
+ * The account\'s date of birth. required for account type person
98
+ * @type {string}
99
+ * @memberof AccountClass
100
+ */
101
+ 'birthDate'?: string;
102
+ /**
103
+ * The account\'s phone number.
104
+ * @type {string}
105
+ * @memberof AccountClass
106
+ */
107
+ 'phone'?: string;
108
+ /**
109
+ * The type of account, default to person
110
+ * @type {string}
111
+ * @memberof AccountClass
112
+ */
113
+ 'type': string;
114
+ /**
115
+ * The company name of account, required for account type org
116
+ * @type {string}
117
+ * @memberof AccountClass
118
+ */
119
+ 'companyName'?: string;
120
+ /**
121
+ * The account\'s version.
122
+ * @type {number}
123
+ * @memberof AccountClass
124
+ */
125
+ 'version': number;
126
+ /**
127
+ * Time at which the object was created.
128
+ * @type {string}
129
+ * @memberof AccountClass
130
+ */
131
+ 'createdAt': string;
132
+ /**
133
+ * Time at which the object was updated.
134
+ * @type {string}
135
+ * @memberof AccountClass
136
+ */
137
+ 'updatedAt': string;
138
+ /**
139
+ * Policies linked to the account.
140
+ * @type {Array<AccountPolicyClass>}
141
+ * @memberof AccountClass
142
+ */
143
+ 'policies': Array<AccountPolicyClass>;
144
+ /**
145
+ * Optional field contain extra information.
146
+ * @type {object}
147
+ * @memberof AccountClass
148
+ */
149
+ 'metadata'?: object;
150
+ /**
151
+ * Optional field contain custom fields.
152
+ * @type {object}
153
+ * @memberof AccountClass
154
+ */
155
+ 'customFields'?: object;
156
+ /**
157
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
158
+ * @type {string}
159
+ * @memberof AccountClass
160
+ */
161
+ 'ern': string;
162
+ /**
163
+ * Identifier of the user who created the record.
164
+ * @type {string}
165
+ * @memberof AccountClass
166
+ */
167
+ 'createdBy': string;
168
+ /**
169
+ * Identifier of the user who last updated the record.
170
+ * @type {string}
171
+ * @memberof AccountClass
172
+ */
173
+ 'updatedBy': string;
174
+ }
175
+
176
+ export const AccountClassTitleEnum = {
177
+ Empty: '',
178
+ Dr: 'Dr.',
179
+ DrMed: 'Dr. med.',
180
+ Prof: 'Prof.'
181
+ } as const;
182
+
183
+ export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
184
+
185
+
@@ -0,0 +1,153 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerPortal
5
+ * The EMIL PartnerPortal API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PartnerLinkClass } from './partner-link-class';
17
+ import { PolicyVersionClass } from './policy-version-class';
18
+ import { ProductClass } from './product-class';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface AccountPolicyClass
24
+ */
25
+ export interface AccountPolicyClass {
26
+ /**
27
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
28
+ * @type {number}
29
+ * @memberof AccountPolicyClass
30
+ */
31
+ 'id': number;
32
+ /**
33
+ * Policy number.
34
+ * @type {string}
35
+ * @memberof AccountPolicyClass
36
+ */
37
+ 'policyNumber': string;
38
+ /**
39
+ * Internal policy number.
40
+ * @type {string}
41
+ * @memberof AccountPolicyClass
42
+ */
43
+ 'internalPolicyNumber'?: string | null;
44
+ /**
45
+ * Unique identifier referencing the policy product version.
46
+ * @type {number}
47
+ * @memberof AccountPolicyClass
48
+ */
49
+ 'productVersionId': number;
50
+ /**
51
+ * Unique identifier referencing the policy product.
52
+ * @type {number}
53
+ * @memberof AccountPolicyClass
54
+ */
55
+ 'productId': number;
56
+ /**
57
+ * Unique identifier of the account that this object belongs to.
58
+ * @type {string}
59
+ * @memberof AccountPolicyClass
60
+ */
61
+ 'accountCode': string;
62
+ /**
63
+ * Policy status. This property shows different statuses depending on the status of a policy: ACTIVE, WITHDRAWN, TERMINATED, SUSPENDED.
64
+ * @type {string}
65
+ * @memberof AccountPolicyClass
66
+ */
67
+ 'status': string;
68
+ /**
69
+ * Policy holder name.
70
+ * @type {string}
71
+ * @memberof AccountPolicyClass
72
+ */
73
+ 'holder'?: string | null;
74
+ /**
75
+ * Policy product name.
76
+ * @type {string}
77
+ * @memberof AccountPolicyClass
78
+ */
79
+ 'productName'?: string | null;
80
+ /**
81
+ * Policy product slug.
82
+ * @type {string}
83
+ * @memberof AccountPolicyClass
84
+ */
85
+ 'productSlug'?: string | null;
86
+ /**
87
+ * Policy versions.
88
+ * @type {Array<PolicyVersionClass>}
89
+ * @memberof AccountPolicyClass
90
+ */
91
+ 'versions': Array<PolicyVersionClass>;
92
+ /**
93
+ * Product.
94
+ * @type {ProductClass}
95
+ * @memberof AccountPolicyClass
96
+ */
97
+ 'product'?: ProductClass;
98
+ /**
99
+ * The date the policy will get started.
100
+ * @type {string}
101
+ * @memberof AccountPolicyClass
102
+ */
103
+ 'policyStartDate': string | null;
104
+ /**
105
+ * Time at which the object was created.
106
+ * @type {string}
107
+ * @memberof AccountPolicyClass
108
+ */
109
+ 'createdAt': string;
110
+ /**
111
+ * Time at which the object was updated.
112
+ * @type {string}
113
+ * @memberof AccountPolicyClass
114
+ */
115
+ 'updatedAt': string;
116
+ /**
117
+ * Unique identifier of the lead that this object belongs to.
118
+ * @type {string}
119
+ * @memberof AccountPolicyClass
120
+ */
121
+ 'leadCode'?: string;
122
+ /**
123
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
124
+ * @type {string}
125
+ * @memberof AccountPolicyClass
126
+ */
127
+ 'ern': string;
128
+ /**
129
+ * Partner links.
130
+ * @type {Array<PartnerLinkClass>}
131
+ * @memberof AccountPolicyClass
132
+ */
133
+ 'partnerLinks': Array<PartnerLinkClass>;
134
+ /**
135
+ * Identifier of the user who created the record.
136
+ * @type {string}
137
+ * @memberof AccountPolicyClass
138
+ */
139
+ 'createdBy': string;
140
+ /**
141
+ * Identifier of the user who last updated the record.
142
+ * @type {string}
143
+ * @memberof AccountPolicyClass
144
+ */
145
+ 'updatedBy': string;
146
+ /**
147
+ * Unique identifier for the object.
148
+ * @type {string}
149
+ * @memberof AccountPolicyClass
150
+ */
151
+ 'policyCode': string;
152
+ }
153
+