org.broadleafcommerce.core.order.domain
Class FulfillmentGroupFeeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.FulfillmentGroupFeeImpl
All Implemented Interfaces:
Serializable, CurrencyCodeIdentifiable, FulfillmentGroupFee

@Entity
public class FulfillmentGroupFeeImpl
extends Object
implements FulfillmentGroupFee, CurrencyCodeIdentifiable

See Also:
Serialized Form

Field Summary
protected  BigDecimal amount
           
protected  Boolean feeTaxable
           
protected  FulfillmentGroup fulfillmentGroup
           
protected  Long id
           
protected  String name
           
protected  String reportingCode
           
protected  List<TaxDetail> taxes
           
protected  BigDecimal totalTax
           
 
Constructor Summary
FulfillmentGroupFeeImpl()
           
 
Method Summary
 boolean equals(Object obj)
           
 Money getAmount()
           
 String getCurrencyCode()
           
 FulfillmentGroup getFulfillmentGroup()
           
 Long getId()
           
 String getName()
           
 String getReportingCode()
           
 List<TaxDetail> getTaxes()
          Gets a list of TaxDetail objects, which are taxes that apply directly to this fee.
 Money getTotalTax()
          Gets the total tax for this fee, which is the sum of all taxes for this fee.
 int hashCode()
           
 Boolean isTaxable()
          Returns whether or not this fee is taxable.
 void setAmount(Money amount)
           
 void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setReportingCode(String reportingCode)
           
 void setTaxable(Boolean taxable)
          Sets whether or not this fee is taxable
 void setTaxes(List<TaxDetail> taxes)
          Sets the list of TaxDetail objects, which are taxes that apply directly to this fee.
 void setTotalTax(Money totalTax)
          Sets the total tax for this fee, which is the sum of all taxes for this fee.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

fulfillmentGroup

protected FulfillmentGroup fulfillmentGroup

amount

protected BigDecimal amount

name

protected String name

reportingCode

protected String reportingCode

feeTaxable

protected Boolean feeTaxable

taxes

protected List<TaxDetail> taxes

totalTax

protected BigDecimal totalTax
Constructor Detail

FulfillmentGroupFeeImpl

public FulfillmentGroupFeeImpl()
Method Detail

getId

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

setId

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

getFulfillmentGroup

public FulfillmentGroup getFulfillmentGroup()
Specified by:
getFulfillmentGroup in interface FulfillmentGroupFee

setFulfillmentGroup

public void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
Specified by:
setFulfillmentGroup in interface FulfillmentGroupFee

getAmount

public Money getAmount()
Specified by:
getAmount in interface FulfillmentGroupFee

setAmount

public void setAmount(Money amount)
Specified by:
setAmount in interface FulfillmentGroupFee

getName

public String getName()
Specified by:
getName in interface FulfillmentGroupFee

setName

public void setName(String name)
Specified by:
setName in interface FulfillmentGroupFee

getReportingCode

public String getReportingCode()
Specified by:
getReportingCode in interface FulfillmentGroupFee

setReportingCode

public void setReportingCode(String reportingCode)
Specified by:
setReportingCode in interface FulfillmentGroupFee

isTaxable

public Boolean isTaxable()
Description copied from interface: FulfillmentGroupFee
Returns whether or not this fee is taxable. If this flag is not set, it returns true by default

Specified by:
isTaxable in interface FulfillmentGroupFee
Returns:
the taxable flag. If null, returns true

setTaxable

public void setTaxable(Boolean taxable)
Description copied from interface: FulfillmentGroupFee
Sets whether or not this fee is taxable

Specified by:
setTaxable in interface FulfillmentGroupFee

getTaxes

public List<TaxDetail> getTaxes()
Description copied from interface: FulfillmentGroupFee
Gets a list of TaxDetail objects, which are taxes that apply directly to this fee.

Specified by:
getTaxes in interface FulfillmentGroupFee
Returns:
a list of taxes that apply to this fee

setTaxes

public void setTaxes(List<TaxDetail> taxes)
Description copied from interface: FulfillmentGroupFee
Sets the list of TaxDetail objects, which are taxes that apply directly to this fee.

Specified by:
setTaxes in interface FulfillmentGroupFee
Parameters:
taxes - the list of taxes on this fee

getTotalTax

public Money getTotalTax()
Description copied from interface: FulfillmentGroupFee
Gets the total tax for this fee, which is the sum of all taxes for this fee. This total is calculated in the TotalActivity stage of the pricing workflow.

Specified by:
getTotalTax in interface FulfillmentGroupFee
Returns:
the total tax for this fee

setTotalTax

public void setTotalTax(Money totalTax)
Description copied from interface: FulfillmentGroupFee
Sets the total tax for this fee, which is the sum of all taxes for this fee. This total should only be set during the TotalActivity stage of the pricing workflow.

Specified by:
setTotalTax in interface FulfillmentGroupFee
Parameters:
totalTax - the total tax for this fee

getCurrencyCode

public String getCurrencyCode()
Specified by:
getCurrencyCode in interface CurrencyCodeIdentifiable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.