1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "type": "array",
4 "items": {
5 "type": "object",
6 "properties": {
7 "id": { "type": "number" },
8 "allow_grace_period": { "type": "boolean" },
9 "allow_overages": { "type": "boolean" },
10 "allow_unlimited_activations": { "type": "boolean" },
11 "borrowed_until": { "type": ["string", "null"] },
12 "can_borrow": { "type": "boolean" },
13 "channel": { "type": "string" },
14 "device_id": { "type": "number" },
15 "enable_maintenance_period": { "type": "boolean" },
16 "environment": { "type": "string" },
17 "eula_link": { "type": "string" },
18 "floating_timeout": { "type": "number" },
19 "grace_period": { "type": "number" },
20 "hash_md5": { "type": "string" },
21 "installation_file": { "type": "string" },
22 "is_air_gapped": { "type": "boolean" },
23 "is_borrowed": { "type": "boolean" },
24 "is_expired": { "type": "boolean" },
25 "is_floating_cloud": { "type": "boolean" },
26 "is_floating": { "type": "boolean" },
27 "is_hardware_key_auth": { "type": "boolean" },
28 "license_active": { "type": "boolean" },
29 "license_enabled": { "type": "boolean" },
30 "license_signature": { "type": "string" },
31 "license_signature_v2": { "type": "string" },
32 "offline_signature": { "type": "string" },
33 "license_type": { "type": "string" },
34 "maintenance_period": { "type": ["string", "null"] },
35 "max_activations": { "type": "number" },
36 "max_borrow_time": { "type": "number" },
37 "max_license_users": { "type": "number" },
38 "max_overages": { "type": "number" },
39 "max_transfers": { "type": "number" },
40 "order_store_id": { "type": "string" },
41 "prevent_vm": { "type": "boolean" },
42 "release_date": { "type": "string" },
43 "release_notes_link": { "type": "string" },
44 "requires_version": { "type": "string" },
45 "size": { "type": "string" },
46 "start_date": { "type": ["string", "null"] },
47 "times_activated": { "type": "number" },
48 "transfer_count": { "type": "number" },
49 "validity_period": { "type": ["string", "null"] },
50 "version": { "type": "string" },
51 "product_features": {
52 "type": "array",
53 "items": {
54 "type": "object",
55 "properties": {
56 "id": { "type": "number" },
57 "code": { "type": "string" },
58 "name": { "type": "string" },
59 "expiry_date": { "type": "string" },
60 "metadata": { "type": "object" },
61 "feature_type": { "type": "string", "enum": ["activation", "consumption"] },
62 "is_floating": { "type": "boolean" },
63 "is_floating_cloud": { "type": "boolean" },
64 "floating_users": { "type": "number" },
65 "floating_timeout": { "type": "number" },
66 "max_consumption": { "type": "number" },
67 "allow_unlimited_consumptions": { "type": "boolean" },
68 "total_consumptions": { "type": "number" },
69 "allow_overages": { "type": "number" },
70 "max_overages": { "type": "number" },
71 "reset_consumption": { "type": "boolean" },
72 "consumption_period": {
73 "type": ["string", "null"],
74 "enum": ["daily", "weekly", "monthly", "annualy", null]
75 }
76 },
77 "required": ["id", "code", "name", "expiry_date", "metadata", "feature_type", "is_floating", "is_floating_cloud"]
78 }
79 },
80 "custom_fields": {
81 "type": "array",
82 "items": {
83 "type": "object",
84 "properties": {
85 "name": { "type": "string" },
86 "data_type": { "type": "string", "enum": ["numer", "text", "date/time"] },
87 "value": { "type": "string" }
88 },
89 "required": ["name", "data_type", "value"]
90 }
91 },
92 "customer": {
93 "type": "object",
94 "properties": {
95 "email": { "type": "string" },
96 "company_name": { "type": "string" },
97 "reference": { "type": "string" },
98 "phone": { "type": "string" },
99 "first_name": { "type": "string" },
100 "last_name": { "type": "string" },
101 "city": { "type": "string" },
102 "postcode": { "type": "string" },
103 "state": { "type": "string" },
104 "country": { "type": "string" },
105 "address": { "type": "string" },
106 "customer_account": { "type": ["string", "null"] },
107 "metadata": { "type": "object" }
108 },
109 "required": ["email", "company_name", "reference", "phone", "first_name", "last_name", "city", "postcode", "state", "country", "address", "metadata"]
110 },
111 "product_details": {
112 "type": "object",
113 "properties": {
114 "product_id": { "type": "number" },
115 "product_name": { "type": "string" },
116 "short_code": { "type": "string" },
117 "authorization_method": { "type": "string", "enum": ["license-key", "user"] },
118 "metadata": { "type": "object" }
119 },
120 "required": ["product_id", "product_name", "short_code", "authorization_method", "metadata"]
121 },
122 "user": {
123 "type": "object",
124 "properties": {
125 "id": { "type": "number" },
126 "email": { "type": "string" },
127 "first_name": { "type": "string" },
128 "last_name": { "type": "string" },
129 "phone_number": { "type": "string" },
130 "is_initial_password": { "type": "boolean" },
131 "max_activations": { "type": "number" },
132 "allow_unlimited_activations": { "type": "boolean" },
133 "total_activations": { "type": "number" }
134 },
135 "required": ["id", "email", "first_name", "last_name", "phone_number", "is_initial_password", "max_activations", "allow_unlimited_activations", "total_activations"]
136 },
137 "metadata": { "type": "object" },
138 "trial_days": { "type": "number" },
139 "floating_in_use_devices": { "type": "number" },
140 "floating_users": { "type": "number" },
141 "max_consumptions": { "type": "number" },
142 "total_consumptions": { "type": "number" },
143 "allow_unlimited_consumptions": { "type": "boolean" },
144 "reset_consumption": { "type": "boolean" },
145 "consumption_period": { "type": ["string", "null"] }
146 },
147 "required": [
148 "id",
149 "allow_grace_period",
150 "allow_overages",
151 "allow_unlimited_activations",
152 "can_borrow",
153 "channel",
154 "device_id",
155 "enable_maintenance_period",
156 "environment",
157 "eula_link",
158 "floating_timeout",
159 "grace_period",
160 "hash_md5",
161 "installation_file",
162 "is_air_gapped",
163 "is_borrowed",
164 "is_expired",
165 "is_floating_cloud",
166 "is_floating",
167 "is_hardware_key_auth",
168 "license_active",
169 "license_enabled",
170 "license_signature",
171 "license_signature_v2",
172 "offline_signature",
173 "license_type",
174 "max_activations",
175 "max_borrow_time",
176 "max_license_users",
177 "max_overages",
178 "max_transfers",
179 "order_store_id",
180 "prevent_vm",
181 "release_date",
182 "release_notes_link",
183 "requires_version",
184 "size",
185 "times_activated",
186 "transfer_count",
187 "user",
188 "version",
189 "product_features",
190 "custom_fields",
191 "product_details",
192 "metadata"
193 ],
194 "additionalProperties": false
195 }
196}
197