Enums & Constants Reference
SDUI
Platform
Target device platform for templates and definitions.
ALL | WEB | MOBILE | TABLET
TemplateStatus
Lifecycle status of an SDUI template.
DRAFT | SCHEDULED | PUBLISHED | ARCHIVED
DefinitionStatus
Status of a section definition.
DRAFT | ACTIVE | DEPRECATED
SettingType
Input type for configurable settings.
TEXT | TEXTAREA | RICHTEXT | NUMBER | RANGE | CHECKBOX | SELECT | COLOR | IMAGE | VIDEO | URL | HTML
Traffic
TrafficSource
Classified visitor traffic source.
ORGANIC | PAID | SOCIAL | EMAIL | REFERRAL | DIRECT | PARTNER
Classification logic (in order):
partner_idpresent →PARTNERutm_medium= cpc/ppc/paid →PAIDutm_medium= email →EMAILutm_medium= social →SOCIAL- Referrer matches social domain (facebook, instagram, twitter, linkedin, youtube) →
SOCIAL - Referrer matches search engine (google, bing, yahoo) →
ORGANIC - Referrer present but not matched →
REFERRAL utm_sourcepresent →REFERRAL- Nothing →
DIRECT
Pricing
Discount Method
How a discount is calculated.
PERCENTAGE | FLAT | FREE_NIGHTS
Discount Type
When a promotion applies.
STANDARD | EARLY_BOOKER | LAST_MINUTE | WEEKEND | WEEKDAY | BUY_X_GET_Y
Cancellation Plan Type
FLEXIBLE | MODERATE | STRICT | NON_REFUNDABLE
Search
Picking Strategy
Property selection algorithm.
GREEDY | OPTIMAL | CHEAPEST_FIRST | HIGHEST_RATED | MIN_WASTE
Visibility Rule Operators
EQUALS | NOT_EQUALS | IN | NOT_IN | GREATER_THAN | LESS_THAN | CONTAINS | STARTS_WITH
Visibility Rule Fields
utm_source | utm_medium | utm_campaign | traffic_source | partner_id | loyalty_tier | device_type | geo_country
Sales Intelligence
Conversion Signal Type
POSITIVE | NEGATIVE | NEUTRAL
Signal Icons
trend_up | price_tag | warning | star | location
Wallet & Loyalty
WalletStatus
ACTIVE | DEACTIVATE | BLOCKED
WalletTransactionType
REWARD | PROMOTION | REFER_AND_EARN | BOOKING | LOAD | DEDUCTION | REFUND
WalletTransactionStatus
EARNED | UPCOMING | EXPIRED | USED | MOVE_TO_EXPIRED | ON_HOLD | REFUNDED | FAILED | RELEASED | CANCELLED
WalletTransactionMode
CREDIT | DEBIT
WalletConsumedStatus
NOT_CONSUMED | FULLY_CONSUMED | PARTIALLY_CONSUMED
Tax
India GST Slabs
| Nightly Rate | GST Rate |
|---|---|
| > ₹7,999 | 18% |
| ≤ ₹7,999 | 5% |
Scoring Constants
| Constant | Value | Description |
|---|---|---|
UNMET_PENALTY | 1,000 | Penalty per unmet guest slot |
WASTE_WEIGHT | 1.0 | Penalty per wasted slot |
PRICE_DIVISOR | 100.0 | Normalizes price (₹10,000 → 100 score) |
RATING_WEIGHT | 20.0 | Rating impact (4.5 → 110 penalty) |