ร้านอาหารมักจะมีพื้นที่นั่งแยกต่างหาก เช่น บาร์หรือลานกลางแจ้ง และประสบการณ์ที่แตกต่างกัน เช่น เมนูชิม 5 คอร์สหรือการชิมไวน์ Actions Center รองรับความแตกต่างนี้และอนุญาตให้ผู้ใช้ ระบุพื้นที่เพื่อจองโต๊ะ
ช่วงเวลาที่พร้อมให้บริการพร้อมชื่อห้อง
คุณใช้การแยกพื้นที่โฆษณานี้ได้โดยการตั้งค่าฟิลด์ room_id,
room_name และในข้อความ resources ของ
ความพร้อมให้บริการ
สล็อต หากต้องการรวมคำอธิบายห้องพัก ให้ใช้ฟิลด์ room_description ภายในข้อความทรัพยากร
// A resource is used to disambiguate availability slots from one another when
// different staff, room or party_size values are part of the service.
// Multiple slots for the same service and time interval can co-exist when they
// have different resources.
message Resources {
// One of staff_id, room_id, or party_size must be set.
// Optional ID for a staff member providing the service. This field identifies
// the staff member across all merchants, services, and availability records.
// It also needs to be stable over time to allow correlation with past
// bookings. (optional but required if staff_name is present)
string staff_id = 1;
// Optional name of a staff member providing the service. This field will be
// displayed to users making a booking, and should be human-readable, as
// opposed to an opaque identifier. (optional but required if staff_id is
// present)
string staff_name = 2;
// An optional ID for the room the service is located in. This field
// identifies the room across all merchants, services, and availability
// records. It also needs to be stable over time to allow correlation with
// past bookings. (optional but required if room_name is present)
string room_id = 3;
// An optional name for the room the service is located in or experience of
// of the service. This field will be displayed to users making a booking,
// and should be human readable, as opposed to an opaque identifier.
// A room name should only be used for seating areas or prepaid experiences.
// Examples of room names include "Bar", "Patio", "Dining Room". Examples of
// dining experiences using room names include "Five-Course Tasting Menu",
// "Chef Omakase". It is strongly recommended that the default seating area
// does not have a room associated with it.
string room_name = 4;
// Applicable only for Dining: The party size that can be accommodated
// during this time slot. A restaurant can be associated with multiple Slots
// for the same time, each specifying a different party_size, if for instance
// 2, 3, or 4 people can be seated with a reservation. (optional)
int32 party_size = 5;
// Localized room description with a limit of 500 characters. If set,
// a default value must be provided, it is preferred to use the common
// languages for the merchant's locale.
Text room_description = 7;
}
ข้อมูลนี้เป็นส่วนสำคัญของคำจำกัดความของช่องและจะต้องรวมไว้ในฟีด รวมถึงการดำเนินการจองและการอัปเดตแบบเรียลไทม์ทั้งหมด
คุณดูตัวอย่างการระบุ room_id และ room_name ได้ในตัวอย่างฟีดเฉพาะแนวตั้งสำหรับร้านอาหาร
ช่วงเวลาที่พร้อมให้บริการโดยใช้ชื่อห้องสำหรับประสบการณ์
หากคุณได้ติดตั้งใช้งานหรือกำลังอยู่ในขั้นตอนการติดตั้งใช้งานการเปลี่ยนเส้นทางการชำระเงินสำหรับการจอง
คุณสามารถใช้ room_name และ room_descriptions เพื่อมอบประสบการณ์การรับประทานอาหารแบบชำระเงินล่วงหน้า
ภาพหน้าจอด้านล่างแสดงรายละเอียดเกี่ยวกับวิธีแสดงประสบการณ์การใช้งานบนเว็บ
ตัวอย่างห้อง
{
"availability": [{
"merchant_id": "dining-A",
"service_id": "reservation",
"start_sec": 1535853600,
"duration_sec": 2700,
"spots_total": 2,
"spots_open": 2,
"resources": {
"room_id": "A-dining-room",
"room_name": "Bar",
"party_size": 2,
}
}]
}ตัวอย่างประสบการณ์
{
"availability": [{
"merchant_id": "dining-A",
"service_id": "reservation",
"start_sec": 1535853600,
"duration_sec": 2700,
"spots_total": 2,
"spots_open": 2,
"resources": {
"room_id": "experience-1",
"room_name": "Wine Tasting Menu Pair",
"description": "This Wine Tasting Menu Pair showcases American cuisine rooted in the nostalgic flavors of the 20th century American experience. Each experience is hand-crafted, with a progression from small bites to more substantial plates.",
"party_size": 2,
}
}]
}ตรวจสอบว่าฟีดมีขนาดเล็กอยู่เสมอ
หากมีส่วนที่นั่งจำนวนมากซึ่งแต่ละส่วนมีคำอธิบายห้องพัก คุณจะลดขนาดฟีดได้โดยรวมเฉพาะคำอธิบายห้องพักในช่องใดช่องหนึ่ง เราใช้ room_name และ room_id ในทุกช่องและเพิ่ม
room_description จากช่องใดช่องหนึ่ง
เมื่อจัดการขนาดฟีด ให้พิจารณาทำตามแนวทางปฏิบัติแนะนำ ที่ระบุไว้ในบีบอัดไฟล์ฟีดและแบ่งไฟล์ฟีด
ตัวอย่างคำอธิบายห้องพัก
{
"availability": [
{
"merchant_id": "dining-A",
"service_id": "reservation",
"start_sec": 1535853600,
"duration_sec": 2700,
"spots_total": 2,
"spots_open": 2,
"resources": {
"room_id": "experience-1",
"room_name": "Wine Tasting Menu Pair",
"description": "This Wine Tasting Menu Pair showcases American cuisine rooted in the nostalgic flavors of the 20th century American experience. Each experience is hand-crafted, with a progression from small bites to more substantial plates.",
"party_size": 2
}
},
{
"merchant_id": "dining-A",
"service_id": "reservation",
"start_sec": 1535854600,
"duration_sec": 2700,
"spots_total": 4,
"spots_open": 4,
"resources": {
"room_id": "experience-1",
"room_name": "Wine Tasting Menu Pair",
"party_size": 6
}
}]
}