इस ट्यूटोरियल में बताया गया है कि किसी सेवा से जुड़े स्टाफ़ के सदस्य या दिन के समय और/या हफ़्ते के दिन के हिसाब से किसी सेवा की कीमत अलग करने के लिए, आपको अपने फ़ीड कैसे लागू करने चाहिए.
हर स्टाफ़ के हिसाब से/समय के हिसाब से शुल्क
आपको चार चीज़ें सेट करनी होंगी:
Merchant फ़ीड में, कीमत के हर विकल्प के लिए एक
Merchant.payment_option
सेट करें- किसी खास समय/स्टाफ़ के लिए, अपनी पसंद के
price
को सेवा की कीमत पर सेट करें payment_option_id
हर इंटिग्रेशन के लिए यूनीक होना चाहिए, क्योंकिpayment_option_id
की वैल्यू, एक ही एग्रीगेटर के सभी व्यापारियों/कंपनियों के साथ शेयर की जाती हैं. किसी भी ग़लतफ़हमी से बचने के लिए और समस्या हल करने और मैनेज करने की प्रक्रिया को आसान बनाने के लिए, हमारा सुझाव है कि आप हर व्यापारी या कंपनी के लिए,payment_option
की उन सभी वैल्यू के बारे में फिर से बताएं जिन्हें यह व्यापारी/कंपनी/कारोबारी, यूनीकpayment_option_id
के साथ इस्तेमाल करता है. इससे कोई फ़र्क़ नहीं पड़ता कि दूसरे कारोबारी या कंपनी एक जैसेpayment_option
का इस्तेमाल करती है.- हमारा सुझाव है कि हर स्टाफ़ के लिए तय की गई कीमत के लिए,
payment_option_id
कोmerchant_id
,service_id
, औरstaff_id
को मिलाकर जनरेट करें. इससे यह पक्का किया जा सकेगा कि आपके पूरे इंटिग्रेशन मेंpayment_option_id
यूनीक हो - हमारा सुझाव है कि हर बार की कीमत के लिए,
payment_option_id
कोmerchant_id
,service_id
, और इस समय (evening
,weekends
,sundayafternoon
...) को मिलाकर जनरेट करें, ताकि यह पक्का किया जा सके कि आपके पूरे इंटिग्रेशन मेंpayment_option_id
यूनीक है
- जब उपलब्धता-लेवल के हिसाब से शुल्क (ट्यूटोरियल का इस्तेमाल किया गया) के लिए इस्तेमाल किया जाता है, तो नाम और जानकारी का इस्तेमाल मुख्य रूप से डीबग करने के लिए किया जाता है
- एक व्यापारी या कंपनी के लिए, 100 से ज़्यादा
payment_option
वैल्यू सेट न करें. अगर आपको 100 से ज़्यादाpayment_option
वैल्यू चाहिए, तो कृपया इसे लागू करने के लिए अपने Google प्रतिनिधि की मदद लें - इस्तेमाल के इस उदाहरण के लिए,
payment_option
के दूसरे सभी फ़ील्ड को अनदेखा किया जा सकता है
- हमारा सुझाव है कि हर स्टाफ़ के लिए तय की गई कीमत के लिए,
- किसी खास समय/स्टाफ़ के लिए, अपनी पसंद के
खरीदारी के लिए उपलब्धता फ़ीड में,
Availability.payment_option_id
को एक आइटम के कलेक्शन पर सेट करें. इसमें,payment_option
केpayment_option_id
कोMerchant
लेवल पर तय किया गया हैसर्विस फ़ीड में,
Service.price
को इस सेवा के लिए कीमत सीमा की सबसे कम वैल्यू पर सेट करें. साथ ही,Service.price_interpretation
कोSTARTS_AT
पर सेट करें
हर स्टाफ़ के हिसाब से शुल्क का उदाहरण
इस उदाहरण में, अभिषेक (id: 1) का नाम जेन (id: 2) के मुकाबले ज़्यादा अनुभवी हेयरड्रेसर है. इसलिए, सलोन के मालिक ने रोहित के लिए 5 डॉलर ज़्यादा महंगा हेयरड्रेसर तय करने का फ़ैसला किया है. छोटे हेयरकट की कीमत, डिफ़ॉल्ट रूप से 20 डॉलर और लंबे हेयरकट के लिए डिफ़ॉल्ट रूप से 30 डॉलर है. अगर उपयोगकर्ता रोहित को चुनता है, तो कट की कीमत 25 डॉलर या 35 डॉलर होगी.
स्टाफ़ का नाम | छोटे बाल काटना | लंबे बाल काटना |
---|---|---|
जेन | $20* | $30* |
Robert | हॉन्ग कॉन्ग डॉलर | $35 |
*सेवा के लिए डिफ़ॉल्ट कीमत
कंपनी
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-staff-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-staff-price-haircut-short-1", "name": "Short haircut (Robert)", "description": "Short hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-short-default", "name": "Short haircut (Default)", "description": "Normal short hair haircut price", "price": { "currency_code": "USD", "price_micros": 20000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-1", "name": "Long haircut (Robert)", "description": "Long hair haircut price for Robert", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-staff-price-haircut-long-default", "name": "Long haircut (Default)", "description": "Normal long hair haircut price", "price": { "currency_code": "USD", "price_micros": 30000000 } } ] } ] }
सेवाएं
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 20000000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-staff-price", "price": { "currency_code": "USD", "price_micros": 30000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
उपलब्धता
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Robert", "staff_id": "1" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-1"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535806800, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535846340, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-staff-price", "resources": { "staff_name": "Jane", "staff_id": "2" }, "payment_option_id": ["beauty-per-staff-price-haircut-long-default"] } ] } ] }
हर समय के हिसाब से कीमत का उदाहरण
इस उदाहरण में, सैलून 10:00 से 20:00 बजे तक खुला रहता है. सैलून के मालिक ने 18:00 बजे के बाद बुकिंग के लिए, 5 डॉलर का अतिरिक्त शुल्क जोड़ने का फ़ैसला किया.
उपलब्धता का उदाहरण शनिवार, 1 सितंबर, 2018 के लिए पीटी टाइमज़ोन में बताया गया है. उस दिन 1535821200 का मतलब 10:00 होगा, 1535850000 का मतलब 18:00 होगा, और 1535857200 का मतलब 20:00 होगा.
जांच कब की गई है | छोटे बाल काटना | लंबे बाल काटना |
---|---|---|
10:00 ~ 11:00 बजे | $20 | $30 |
11:00 ~ 12:00 बजे | $20 | $30 |
दोपहर 12:00 ~ 13:00 | $20 | $30 |
दोपहर 13:00 ~ 14:00 | $20 | $30 |
दोपहर 14:00 ~ 15:00 | $20 | $30 |
दोपहर 15:00 ~ 16:00 | $20 | $30 |
दोपहर 16:00 ~ 17:00 | $20 | $30 |
17:00 ~ 18:00 बजे | $20 | $30 |
18:00 ~ 19:00 बजे | हॉन्ग कॉन्ग डॉलर | $35 |
19:00 ~ 20:00 बजे | हॉन्ग कॉन्ग डॉलर | $35 |
कंपनी
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1503638100, "total_shards": 1 }, "merchant": [ { "category": "beauty_salon", "merchant_id": "beauty-per-time-price", "name": "Beauty Salon", "url": "www.merchantspublicsite.com", "telephone": "+1 123-456-7890", "geo": { "latitude": 37.422113, "longitude": -122.084041, "address": { "locality": "Mountain View", "country": "US", "region": "CA", "street_address": "1600 Amphitheatre Pkwy", "postal_code": "94043" } }, "payment_option": [ { "payment_option_id": "beauty-per-time-price-haircut-short-evening", "name": "Short haircut (Evening)", "description": "Short hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 25000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-short-default", "name": "Short haircut (Normal)", "description": "Short hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 21000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-evening", "name": "Long haircut (Evening)", "description": "Long hair haircut price for the evening", "price": { "currency_code": "USD", "price_micros": 35000000 } }, { "payment_option_id": "beauty-per-time-price-haircut-long-default", "name": "Long haircut (Normal)", "description": "Long hair haircut price for the rest of the day", "price": { "currency_code": "USD", "price_micros": 31000000 } } ] } ] }
सेवाएं
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535437200, "total_shards": 1 }, "service": [ { "service_id": "haircut-short", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 2100000 }, "localized_service_name": { "value": "Haircut (shorter than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (shorter than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for short hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for short hair" } ] } }, { "service_id": "haircut-long", "prepayment_type": "NOT_SUPPORTED", "merchant_id": "beauty-per-time-price", "price": { "currency_code": "USD", "price_micros": 31000000 }, "localized_service_name": { "value": "Haircut (longer than shoulder)", "localized_value": [ { "locale": "en", "value": "Haircut (longer than shoulder)" } ] }, "localized_description": { "value": "Awesome haircut for long hair", "localized_value": [ { "locale": "en", "value": "Awesome haircut for long hair" } ] } } ] }
उपलब्धता
{ "metadata": { "processing_instruction": "PROCESS_AS_COMPLETE", "generation_timestamp": 1535178900, "total_shards": 1 }, "service_availability": [ { "availability": [ { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-default"] }, { "spots_total": 1, "start_sec": 1535821200, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535849940, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-default"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-short", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-short-evening"] }, { "spots_total": 1, "start_sec": 1535850000, "spots_open": 1, "duration_sec": 3600, "recurrence": { "repeat_until_sec": 1535857140, "repeat_every_sec": 3600 }, "service_id": "haircut-long", "merchant_id": "beauty-per-time-price", "payment_option_id": ["beauty-per-time-price-haircut-long-evening"] } ] } ] }