public interface OrderTotalIf
There is an API call getOrderTotals()
which is used to populate the order with an
array of order totals.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
This is the name of the order total module.
|
java.lang.String |
getCode() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.math.BigDecimal |
getDiscountAmount()
The discount amount defined by the promotion.
|
java.math.BigDecimal |
getDiscountPercent()
The discount percentage defined by the promotion.
|
int |
getId() |
int |
getOrderId()
The id of the order that the order total belongs to
|
OrderTotalIf[] |
getOrderTotals()
An array of OrderTotals which is populated if the OrderTotal module returns more than one
result.
|
int |
getPromotionId()
The promotion id only when the order total contains the results of a promotion.
|
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.math.BigDecimal |
getTax()
In some cases an OrderTotal can modify the tax calculated for an order.
|
java.math.BigDecimal |
getTaxRate()
The tax rate applicable for the order total
|
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 |
setCode(java.lang.String code) |
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setDiscountAmount(java.math.BigDecimal discountAmount)
The discount amount defined by the promotion.
|
void |
setDiscountPercent(java.math.BigDecimal discountPercent)
The discount percentage defined by the promotion.
|
void |
setId(int id) |
void |
setOrderId(int orderId)
The id of the order that the order total belongs to
|
void |
setOrderTotals(OrderTotalIf[] orderTotals)
An array of OrderTotals which is populated if the OrderTotal module returns more than one
result.
|
void |
setPromotionId(int promotionId)
The promotion id only when the order total contains the results of a promotion.
|
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 |
setTax(java.math.BigDecimal tax)
In some cases an OrderTotal can modify the tax calculated for an order.
|
void |
setTaxRate(java.math.BigDecimal taxRate)
The tax rate applicable for the order total
|
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.
|
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.java.math.BigDecimal getTax()
void setTax(java.math.BigDecimal tax)
tax
- the tax to setjava.math.BigDecimal getTaxRate()
void setTaxRate(java.math.BigDecimal taxRate)
taxRate
- the taxRate to setint getPromotionId()
void setPromotionId(int promotionId)
promotionId
- the promotionId to setjava.math.BigDecimal getDiscountAmount()
void setDiscountAmount(java.math.BigDecimal discountAmount)
discountAmount
- the discountAmount to setjava.math.BigDecimal getDiscountPercent()
void setDiscountPercent(java.math.BigDecimal discountPercent)
discountPercent
- the discountPercent to setPromotionIf[] 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 setjava.lang.String getCustom4()
void setCustom4(java.lang.String custom4)
custom4
- the custom4 to setjava.lang.String getCustom5()
void setCustom5(java.lang.String custom5)
custom5
- the custom5 to setjava.lang.String getCode()
void setCode(java.lang.String code)
code
- the code to setCopyright © 2018 DS Data Systems UK Ltd.