channainfo / commissioner

A Ruby gem to enhance Spree Commerce into a multi-service platform, enabling it to model any business applications. #powerup #spree #spree-commerce
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Pricing Rate & Model #1151

Open theachoem opened 4 months ago

theachoem commented 4 months ago

Task Breakdown

Reference

theachoem commented 4 months ago

AirBNB

image

theachoem commented 4 months ago

Agoda

image

theachoem commented 4 months ago

Booking.com

How they store availability, do they create those inventory & price individually 16 months before? Base on this docs, user can book 16 month ahead. (docs)?

image

theachoem commented 4 months ago

Channel Manager 1 : Siteminder

https://help.siteminder.com/s/article/Set-up-and-manage-availability?language=en_US https://www.siteminder.com/r/hotel-pricing/#how-does-hotel-pricing-work-

image

theachoem commented 4 months ago
  1. Should price have rates? Yes, price should have rates. Anyways, a variant can have many prices base on currency, so it is better to move rates to variant instead.

  2. Should variants have rates? The rate in variants is good as it can be reused for all currencies.

  3. Should vendors have rates? The rate in products can be used across all variants. This might be useful as free-cancellation

  4. Should product have rates?

theachoem commented 4 months ago

Concept

Rate

Pricing Model

What's the difference?

Price base on occupacy

image

Price by season

image


These is considered pricing model

Rate apply on top of other rate

theachoem commented 4 months ago

✔️Bungalow

✔️Private House

Weekend: Friday, Saturday

theachoem commented 4 months ago
image image
theachoem commented 4 months ago

Rate Structure

theachoem commented 4 months ago
  1. Rate
    • Name: Weekend Rate
    • Base Price: 380$
  2. Occupant Rate (on top of rate)
    • Name: 1 adult
    • Adults: 1
    • Children: 0
    • Calculator
    • OverrideBasePriceCaculator
    • BasePriceAdjustmentCaculator
theachoem commented 4 months ago

Why not extend Pricing Model from Promotion?

At first, I thought extending from promotion will be quicker and more scale, but as code brainstorming, it have some limitations and is not worth it following:

theachoem commented 4 months ago

Rate

Pricing Model

theachoem commented 4 months ago

For bus, Price is base on Time, Day, Car Type, Duration, Seat Type, Nationality

theachoem commented 4 months ago

Handling a combination of a variety of rates + models based on use cases to trace a patterns so we can implement them into code:

image

theachoem commented 4 months ago
Quantity
Group Booking 10 100$
Group Booking 5 60$