|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaxJurisdiction
A TaxJurisdiction represents a geographic area that has it's own distinct set of TaxCategory
s
and TaxValue
s ie a Country, a State, a City, a Municipal, or a County.
Field Summary | |
---|---|
static int |
FIELD_MATCH_CITY
field match type: city. |
static int |
FIELD_MATCH_COUNTRY
field match type: country. |
static int |
FIELD_MATCH_NONE
field match type: none. |
static int |
FIELD_MATCH_SUBCOUNTRY
field match type: subcountry. |
static int |
FIELD_MATCH_ZIP_POSTAL_CODE
field match type: zip/postal code. |
static java.lang.Boolean |
PRICE_CALCULATION_EXCLUSIVE
the "exclusive" price calculation method - item price does NOT include tax. |
static java.lang.Boolean |
PRICE_CALCULATION_INCLUSIVE
the "inclusive" price calculation method - item price DOES include tax. |
Method Summary | |
---|---|
int |
getFieldMatchType()
Retrieve the field match type for this TaxJurisdiction . |
java.util.Map |
getFullTaxValueMap()
Traverse the parent TaxJurisdiction and build up a map of taxValues, keyed by TaxCategory . |
TaxJurisdiction |
getParent()
Get the parent taxJurisdiction of this taxJurisdiction. |
java.lang.Boolean |
getPriceCalculationMethod()
Return the price calculation method of this TaxCategory . |
java.lang.String |
getRegionCode()
Get the region code of the geographic area represented by the TaxJurisdiction . |
java.lang.String |
getRegionCodePathStr()
Retrieve the region path of this taxJurisdiction, i.e. |
java.lang.String |
getRegionCodePathStrWithoutCity()
Retrieve the region path of this taxJurisdiction, i.e. |
java.util.Map |
getTaxCategoryXMap()
Get the taxCategoryUid -> TaxJurisdictionCategoryX map. |
boolean |
isParent(TaxJurisdiction taxJurisdiction)
Check if this taxJurisdiction is the direct or indirect parent of the given taxJurisdiction. |
void |
setFieldMatchType(int fieldMatchType)
Set the field match type for this TaxJurisdiction . |
void |
setParent(TaxJurisdiction parent)
Set the parent taxJurisdiction of this taxJurisdiction. |
void |
setPriceCalculationMethod(java.lang.Boolean priceCalculationMethod)
Set the price calculation method of this TaxCategory . |
void |
setRegionCode(java.lang.String regionCode)
Set the region code of the geographic area represented by the TaxJurisdiction . |
void |
setTaxCategoryXMap(java.util.Map taxCategoryXMap)
Set the taxCategoryUid -> TaxJurisdictionCategoryX map. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
static final int FIELD_MATCH_CITY
static final int FIELD_MATCH_COUNTRY
static final int FIELD_MATCH_NONE
static final int FIELD_MATCH_SUBCOUNTRY
static final int FIELD_MATCH_ZIP_POSTAL_CODE
static final java.lang.Boolean PRICE_CALCULATION_EXCLUSIVE
static final java.lang.Boolean PRICE_CALCULATION_INCLUSIVE
Method Detail |
---|
int getFieldMatchType()
TaxJurisdiction
.
TaxJurisdiction
.java.util.Map getFullTaxValueMap()
TaxJurisdiction
and build up a map of taxValues, keyed by TaxCategory
.
The TaxValue
specified at a lower taxJurisdiction level will be used.
Since the tax value configuration should not be changed so often, so it is cached.
TaxJurisdiction getParent()
java.lang.Boolean getPriceCalculationMethod()
TaxCategory
.
java.lang.String getRegionCode()
TaxJurisdiction
.
java.lang.String getRegionCodePathStr()
java.lang.String getRegionCodePathStrWithoutCity()
TaxJurisdiction
's field match type is 3
(FIELD_MATCH_CITY).
java.util.Map getTaxCategoryXMap()
TaxJurisdictionCategoryX
map.
TaxJurisdictionCategoryX
map.boolean isParent(TaxJurisdiction taxJurisdiction)
taxJurisdiction
- the taxJurisdiction to be checked to see if it is the direct/indirect child.
void setFieldMatchType(int fieldMatchType)
TaxJurisdiction
.
fieldMatchType
- the field match type.void setParent(TaxJurisdiction parent)
parent
- - the parent taxJurisdiction.void setPriceCalculationMethod(java.lang.Boolean priceCalculationMethod)
TaxCategory
.
priceCalculationMethod
- - the price calculation method to be set.void setRegionCode(java.lang.String regionCode)
TaxJurisdiction
.
regionCode
- the parameter regionCodevoid setTaxCategoryXMap(java.util.Map taxCategoryXMap)
TaxJurisdictionCategoryX
map.
taxCategoryXMap
- - the taxCategoryUid -> TaxJurisdictionCategoryX
map.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |