Interface OrderDiscount
- All Superinterfaces:
BusinessObject
- All Known Implementing Classes:
OrderDiscountBean
Interface representing an order discount within the system. An order discount
can be thought of as a
Discount
that has been
applied to a user's order, either on the level of the order as whole or on
the level of a sinlge order item.
When the application needs to create an instance that implements
OrderDiscount
,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"orderDiscountImplementer" setting in the
appComponents.properties
file.
The default "orderDiscountImplementer" is
OrderDiscountBean
.
- Author:
- David Tobey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
int
getFloor()
getName()
getOrder()
int
int
getTotal()
void
setCartItemsType
(String cartItemsType) void
setCartItemsValue
(String cartItemsValue) void
setCeiling
(Double ceiling) void
void
setCouponCode
(String couponCode) void
setDiscount
(Discount discount) void
setDiscountID
(Integer discountID) void
setDiscountOrder
(int discountOrder) void
void
void
void
void
setItemsAppliesType
(String itemsAppliesType) void
setItemsAppliesValue
(String itemsAppliesValue) void
void
void
setOrderDiscountID
(int orderDiscountID) void
setOrderID
(int orderID) void
setOrderItem
(OrderItem orderItem) void
setOrderItemID
(Integer orderItemID) void
void
setRewardType
(String rewardType) void
void
setUsersAppliesType
(String usersAppliesType) void
setUsersAppliesValue
(String usersAppliesValue) Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Method Details
-
getDiscount
Discount getDiscount() -
setDiscount
-
getOrder
Order getOrder() -
setOrder
-
getOrderItem
OrderItem getOrderItem() -
setOrderItem
-
getCode
String getCode() -
setCode
-
getCouponCode
String getCouponCode() -
setCouponCode
-
getExtra1
String getExtra1() -
setExtra1
-
getExtra2
String getExtra2() -
setExtra2
-
getExtra3
String getExtra3() -
setExtra3
-
getItemsAppliesType
String getItemsAppliesType() -
setItemsAppliesType
-
getItemsAppliesValue
String getItemsAppliesValue() -
setItemsAppliesValue
-
getUsersAppliesType
String getUsersAppliesType() -
setUsersAppliesType
-
getUsersAppliesValue
String getUsersAppliesValue() -
setUsersAppliesValue
-
getCartItemsType
String getCartItemsType() -
setCartItemsType
-
getCartItemsValue
String getCartItemsValue() -
setCartItemsValue
-
getName
String getName() -
setName
-
getReward
Double getReward() -
setReward
-
getRewardType
String getRewardType() -
setRewardType
-
getCeiling
Double getCeiling() -
setCeiling
-
getDiscountID
Integer getDiscountID() -
setDiscountID
-
getFloor
Double getFloor() -
setFloor
-
getOrderDiscountID
int getOrderDiscountID() -
setOrderDiscountID
void setOrderDiscountID(int orderDiscountID) -
getOrderID
int getOrderID() -
setOrderID
void setOrderID(int orderID) -
getOrderItemID
Integer getOrderItemID() -
setOrderItemID
-
getTotal
Double getTotal() -
setTotal
-
getDiscountOrder
int getDiscountOrder() -
setDiscountOrder
void setDiscountOrder(int discountOrder)
-