org.broadleafcommerce.core.order.domain
Class TaxDetailImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.TaxDetailImpl
All Implemented Interfaces:
Serializable, TaxDetail

@Entity
public class TaxDetailImpl
extends Object
implements TaxDetail

See Also:
Serialized Form

Field Summary
protected  BigDecimal amount
           
protected  BroadleafCurrency currency
           
protected  Long id
           
protected  ModuleConfiguration moduleConfiguation
           
protected  BigDecimal rate
           
protected  String type
           
 
Constructor Summary
TaxDetailImpl()
           
TaxDetailImpl(TaxType type, Money amount, BigDecimal rate)
           
 
Method Summary
 Money getAmount()
          Gets the tax amount
 BroadleafCurrency getCurrency()
           
 Long getId()
          Gets the id.
 ModuleConfiguration getModuleConfiguration()
          Returns the configuration of the module that was used to calculate taxes.
 BigDecimal getRate()
          Gets the tax rate
 TaxType getType()
          Gets the tax type
 void setAmount(Money amount)
          Sets the tax amount
 void setCurrency(BroadleafCurrency currency)
           
 void setId(Long id)
          Sets the id.
 void setModuleConfiguration(ModuleConfiguration config)
          Sets the module configuration that was used to calculate taxes.
 void setRate(BigDecimal rate)
          Sets the tax rate.
 void setType(TaxType type)
          Sets the tax type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

type

protected String type

amount

protected BigDecimal amount

rate

protected BigDecimal rate

currency

protected BroadleafCurrency currency

moduleConfiguation

protected ModuleConfiguration moduleConfiguation
Constructor Detail

TaxDetailImpl

public TaxDetailImpl()

TaxDetailImpl

public TaxDetailImpl(TaxType type,
                     Money amount,
                     BigDecimal rate)
Method Detail

getId

public Long getId()
Description copied from interface: TaxDetail
Gets the id.

Specified by:
getId in interface TaxDetail
Returns:
the id

setId

public void setId(Long id)
Description copied from interface: TaxDetail
Sets the id.

Specified by:
setId in interface TaxDetail
Parameters:
id - the new id

getType

public TaxType getType()
Description copied from interface: TaxDetail
Gets the tax type

Specified by:
getType in interface TaxDetail
Returns:
the tax type

setType

public void setType(TaxType type)
Description copied from interface: TaxDetail
Sets the tax type

Specified by:
setType in interface TaxDetail
Parameters:
type - the tax type

getAmount

public Money getAmount()
Description copied from interface: TaxDetail
Gets the tax amount

Specified by:
getAmount in interface TaxDetail
Returns:
the tax amount

setAmount

public void setAmount(Money amount)
Description copied from interface: TaxDetail
Sets the tax amount

Specified by:
setAmount in interface TaxDetail
Parameters:
amount - the tax amount

getRate

public BigDecimal getRate()
Description copied from interface: TaxDetail
Gets the tax rate

Specified by:
getRate in interface TaxDetail
Returns:
the rate

setRate

public void setRate(BigDecimal rate)
Description copied from interface: TaxDetail
Sets the tax rate.

Specified by:
setRate in interface TaxDetail

getCurrency

public BroadleafCurrency getCurrency()
Specified by:
getCurrency in interface TaxDetail

setCurrency

public void setCurrency(BroadleafCurrency currency)
Specified by:
setCurrency in interface TaxDetail

getModuleConfiguration

public ModuleConfiguration getModuleConfiguration()
Description copied from interface: TaxDetail
Returns the configuration of the module that was used to calculate taxes. Allows for tracking, especially when more than one module may be used by the system.

Specified by:
getModuleConfiguration in interface TaxDetail
Returns:

setModuleConfiguration

public void setModuleConfiguration(ModuleConfiguration config)
Description copied from interface: TaxDetail
Sets the module configuration that was used to calculate taxes. Allows for tracking of which module was used, especially in cases where more than one module is available over time.

Specified by:
setModuleConfiguration in interface TaxDetail


Copyright © 2013. All Rights Reserved.