-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #658 from lacuna-tech/feature/neil/tiered-rate-pol…
…icies Tiered Dwell Time with Rates
- Loading branch information
Showing
4 changed files
with
261 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"updated": 0, | ||
"version": "1.2.0", | ||
"data": { | ||
"policy": [ | ||
{ | ||
"name": "Tiered Dwell Time Example", | ||
"description": "First hour $2, second hour $4, every hour onwards $10", | ||
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1", | ||
"start_date": 1558389669540, | ||
"publish_date": 1558389669540, | ||
"end_date": null, | ||
"prev_policies": null, | ||
"provider_ids": [], | ||
"currency": "USD", | ||
"rules": [ | ||
{ | ||
"name": "> 2 hours", | ||
"rule_id": "9cd1768c-ab9e-484c-93f8-72a7078aa7b9", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 2, | ||
"rate_amount": 1000, | ||
"rate_recurrence": "each_time_unit" | ||
}, | ||
{ | ||
"name": "1-2 Hours", | ||
"rule_id": "edd6a195-bb30-4eb5-a2cc-44e5a18798a2", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 1, | ||
"rate_amount": 400, | ||
"rate_recurrence": "each_time_unit" | ||
}, | ||
{ | ||
"name": "0-1 Hour", | ||
"rule_id": "6b6fe61b-dbe5-4367-8e35-84fb14d23c54", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 0, | ||
"rate_amount": 200, | ||
"rate_recurrence": "each_time_unit" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"updated": 0, | ||
"version": "1.2.0", | ||
"data": { | ||
"policy": [ | ||
{ | ||
"name": "Tiered Dwell Time Example", | ||
"description": "If parked for <1hr $2 upon exit, if parked for 1-2 hours $4 upon exit, if parked for longer than 2 hours $10 upon exit", | ||
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1", | ||
"start_date": 1558389669540, | ||
"publish_date": 1558389669540, | ||
"end_date": null, | ||
"prev_policies": null, | ||
"provider_ids": [], | ||
"currency": "USD", | ||
"rules": [ | ||
{ | ||
"name": "> 2 hours", | ||
"rule_id": "9cd1768c-ab9e-484c-93f8-72a7078aa7b9", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 2, | ||
"rate_amount": 1000, | ||
"rate_recurrence": "once_on_unmatch" | ||
}, | ||
{ | ||
"name": "1-2 Hours", | ||
"rule_id": "edd6a195-bb30-4eb5-a2cc-44e5a18798a2", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 1, | ||
"rate_amount": 400, | ||
"rate_recurrence": "once_on_unmatch" | ||
}, | ||
{ | ||
"name": "0-1 Hour", | ||
"rule_id": "6b6fe61b-dbe5-4367-8e35-84fb14d23c54", | ||
"rule_type": "time", | ||
"rule_units": "hours", | ||
"geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"], | ||
"statuses": { "available": [], "non_operational": [] }, | ||
"vehicle_types": ["bicycle", "scooter"], | ||
"maximum": 0, | ||
"rate_amount": 200, | ||
"rate_recurrence": "once_on_unmatch" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |