線上服務的定義為完全在線上提供服務 客戶不必參加服務。 。以下列舉幾個線上服務範例:
- 透過 Zoom 進行線上瑜珈課程
- 透過 Google Meet 進行線上彩妝大師課程
- 透過 Skype 預估線上水電活動影片
線上服務資格規定
開始導入前,請詳閱 線上服務政策和最佳做法。
線上服務導入
線上服務整合是現有預約 (端對端) 的外掛程式 ,並需要對現有的實作做一些變更。 概括來說,以下變更包括:
- 動態饋給:新增
type
、VirtualSession
、DirectMerchantPayment
及CancellationPolicy
(如果尚未加入)「服務」動態饋給 - 預訂伺服器:將 VirtualSessionInfo 新增至 CreateBooking 方法。 傳送包含虛擬設定資訊的電子郵件給使用者
- 即時更新 (現有行為):處理 透過 InventoryUpdate RTU 處理虛擬廣告空間 透過 BookingNotification RTU 預訂,並透過 服務 RTU
動態饋給
服務動態饋給
服務動態饋給會新增下列欄位,以便在線上支援 免費 Google Cloud 服務
服務動態饋給規格
enum ServiceType { SERVICE_TYPE_UNSPECIFIED = 0; // Service that provides dining reservation. SERVICE_TYPE_DINING_RESERVATION = 1; // Service that provides food ordering in general, could be either takeout // or delivery or both. SERVICE_TYPE_FOOD_ORDERING = 2; // Service that only provides food delivery. SERVICE_TYPE_FOOD_DELIVERY = 6; // Service that only provides food takeout. SERVICE_TYPE_FOOD_TAKEOUT = 7; // Service that provides appointments or classes. Recommended for (1) health // and fitness, (2) spa and beauty, and (3) financial consults and // evaluations services. Please see the supported service types: // https://developers.google.com/actions-center/guides/end-to-end-integration/overview SERVICE_TYPE_APPOINTMENT = 5; // Service that provides appointment for an online class or session which // will be fully virtual. Must be set if enabling virtual service bookings. SERVICE_TYPE_ONLINE_APPOINTMENT = 8; } // Information about virtual/online session. E.g. Online yoga class, virtual // cooking class etc. message VirtualSession { // Instructions on how this virtual class is set up. If the partner does not // include the video URL with the booking, then this text must include when // the video URL will be shared with the user. Eg. “Zoom url will be mailed // 30 minutes prior to the class”. (Recommended) // Only the folloiwng four tags are supported: <br>, <strong>, <em>, <i>. Text session_instructions = 1; // Requirements for the given virtual session. Eg. yoga mat, // cooking utensils etc. (Recommended) // Only the folloiwng four tags are supported: <br>, <strong>, <em>, <i>. Text session_requirements = 2; // Information about the virtual platform used in this session. (Required to // enable virtual services) message VirtualPlatformInfo { // Enum to indicate which virtual platform would be used by the merchant. enum Platform { PLATFORM_UNSPECIFIED = 0; // The merchant is flexible in which video platform they use. FLEXIBLE = 1; GOOGLE_HANGOUTS = 2; GOOGLE_MEET = 3; ZOOM = 4; SKYPE = 5; YOUTUBE = 6; // Should be set if the video platform used is different from the ones // mentioned here. OTHER = 7; } Platform platform = 1; // The name of the platform if the platform is set to OTHER. (Required if // platform is set to OTHER) Text other_platform_name = 2; } VirtualPlatformInfo virtual_platform_info = 3; // Set this as true if the virtual session is not live and is pre-recorded. // (Optional) bool is_session_prerecorded = 4; } // Information about how the user can pay directly to the merchant instead of // pre-paying for the service via RwG. message DirectMerchantPayment { // Users would be advised to pay only via the payment methods mentioned below. repeated Text payment_methods = 1; } // Cancellation policy for a service. message CancellationPolicy { // Defines a single refund condition. Multiple refund conditions could be // used together to describe "refund steps" as various durations before the // service start time. message RefundCondition { // Duration in seconds before the start time, until when the customer can // receive a refund for part of the service's cost specified in // `refund_percent`. // When set to 0 (default), the service can be cancelled at any time. int64 min_duration_before_start_time_sec = 1; // The percent that can be refunded, as long as the service booking is // cancelled at least `min_duration_before_start_time` before the service // start time, in the range of [0, 100]. When set to 0 (default), the // service is not refundable. When set to 100 this service is fully // refundable. uint32 refund_percent = 2; } // Zero or more refund conditions applicable to the policy. repeated RefundCondition refund_condition = 1; }
服務動態饋給範例
{ "service": [ { "merchant_id": "100", "service_id": "100-1", "type" : "SERVICE_TYPE_ONLINE_APPOINTMENT", "localized_service_name": { "value": "Makeup masterclass", "localized_value": [ { "locale": "en", "value": "Makeup masterclass" } ] }, "localized_description": { "value": "Learn how to do runway makeup from an award winning makeup artist.", "localized_value": [ { "locale": "en", "value": "Learn how to do runway makeup from an award winning makeup artist." } ] }, "virtual_session": { "session_instructions": { "value": "You must have access to a computer, and a solid internet connection. Class registration link will be sent to you 15 mins before the start of the class. The class link will be accessible 1 day after the class. ", "localized_value": [ { "locale": "en", "value": "You must have access to a computer, and a solid internet connection. Class registration link will be sent to you 15 mins before the start of the class. The class link will be accessible 1 day after the class. " } ] }, "session_requirements": { "value": "makeup brush, makeup palette, mirror", "localized_value": [ { "locale": "en", "value": "makeup brush, makeup palette, mirror" } ] }, "virtual_platform_info": { "platform": "OTHER", "other_platform_name": "Susan's hosted platform" } }, "direct_merchant_payment": { "payment_methods": [ { "value": "Venmo", "localized_value": [ { "locale": "en", "value": "Venmo" } ] } ] }, "price": { "price_micros": 75000000, "currency_code": "USD" }, "rules": { "min_advance_booking": 0, "min_advance_online_canceling": 86400, "cancellation_policy": { "refund_condition": [ { "min_duration_before_start_time_sec": 3600, "refund_percent": 100 } ] } }, "prepayment_type": "NOT_SUPPORTED", "tax_rate": { "micro_percent": 7750000 } }, { "merchant_id": "100", "service_id": "100-2", "type" : "SERVICE_TYPE_ONLINE_APPOINTMENT", "localized_service_name": { "value": "Advanced Vinyasa Yoga", "localized_value": [ { "locale": "en", "value": "Advanced Vinyasa Yoga" } ] }, "localized_description": { "value": "Learn the advanced techniques of vinyasa yoga taught by award winning yoga instructors.", "localized_value": [ { "locale": "en", "value": "Learn the advanced techniques of vinyasa yoga taught by award winning yoga instructors." } ] }, "virtual_session": { "session_instructions": { "value": "You must have access to a computer, and a solid internet connection. Class registration link will be included in an email from the merchant.", "localized_value": [ { "locale": "en", "value": "You must have access to a computer, and a solid internet connection. Class registration link will be included in an email from the merchant." } ] }, "session_requirements": { "value": "yoga mat, dumbbells", "localized_value": [ { "locale": "en", "value": "yoga mat, dumbbells" } ] }, "virtual_platform_info": { "platform": "ZOOM" } }, "price": { "price_micros": 40000000, "currency_code": "USD" }, "rules": { "min_advance_booking": 0, "min_advance_online_canceling": 86400, "cancellation_policy": { "refund_condition": [ { "min_duration_before_start_time_sec": 86400, "refund_percent": 100 }, { "min_duration_before_start_time_sec": 3600, "refund_percent": 50 } ] } }, "prepayment_type": "REQUIRED", "tax_rate": { "micro_percent": 7750000 }, "require_credit_card": "REQUIRE_CREDIT_CARD_ALWAYS" } ] }
- 本地化說明:說明內容應清楚明確 說明服務內容詳情請參閱 最佳做法指南,瞭解如何建構服務結構的最佳做法 內容。
- 工作階段操作說明:工作階段操作說明應描述所有
滿足必要的設定,並達成
政策。
- 如果未自動建立平台影片網址和會議 ID
做為 CreateBooking 的一部分 (例如,詳細資料不是透過
CreateBookingResponse
),應在session_instructions
的時段和對象 使用者應會預期將平台詳細資料傳送給這些機構。
- 如果未自動建立平台影片網址和會議 ID
做為 CreateBooking 的一部分 (例如,詳細資料不是透過
- 工作階段規定:工作階段需求條件應說明所有 使用者參與的必要設備或材料 有效率地管理整個課程您還可以加入使用者可能接受的選用資料 但請標示為選填
- Platform:平台應指出使用者要指定的平台
存取線上服務
- 如果商家日後會決定平台
將
platform
設為FLEXIBLE
。 - 如果商家使用的平台不在清單中,則請設定
platform
到OTHER
,並指定other_platform_name
。
- 如果商家日後會決定平台
將
- 取消政策:請務必正確提供取消選項。
再檢查有關聯的允許政策如為退款和取消交易,請設定
CancellationPolicy
。如未設定,則預設會假設退款未設定 。
供應情形動態饋給
- Spot 總數:將這項數據設為參與者的總人數 可對平台的依賴 (請務必減去員工)
預訂伺服器
選用:如果系統代表您建立會議 ID 和網址,
商家,請將 VirtualSessionInfo
加入
CreateBookingResponse
。
CreateBooking 規格
message Booking { // Information related to the virtual session which was booked. message VirtualSessionInfo { // URL which was created for the virtual session. (optional) string session_url = 1; // The meeting id which was created for the virtual session. (optional) string meeting_id = 2; // Password required to access the session. (optional) string password = 3 [(datapol.semantic_type) = ST_ACCOUNT_CREDENTIAL]; } VirtualSessionInfo virtual_session_info = X; }
CreateBookingRequest
{ "idempotency_token": "10000000000", "payment_information": { "prepayment_status": "PREPAYMENT_NOT_PROVIDED" }, "slot": { "confirmation_mode": "CONFIRMATION_MODE_SYNCHRONOUS", "duration_sec": "3600", "merchant_id": "10001", "service_id": "10001-1", "start_sec": "1586829600" }, "user_information": { "email": "john.doe@gmail.com", "family_name": "John", "given_name": "Doe", "telephone": "+123 456 7890", "user_id": "110291237" } }
CreateBookingResponse
{ "booking": { "bookingId": "abcdefg-12345", "slot": { "merchantId": "10001", "serviceId": "10001-1", "startSec": "1586804400", "durationSec": "3600" }, "userInformation": { "userId": "110291237", "givenName": "John", "familyName": "Doe", "telephone": "+123 456 7890", "email": "john.doe@gmail.com" }, "status": "CONFIRMED", "virtual_session_info": { "video_url": "meet.google.com/abcd-efg", "meeting_id": "abcd-efg", "password" : "somepassword" } } }
Real-time Updates (即時更新)
必須維護用來更新廣告空間或預訂的現有邏輯 線上預訂服務
- InventoryUpdate RTU:網站上版位如有變更, Actions Center 系統應會觸發 InventoryUpdate 透過 RTU 通知我們時段的異動內容。
-
BookingNotification RTU:預訂的所有更新項目
(例如修改時間或取消) 您的系統或
Actions Center 系統應觸發 BookingNotification RTU 以通知
預訂變更
- 如果使用者未付款給商家/合作夥伴,請 將取消的 RTU 傳送給我們。系統將寄出取消電子郵件給 動作中心
- 服務 RTU:如果你目前透過某項服務更新服務 RTU;如有的話,請務必加入適當的線上服務欄位 線上服務進行更新。
電子郵件地址
根據預設,Actions Center 會傳送標準預訂確認信 使用者在 Actions Center 平台上交易時,修改和取消電子郵件。
合作夥伴也應另外傳送會議詳細資料、付款資料 和取消政策資訊,以個別電子郵件寄給使用者。 您也可以選擇在預約時間或課程開始前傳送提醒電子郵件。 請參閱 政策文件,確保您遵守 線上課程的電子郵件政策