|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OrderTotalIf
An order may have an array of OrderTotal objects. Each OrderTotal object is created by an
OrderTotal module. Modules may be enabled / disabled using the Admin App so that you can decide
whether your order shows tax, shipping charges, subtotal, discount etc.
There is an API call getOrderTotals() which is used to populate the order with an
array of order totals.
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
This is the name of the order total module. |
int |
getId()
|
int |
getOrderId()
|
PromotionIf[] |
getPromotions()
An array to contain the promotion objects used to calculate the discount for a discount order total module. |
int |
getSortOrder()
The sort order defines the order in which the order total items are added to the order. |
java.lang.String |
getText()
This is the actual text for the value of the order total. |
java.lang.String |
getTitle()
This is the title for the order total which will appear on a print out of the order. |
java.math.BigDecimal |
getValue()
The value is a numeric representation of the text which can be used to add the order totals in order to calculate the final total. |
void |
setClassName(java.lang.String className)
This is the name of the order total module. |
void |
setId(int id)
|
void |
setOrderId(int orderId)
|
void |
setPromotions(PromotionIf[] promotions)
An array to contain the promotion objects used to calculate the discount for a discount order total module. |
void |
setSortOrder(int sortOrder)
The sort order defines the order in which the order total items are added to the order. |
void |
setText(java.lang.String text)
This is the actual text for the value of the order total. |
void |
setTitle(java.lang.String title)
This is the title for the order total which will appear on a print out of the order. |
void |
setValue(java.math.BigDecimal value)
The value is a numeric representation of the text which can be used to add the order totals in order to calculate the final total. |
| Method Detail |
|---|
java.lang.String getClassName()
void setClassName(java.lang.String className)
className - The className to set.int getId()
void setId(int id)
id - The id to set.int getOrderId()
void setOrderId(int orderId)
orderId - The orderId to set.int getSortOrder()
void setSortOrder(int sortOrder)
sortOrder - The sortOrder to set.java.lang.String getText()
void setText(java.lang.String text)
text - The text to set.java.lang.String getTitle()
void setTitle(java.lang.String title)
title - The title to set.java.math.BigDecimal getValue()
void setValue(java.math.BigDecimal value)
value - The value to set.PromotionIf[] getPromotions()
void setPromotions(PromotionIf[] promotions)
promotions - The promotions to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||