You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Idle-time and disabled-time limitations (e.g. "5 days idle while rentable, 12 hours idle while unrentable, per device")
33
+
- Trip surcharges and subsidies (e.g. "A $.25 cents applied when a trip ends downtown")
33
34
34
35
The machine-readable format allows Providers to obtain policies and compute compliance where it can be determined entirely by data obtained internally.
35
36
@@ -203,6 +204,7 @@ An individual `Policy` object is defined by the following fields:
203
204
|`policy_id`| UUID | Required | Unique ID of policy |
204
205
|`provider_ids`| UUID[]| Optional | Providers for whom this policy is applicable; empty arrays and `null`/absent implies all Providers |
205
206
|`description`| String | Required | Description of policy |
207
+
|`currency`| String | Optional | An ISO 4217 Alphabetic Currency Code representing the [currency](../provider#costs--currencies) of all Rules of [type](#rule-types)`rate`.|
|`maximum`| integer | Optional | Maximum value, if applicable (default unlimited) |
230
+
|`rate_amount`| integer | Optional | The amount of a rate applied when this rule applies, if applicable (default zero). A positive integer rate amount represents a fee, while a negative integer represents a subsidy. Rate amounts are given in the `currency` defined in the [Policy](#policy). |
228
231
|`start_time`| ISO 8601 time `hh:mm:ss`| Optional | Beginning time-of-day when the rule is in effect (default 00:00:00). |
229
232
|`end_time`| ISO 8601 time `hh:mm:ss`| Optional | Ending time-of-day when the rule is in effect (default 23:59:59). |
230
233
|`days`| day[]| Optional | Days `["sun", "mon", "tue", "wed", "thu", "fri", "sat"]` when the rule is in effect (default all) |
@@ -238,17 +241,22 @@ An individual `Rule` object is defined by the following fields:
238
241
|`count`| Fleet counts based on regions. Rule `max`/`min` refers to number of devices. |
239
242
|`time`| Individual limitations on time spent in one or more vehicle-states. Rule `max`/`min` refers to increments of time in [Rule Units](#rule-units). |
240
243
|`speed`| Global or local speed limits. Rule `max`/`min` refers to speed in [Rule Units](#rule-units). |
244
+
|`rate`| Fees or subsidies based on regions and time spent in one or more vehicle-states. Rule `rate_amount` refers to the rate in [Rule Units](#rule-units). |
241
245
|`user`| Information for users, e.g. about helmet laws. Generally can't be enforced via events and telemetry. |
242
246
243
247
### Rule Units
248
+
Note that all rate in the `currency` defined in the [Policy](#policy)
244
249
245
250
| Name | Description |
246
251
| --------- | ------------------- |
247
-
|`seconds`| Seconds |
248
-
|`minutes`| Minutes |
249
-
|`hours`| Hours |
250
-
|`mph`| Miles per hour |
251
-
|`kph`| Kilometers per hour |
252
+
|`seconds`| Seconds |
253
+
|`minutes`| Minutes |
254
+
|`hours`| Hours |
255
+
|`mph`| Miles per hour |
256
+
|`kph`| Kilometers per hour |
257
+
|`rate per event`| Rate applied once when the vehicle enters a matching status. |
258
+
|`rate per minute`| Rate applied for each minute while the vehicle is in the matching status. |
259
+
|`rate per day`| Rate applied once per day if the vehicle is in the matching status at any point. |
0 commit comments