TABLE OF CONTENTS

Occupancy Rate


基于入住人数的定价,可以理解为OBP(Occupancy based pricing)。酒店可以根据入住人数或者成人数与儿童数组合来设置房价。例如:

"rates": {
    "type": "OccupancyRate",
    "rates": [
      {
        "adultCount": 1,
        "childCount": 0,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 1,
        "childCount": 1,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 1,
        "childCount": 2,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 1,
        "childCount": 3,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 2,
        "childCount": 0,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 2,
        "childCount": 1,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 2,
        "childCount": 2,
        "amountBeforeTax": [
          154.08
        ]
      },
      {
        "adultCount": 3,
        "childCount": 0,
        "amountBeforeTax": [
          166.08
        ]
      },
      {
        "adultCount": 3,
        "childCount": 1,
        "amountBeforeTax": [
          166.08
        ]
      },
      {
        "adultCount": 4,
        "childCount": 0,
        "amountBeforeTax": [
          178.08
        ]
      }
    ]
  },



Common Rate


常规价,房价与入住人数无关。比如某产品最大入住人数限制为3人,那么只要实际入住人数不超出限制,房价一样。例如:


  "rates": {
      "amountAfterTax": [
          120,
          120
      ],
      "type": "CommonRate"
  },



Child Rate


儿童价,根据儿童年龄段来提供儿童价。对于 GO 拉模式(PULL)的渠道,无须考虑儿童价,因为德比会把儿童价计算到房价中。但是对于 GO 推模式(PUSH)的渠道,德比将推送儿童价规则给渠道。举例如下,


"rates": {
  "type": "OccupancyRate",
  "rates": [
    {
      "adultCount": 1,
      "amountBeforeTax": [
        100.00
      ],
      "amountAfterTax": [
        120.00
      ]
    },
    {
      "adultCount": 2,
      "amountBeforeTax": [
        180.00
      ],
      "amountAfterTax": [
        200.00
      ]
    }
  ],
  "extraChildRates": [
    {
      "minAge": 0,
      "maxAge": 2,
      "amountBeforeTax": [
        40.00
      ],
      "amountAfterTax": [
        48.00
      ]
    },
    {
      "minAge": 3,
      "maxAge": 8,
      "amountBeforeTax": [
        50.00
      ],
      "amountAfterTax": [
        60.00
      ]
    },
    {
      "minAge": 9,
      "maxAge": 17,
      "amountBeforeTax": [
        60.00
      ],
      "amountAfterTax": [
        72.00
      ]
    }
  ]
}