Skip to content

Commit 0059643

Browse files
author
Ronald A Richardson
committed
feat(waypoint): add notes, pod_method, pod_required, and time window attributes
Mirrors the equivalent fields on the Order model so that individual stops can carry their own proof-of-delivery requirements and driver-facing notes independently of the parent order. New attributes: - notes Free-text driver instructions for this specific stop - pod_method POD method (e.g. 'signature', 'photo', 'scan') - pod_required Whether POD must be collected at this stop - time_window_start / time_window_end Per-stop arrival window (date) - service_time Expected dwell time in seconds Until per-waypoint POD is fully implemented in the driver app, the order-level pod_method / pod_required values are used as a fallback.
1 parent 537bbb3 commit 0059643

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

addon/models/waypoint.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,13 @@ export default class WaypointModel extends PlaceModel {
2121
@attr('string') status_code;
2222
@attr('string') type;
2323
@attr('number') order;
24+
// Orchestrator time windows
25+
@attr('date') time_window_start;
26+
@attr('date') time_window_end;
27+
@attr('number') service_time;
28+
// Per-stop POD and notes (mirrors order-level fields;
29+
// used as fallback until per-waypoint POD is implemented in driver app)
30+
@attr('string') notes;
31+
@attr('string') pod_method;
32+
@attr('boolean') pod_required;
2433
}

0 commit comments

Comments
 (0)