Class TelcoFunctions
java.lang.Object
de.hybris.platform.b2ctelcoaddon.tags.TelcoFunctions
JSP EL TelcoFunctions. This file contains static methods that are used by JSP EL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTest if a cart has any applied promotion for the specified cart.static booleandoesAppliedPromotionExistForOrderEntry(AbstractOrderData cart, int entryNumber) Test if a cart has an applied promotion for the specified entry number.static booleandoesAppliedPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime) Test if a cart has an applied promotion for the specified entry number and billing time.static booleanTest if a cart has any potential promotion for the specified cart.static booleandoesPotentialPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime) Test if a cart has an potential promotion for the specified entry number and billing time.protected static OrderPriceDatagetOrderPricesForBillingTime(AbstractOrderData cart, BillingTimeData billingTime)
-
Constructor Details
-
TelcoFunctions
public TelcoFunctions()
-
-
Method Details
-
doesAppliedPromotionExistForOrderEntry
public static boolean doesAppliedPromotionExistForOrderEntry(AbstractOrderData cart, int entryNumber) Test if a cart has an applied promotion for the specified entry number.- Parameters:
cart- the cartentryNumber- the entry number- Returns:
- true if there is an applied promotion for the entry number
-
doesAppliedPromotionExistForOrderEntryAndBillingTime
public static boolean doesAppliedPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime) Test if a cart has an applied promotion for the specified entry number and billing time.- Parameters:
cart- the cartentryNumber- the entry numberbillingTime- the billing time- Returns:
- true if there is an applied promotion for the entry number and billing time
-
doesPotentialPromotionExistForOrderEntryAndBillingTime
public static boolean doesPotentialPromotionExistForOrderEntryAndBillingTime(AbstractOrderData cart, int entryNumber, BillingTimeData billingTime) Test if a cart has an potential promotion for the specified entry number and billing time.- Parameters:
cart- the cartentryNumber- the entry numberbillingTime- the billing time- Returns:
- true if there is an potential promotion for the entry number and billing time
-
doesPotentialPromotionExistForOrder
Test if a cart has any potential promotion for the specified cart.- Parameters:
cart- the cart- Returns:
- true if there is any potential promotion for the given cart
-
doesAppliedPromotionExistForOrder
Test if a cart has any applied promotion for the specified cart.- Parameters:
cart- the cart- Returns:
- true if there is any applied promotion for the given cart
-
getOrderPricesForBillingTime
protected static OrderPriceData getOrderPricesForBillingTime(AbstractOrderData cart, BillingTimeData billingTime)
-