com.ibm.commerce.marketing.commands
Interface AddOrderItemWithPromotionCodeOrCouponCmd
-
- All Superinterfaces:
- AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, OrderItemAddCmd, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
- All Known Implementing Classes:
- AddOrderItemWithPromotionCodeOrCouponCmdImpl
public interface AddOrderItemWithPromotionCodeOrCouponCmd extends OrderItemAddCmd
This Controller Command interface is used to add promotion code or coupon to order item(s).
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyrightstatic java.lang.String
defaultCommandClassName
Default implementation class name-
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemAddCmd
badPartNumberErrorView, badPartNumberList, badPartNumberQuantityList, goodPartNumberList, goodPartNumberQuantityList, multiplePartNumberCatalogEntriesList, multiplePartNumberList, multiplePartNumberQuantityList, NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
setGuestToken(java.lang.String aToken)
Sets the string identifier of a guest customer.void
setPromotionCode(java.lang.String pCode)
Sets promotion code.void
setPromotionName(java.lang.String pName)
Sets promotion name.void
setPromotionVersion(java.lang.Integer version)
Sets promotion version.-
Methods inherited from interface com.ibm.commerce.orderitems.commands.OrderItemAddCmd
getNonBuyableCatentryIds, getOrderIds, getOrderItemIds, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setFulfillmentCenterId, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom
-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
IBM Copyright- See Also:
- Constant Field Values
-
defaultCommandClassName
static final java.lang.String defaultCommandClassName
Default implementation class name
-
-
Method Detail
-
setPromotionCode
void setPromotionCode(java.lang.String pCode)
Sets promotion code. Needed when a promotion code is to be added to the current order- Parameters:
pCode
- the promotion code
-
setPromotionName
void setPromotionName(java.lang.String pName)
Sets promotion name. Needed when a coupon is to be issued to the customer and added to current order- Parameters:
pName
- the name of the promotion
-
setPromotionVersion
void setPromotionVersion(java.lang.Integer version)
Sets promotion version. Needed when a coupon is to be issued to the customer and added to current order- Parameters:
version
- set the version for promotion. Promotions with different version numbers are considered different promotions. Among all the promotions with same name in the same store, only one is active at any given time. This one is identified by promotion name, version or revision numbers, and store ID. The rest of them will be marked as obsolete.
-
setGuestToken
void setGuestToken(java.lang.String aToken)
Sets the string identifier of a guest customer. Needed when a coupon is to be issued to a guest customer.- Parameters:
aToken
- the string identifier of the guest customer
-
-