הוספת קטעים של מקומות ישיבה

במסעדות רבות יש אזורי ישיבה נפרדים כמו בר או פטיו, וחוויות שונות כמו תפריט טעימות של חמש מנות או טעימות יין. ב-Actions Center יש תמיכה בהבחנה הזו, והמשתמש יכול לציין את האזור שבו הוא רוצה להזמין שולחן.

משבצות זמן פנויות עם שמות החדרים

איור 1: דוגמה לבחירת משבצת למסעדה עם אזורי ישיבה

כדי להפריד בין סוגי המלאי, צריך להגדיר את השדות room_id, ‏ room_name ו-resources בהודעה Availability של משבצת זמן. כדי לכלול תיאורים של חדרים, משתמשים בשדה 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 כדי להציע חוויות סעודה בתשלום מראש. בצילום המסך הבא מפורט איך החוויה מוצגת באינטרנט.

איור 1: דוגמה לבחירת משבצת במסעדה עם אזורי ישיבה, כולל תיאורי חדרים

דוגמה לחדר

{
  "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
      }
  }]
}