household_biz.get_order_tickets
Overview
- Returns all restaurant order tickets (pending and recently closed) for a household business (BL-58465).
Metadata
| Field | Value |
|---|---|
| Display | Get Restaurant Order Tickets |
| Category | household_biz |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| household_biz_id | entityId | no | — | Target HouseholdBiz entity id (default: possessed) |
Returns
Returns a JSON array; each element is an object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
eater_id | entityId | yes | Eater entity id |
eater_household_entity_id | entityId | yes | Household entity id snapshotted when ordered |
payer_id | entityId | yes | Canonical party representative entity id |
settlement_group_id | int | yes | Exact restaurant settlement group id |
original_price_snapshot | int | yes | Original menu price snapshotted when ordered |
payment_price_snapshot | int | yes | Final customer payment price snapshotted when ordered |
settlement_state | string | yes | Current settlement state |
seat_entity_id | entityId | yes | Seat entity id |
table_entity_id | entityId | yes | Table entity id |
served_food_entity_id | entityId | yes | Exact ServedFood entity bound at the Ready-to-Served commit |
can_start_restaurant_eat | bool | yes | Whether the eater currently passes the RestaurantEat start validation |
restaurant_meal_target_entity_id | entityId | yes | Exact target selected by HouseholdBizRestaurantMealFood, or invalid |
recipe_id | string | yes | Ordered recipe id |
quality_grade | string | yes | Quality rolled when the Cooking batch is claimed (None while Ordered) |
state | string | yes | Current order state |
state_enter_ticks | int | yes | Game tick when the ticket entered its current state |
Usage
await inzoi.cli.execute('household_biz.get_order_tickets', {
household_biz_id: 0, // optional
});