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()
int
int
boolean
boolean
getName()
void
setActive
(boolean isActive) void
setCartItemsType
(String cartItemsType) void
setCartItemsValue
(String cartItemsValue) void
void
setCouponCode
(String couponCode) void
setDescription
(String description) void
setDiscountID
(int discountID) void
setDiscountInformation
(Map discountInformation) void
setDiscountOrder
(int discountOrder) void
setDiscountRanges
(Collection discountRanges) void
setExpirationDate
(String expirationDate) void
void
void
void
setIsActive
(boolean isActive) void
setIsTimesPerCustomer
(boolean isTimesPerCustomer) void
setItemsAppliesType
(String itemsAppliesType) void
setItemsAppliesValue
(String itemsAppliesValue) void
setMaxTimesUsed
(Integer maxTimesUsed) void
void
setOrderItem
(OrderItem orderItem) void
setOrderItemID
(Integer orderItemID) void
setOrderItems
(Collection orderItems) void
void
setRewardType
(String rewardType) void
setSkuDiscounts
(Collection skuDiscounts) void
setStartDate
(String startDate) void
setTimesUsed
(Integer timesUsed) void
setTotalAmount
(Double totalAmount) void
setTotalQuantity
(Integer totalQuantity) void
setTotalWeight
(Double totalWeight) void
setUsersAppliesType
(String usersAppliesType) void
setUsersAppliesValue
(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
-