|
|||||||||
| 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. |
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
int |
getId()
|
int |
getOrderId()
|
OrderTotalIf[] |
getOrderTotals()
An array of OrderTotals which is populated if the OrderTotal module returns more than one result. |
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 |
setCustom1(java.lang.String custom1)
|
void |
setCustom2(java.lang.String custom2)
|
void |
setCustom3(java.lang.String custom3)
|
void |
setId(int id)
|
void |
setOrderId(int orderId)
|
void |
setOrderTotals(OrderTotalIf[] orderTotals)
An array of OrderTotals which is populated if the OrderTotal module returns more than one result. |
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.OrderTotalIf[] getOrderTotals()
void setOrderTotals(OrderTotalIf[] orderTotals)
orderTotals - the orderTotals to setjava.lang.String getCustom1()
void setCustom1(java.lang.String custom1)
custom1 - the custom1 to setjava.lang.String getCustom2()
void setCustom2(java.lang.String custom2)
custom2 - the custom2 to setjava.lang.String getCustom3()
void setCustom3(java.lang.String custom3)
custom3 - the custom3 to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||