com.ibm.commerce.couponredemption.commands
Interface RedeemCouponCmd
- All Superinterfaces:
- AccCommand, ControllerCommand, ECCommand, Protectable
- All Known Implementing Classes:
- RedeemCouponCmdImpl
- public interface RedeemCouponCmd
- extends ControllerCommand
This command is invoked when the user asks to redeem her eCoupons before preparing
order and it display a set of eCoupons that can be applied to this order.
The input to this command is :
The orderID of the order for which applicable eCoupon are to be found.
First the temporary and permanent table are cleaned up, which stores the eCoupon discount. Then
the eCoupons for this shopper are found out from CPWALLET with state as USABLE. The CheckValidityCmd
command is called to find the coupons that are not expired and for not expired coupons
CheckApplicabilityCmd command is called to find out which eCoupons are applicable for this order. For
applicable eCoupons, CalculateDiscountAmtCmd command is called to calculate the discount amount
and the view command is redirected to show the applicable coupons and corresponding discounts.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName