Class FulfillmentGroupItemImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentGroupItemImpl
- All Implemented Interfaces:
Serializable,Cloneable,MultiTenantCloneable<FulfillmentGroupItem>,CurrencyCodeIdentifiable,FulfillmentGroupItem
@Entity
public class FulfillmentGroupItemImpl
extends Object
implements FulfillmentGroupItem, Cloneable, 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(MultiTenantCopyContext context, FulfillmentGroupItem cloned) protected MoneyconvertToMoney(BigDecimal amount) <G extends FulfillmentGroupItem>
CreateResponse<G>booleanbooleanReturns true if this item has pro-rated order adjustments.getId()getPrice()intgetTaxes()Gets a list of TaxDetail objects, which are taxes that apply directly to this item.Gets the total tax for this item, which is the sum of all taxes for this item.inthashCode()voidvoidsetFulfillmentGroup(FulfillmentGroup fulfillmentGroup) voidvoidsetOrderItem(OrderItem orderItem) voidsetProratedOrderAdjustmentAmount(Money proratedOrderAdjustment) voidsetQuantity(int quantity) voidsetStatus(FulfillmentGroupStatusType status) voidSets the list of TaxDetail objects, which are taxes that apply directly to this item.voidsetTotalItemAmount(Money amount) voidsetTotalItemTaxableAmount(Money taxableAmount) voidsetTotalTax(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
- Specified by:
getRetailPricein interfaceFulfillmentGroupItem
-
getSalePrice
- Specified by:
getSalePricein interfaceFulfillmentGroupItem
-
getPrice
- Specified by:
getPricein interfaceFulfillmentGroupItem
-
convertToMoney
-
getTotalItemAmount
- Specified by:
getTotalItemAmountin interfaceFulfillmentGroupItem
-
setTotalItemAmount
- Specified by:
setTotalItemAmountin interfaceFulfillmentGroupItem
-
getProratedOrderAdjustmentAmount
- Specified by:
getProratedOrderAdjustmentAmountin interfaceFulfillmentGroupItem
-
setProratedOrderAdjustmentAmount
- Specified by:
setProratedOrderAdjustmentAmountin interfaceFulfillmentGroupItem
-
getTotalItemTaxableAmount
- Specified by:
getTotalItemTaxableAmountin interfaceFulfillmentGroupItem
-
setTotalItemTaxableAmount
- 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
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
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 interfaceCurrencyCodeIdentifiable
-
checkCloneable
public void checkCloneable(FulfillmentGroupItem fulfillmentGroupItem) throws CloneNotSupportedException, SecurityException, NoSuchMethodException -
clone
- Specified by:
clonein interfaceFulfillmentGroupItem- Overrides:
clonein classObject
-
createOrRetrieveCopyInstance
public <G extends FulfillmentGroupItem> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<FulfillmentGroupItem>- Throws:
CloneNotSupportedException
-
cloneTaxDetails
protected void cloneTaxDetails(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()
-