নিম্নলিখিত টিউটোরিয়ালটি ব্যাখ্যা করে যে কীভাবে আপনার ফিডগুলি সংশ্লিষ্ট স্টাফ সদস্য বা দিনের সময় এবং/অথবা সপ্তাহের দিনের উপর ভিত্তি করে একটি পরিষেবার জন্য মূল্যের পার্থক্য করতে হবে।
প্রতি স্টাফ/সময় মূল্য
4টি জিনিস সেট করতে হবে:
মার্চেন্ট ফিডে, প্রতিটি মূল্য বিকল্পের জন্য একটি
Merchant.payment_option
সেট করুন- নির্দিষ্ট সময়/কর্মীদের জন্য পরিষেবার দামের সাথে পছন্দসই
price
সেট করুন payment_option_id
আপনার ইন্টিগ্রেশন জুড়ে অনন্য হতে হবে কারণpayment_option_id
মান একই সমষ্টির সমস্ত বণিকদের মধ্যে ভাগ করা হয়৷ যেকোন বিভ্রান্তি এড়াতে এবং সমস্যা সমাধান ও পরিচালনাকে সহজ করতে, আমরা সুপারিশ করি যে, প্রতিটি বণিকের জন্য, আপনি (পুনরায়) সমস্তpayment_option
মানগুলিকে সংজ্ঞায়িত করুন যা এই বণিক একটি অনন্যpayment_option_id
ব্যবহার করে (এমনকি যদি একটি অভিন্নpayment_option
অন্য ব্যবসায়ী ব্যবহার করে থাকে)।- প্রতি স্টাফ মূল্যের জন্য, আমরা আপনাকে
merchant_id
,service_id
এবংstaff_id
এর সংমিশ্রণ হিসাবেpayment_option_id
তৈরি করার পরামর্শ দিই যাতে সহজে ট্র্যাকিং করা যায় এবং আপনার সমগ্র ইন্টিগ্রেশন জুড়েpayment_option_id
অনন্য হয় তা নিশ্চিত করতে - প্রতি সময়ের মূল্যের জন্য, আমরা আপনাকে
merchant_id
,service_id
এবং এই সময়ের প্রতিনিধিত্বকারী একটি স্ট্রিং (evening
,weekends
,sundayafternoon
...) এর সংমিশ্রণ হিসাবেpayment_option_id
তৈরি করার পরামর্শ দিই যাতে সহজে ট্র্যাকিং করা যায় এবং আপনার সমগ্র ইন্টিগ্রেশন জুড়েpayment_option_id
অনন্য তা নিশ্চিত করার জন্য।
- যখন প্রাপ্যতা-স্তরের মূল্যের জন্য ব্যবহার করা হয় (এই টিউটোরিয়ালটির ব্যবহারের ক্ষেত্রে), নাম এবং বিবরণ প্রধানত ডিবাগিং উদ্দেশ্যে ব্যবহৃত হয়
- একক ব্যবসায়ীর জন্য 100টির বেশি
payment_option
মান সেট করবেন না। আপনি যদি 100 টিরও বেশিpayment_option
মানগুলিতে পৌঁছানোর আশা করেন তবে অনুগ্রহ করে আপনার Google পরিচিতি দ্বারা এই বাস্তবায়নটি চালান৷ - এই ব্যবহারের ক্ষেত্রে অন্যান্য সমস্ত
payment_option
ক্ষেত্র উপেক্ষা করা যেতে পারে
- প্রতি স্টাফ মূল্যের জন্য, আমরা আপনাকে
- নির্দিষ্ট সময়/কর্মীদের জন্য পরিষেবার দামের সাথে পছন্দসই
Availability ফিডে, আপনি
Merchant
স্তরে সংজ্ঞায়িতpayment_option
এরpayment_option_id
সহ একটি একক আইটেম অ্যারেতেAvailability.payment_option_id
সেট করুনপরিষেবা ফিডে,
Service.price
এই পরিষেবার জন্য মূল্য সীমার সর্বনিম্ন মান সেট করুন এবংService.price_interpretation
সেট করুনSTARTS_AT
প্রতি স্টাফ মূল্য উদাহরণ
এই উদাহরণে, রবার্ট (আইডি: 1) জেন (আইডি: 2) এর চেয়ে একজন বেশি অভিজ্ঞ হেয়ারড্রেসার এবং তাই সেলুনের মালিক রবার্টের জন্য আরও ব্যয়বহুল $5 রিজার্ভেশন করার সিদ্ধান্ত নিয়েছেন। একটি ছোট চুলের চুল কাটার মূল্য ডিফল্টরূপে $20 এবং একটি লম্বা চুলের চুল কাটার জন্য ডিফল্টরূপে $30 মূল্য। ব্যবহারকারী রবার্ট নির্বাচন করলে, কাটের জন্য যথাক্রমে $25 বা $35 খরচ হবে।
কর্মীদের নাম | ছোট চুলের চুল কাটা | লম্বা চুলের চুল কাটা |
---|---|---|
জেন | $20* | $30* |
রবার্ট | $25 | $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 অতিরিক্ত খরচ যোগ করার সিদ্ধান্ত নিয়েছে।
প্রাপ্যতার উদাহরণটি PT টাইমজোনে 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 | $25 | $35 |
19:00 ~ 20:00 | $25 | $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"]
}
]
}
]
}