בקובץ ה-XML של כללי התמחור מוגדרים הכללים להצגת מחירים מותנים ומחירים פרטיים. אפשר להוסיף או לערוך קובץ XML של כללי תמחור באמצעות הדף 'כללי תמחור' ב-Hotel Center. מידע נוסף על תעריפים בלעדיים ותעריפים פרטיים זמין במאמר בנושא תעריפים בלעדיים ותעריפים פרטיים.
כל כלל מחיר דורש id
, שאפשר להפנות אליו ב<Rate>
של הודעת עסקה. מודעה מסוג <Rate>
שמפנה למזהה של כלל תמחור מוצגת רק למשתמשים ובתנאים שמוגדרים בכלל התמחור. אפשר גם להפנות למזהה של כלל מחירים באמצעות משתנה בכתובת דף נחיתה.
<RateRuleSettings>
רכיב הבסיס של קובץ ה-XML של כללי התמחור. רכיב <RateRuleSettings>
(לשעבר <PrivateRates>
) מכיל:
רכיבי
<UserRateCondition>
שמגדירים את התנאים להתאמה של תעריפים פרטיים ותעריפים בלעדיים. לדוגמה, אפשר ליצור תעריף מותנה שתואם לתנאי של כל המשתמשים במדינה מסוימת.רכיבי
<RateRule>
שכל אחד מהם מגדיר כלל תמחור להפניה ב-<Rate>
בהודעת עסקה. כל תג<RateRule>
מציין את התנאים ואת אופן הצגת הממשק שיוצרים תעריף בלעדי או פרטי.
הרכיב <RateRuleSettings>
מופיע במקום הבא בהיררכיית ה-XML של כללי התמחור:
+<RateRuleSettings>
+<UserRateCondition>
+<RateRule>
+<UserRateCondition>
+<RateIneligibility>
+<RateModification>
תחביר
התחביר של רכיב <RateRuleSettings>
הוא:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<UserRateCondition id="some_id" op="[all|any|none]">
...
</UserRateCondition>
<!-- Required -->
<RateRule id="rate_rule_id">
<!-- Required -->
<UserRateCondition op="[all|any|none]">
...
</UserRateCondition>
</RateRule>
</RateRuleSettings>
מאפיינים
לרכיב <RateRuleSettings>
אין מאפיינים.
רכיבי צאצא
הרכיב <RateRuleSettings>
כולל את רכיבי הבן הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<RateRule> |
Required | <RateRule> |
הגדרת תנאי ההתאמה, השינויים והזכאות להצגת תעריף בלעדי או פרטי. נדרש מאפיין |
<UserRateCondition> |
Optional | <UserRateCondition> |
התג מגדיר תנאי אחד או יותר שאם הם מתקיימים, המערכת מציגה תעריפים פרטיים או תעריפים בלעדיים. אפשר להגדיר תנאים בשורה באמצעות רכיבי צאצא למאפיין |
דוגמאות לתעריפים בלעדיים
בדוגמאות הבאות מוצגות דרכים בסיסיות להגדיר תעריפים מותנים.
מומלץ להפנות לתנאים מוגדרים מראש, כמו בדוגמה של משתמשים בנייד.
משתמשים בנייד
בדוגמה הבאה של תעריפים מותנים מוגדר כלל תעריפים שתואם לכל המשתמשים בנייד באמצעות הפניה ל-<UserRateCondition>
מוגדר מראש:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<UserRateCondition id="mobile">
<UserDeviceType>mobile</UserDeviceType>
</UserRateCondition>
<RateRule id="mobile">
<!-- Referencing pre-defined conditions is recommended -->
<UserRateCondition reference_id="mobile"/>
</RateRule>
</RateRuleSettings>
משתמשים בארה"ב
בדוגמה הבאה של תעריפים מותנים מוגדר כלל תעריפים שתואם לכל המשתמשים שמחפשים בארה"ב, באמצעות הפניה ל<UserRateCondition>
מוגדר מראש:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<UserRateCondition id="us">
<UserCountry>US</UserCountry>
</UserRateCondition>
<RateRule id="us">
<UserRateCondition reference_id="us"/>
</RateRule>
</RateRuleSettings>
<RateRule>
מאגר להגדרת:
- תנאים להצגת מחיר
- שינויים, אם יש, במחיר ובממשק המשתמש של התעריף
- שימוש בטיפולים מוסתרים בממשק המשתמש לתעריפים פרטיים
האלמנט <RateRule>
מופיע במקום הבא בהיררכיית ה-XML של כללי התמחור:
+<RateRuleSettings>
+<UserRateCondition>
+<RateRule>
+<UserRateCondition>
+<RateIneligibility>
+<RateModification>
תחביר
התחביר של רכיב <RateRule>
הוא:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings ...>
<UserRateCondition ...>
...
</UserRateCondition>
<!-- At least one RateRule is required. The id attribute is required -->
<RateRule id="rate_rule_id">
<!-- One or more UserRateCondition elements (inline or referenced) are required. -->
<UserRateCondition op="[all|any|none]"> // Inline example
<Description>user_rate_condition_description</Description>
<!-- Uses the member rate visible UI treatment -->
<AlwaysEligibleMembershipProgram>program_name</AlwaysEligibleMembershipProgram>
<LanguageCode>language_code</LanguageCode>
<MaxUsersPercent>20</MaxUsersPercent> // 20% of users
<!-- Requires <RateIneligibility> -->
<MembershipProgram>program_name</MembershipProgram>
<UserRateCondition reference_id="user_rate_condition_id"/>
<UserCountry>country_code</UserCountry>
<UserDeviceType>[mobile|desktop|tablet]</UserDeviceType>
<UserListId>id</UserListId>
<UserSignedIn>[true|false]</UserSignedIn>
<IsDomestic>[true|false]</IsDomestic>
</UserRateCondition>
<RateIneligibility>
<IneligibilityType>[exact|price_band|existence]</IneligibilityType>
<IneligibilityReason>[program_member]</IneligibilityReason>
</RateIneligibility>
<RateModification>
<HotelAmenity>[free_wifi]</HotelAmenity>
</RateModification>
</RateRule>
</RateRuleSettings>
מאפיינים
לרכיב <RateRule>
יש את המאפיינים הבאים:
מאפיין | חובה? | סוג | תיאור |
---|---|---|---|
id |
חובה | מחרוזת |
מזהה ייחודי של כלל התמחור. המזהה הזה מופיע במאפיין אפשר להזין 40 תווים לכל היותר. |
רכיבי צאצא
הרכיב <RateRule>
כולל את רכיבי הבן הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<RateIneligibility> |
Optional | <RateIneligibility> |
מציינת ערכים שקובעים את הטיפול הספציפי בממשק המשתמש עבור שיעור <MembershipProgram> .
בתוקף רק אם |
<UserRateCondition> |
Required | <UserRateCondition> |
התג מגדיר תנאי אחד או יותר שאם הם מתקיימים, המערכת מציגה תעריפים פרטיים או תעריפים בלעדיים. אפשר להגדיר תנאים בתוך השורה באמצעות רכיבי צאצא עם זאת, אם |
<RateModification> |
Optional | <RateModification> |
משנה את העיצוב של ממשק המשתמש עבור מחירים פרטיים. |
<PromoCode> |
Optional | string | מציינים קוד שישויך לתעריף אם הכלל הזה חל. הערך משתקף במשתנה PROMO-CODE landing page. |
<UserRateCondition>
הגדרה של תנאי אחד או יותר, שאם הם מתקיימים, מוצגים תעריפים בלעדיים או פרטיים.
האלמנט <UserRateCondition>
מופיע במקום הבא בהיררכיית ה-XML של כללי התמחור:
+<RateRuleSettings>
+<UserRateCondition>
+<RateRule>
+<UserRateCondition>
+<RateIneligibility>
+<RateModification>
תחביר
התחביר של רכיב <UserRateCondition>
הוא:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings ...>
<!-- "op" is required for more than one child element -->
<UserRateCondition id="some_id" op="[all|any|none]">
<UserDeviceType>device_type</UserDeviceType>
</UserRateCondition>
<UserRateCondition id="some_other_id" op="[all|any|none]">
<UserDeviceType>device_type</UserDeviceType>
</UserRateCondition>
<!-- At least one RateRule is required -->
<RateRule id="rate_rule_id">
<UserRateCondition reference_id="some_id"/>
</RateRule>
<RateRule id="rate_rule_id">
<UserRateCondition reference_id="some_other_id"/>
</RateRule>
<RateRule id="rate_rule_id">
<UserRateCondition>
<UserDeviceType>device_type</UserDeviceType>
</UserRateCondition>
</RateRule>
<span class="nocode"></RateRuleSettings></span>
מאפיינים
לרכיב <UserRateCondition>
יש את המאפיינים הבאים:
מאפיין | חובה? | סוג | תיאור |
---|---|---|---|
id |
Required (if top-level under
<RateRuleSettings> ) |
string |
מזהה ייחודי של |
op |
Optional | enum |
מאפיין
|
reference_id |
Optional | string |
ההגדרה של הרכיב הזה היא הפניה לרכיב אחר שהוגדר מראש
כשהערך בשדה
|
רכיבי צאצא
הרכיב <UserRateCondition>
כולל את רכיבי הבן הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<AlwaysEligibleMembershipProgram> |
Optional | string | ההגדרה מציינת שהמחיר יתבסס על המחיר לחברי מועדון שמוצג בממשק המשתמש. הערך של הרכיב הזה יכול להיות כל שם של מועדון חברים. |
<Description> |
Optional | string | מתאר את <UserRateCondition> . המידע הזה מיועד למטרות תיעוד ואין לו השפעה על היכולות של המודל.
|
<LanguageCode> |
Optional | string | מציין שהמחיר יוצע למשתמשים שהשפה שלהם תואמת
לקוד השפה הזה בן שתי האותיות.
הערה>: מומלץ להשתמש ב- |
<MaxUsersPercent> |
Optional | float | מציין שהתעריף יוצע באופן אקראי לאחוז הזה של משתמשי הקצה. הערך חייב להיות מספר שלם בין 0 ל-100 (כולל). לדוגמה, אם תזינו 20, המדיניות תכוון ל-20% ממשתמשי הקצה. |
<MembershipProgram> |
Optional | string | ההגדרה קובעת ששיעור ההנחה יתבסס על ממשק משתמש של תוכנית חברות, כפי שנקבע על ידי כדי שהערך של הערך של |
<UserRateCondition> |
Optional | <UserRateCondition> |
התג מגדיר תנאי אחד או יותר שאם הם מתקיימים, המערכת מציגה תעריפים פרטיים או תעריפים בלעדיים. ל- |
<UserCountry> |
Optional | string | קוד מדינה בפורמט CLDR, כמו מציין שהמשתמש צריך להיות ממוקם במדינה שצוינה. Google קובעת את המדינה של משתמש הקצה מכתובת ה-IP שלו. |
<UserDeviceType> |
Optional | enum | הגדרה של התנאי 'סוג המכשיר'. הערכים המותרים הם:
|
<UserListId> |
Optional | string | המזהה של רשימת המשתמשים ב-Google Ads של רשימת חברים בקהל.
אפשר להשתמש בתנאי הזה רק עם |
<UserSignedIn> |
Optional | boolean | ערך בוליאני שמציין אם המשתמש חייב להיכנס לחשבון Google שלו. הערך true מציין שהמשתמש צריך להיות מחובר. הערך false מציין שהמשתמש לא צריך להיות מחובר. אם לא משנה לכם אם המשתמש מחובר או לא, אל תכללו תנאי <UserSignedIn> .
|
<IsDomestic> |
Optional | boolean | ערך בוליאני שקובע אם המשתמש חייב להיות מאותה מדינה שבה נמצא המלון. ערך של true
מציין שהמשתמש חייב להיות מאותה מדינה שבה נמצא המלון. ערך של false מציין שהמשתמש יכול להיות מכל מדינה אחרת מלבד המדינה שבה נמצא המלון. אם רוצים שליטה מדויקת יותר, משתמשים בתנאי <UserCountry> .
|
דוגמאות לתעריפים בלעדיים
אחוז המשתמשים
בדוגמה הבאה של תעריפים בלעדיים מצוין שהתעריף יוצע באופן אקראי ל-20% מהמשתמשים:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="20_percent_users">
<UserRateCondition>
<MaxUsersPercent>20</MaxUsersPercent>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
משתמשים בבריטניה ובנייד
בדוגמה הבאה של תעריפים מותנים מוגדר כלל תעריפים שתואם לכל המשתמשים שמחפשים בבריטניה באמצעות מכשיר נייד, באמצעות <UserRateCondition>
מוטבע:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="gb_mobile">
<UserRateCondition op="all">
<UserCountry>GB</UserCountry>
<UserDeviceType>mobile</UserDeviceType>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
יפן ולא יפן
בדוגמה הבאה של שיעורים מותנים מוצג כלל אחד של שיעור שמתאים למשתמשים ביפן וכלל אחר של שיעור שמתאים למשתמשים בשאר העולם (RoW):
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="jp">
<UserRateCondition>
<UserCountry>jp</UserCountry>
</UserRateCondition>
</RateRule>
<RateRule id="row_not_jp">
<UserRateCondition op="none">
<UserCountry>jp</UserCountry>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
כל, חלק ואף אחד
בדוגמה הבאה של מחירים מותנים אפשר לראות איך משתמשים במאפיין op
כדי להתאים לכמה תנאים בדרכים שונות באמצעות הערכים any
, all
ו-none
. לדוגמה, כמו שמוצג בתנאי au_nz
, אפשר להשתמש בכל אחת מהאפשרויות כדי להתאים משתמשים בכל אחת מכמה מדינות. כפי שמוצג בכלל התעריף au_nz_mobile_tablet
, אפשר להשתמש ב-all
כדי לדרוש מהמשתמשים לעמוד במספר תנאים. כלל התעריף row_mobile_tablet
יתאים למשתמשים שנמצאים בשאר העולם (שורה), לא כולל אוסטרליה וניו זילנד, וגם לתנאי mobile_tablet
.
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<UserRateCondition id="au_nz" op="any">
<UserCountry>AU</UserCountry>
<UserCountry>NZ</UserCountry>
</UserRateCondition>
<UserRateCondition id="mobile_tablet" op="any">
<UserDeviceType>mobile</UserDeviceType>
<UserDeviceType>tablet</UserDeviceType>
</UserRateCondition>
<RateRule id="au_nz_mobile_tablet">
<UserRateCondition op="all">
<UserRateCondition reference_id="au_nz"/>
<UserRateCondition reference_id="mobile_tablet"/>
</UserRateCondition>
</RateRule>
<RateRule id="row_mobile_tablet">
<UserRateCondition op="all">
<UserRateCondition op="none">
<UserRateCondition reference_id="au_nz"/>
</UserRateCondition>
<UserRateCondition reference_id="mobile_tablet"/>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
דוגמאות לתעריפים פרטיים
מחיר לחברי מועדון גלוי 1
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="member_visible">
<UserRateCondition>
<AlwaysEligibleMembershipProgram>[enter your program here]</AlwaysEligibleMembershipProgram>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
מחיר לחברים גלוי 2
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="member_visible_es_only">
<UserRateCondition op="all">
<AlwaysEligibleMembershipProgram>[enter your program here]</AlwaysEligibleMembershipProgram>
<UserCountry>es</UserCountry>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
שיעור 1 של רשימת החברים בקהל
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="audience_list">
<UserRateCondition>
<UserListId>[enter an audience list id]</UserListId>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
שיעור ההמרה של רשימת קהלים 2
בדוגמה הזו של מחירים פרטיים אפשר לראות איך מציינים מחיר לחברי מועדון שמוצג בממשק המשתמש בכמה רשימות קהלים:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<UserRateCondition op="all">
<AlwaysEligibleMembershipProgram>[enter the program name here]</AlwaysEligibleMembershipProgram>
<UserRateCondition op="any">
<UserListId>[enter one audience list id here]</UserListId>
<UserListId>[enter another audience list id here]</UserListId>
</UserRateCondition>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
<RateIneligibility>
מציין איך להציג את הטיפול בממשק המשתמש שבו המחיר לחברי מועדון מוסתר. אם לא כוללים את ההגדרה הזו, לא מוצג ממשק משתמש מוסתר עם המחיר לחברי מועדון.
כדי להשתמש ב-<RateIneligibility>
ב-<RateRule>
, צריך לציין גם את <MembershipProgram>
ברכיב <UserRateCondition>
של <RateRule>
.
הרכיב <RateIneligibility>
מופיע במיקום הבא בהיררכיית ה-XML של כללי התמחור:
+<RateRuleSettings>
+<UserRateCondition>
+<RateRule>
+<UserRateCondition>
+<RateIneligibility>
+<RateModification>
תחביר
התחביר של רכיב <RateIneligibility>
הוא:
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings ...>
<UserRateCondition ...>
...
</UserRateCondition>
<RateRule ...>
<UserRateCondition ...>
...
<!-- Required when using RateIneligibility -->
<MembershipProgram>program_name</MembershipProgram>
...
</UserRateCondition>
<RateIneligibility>
<IneligibilityType>[exact|price_band|existence]</IneligibilityType>
<IneligibilityReason>[program_member]</IneligibilityReason>
</RateIneligibility>
</RateRule>
</RateRuleSettings>
מאפיינים
לרכיב <RateIneligibility>
אין מאפיינים.
רכיבי צאצא
הרכיב <RateIneligibility>
כולל את רכיבי הבן הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<IneligibilityType> |
Required | enum | הגדרת אופן התיאור של המחיר המוסתר בטקסט שיוצג לצד המחיר שנמחק. הערכים החוקיים כוללים:
מידע נוסף על שינויים בממשק המשתמש זמין במאמר פרטים ודוגמאות של מחירים פרטיים. |
<IneligibilityReason> |
Required | enum | הערכים החוקיים כוללים:
|
דוגמאות לתעריפים פרטיים
בקטע הזה יש דוגמאות מוסתרות של מחירים לחברי מועדון (בסיסי) ודוגמאות מוסתרות של מחירים לחברי מועדון (כמה תנאים). אפשר גם להציג את המחירים לחברי מועדון לקבוצות משנה של משתמשים. כדי להציג מחירים לחברי מועדון, צריך לשלוח קודם את המחיר לחברי מועדון של חבילת החדר הזולה ביותר, ואז את המחירים של שאר חבילות החדרים. אסור להשתמש בכמה סוגי תמחור לחברי מועדון.
דוגמאות מופיעות במאמר דוגמאות לתעריפים פרטיים.
דוגמאות מוסתרות למחיר לחברי מועדון (בסיסי)
הנחה מדויקת
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>exact</IneligibilityType>
</RateIneligibility>
<UserRateCondition>
<MembershipProgram>[enter program name here]</MembershipProgram>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
הנחה על כרטיס Band
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>price_band</IneligibilityType>
</RateIneligibility>
<UserRateCondition>
<MembershipProgram>[enter program name here]</MembershipProgram>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
הנחה על רמז
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>existence</IneligibilityType>
</RateIneligibility>
<UserRateCondition>
<MembershipProgram>[enter program name here]</MembershipProgram>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
דוגמאות להסתרה של מחיר לחברי מועדון (כמה תנאים)
op="any"
מחיר לחברי מועדון + מחיר לחברי מועדון מוסתר (הנחה על קיום) למי שאינו חבר
בדוגמה הזו של מחירים פרטיים מצוין existence
סוג המחיר לחברי מועדון
הסתרת רכיבי ממשק המשתמש, שיוצגו למשתמשים ולא לרשימת קהלים. המשתמשים ברשימת החברים בקהל יראו את שיעור החשיפה של הקהל.
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>existence</IneligibilityType>
</RateIneligibility>
<UserRateCondition op="any">
<MembershipProgram>[enter program name here]</MembershipProgram>
<UserListId>[enter you audience list id here]</UserListId>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
op="all"
מחיר לחברי מועדון מוסתר רק ממשתמשים ברשימת הקהלים
בדוגמה הזו של מחיר מיוחד לחברי מועדון, צוין exact
סוג המחיר המיוחד לחברי מועדון hidden
UI treatment, ששונה באמצעות הטקסט הנוסף plus free Wi-Fi. השינוי הזה בממשק המשתמש יוצג למשתמשים שתואמים לרשימת הקהלים.
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program_for_audience_list">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>exact</IneligibilityType>
</RateIneligibility>
<RateModification>
<HotelAmenity>free_wifi</HotelAmenity>
</RateModification>
<UserRateCondition op="all">
<MembershipProgram>[enter program name here]</MembershipProgram>
<UserListId>[enter you audience list id here]</UserListId>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
ממשק משתמש שקוף/גלוי
בדוגמה הזו מוצגות שתי דרכים להצגת ממשק משתמש (ממשק שקוף וממשק גלוי) למשתמשים שנכללים ברשימת חברי המועדון, ומוצגים מחירים מוסתרים לכל שאר המשתמשים.
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>existence</IneligibilityType>
</RateIneligibility>
<UserRateCondition op="any">
<MembershipProgram>[enter program name here]</MembershipProgram>
<UserRateCondition op="all">
<UserListId>[enter you audience list id here]</UserListId>
<AlwaysEligibleMembershipProgram>program_name</AlwaysEligibleMembershipProgram>
</UserRateCondition>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
<RateModification>
משנה את העיצוב של ממשק המשתמש עבור מחירים פרטיים.
האלמנט <RateModification>
מופיע במקום הבא בהיררכיית ה-XML של כללי התמחור:
+<RateRuleSettings>
+<UserRateCondition>
+<RateRule>
+<UserRateCondition>
+<RateIneligibility>
+<RateModification>
מאפיינים
לרכיב <RateModification>
אין מאפיינים.
רכיבי צאצא
הרכיב <RateModification>
כולל את רכיבי הבן הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<HotelAmenity> |
Optional | enum | אפשר לשלב עם הערכים החוקיים כוללים:
|
<PriceMultiplier> |
Optional | float | המחיר משתנה על ידי הכפלת הערך הזה במחיר הבסיסי, במיסים ובעמלות. לדוגמה, אם כך תוכלו להחיל הנחה על כל המחירים עם כלל מחיר מסוים. |
דוגמאות לתעריפים פרטיים
שירותי מלון
מחיר לחברי מועדון מוסתר מכל המשתמשים (הנחות על שהייה) + Wi-Fi חינם
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="membership_program">
<RateIneligibility>
<IneligibilityReason>program_member</IneligibilityReason>
<IneligibilityType>price_band</IneligibilityType>
</RateIneligibility>
<RateModification>
<HotelAmenity>free_wifi</HotelAmenity>
</RateModification>
<UserRateCondition>
<MembershipProgram>[enter program name here]</MembershipProgram>
</UserRateCondition>
</RateRule>
</RateRuleSettings>
מכפיל מחיר
החלת הנחה של 5% על התעריפים לנייד בפיד המחירים
<?xml version="1.0" encoding="UTF-8"?>
<RateRuleSettings>
<RateRule id="mobile">
<RateModification>
<PriceMultiplier>0.95</PriceMultiplier>
</RateModification>
<UserRateCondition>
<UserDeviceType>mobile</UserDeviceType>
</UserRateCondition>
</RateRule>
</RateRuleSettings>