org.broadleafcommerce.core.order.domain
Interface TaxDetail

All Superinterfaces:
Serializable
All Known Implementing Classes:
TaxDetailImpl

public interface TaxDetail
extends Serializable

The Interface TaxDetail. A TaxDetail object stores relevant tax information including a tax type, amount, and 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
 

Method Detail

getId

Long getId()
Gets the id.

Returns:
the id

setId

void setId(Long id)
Sets the id.

Parameters:
id - the new id

getType

TaxType getType()
Gets the tax type

Returns:
the tax type

setType

void setType(TaxType type)
Sets the tax type

Parameters:
type - the tax type

getAmount

Money getAmount()
Gets the tax amount

Returns:
the tax amount

setAmount

void setAmount(Money amount)
Sets the tax amount

Parameters:
amount - the tax amount

getRate

BigDecimal getRate()
Gets the tax rate

Returns:
the rate

setRate

void setRate(BigDecimal rate)
Sets the tax rate.

Parameters:
name - the tax rate

getCurrency

BroadleafCurrency getCurrency()

setCurrency

void setCurrency(BroadleafCurrency currency)

getModuleConfiguration

ModuleConfiguration getModuleConfiguration()
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.

Returns:

setModuleConfiguration

void setModuleConfiguration(ModuleConfiguration config)
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.

Parameters:
config -


Copyright © 2013. All Rights Reserved.