@Entity public class FulfillmentGroupItemImpl extends Object implements FulfillmentGroupItem, Cloneable, CurrencyCodeIdentifiable
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroup |
fulfillmentGroup |
protected Long |
id |
protected OrderItem |
orderItem |
protected BigDecimal |
proratedOrderAdjustment |
protected int |
quantity |
protected List<TaxDetail> |
taxes |
protected BigDecimal |
totalItemAmount |
protected BigDecimal |
totalItemTaxableAmount |
protected BigDecimal |
totalTax |
| Constructor and Description |
|---|
FulfillmentGroupItemImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCloneable(FulfillmentGroupItem fulfillmentGroupItem) |
FulfillmentGroupItem |
clone() |
protected Money |
convertToMoney(BigDecimal amount) |
boolean |
equals(Object obj) |
String |
getCurrencyCode() |
FulfillmentGroup |
getFulfillmentGroup() |
boolean |
getHasProratedOrderAdjustments()
Returns true if this item has pro-rated order adjustments.
|
Long |
getId() |
OrderItem |
getOrderItem() |
Money |
getPrice() |
Money |
getProratedOrderAdjustmentAmount() |
int |
getQuantity() |
Money |
getRetailPrice() |
Money |
getSalePrice() |
FulfillmentGroupStatusType |
getStatus() |
List<TaxDetail> |
getTaxes()
Gets a list of TaxDetail objects, which are taxes that apply directly to this item.
|
Money |
getTotalItemAmount() |
Money |
getTotalItemTaxableAmount() |
Money |
getTotalTax()
Gets the total tax for this item, which is the sum of all taxes for this item.
|
int |
hashCode() |
void |
removeAssociations() |
void |
setFulfillmentGroup(FulfillmentGroup fulfillmentGroup) |
void |
setId(Long id) |
void |
setOrderItem(OrderItem orderItem) |
void |
setProratedOrderAdjustmentAmount(Money proratedOrderAdjustment) |
void |
setQuantity(int quantity) |
void |
setStatus(FulfillmentGroupStatusType status) |
void |
setTaxes(List<TaxDetail> taxes)
Sets the list of TaxDetail objects, which are taxes that apply directly to this item.
|
void |
setTotalItemAmount(Money amount) |
void |
setTotalItemTaxableAmount(Money taxableAmount) |
void |
setTotalTax(Money totalTax)
Sets the total tax for this item, which is the sum of all taxes for this item.
|
protected Long id
protected FulfillmentGroup fulfillmentGroup
protected OrderItem orderItem
protected int quantity
protected BigDecimal totalTax
protected BigDecimal totalItemAmount
protected BigDecimal totalItemTaxableAmount
protected BigDecimal proratedOrderAdjustment
public Long getId()
getId in interface FulfillmentGroupItempublic void setId(Long id)
setId in interface FulfillmentGroupItempublic FulfillmentGroup getFulfillmentGroup()
getFulfillmentGroup in interface FulfillmentGroupItempublic void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
setFulfillmentGroup in interface FulfillmentGroupItempublic OrderItem getOrderItem()
getOrderItem in interface FulfillmentGroupItempublic void setOrderItem(OrderItem orderItem)
setOrderItem in interface FulfillmentGroupItempublic int getQuantity()
getQuantity in interface FulfillmentGroupItempublic void setQuantity(int quantity)
setQuantity in interface FulfillmentGroupItempublic Money getRetailPrice()
getRetailPrice in interface FulfillmentGroupItempublic Money getSalePrice()
getSalePrice in interface FulfillmentGroupItempublic Money getPrice()
getPrice in interface FulfillmentGroupItemprotected Money convertToMoney(BigDecimal amount)
public Money getTotalItemAmount()
getTotalItemAmount in interface FulfillmentGroupItempublic void setTotalItemAmount(Money amount)
setTotalItemAmount in interface FulfillmentGroupItempublic Money getProratedOrderAdjustmentAmount()
getProratedOrderAdjustmentAmount in interface FulfillmentGroupItempublic void setProratedOrderAdjustmentAmount(Money proratedOrderAdjustment)
setProratedOrderAdjustmentAmount in interface FulfillmentGroupItempublic Money getTotalItemTaxableAmount()
getTotalItemTaxableAmount in interface FulfillmentGroupItempublic void setTotalItemTaxableAmount(Money taxableAmount)
setTotalItemTaxableAmount in interface FulfillmentGroupItempublic FulfillmentGroupStatusType getStatus()
getStatus in interface FulfillmentGroupItempublic void setStatus(FulfillmentGroupStatusType status)
setStatus in interface FulfillmentGroupItempublic void removeAssociations()
removeAssociations in interface FulfillmentGroupItempublic List<TaxDetail> getTaxes()
FulfillmentGroupItemgetTaxes in interface FulfillmentGroupItempublic void setTaxes(List<TaxDetail> taxes)
FulfillmentGroupItemsetTaxes in interface FulfillmentGroupItemtaxes - the list of taxes on this itempublic Money getTotalTax()
FulfillmentGroupItemgetTotalTax in interface FulfillmentGroupItempublic void setTotalTax(Money totalTax)
FulfillmentGroupItemsetTotalTax in interface FulfillmentGroupItemtotalTax - the total tax for this itempublic String getCurrencyCode()
getCurrencyCode in interface CurrencyCodeIdentifiablepublic void checkCloneable(FulfillmentGroupItem fulfillmentGroupItem) throws CloneNotSupportedException, SecurityException, NoSuchMethodException
public FulfillmentGroupItem clone()
clone in interface FulfillmentGroupItemclone in class Objectpublic boolean getHasProratedOrderAdjustments()
FulfillmentGroupItemgetHasProratedOrderAdjustments in interface FulfillmentGroupItemCopyright © 2015. All Rights Reserved.