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 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.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Methods inherited from interface com.ibm.commerce.order.calculation.ApplyCalculationUsageCmd
checkAppliedItems, getAppliedItems, setItems, setTaxCategoryIds
 
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
 
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME