Class FulfillmentGroupItemImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentGroupItemImpl
- All Implemented Interfaces:
Serializable,Cloneable,org.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroupItem>,org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable,FulfillmentGroupItem
@Entity
public class FulfillmentGroupItemImpl
extends Object
implements FulfillmentGroupItem, Cloneable, org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FulfillmentGroupprotected Longprotected OrderItemprotected BigDecimalprotected intprotected BigDecimalprotected BigDecimalprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCloneable(FulfillmentGroupItem fulfillmentGroupItem) clone()protected voidcloneTaxDetails(org.broadleafcommerce.common.copy.MultiTenantCopyContext context, FulfillmentGroupItem cloned) protected org.broadleafcommerce.common.money.MoneyconvertToMoney(BigDecimal amount) <G extends FulfillmentGroupItem>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleanbooleanReturns true if this item has pro-rated order adjustments.getId()org.broadleafcommerce.common.money.MoneygetPrice()org.broadleafcommerce.common.money.Moneyintorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneygetTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this item.org.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneyGets the total tax for this item, which is the sum of all taxes for this item.inthashCode()voidvoidsetFulfillmentGroup(FulfillmentGroup fulfillmentGroup) voidvoidsetOrderItem(OrderItem orderItem) voidsetProratedOrderAdjustmentAmount(org.broadleafcommerce.common.money.Money proratedOrderAdjustment) voidsetQuantity(int quantity) voidsetStatus(FulfillmentGroupStatusType status) voidSets the list of TaxDetail objects, which are taxes that apply directly to this item.voidsetTotalItemAmount(org.broadleafcommerce.common.money.Money amount) voidsetTotalItemTaxableAmount(org.broadleafcommerce.common.money.Money taxableAmount) voidsetTotalTax(org.broadleafcommerce.common.money.Money totalTax) Sets the total tax for this item, which is the sum of all taxes for this item.
-
Field Details
-
id
-
fulfillmentGroup
-
orderItem
-
quantity
protected int quantity -
taxes
-
totalTax
-
totalItemAmount
-
totalItemTaxableAmount
-
proratedOrderAdjustment
-
-
Constructor Details
-
FulfillmentGroupItemImpl
public FulfillmentGroupItemImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFulfillmentGroupItem
-
setId
- Specified by:
setIdin interfaceFulfillmentGroupItem
-
getFulfillmentGroup
- Specified by:
getFulfillmentGroupin interfaceFulfillmentGroupItem
-
setFulfillmentGroup
- Specified by:
setFulfillmentGroupin interfaceFulfillmentGroupItem
-
getOrderItem
- Specified by:
getOrderItemin interfaceFulfillmentGroupItem
-
setOrderItem
- Specified by:
setOrderItemin interfaceFulfillmentGroupItem
-
getQuantity
public int getQuantity()- Specified by:
getQuantityin interfaceFulfillmentGroupItem
-
setQuantity
public void setQuantity(int quantity) - Specified by:
setQuantityin interfaceFulfillmentGroupItem
-
getRetailPrice
public org.broadleafcommerce.common.money.Money getRetailPrice()- Specified by:
getRetailPricein interfaceFulfillmentGroupItem
-
getSalePrice
public org.broadleafcommerce.common.money.Money getSalePrice()- Specified by:
getSalePricein interfaceFulfillmentGroupItem
-
getPrice
public org.broadleafcommerce.common.money.Money getPrice()- Specified by:
getPricein interfaceFulfillmentGroupItem
-
convertToMoney
-
getTotalItemAmount
public org.broadleafcommerce.common.money.Money getTotalItemAmount()- Specified by:
getTotalItemAmountin interfaceFulfillmentGroupItem
-
setTotalItemAmount
public void setTotalItemAmount(org.broadleafcommerce.common.money.Money amount) - Specified by:
setTotalItemAmountin interfaceFulfillmentGroupItem
-
getProratedOrderAdjustmentAmount
public org.broadleafcommerce.common.money.Money getProratedOrderAdjustmentAmount()- Specified by:
getProratedOrderAdjustmentAmountin interfaceFulfillmentGroupItem
-
setProratedOrderAdjustmentAmount
public void setProratedOrderAdjustmentAmount(org.broadleafcommerce.common.money.Money proratedOrderAdjustment) - Specified by:
setProratedOrderAdjustmentAmountin interfaceFulfillmentGroupItem
-
getTotalItemTaxableAmount
public org.broadleafcommerce.common.money.Money getTotalItemTaxableAmount()- Specified by:
getTotalItemTaxableAmountin interfaceFulfillmentGroupItem
-
setTotalItemTaxableAmount
public void setTotalItemTaxableAmount(org.broadleafcommerce.common.money.Money taxableAmount) - Specified by:
setTotalItemTaxableAmountin interfaceFulfillmentGroupItem
-
getStatus
- Specified by:
getStatusin interfaceFulfillmentGroupItem
-
setStatus
- Specified by:
setStatusin interfaceFulfillmentGroupItem
-
removeAssociations
public void removeAssociations()- Specified by:
removeAssociationsin interfaceFulfillmentGroupItem
-
getTaxes
Description copied from interface:FulfillmentGroupItemGets a list of TaxDetail objects, which are taxes that apply directly to this item. The amount in each TaxDetail takes into account the quantity of this item- Specified by:
getTaxesin interfaceFulfillmentGroupItem- Returns:
- a list of taxes that apply to this item
-
setTaxes
Description copied from interface:FulfillmentGroupItemSets the list of TaxDetail objects, which are taxes that apply directly to this item. The amount in each TaxDetail must take into account the quantity of this item- Specified by:
setTaxesin interfaceFulfillmentGroupItem- Parameters:
taxes- the list of taxes on this item
-
getTotalTax
public org.broadleafcommerce.common.money.Money getTotalTax()Description copied from interface:FulfillmentGroupItemGets the total tax for this item, which is the sum of all taxes for this item. This total is calculated in the TotalActivity stage of the pricing workflow.- Specified by:
getTotalTaxin interfaceFulfillmentGroupItem- Returns:
- the total tax for this item
-
setTotalTax
public void setTotalTax(org.broadleafcommerce.common.money.Money totalTax) Description copied from interface:FulfillmentGroupItemSets the total tax for this item, which is the sum of all taxes for this item. This total should only be set during the TotalActivity stage of the pricing workflow.- Specified by:
setTotalTaxin interfaceFulfillmentGroupItem- Parameters:
totalTax- the total tax for this item
-
getCurrencyCode
- Specified by:
getCurrencyCodein interfaceorg.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable
-
checkCloneable
public void checkCloneable(FulfillmentGroupItem fulfillmentGroupItem) throws CloneNotSupportedException, SecurityException, NoSuchMethodException -
clone
- Specified by:
clonein interfaceFulfillmentGroupItem- Overrides:
clonein classObject
-
createOrRetrieveCopyInstance
public <G extends FulfillmentGroupItem> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<FulfillmentGroupItem>- Throws:
CloneNotSupportedException
-
cloneTaxDetails
protected void cloneTaxDetails(org.broadleafcommerce.common.copy.MultiTenantCopyContext context, FulfillmentGroupItem cloned) throws CloneNotSupportedException - Throws:
CloneNotSupportedException
-
getHasProratedOrderAdjustments
public boolean getHasProratedOrderAdjustments()Description copied from interface:FulfillmentGroupItemReturns true if this item has pro-rated order adjustments.- Specified by:
getHasProratedOrderAdjustmentsin interfaceFulfillmentGroupItem- Returns:
-
equals
-
hashCode
public int hashCode()
-