public class OrderPrice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
OrderPrice() |
Modifier and Type | Method and Description |
---|---|
PriceAdjustment[] |
getAdjustments()
an array of all the discounts
|
java.lang.String |
getCurrencyCode()
the currency code
|
double |
getDiscountAmount()
the total amount of order discounts
|
ItemPrice[] |
getItemPrices()
an array of the item costs
|
java.lang.String |
getOrderId()
the order id
|
double |
getRawSubtotal()
the undiscounted subtotal of the order
|
double |
getShipping()
the shipping cost of the order
|
ShippingPrice[] |
getShippingPrices()
an array of the shipping costs
|
double |
getSubtotal()
the discounted subtotal of the order
|
double |
getTax()
the tax on the order
|
TaxPrice |
getTaxPrice()
an object describing the taxes
|
double |
getTotalPrice()
the current working total, including all discounts
|
boolean |
isDiscounted()
boolean indicating if the order was discounted
|
void |
setAdjustments(PriceAdjustment[] pAdjustments)
an array of all the discounts
|
void |
setCurrencyCode(java.lang.String pCurrencyCode)
the currency code
|
void |
setDiscountAmount(double pDiscountAmount)
the total amount of order discounts
|
void |
setDiscounted(boolean pDiscounted)
boolean indicating if the order was discounted
|
void |
setItemPrices(ItemPrice[] pItemPrices)
an array of the item costs
|
void |
setOrderId(java.lang.String pOrderId)
the order id
|
void |
setRawSubtotal(double pRawSubtotal)
the undiscounted subtotal of the order
|
void |
setShipping(double pShipping)
the shipping cost of the order
|
void |
setShippingPrices(ShippingPrice[] pShippingPrices)
an array of the shipping costs
|
void |
setSubtotal(double pSubtotal)
the discounted subtotal of the order
|
void |
setTax(double pTax)
the tax on the order
|
void |
setTaxPrice(TaxPrice pTaxPrice)
an object describing the taxes
|
void |
setTotalPrice(double pTotalPrice)
the current working total, including all discounts
|
java.lang.String |
toString()
Returns a string form of this price information
|
public void setOrderId(java.lang.String pOrderId)
pOrderId
- new value to setpublic java.lang.String getOrderId()
public void setCurrencyCode(java.lang.String pCurrencyCode)
pCurrencyCode
- new value to setpublic java.lang.String getCurrencyCode()
public void setRawSubtotal(double pRawSubtotal)
pRawSubtotal
- new value to setpublic double getRawSubtotal()
public void setSubtotal(double pSubtotal)
pSubtotal
- new value to setpublic double getSubtotal()
public void setTax(double pTax)
pTax
- new value to setpublic double getTax()
public void setShipping(double pShipping)
pShipping
- new value to setpublic double getShipping()
public void setTotalPrice(double pTotalPrice)
pTotalPrice
- new value to setpublic double getTotalPrice()
public void setDiscountAmount(double pDiscountAmount)
pDiscountAmount
- new value to setpublic double getDiscountAmount()
public void setDiscounted(boolean pDiscounted)
pDiscounted
- new value to setpublic boolean isDiscounted()
public void setAdjustments(PriceAdjustment[] pAdjustments)
pAdjustments
- new value to setpublic PriceAdjustment[] getAdjustments()
public void setTaxPrice(TaxPrice pTaxPrice)
pTaxPrice
- new value to setpublic TaxPrice getTaxPrice()
public void setShippingPrices(ShippingPrice[] pShippingPrices)
pShippingPrices
- new value to setpublic ShippingPrice[] getShippingPrices()
public void setItemPrices(ItemPrice[] pItemPrices)
pItemPrices
- new value to setpublic ItemPrice[] getItemPrices()
public java.lang.String toString()
toString
in class java.lang.Object