Class TaxDetailWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.TaxDetailWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.TaxDetail>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class TaxDetailWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.TaxDetail>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.money.Moneyprotected Stringprotected Stringprotected Longprotected Stringprotected BigDecimalprotected Stringprotected Stringprotected BroadleafEnumerationTypeWrapperFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.money.MoneygetId()getRate()voidsetAmount(org.broadleafcommerce.common.money.Money amount) voidsetCountry(String country) voidsetCurrency(String currency) voidvoidsetJurisdictionName(String jurisdictionName) voidsetRate(BigDecimal rate) voidvoidsetTaxName(String taxName) voidvoidwrapDetails(org.broadleafcommerce.core.order.domain.TaxDetail model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.order.domain.TaxDetail model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
taxType
-
amount
protected org.broadleafcommerce.common.money.Money amount -
rate
-
currency
-
jurisdictionName
-
taxName
-
region
-
country
-
-
Constructor Details
-
TaxDetailWrapper
public TaxDetailWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.core.order.domain.TaxDetail model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.TaxDetail>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.core.order.domain.TaxDetail model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.order.domain.TaxDetail>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getTaxType
- Returns:
- the taxType
-
setTaxType
- Parameters:
taxType- the taxType to set
-
getAmount
public org.broadleafcommerce.common.money.Money getAmount()- Returns:
- the amount
-
setAmount
public void setAmount(org.broadleafcommerce.common.money.Money amount) - Parameters:
amount- the amount to set
-
getRate
- Returns:
- the rate
-
setRate
- Parameters:
rate- the rate to set
-
getCurrency
- Returns:
- the currency
-
setCurrency
- Parameters:
currency- the currency to set
-
getJurisdictionName
- Returns:
- the jurisdictionName
-
setJurisdictionName
- Parameters:
jurisdictionName- the jurisdictionName to set
-
getTaxName
- Returns:
- the taxName
-
setTaxName
- Parameters:
taxName- the taxName to set
-
getRegion
- Returns:
- the region
-
setRegion
- Parameters:
region- the region to set
-
getCountry
- Returns:
- the country
-
setCountry
- Parameters:
country- the country to set
-