पेमेंट रीडायरेक्ट के लिए यूआरएल टेंप्लेट

किसी खास कीमत पर उपलब्धता का स्लॉट बुक करने पर, उपयोगकर्ता को आपके बुकिंग पेज पर रीडायरेक्ट कर दिया जाएगा. इसके लिए, उसे उस यूआरएल का इस्तेमाल करना होगा जिसे आपने सेवाएं फ़ीड में तय किया है. इस्तेमाल किए जा सकने वाले यूआरएल टेंप्लेट का एक उदाहरण, नीचे दिया गया है.

इस टेंप्लेट के पैरामीटर, आपके फ़ीड में दी गई वैल्यू का इस्तेमाल करके डाइनैमिक तौर पर जोड़े जाते हैं. इन पैरामीटर का इस्तेमाल एक ऐसा लिंक बनाने के लिए किया जाता है जिसका इस्तेमाल करके उपयोगकर्ता, बुकिंग पेज पर जा सकता है.

`https://reservation-provider.com/examplerestaurant/book?date={availability_slot_start_seconds}&num_guests={resources_party_size}`

यूआरएल टेंप्लेट के लिए उपलब्ध वैल्यू

टेंप्लेट पैरामीटर ज़रूरी / ज़रूरी नहीं फ़ीड फ़ील्ड वैल्यू का उदाहरण
availability_slot_availability_tag ज़रूरी नहीं उपलब्धता availability_tag टैग
availability_slot_duration_seconds ज़रूरी नहीं उपलब्धता duration_sec 3,600
availability_slot_start_seconds ज़रूरी है उपलब्धता start_sec 4152695841
resources_party_size ज़रूरी है availability.resources party_size 2
resources_room_id ज़रूरी नहीं availability.resources room_id bar_123

यूआरएल टेंप्लेट की परिभाषा

आपके सेवा फ़ीड में भेजा जाने वाला यूआरएल टेंप्लेट यहां दिया गया है.

    Message Services {

      // ..
      UriTemplate uri_template;

      // A template specifying how Google should generate URLs to external site.
      message UriTemplate {

        // The uri template must follow the RFC6570, see
        // https://datatracker.ietf.org/doc/html/rfc6570.
        // Supports Level 2 templates.
        // e.g.
        // http://example.com/book/{foo}?b={bar}
        // * foo = 2
        // * bar = abc
        // https://example.com/book/2?b=abc
        // These parameters will be resolved to their values specified in their
        // respective entities.
        // 1) {availability_slot_start_seconds} :: populated from start_sec field in
        //   availability feed
        // 2) {resources_party_size} :: populated from party_size field in
        //   availability feed
        // 3) {availability_slot_duration_seconds} :: populated from duration_sec
        //   field in availability feed
        // 4) {resources_room_id} :: populated from room_id field in the
        //   resource section of the availability feed
        // 5) {availability_slot_availability_tag} :: populated from availability_tag
        //   field of the availability feed

        string uri_template = 1;
      }
    }