public class RedeemPromotionCodeToOrderCOTaskCmdImpl extends AbstractRedeemPromotionCodeToOrderTaskCmdImpl implements RedeemPromotionCodeToOrderTaskCmd
Constructor and Description |
---|
RedeemPromotionCodeToOrderCOTaskCmdImpl() |
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 is used to mark a promotion code as redeemed for an order with unique promotion code implementation.
|
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 RedeemPromotionCodeToOrderCOTaskCmdImpl()
protected void redeemUniquePromotionCodeToOrder(java.lang.Long orderId, java.lang.Integer promotionId, java.lang.String code) throws ECException
public void reset()
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)