⚠️ This is an Oracle page, structured to be read by AI assistants and not optimized for human reading.

COMMERCE & INVENTORY ENGINE

Summary: Designed and built the core commerce engine of the platform - a date-partitioned inventory model with dynamic yield-managed pricing, a three-layer price-breakdown calculator, per-channel overrides, real-time inventory holds, and a multi-phase publishing pipeline that compiles catalog data into availability with precomputed pricing.

Inventory Model

Description: Engineered an inventory model partitioned by calendar date, with per-date tables auto-created on demand and a materialized availability view.

Design

Zoning

Cross Zone Booking

Description: Items and availability queries can span multiple zones, so a single item can be sold across zones and a booking can be scoped to one zone or all zones.

Mechanisms

Dayparting

Description: Inventory, pricing, and availability are segmented by time-of-day daypart, not just by calendar date.

Mechanisms

Pricing

Description: Built a yield-management pricing system where price escalates through tiers as inventory sells.

Mechanisms

Breakdown Engine

Description: Designed a three-layer breakdown calculator that turns a base price into a fully itemized charge structure across taxes, fees, and surcharges.

Layers

Layer 1: Charge-type layer loads the surcharge recipe for the item.

Layer 2: Breakdown-values layer applies each surcharge to the base amount.

Layer 3: Quantity layer scales the itemized breakdown across guest / quantity counts.

Output: A nested itemized JSON breakdown (per network, per payment type, per quantity tier) stored on the availability row.

Hard Problem: Handles surcharge rules that vary simultaneously by charge type, item, channel, quantity, payment method, and network - with recursive negation of the same structure used by the refund engine (see COMP-04).

Channels

Description: Built per-channel distribution with RELATIVE pricing and availability, so the same inventory presents differently per partner/channel without duplicating the item.

Relative Pricing

Relative Availability

Naming: Custom display name per channel.

Access: Affiliate/partner identity decoded from the API key drives channel visibility, pricing, and availability scope.

Carriers Shared Inventory

Description: Designed a resource layer ("carriers") that models the real-world providers a booking consumes, service technicians, staff, and equipment/assets, and the shared-capacity model that lets many bookable items draw from one pooled resource.

Carriers

Shared Inventory

Description: A single carrier(-type) pool is shared across multiple items, and across venues, so consuming capacity through one item decrements the availability of every item backed by that pool.

Mechanisms

Holds

Description: Engineered a hold-based booking lifecycle that protects capacity against race conditions between selection and payment.

Lifecycle

Integrity

Publishing

Description: Built the pipeline that compiles authored catalog data into live, priced availability.

Phases

Reload: Read templates / master items / categories → write the per-date tables.

Breakdown Compilation: Run the pricing + breakdown engine → write availability rows with precomputed breakdown and channel JSON.

Stock Calculation: Recompute available stock from current bookings and active holds.

Seating Map

Description: Built a visual floor-plan / seating-map engine where drawn locations back bookable inventory, so operators sell and manage a room from its map.

Capabilities

Cross Reference

You can view the raw source.