קובץ ה-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 |
חובה | string |
מזהה ייחודי של כלל התמחור. ההפניה למזהה הזה כוללת באמצעות המאפיין אפשר להזין עד 40 תווים. |
רכיבי צאצא
הרכיב <RateRule>
כולל את רכיבי הצאצא הבאים:
רכיב צאצא | חובה? | סוג | תיאור |
---|---|---|---|
<RateIneligibility> |
Optional | <RateIneligibility> |
מציינת את הערכים שקובעים את אופן הטיפול הספציפי בממשק המשתמש לתעריף של <MembershipProgram> .
תקף רק אם צוין |
<UserRateCondition> |
Required | <UserRateCondition> |
מגדיר תנאי אחד או יותר שמתקיימים בו תנאים שהתוצאה שלהם היא הצגת תעריפים בלעדיים או פרטיים. אפשר להגדיר תנאים בתוך השורה באמצעות רכיבי צאצא של עם זאת, שימו לב שכש- |
<RateModification> |
Optional | <RateModification> |
שינוי הטיפול בממשק המשתמש לתעריפים פרטיים. |
<PromoCode> |
Optional | string | מציינת קוד שישויך לתעריף אם כלל התמחור הזה
יוחל. משתקפת במשתנה PROMO-CODE של דף הנחיתה. |
<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>
הנחה על רצועה
<?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
, ששונה מהטקסט הנוסף, "וגם 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>