Skip to main content

household_biz.get_order_tickets

Overview

  • Returns all restaurant order tickets (pending and recently closed) for a household business (BL-58465).

Metadata

FieldValue
DisplayGet Restaurant Order Tickets
Categoryhousehold_biz
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
household_biz_identityIdno—Target HouseholdBiz entity id (default: possessed)

Returns

Returns a JSON array; each element is an object with the following fields:

FieldTypeRequiredDescription
eater_identityIdyesEater entity id
eater_household_entity_identityIdyesHousehold entity id snapshotted when ordered
payer_identityIdyesCanonical party representative entity id
settlement_group_idintyesExact restaurant settlement group id
original_price_snapshotintyesOriginal menu price snapshotted when ordered
payment_price_snapshotintyesFinal customer payment price snapshotted when ordered
settlement_statestringyesCurrent settlement state
seat_entity_identityIdyesSeat entity id
table_entity_identityIdyesTable entity id
served_food_entity_identityIdyesExact ServedFood entity bound at the Ready-to-Served commit
can_start_restaurant_eatboolyesWhether the eater currently passes the RestaurantEat start validation
restaurant_meal_target_entity_identityIdyesExact target selected by HouseholdBizRestaurantMealFood, or invalid
recipe_idstringyesOrdered recipe id
quality_gradestringyesQuality rolled when the Cooking batch is claimed (None while Ordered)
statestringyesCurrent order state
state_enter_ticksintyesGame tick when the ticket entered its current state

Usage

await inzoi.cli.execute('household_biz.get_order_tickets', {
household_biz_id: 0, // optional
});