يوضّح الدليل التعليمي التالي كيفية تنفيذ خلاصاتك بهدف التمييز في أسعار الخدمة استنادًا إلى الموظف المعني أو وقت اليوم و/أو يوم الأسبوع.
السعر لكل موظف/ساعة
هناك 4 عناصر يجب ضبطها:
في خلاصة التاجر، اضبط
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
فريد في عملية الدمج بأكملها.
- عند استخدام السمتَين لتحديد الأسعار حسب مستوى التوفّر (حالة الاستخدام في هذا الدليل التعليمي)، يتم استخدام الاسم والوصف بشكل أساسي لأغراض debugging .
- لا تضبط أكثر من 100 قيمة لسمة
payment_option
لتاجر واحد. إذا كنت تتوقّع الوصول إلى أكثر من 100payment_option
قيمة، يُرجى تنفيذ هذا الإجراء من خلال جهة الاتصال التي تتعامل معها في Google. - يمكن تجاهل جميع حقول
payment_option
الأخرى في حالة الاستخدام هذه.
- بالنسبة إلى السعر لكل موظف، ننصحك بإنشاء
- اضبط
في خلاصة مدى التوفّر، اضبط
Availability.payment_option_id
على مصفوفة واحدة للسلع باستخدامpayment_option_id
للpayment_option
الذي حدّدته على مستوىMerchant
.في خلاصة الخدمات، اضبط
Service.price
على أدنى قيمة لنطاق السعر لهذه الخدمة واضبطService.price_interpretation
علىSTARTS_AT
.
مثال على السعر لكل موظف
في هذا المثال، "رامي" (رقم التعريف: 1) هو مصفّف شعر لديه خبرة أكبر من "منى" (رقم التعريف: 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 صباحًا إلى الساعة 8:00 مساءً. قرّر صاحب الصالون إضافة تكلفة إضافية تبلغ 5 ريال سعودي للحجوزات بعد الساعة 6 مساءً.
تم تحديد مثال مدى التوفّر ليوم السبت 1 أيلول (سبتمبر) 2018 في المنطقة الزمنية بتوقيت المحيط الهادئ. يشير الرقم التعريفي 1535821200 إلى الساعة 10:00 في ذلك اليوم، ويشير الرقم التعريفي 1535850000 إلى الساعة 6:00 مساءً في ذلك اليوم، ويشير الرقم التعريفي 1535857200 إلى الساعة 8: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 |
من الساعة 3:00 إلى الساعة 4: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"] } ] } ] }