com.ibm.commerce.couponredemption.commands
Interface ApplyCouponUsageCmd
- All Superinterfaces:
- ApplyCalculationUsageCmd, BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Implementing Classes:
- ApplyCouponUsageCmdImpl
- public interface ApplyCouponUsageCmd
- extends ApplyCalculationUsageCmd
This task command is called from OrderPrepare command to incorpurate the eCoupon discount onto the
Adjustments in ORDERS and ORDERITEMS table. The command is invoked when user asks to redeem the eCoupons
before preparing order.
The input to this command is :
The orderId of the order to which adjustments are to be applied.
The eCoupons which are to be applied to an order are found out from ORCPMAP table. They
are removed from ORCPMAP table and CPITMAP table. The eCoupons are checked for expiry
by calling CheckValidityTaskCmd command. The eCoupons those are not expired for applicability
are checked by calling CheckApplicabilityTaskCmd command. The applicable eCoupons are
called by the CalculateDiscountAmountCmd task command and discount amount in the current order is incorporated.
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
NAME
public static final java.lang.String NAME