Plan stay blocks
plan_stay_blocksGroups consecutive nights with the same guests into stay blocks, returning check-in, check-out, headcount, and people so you can search one hotel stay per block.
Instructions
Local: group consecutive nights with the same people into blocks.
roster maps each night (YYYY-MM-DD, the night that starts that day) to the names sleeping. Nights must be consecutive. Each block gives check_in, check_out, nights, headcount and people, so one search_hotels stay per block can use headcount as adults. Never decides where anyone sleeps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roster | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| empty_note | Yes | ||
| error_code | Yes | ||
| observed_at | Yes | ||
| retry_after | Yes | ||
| completeness | Yes | ||
| empty_reason | Yes | ||
| observed_at_basis | Yes | ||
| retry_after_seconds | Yes |