Interface Discount
- All Superinterfaces:
BusinessObject
- All Known Implementing Classes:
DiscountBean
Interface representing a discount within the system.
When the application needs to create an instance that implements
sscDiscount,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"discountImplementer" setting in the appComponents.properties
file.
The default "discountImplementer" is
DiscountBean.
- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()intintbooleanbooleangetName()voidsetActive(boolean isActive) voidsetCartItemsType(String cartItemsType) voidsetCartItemsValue(String cartItemsValue) voidvoidsetCouponCode(String couponCode) voidsetDescription(String description) voidsetDiscountID(int discountID) voidsetDiscountInformation(Map discountInformation) voidsetDiscountOrder(int discountOrder) voidsetDiscountRanges(Collection discountRanges) voidsetExpirationDate(String expirationDate) voidvoidvoidvoidsetIsActive(boolean isActive) voidsetIsTimesPerCustomer(boolean isTimesPerCustomer) voidsetItemsAppliesType(String itemsAppliesType) voidsetItemsAppliesValue(String itemsAppliesValue) voidsetMaxTimesUsed(Integer maxTimesUsed) voidvoidsetOrderItem(OrderItem orderItem) voidsetOrderItemID(Integer orderItemID) voidsetOrderItems(Collection orderItems) voidvoidsetRewardType(String rewardType) voidsetSkuDiscounts(Collection skuDiscounts) voidsetStartDate(String startDate) voidsetTimesUsed(Integer timesUsed) voidsetTotalAmount(Double totalAmount) voidsetTotalQuantity(Integer totalQuantity) voidsetTotalWeight(Double totalWeight) voidsetUsersAppliesType(String usersAppliesType) voidsetUsersAppliesValue(String usersAppliesValue) Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Method Details
-
getCouponCode
String getCouponCode() -
setCouponCode
-
getIsTimesPerCustomer
boolean getIsTimesPerCustomer() -
setIsTimesPerCustomer
void setIsTimesPerCustomer(boolean isTimesPerCustomer) -
getItemsAppliesType
String getItemsAppliesType() -
setItemsAppliesType
-
getItemsAppliesValue
String getItemsAppliesValue() -
setItemsAppliesValue
-
getUsersAppliesType
String getUsersAppliesType() -
setUsersAppliesType
-
getUsersAppliesValue
String getUsersAppliesValue() -
setUsersAppliesValue
-
getCartItemsType
String getCartItemsType() -
setCartItemsType
-
getCartItemsValue
String getCartItemsValue() -
setCartItemsValue
-
getReward
Double getReward() -
setReward
-
getRewardType
String getRewardType() -
setRewardType
-
setActive
void setActive(boolean isActive) -
getCode
String getCode() -
setCode
-
getDescription
String getDescription() -
setDescription
-
getDiscountID
int getDiscountID() -
setDiscountID
void setDiscountID(int discountID) -
getDiscountOrder
int getDiscountOrder() -
setDiscountOrder
void setDiscountOrder(int discountOrder) -
getExpirationDate
String getExpirationDate() -
setExpirationDate
-
getExtra1
String getExtra1() -
setExtra1
-
getExtra2
String getExtra2() -
setExtra2
-
getExtra3
String getExtra3() -
setExtra3
-
getIsActive
boolean getIsActive() -
setIsActive
void setIsActive(boolean isActive) -
getMaxTimesUsed
Integer getMaxTimesUsed() -
setMaxTimesUsed
-
getName
String getName() -
setName
-
getStartDate
String getStartDate() -
setStartDate
-
getTimesUsed
Integer getTimesUsed() -
setTimesUsed
-
getOrderItemID
Integer getOrderItemID() -
setOrderItemID
-
getOrderItem
OrderItem getOrderItem() -
setOrderItem
-
getSkuDiscounts
Collection getSkuDiscounts() -
setSkuDiscounts
-
getDiscountRanges
Collection getDiscountRanges() -
setDiscountRanges
-
getOrderItems
Collection getOrderItems() -
setOrderItems
-
getTotalQuantity
Integer getTotalQuantity() -
setTotalQuantity
-
getTotalAmount
Double getTotalAmount() -
setTotalAmount
-
getTotalWeight
Double getTotalWeight() -
setTotalWeight
-
getDiscountInformation
Map getDiscountInformation() -
setDiscountInformation
-