|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.json.app.J_OrderTotal
public class J_OrderTotal
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.
| Constructor Summary | |
|---|---|
J_OrderTotal()
|
|
| 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()
|
J_OrderTotal[] |
getOrderTotals()
An array of OrderTotals which is populated if the OrderTotal module returns more than one result. |
J_Promotion[] |
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.math.BigDecimal |
getTax()
In some cases an OrderTotal can modify the tax calculated for an 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(J_OrderTotal[] _orderTotals)
An array of OrderTotals which is populated if the OrderTotal module returns more than one result. |
void |
setPromotions(J_Promotion[] _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 |
setTax(java.math.BigDecimal _tax)
In some cases an OrderTotal can modify the tax calculated for an 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J_OrderTotal()
| Method Detail |
|---|
public java.lang.String getClassName()
public void setClassName(java.lang.String _className)
_className - The className to set.public int getId()
public void setId(int _id)
_id - The id to set.public int getOrderId()
public void setOrderId(int _orderId)
_orderId - The orderId to set.public int getSortOrder()
public void setSortOrder(int _sortOrder)
_sortOrder - The sortOrder to set.public java.lang.String getText()
public void setText(java.lang.String _text)
_text - The text to set.public java.lang.String getTitle()
public void setTitle(java.lang.String _title)
_title - The title to set.public java.math.BigDecimal getValue()
public void setValue(java.math.BigDecimal _value)
_value - The value to set.public java.math.BigDecimal getTax()
public void setTax(java.math.BigDecimal _tax)
_tax - the tax to setpublic J_Promotion[] getPromotions()
public void setPromotions(J_Promotion[] _promotions)
_promotions - The promotions to set.public J_OrderTotal[] getOrderTotals()
public void setOrderTotals(J_OrderTotal[] _orderTotals)
_orderTotals - the orderTotals to setpublic java.lang.String getCustom1()
public void setCustom1(java.lang.String _custom1)
_custom1 - the custom1 to setpublic java.lang.String getCustom2()
public void setCustom2(java.lang.String _custom2)
_custom2 - the custom2 to setpublic java.lang.String getCustom3()
public 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 | ||||||||