org.broadleafcommerce.core.order.fulfillment.domain
Class FulfillmentPriceBandImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBandImpl
      extended by org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentPriceBandImpl
All Implemented Interfaces:
Serializable, FulfillmentBand, FulfillmentPriceBand

@Entity
public class FulfillmentPriceBandImpl
extends FulfillmentBandImpl
implements FulfillmentPriceBand

Author:
Phillip Verheyden
See Also:
Serialized Form

Field Summary
protected  Long id
           
protected  BandedPriceFulfillmentOption option
           
protected  BigDecimal retailPriceMinimumAmount
           
 
Fields inherited from class org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBandImpl
resultAmount, resultAmountType
 
Constructor Summary
FulfillmentPriceBandImpl()
           
 
Method Summary
 Long getId()
           
 BandedPriceFulfillmentOption getOption()
          Gets the BandedPriceFulfillmentOption that this band is associated to
 BigDecimal getRetailPriceMinimumAmount()
          Gets the minimum amount that this band is valid for.
 void setId(Long id)
           
 void setOption(BandedPriceFulfillmentOption option)
          Sets the BandedPriceFulfillmentOption to associate with this band
 void setRetailPriceMinimumAmount(BigDecimal retailPriceMinimumAmount)
          Set the minimum amount that this band is valid for.
 
Methods inherited from class org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBandImpl
getResultAmount, getResultAmountType, setResultAmount, setResultAmountType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBand
getResultAmount, getResultAmountType, setResultAmount, setResultAmountType
 

Field Detail

id

protected Long id

retailPriceMinimumAmount

protected BigDecimal retailPriceMinimumAmount

option

protected BandedPriceFulfillmentOption option
Constructor Detail

FulfillmentPriceBandImpl

public FulfillmentPriceBandImpl()
Method Detail

getId

public Long getId()
Specified by:
getId in interface FulfillmentBand

setId

public void setId(Long id)
Specified by:
setId in interface FulfillmentBand

getRetailPriceMinimumAmount

public BigDecimal getRetailPriceMinimumAmount()
Description copied from interface: FulfillmentPriceBand
Gets the minimum amount that this band is valid for. If the addition of all of the retail prices on all the OrderItems in a FulfillmentGroup comes to at least this amount, this band result amount will be applied to the fulfillment cost.

Specified by:
getRetailPriceMinimumAmount in interface FulfillmentPriceBand
Returns:
the minimum retail price amount of the sum of the OrderItems in a FulfillmentGroup that this band qualifies for

setRetailPriceMinimumAmount

public void setRetailPriceMinimumAmount(BigDecimal retailPriceMinimumAmount)
Description copied from interface: FulfillmentPriceBand
Set the minimum amount that this band is valid for. If the addition of all of the retail prices on all the OrderItems in a FulfillmentGroup comes to at least this amount, this band result amount will be applied to the fulfillment cost.

Specified by:
setRetailPriceMinimumAmount in interface FulfillmentPriceBand

getOption

public BandedPriceFulfillmentOption getOption()
Description copied from interface: FulfillmentPriceBand
Gets the BandedPriceFulfillmentOption that this band is associated to

Specified by:
getOption in interface FulfillmentPriceBand
Returns:
the associated BandedPriceFulfillmentOption

setOption

public void setOption(BandedPriceFulfillmentOption option)
Description copied from interface: FulfillmentPriceBand
Sets the BandedPriceFulfillmentOption to associate with this band

Specified by:
setOption in interface FulfillmentPriceBand


Copyright © 2013. All Rights Reserved.