バケーションレンタル向けユニット構成
部屋やベッドの選択肢を視覚的に表示する
バケーションレンタルについては、Content APIは「unit_configurations」という名前のオブジェクトを返します。このオブジェクトには、各 施設 に関する客室およびベッドのオプションに関する情報が含まれています。このオブジェクトを使用すると、部屋やベッドの選択肢を視覚的に表示することができます。

ユニットの構成更新
新しいバージョンのスキーマでは、unit_configurations オブジェクトに、より詳細な説明が追加されました:
multi-unitのシナリオでは、より詳細なユニット情報が表示されます。例えば、現在のオブジェクトキーである「
1」や「Other1」の代わりに、新しいアプローチでは、各ユニットのキーの先頭にルームIDを付加します。具体的には、次のような形になります:231607625123_Bedroom1。ベッドタイプの表記が、すべて大文字から、より簡潔な形式に変更されます。たとえば、
TWIN_SINGLE_BEDはTwinBedとなります。空室状況の表示を簡素化しております。たとえば、
Twin/Single bed(s) -は、これからは単にTwin Bed(s) -と読み取られるようになります。
レガシーなユニット構成のマッピング
legacy_type | legacy_description | new_type | new_description |
|---|---|---|---|
BUNK_BED | Bunk bed(s) - | BunkBed | Bunk Bed(s) - |
CHILD_BED | Child bed(s) - | ChildBed | Child Bed(s) - |
DOUBLE_BED | Double bed(s) - | FullBed | Double Bed(s) - |
KING_BED | King bed(s) - | KingBed | King Bed(s) - |
MURPHY_BED | Murphy bed(s) - | MurphyBed | Murphy Bed(s) - |
| 該当なし | 該当なし | Crib | Crib(s) - |
| 該当なし | 該当なし | CribFixed | Crib(s) - |
| 該当なし | 該当なし | DayBed | Day Bed(s) - |
| 該当なし | 該当なし | Futon | Futon(s) - |
| 該当なし | 該当なし | TwinXLBed | Large Twin Bed(s) - |
| 該当なし | 該当なし | SofaBedExtra | Sofa Bed(s) - |
| 該当なし | 該当なし | TrundleBed | Trundle Bed(s) - |
| 該当なし | 該当なし | WaterBed | Water Bed(s) - |
QUEEN_BED | Queen bed(s) - | QueenBed | Queen Bed(s) - |
SLEEP_SOFA_FUTON | Sleep sofa/futon(s) - | SofaBed | Sofa Bed(s) - |
TWIN_SINGLE_BED | Twin/Single bed(s) - | TwinBed | Twin Bed(s) - |
スキーマ変更の例
Multi-unitバケーションレンタル
この例は、multi-unitのバケーションレンタル物件「施設」を紹介したものです。この物件は、それぞれ1ベッドルームを備えた3つの独立したユニットで構成されています。
旧スキーマ
{
"property_id": "49154578123",
"vacation_rental": {
"unit_configurations": {
"1": [
{
"quantity": 1,
"description": "King bed(s) - ",
"type": "KING_BED"
}
],
"2": [
{
"quantity": 2,
"description": "Queen bed(s) - ",
"type": "QUEEN_BED"
},
{
"quantity": 1,
"description": "Sleep sofa/futon(s) - ",
"type": "SLEEP_SOFA_FUTON"
}
],
"3": [
{
"quantity": 1,
"description": "Sleep sofa/futon(s) - ",
"type": "SLEEP_SOFA_FUTON"
}
]
}
}
}新しいスキーマ
{
"property_id": "491545781237",
"vacation_rental": {
"unit_configurations": {
"831607625124_Bedroom1": [
{
"quantity": 1,
"description": "King Bed(s) - ",
"type": "KingBed"
}
],
"831607648123_Bedroom1": [
{
"quantity": 2,
"description": "Queen Bed(s) - ",
"type": "QueenBed"
},
{
"quantity": 1,
"description": "Futon(s) - ",
"type": "Futon"
}
],
"231607641239123_Bedroom1": [
{
"quantity": 1,
"description": "Futon(s) - ",
"type": "Futon"
}
]
}
}
}2ベッドルームのVrbo施設
この例は、2ベッドルームのVrbo施設をご紹介します。
旧スキーマ
{
"property_id": "721545781234",
"vacation_rental": {
"unit_configurations": {
"1": [
{
"quantity": 1,
"description": "King bed(s) - ",
"type": "KING_BED"
}
],
"2": [
{
"quantity": 2,
"description": "Queen bed(s) - ",
"type": "QUEEN_BED"
},
{
"quantity": 1,
"description": "Sleep sofa/futon(s) - ",
"type": "SLEEP_SOFA_FUTON"
}
]
}
}
}新しいスキーマ
{
"property_id": "721545781234",
"vacation_rental": {
"unit_configurations": {
"6516076251239_Bedroom1": [
{
"quantity": 1,
"description": "King Bed(s) - ",
"type": "KingBed"
}
],
"6516076251239_Bedroom2": [
{
"quantity": 2,
"description": "Queen Bed(s) - ",
"type": "QueenBed"
},
{
"quantity": 1,
"description": "Futon(s) - ",
"type": "Futon"
}
]
}
}
}これらの変更内容や、お客様のRapid導入にどのような影響があるかについてご質問がございましたら、お問い合わせください。