public class RedeemPromotionCodeToOrderTaskCmdImpl extends AbstractRedeemPromotionCodeToOrderTaskCmdImpl implements RedeemPromotionCodeToOrderTaskCmd
This class extends AbstractRedeemPromotionCodeToOrderTaskCmdImpl.
This is the default implementation for RedeemPromotionCodeToOrderTaskCmd task command.
Constructor and Description |
---|
RedeemPromotionCodeToOrderTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | performExecute()
This method executes the business logic of this command implementation.
The business logic of this command implementation is responsible for redeeming a promotion code to an order. |
protected void | redeemUniquePromotionCodeToOrder(java.lang.Long orderId, java.lang.Integer promotionId, java.lang.String code)
This method does nothing.
|
void | reset()
This method is called after a command has been executed.
|
void | setOrderId(java.lang.Long orderId)
This is the method declaration to Set Order Id.
|
void | setPromotionCode(java.lang.String promotionCode)
This is the method declaration to Set Promotion Code.
|
void | setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void | setPromotionId(java.lang.Integer promotionId)
This is the method to set promotion id.
|
public RedeemPromotionCodeToOrderTaskCmdImpl()
protected void redeemUniquePromotionCodeToOrder(java.lang.Long orderId, java.lang.Integer promotionId, java.lang.String code) throws ECException
public void performExecute() throws ECException
public void setPromotionId(java.lang.Integer promotionId)
public void setOrderId(java.lang.Long orderId)
public void setPromotionCode(java.lang.String promotionCode)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
public void reset()