ऑनलाइन सेवाएं जोड़ना (अब सेवा में नहीं है)

ऑनलाइन सेवाएं ऐसी सेवाएं होती हैं जो पूरी तरह से ऑनलाइन प्लैटफ़ॉर्म पर उपलब्ध होती हैं. इसके लिए, किसी होस्ट किए गए प्लैटफ़ॉर्म का इस्तेमाल किया जाता है. इसके लिए, ग्राहक को सेवा के लिए व्यक्तिगत तौर पर शामिल होने की ज़रूरत नहीं होती. ऑनलाइन सेवाओं के कुछ उदाहरणों में ये शामिल हो सकते हैं:

  • Zoom पर योग की ऑनलाइन क्लास
  • Google Meet के ज़रिए, मेकअप के लिए ऑनलाइन मास्टरक्लास
  • Skype के ज़रिए, ऑनलाइन प्लंबिंग के वीडियो का अनुमान

ऑनलाइन सेवाओं के लिए ज़रूरी शर्तें

लागू करने से पहले, कृपया ऑनलाइन सेवाओं से जुड़ी नीतियां और सबसे सही तरीके देखें.

ऑनलाइन सेवाएं लागू करना

ऑनलाइन सेवाओं का इंटिग्रेशन, अपॉइंटमेंट के एंड-टू-एंड इंटिग्रेशन के मौजूदा इंटिग्रेशन में एक ऐड-ऑन है. इसके लिए, पहले से लागू किए गए किसी मौजूदा इंटिग्रेशन में कुछ बदलाव करने की ज़रूरत होती है. बड़े लेवल पर, ये बदलाव शामिल हैं:

  • फ़ीड: 'सेवा' फ़ीड में type, VirtualSession , DirectMerchantPayment, और CancellationPolicy (अगर पहले से नहीं जोड़े गए हैं) जोड़ें
  • बुकिंग सर्वर: CreateBooking तरीके से VirtualSessionInfo जोड़ें, उपयोगकर्ता को वर्चुअल सेट-अप जानकारी वाले ईमेल भेजें
  • रीयल-टाइम अपडेट (मौजूदा व्यवहार): InventoryUpdate RTU की मदद से वर्चुअल इन्वेंट्री में होने वाले बदलावों को मैनेज किया जा सकता है, Bookingसूचना आरटीयू की मदद से बुकिंग में बदलाव किए जा सकते हैं, और सेवा आरटीयू की मदद से सेवा में बदलाव किए जा सकते हैं

फ़ीड

सेवा फ़ीड

ऑनलाइन सेवाएं सही से काम कर सकें, इसके लिए ये फ़ील्ड 'सेवाएं' फ़ीड में जोड़े जाते हैं.

सेवा फ़ीड की खास बातें

 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"
    }
  ]
}
  • स्थानीय भाषा में जानकारी: ब्यौरे में साफ़ तौर पर बताया जाना चाहिए कि सेवा किस बारे में है. सेवाओं से जुड़े कॉन्टेंट को बेहतर तरीके से व्यवस्थित करने के लिए, कृपया सबसे सही तरीकों की गाइड देखें.
  • सेशन के लिए निर्देश: सेशन से जुड़े निर्देशों में, सभी ज़रूरी सेट-अप की जानकारी दी जानी चाहिए. साथ ही, इनमें नीति में बताए गए दिशा-निर्देशों का पालन किया जाना चाहिए.
    • अगर CreateBooking के तहत प्लैटफ़ॉर्म वीडियो यूआरएल और मीटिंग आईडी अपने-आप नहीं बने हैं (उदाहरण के लिए, जानकारी CreateBookingResponse की मदद से नहीं भेजी जाती है), तो आपको session_instructions में साफ़ तौर पर बताना चाहिए कि कब और किसे उपयोगकर्ता को प्लैटफ़ॉर्म की जानकारी भेजे जाने की उम्मीद करनी चाहिए.
  • सेशन से जुड़ी ज़रूरी शर्तें: सेशन से जुड़ी शर्तों में, उन सभी ज़रूरी उपकरणों या चीज़ों के बारे में बताया जाना चाहिए जो उपयोगकर्ता को क्लास में हिस्सा लेने के लिए ज़रूरी होते हैं. आप चाहें, तो ऐसी सामग्री भी शामिल की जा सकती है जिसकी ज़रूरत उपयोगकर्ता को हो सकती है. हालांकि, कृपया उन्हें 'ज़रूरी नहीं' के तौर पर मार्क करें.
  • प्लैटफ़ॉर्म: प्लैटफ़ॉर्म पर यह बताया जाना चाहिए कि उपयोगकर्ता, ऑनलाइन सेवा को ऐक्सेस करने के लिए किस प्लैटफ़ॉर्म का इस्तेमाल करेगा.
    • अगर कारोबारी या कंपनी बाद में यह प्लैटफ़ॉर्म तय करेगी, तो platform को FLEXIBLE पर सेट करें.
    • अगर कारोबारी जिस प्लैटफ़ॉर्म का इस्तेमाल कर रहा है वह सूची में नहीं है, तो platform को OTHER पर सेट करें और other_platform_name बताएं.
  • रद्द करने की नीति: बुकिंग रद्द करने की सटीक नीतियों के बारे में जानना ज़रूरी है. अगर रिफ़ंड और रद्द करने की अनुमति है, तो CancellationPolicy सेट करें. अगर डिफ़ॉल्ट रूप से यह सेट नहीं किया जाता है, तो यह माना जाता है कि रिफ़ंड नहीं दिया जा सकता.

खरीदारी के लिए उपलब्धता फ़ीड

  • स्पॉट का कुल योग: इसे प्लैटफ़ॉर्म पर हिस्सा लेने वाले लोगों की कुल क्षमता के हिसाब से सेट करें (इसमें स्टाफ़ की कुल संख्या को घटाना न भूलें)

बुकिंग सर्वर

ज़रूरी नहीं: अगर आपका सिस्टम, व्यापारी/कंपनी/कारोबारी के लिए मीटिंग आईडी और यूआरएल बनाता है, तो कृपया VirtualSessionInfo को अपने CreateBookingResponse के हिस्से के तौर पर शामिल करें.

बुक करने की खास जानकारी

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;
}

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

रीयल-टाइम अपडेट

वर्चुअल बुकिंग के लिए, इन्वेंट्री या बुकिंग को अपडेट करने के मौजूदा नियम को बनाए रखना चाहिए.

  • InventoryUpdate RTU: आपके सिस्टम या Actions Center सिस्टम में स्लॉट में होने वाले बदलाव के किसी भी अपडेट के लिए, आपको InventoryUpdate RTU में, स्लॉट में हुए बदलावों के बारे में सूचना दी जानी चाहिए.
  • बुकिंग का आरटीयू: आपके सिस्टम या ऐक्शन सेंटर सिस्टम पर बुकिंग (जैसे कि समय में बदलाव या रद्द करना) से जुड़े किसी भी अपडेट के लिए, हमें बुकिंग में होने वाले बदलावों की सूचना देने के लिए, बुकिंग से जुड़ी सूचना का आरटीयू चालू करना चाहिए.
    • अगर कोई उपयोगकर्ता व्यापारी/कंपनी को पेमेंट नहीं करता है, तो कृपया उसे रद्द करने का आरटीयू भेजें. कार्रवाई केंद्र से सदस्यता रद्द किए जाने का ईमेल भेजा जाएगा.
  • सेवा का आरटीयू: अगर फ़िलहाल, सेवा आरटीयू का इस्तेमाल करके सेवाओं को अपडेट किया जाता है, तो ऑनलाइन सेवा के लिए अपडेट करते समय, सही ऑनलाइन सेवा फ़ील्ड शामिल करें.

ईमेल

डिफ़ॉल्ट रूप से, जब कोई उपयोगकर्ता कार्रवाई केंद्र के प्लैटफ़ॉर्म पर लेन-देन करता है, तब ऐक्शन सेंटर आपको बुकिंग की पुष्टि, बदलाव, और रद्द करने की प्रक्रिया से जुड़े सामान्य ईमेल भेजेगा.

पार्टनर को अपने उपयोगकर्ता को कॉन्फ़्रेंस की जानकारी, पैसे चुकाने के तरीके, और अपॉइंटमेंट रद्द करने की नीति की जानकारी अलग से ईमेल में भेजनी होगी. इसके अलावा, अपॉइंटमेंट या क्लास से पहले रिमाइंडर वाले ईमेल भेजे जा सकते हैं. कृपया नीति का दस्तावेज़ देखें और पक्का करें कि वर्चुअल क्लास के लिए ईमेल नीतियों का पालन किया जा रहा है.