Rate Plans (Meals & VAS)
The Meals & VAS rate plan catalogue: a plan's content, its Default and custom price periods, a multiplier grid per period (Channel › Agent group category › State › City › Location › Property type › Brand › BHK › Listing, configured in rate_plan_dimension) and a filter-based listing mapping per period. Effective price = period price × the multipliers on the matching grid path, rounded to ₹1. Built alongside the tag-based meal and VAS costs, which carts and the website still sell; nothing here changes those prices.
📄️ List rate plans
Catalogue cards, by module then name.
📄️ Create a rate plan
Saves the plan and all its periods at once. Exactly one DEFAULT period; customisations on the same days with overlapping dates are rejected, and ones sharing only some days are saved with a warning (the higher price applies on those days).
📄️ List the multiplier columns and mapping filters
From rate_plan_dimension, left to right. A row added there appears here without a deploy.
📄️ List listings with their mapped plans
The Mappings tab: each active listing with the plans and periods mapped to it.
📄️ Where meal and VAS prices come from
Per module: LEGACY (tag-based listing_channel_* prices) or RATE_PLAN.
📄️ Get a rate plan
Content, every period with its grid and mapping, and counts.
📄️ Update a rate plan
Replaces the plan and all its periods. `version` must be the one the edit was read at; if the plan was saved since, nothing changes and the response is 409. Confirmed bookings keep the price they were booked at.
📄️ Duplicate a rate plan (draft)
The plan as an unsaved create request named 'Copy of …' with a free code and every period, multiplier and mapping copied. Nothing is saved until it is POSTed.
📄️ Review a saved rate plan
Per period: every active listing's mapped status (YES, EXCLUDED, NO) and, per channel column, the first price component and combined multiplier.
📄️ List one dimension's values
Picker options for a grid column or filter. For AGENT_GROUP_CATEGORY, `channelId` narrows the list to those channels' categories.
📄️ Preview a multiplier grid
Every row of the grid (each leaf, plus Rest rows at 1× where a column is only partly customised) with its combined multiplier and the period's prices after it.
📄️ Preview a mapping
Active listings matching the listing filters (channel and category filters do not narrow listings), with their attributes and whether each is excluded.
📄️ Review an unsaved rate plan
The review step of the create / edit flow, validated exactly as a save would be.
📄️ Set listings' food preference
VEG_ONLY, NON_VEG or VEG_AND_NON_VEG (empty clears it); read by the FOOD_PREFERENCE filter.
📄️ Switch a module between tag-based prices and rate plans
With RATE_PLAN, CRS offers the listing's mapped rate plans through the existing meal / VAS fields (plan code as `mealId` / `vasId`, plan details under `meta.ratePlan`). It affects what is offered from now on: a row already in a cart keeps the system that priced it, so switching either way never reprices an open cart.
📄️ Activate or deactivate a rate plan
A deactivated plan stops selling at once; bookings already made keep their price.