Bookings Use Case: Boat Cruise with Cabin Types and Occupancy Rates

Scenario

You’re selling tickets for a cruise and want to allow passengers to book their cabins. It can get quite complicated if the prices need to be taken into account:

  • different cabin types (e.g. rooms with a window cost more)
  • the number of passengers in each cabin (e.g. per person rates are different based on single occupancy vs. double occupancy)
  • different departure dates (e.g. the same cruise may cost more in the summer)

Here is an example fee table:

DATE CABIN OCCUPANCY PRICE
May 7 A Single $525/person
May 7 A Double $345/person
May 7 B Single $465/person
May 7 B Double $315/person
May 9 A Single $550/person
May 9 A Double $370/person
May 9 B Single $490/person
May 9 B Double $340/person

Configuration

Here’s how you can configure the bookable product:

Resources

boat-cruise-resources

Notice that Cabin A (with window) has a base cost, and the windowless Cabin B does not.

Costs

boatcruise-costs

Notice how the prices are different for May 7 and May 9. Also, the single occupancy rate is multiplied by a factor to calculate the single occupancy supplement. In this case, if there are 3 passengers in a cabin (triple occupancy), the rate for the selected departure date is multiplied by a factor less than 0 (reducing the per person amount of double occupancy).

Person

boatcruise-persons

Leave a Reply

Your email address will not be published. Required fields are marked *