|
Note: You can use this component in a price plan, in a pricing macro, in a charging plan, or in a refill plan (refill logic). |
The Date / Time Slot Comparator compares
a date property with one of the following time slots:
Daily
Weekly
Monthly
Yearly
The comparison is true when the date property is inside the selected time slot.
When you insert it in the decision tree, the Date / Time Slot Comparator component creates two separate branches:
A branch that is activated when the comparison is true
A branch that is activated when the comparison is false
When the component is executed, only one branch is activated depending on the test result.
In a price plan, if you want to apply different prices which vary from one time period to another time period, you may need to compare a date with a time slot. To use the Date / Time Slot Comparator inside your price plan, do the following:
After you add the component, choose the date and the time slot.
Describe the pricing of each decision tree branch by using a Function component.
Within the context of a promotional offer that contains a calling plan, you want to implement a special price of $0.02 per minute for telephone calls that start during the weekend. The standard price is $0.04 per minute. The following table presents the information that you need to set up the Date / Time Slot component inside your price plan:
|
Data |
Settings |
|
Property date |
Start date of the phone call |
|
Time slot parameters |
Type: Weekly. From Wednesday at 10:00 PM To Monday at 6:00 AM. |
|
Pricing rules |
Price that is applied to the “is in the time slot” branch: $0.02 per minute. Price that is applied to the “is out of the time slot” branch: $0.04 per minute. |
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Property Name: Provides the list of date properties. Select a date property.
Set the Time Slot parameters: Allows you to compare the date property with a time slot.
Time Slot Type: Provides the list of time slots. Select one of the following time slots:
daily: Represents a part of the day or a whole day
weekly: Represents a part of the week or a whole week
monthly: Represents a part of the month or a whole month
yearly: Represents a part of the year or a whole year
From: Allows you to select or type a start date or time (hour and minute) of the time slot.
at: Allows you to select or type a time (hour and minute).
To: Allows you to select or type an end date or time (hour and minute) of the time slot.
|
Note: The following examples show different formats of time slots:
|