|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaxJurisdictionService
Provide TaxJurisdiction-related business service.
| Method Summary | |
|---|---|
TaxJurisdiction |
add(TaxJurisdiction taxJurisdiction)
Adds the given taxJurisdiction. |
TaxJurisdiction |
get(long taxJurisdictionUid)
Get the taxJurisdiction with the given UID. |
java.util.List |
getTaxJurisdictionChildren(TaxJurisdiction taxJurisdiction)
Get all the child tax jurisidction belong to the given taxJurisdiction. |
java.util.List |
list()
List all taxJurisdictions stored in the database. |
java.util.List |
listRootTaxJurisdictions()
Retrieve all root tax jurisdictions (the country level ones). |
TaxJurisdiction |
load(long taxJurisdictionUid)
Load the taxJurisdiction with the given UID. |
void |
remove(TaxJurisdiction taxJurisdiction)
Delete the current taxJurisdiction and all its direct/indirect children. |
TaxJurisdiction |
retrieveTaxJurisdiction(Address shippingAddress)
Matches shipping address to lowest available Tax Jurisdiction level. |
void |
update(TaxJurisdiction taxJurisdiction)
Updates the given taxJurisdiction. |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getObject, getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
TaxJurisdiction add(TaxJurisdiction taxJurisdiction)
throws TaxJurisdictionExistException
taxJurisdiction - the taxJurisdiction to add
TaxJurisdictionExistException - - if a taxJurisdiction associated with the given region already exists.
TaxJurisdiction get(long taxJurisdictionUid)
throws EpServiceException
taxJurisdictionUid - the taxJurisdiction UID
EpServiceException - - in case of any errorsjava.util.List getTaxJurisdictionChildren(TaxJurisdiction taxJurisdiction)
taxJurisdiction - - the taxJurisdiction to find children for.
java.util.List list()
throws EpServiceException
EpServiceException - - in case of any errorsjava.util.List listRootTaxJurisdictions()
TaxJurisdiction load(long taxJurisdictionUid)
throws EpServiceException
taxJurisdictionUid - the taxJurisdiction UID
EpServiceException - - in case of any errors
void remove(TaxJurisdiction taxJurisdiction)
throws EpServiceException
taxJurisdiction - the taxJurisdiction to remove
EpServiceException - - in case of any errors
TaxJurisdiction retrieveTaxJurisdiction(Address shippingAddress)
throws EpServiceException
shippingAddress - - the shippingAddress used to retrieve the matching jurisdiction.
EpServiceException - - in case of any errors
void update(TaxJurisdiction taxJurisdiction)
throws TaxJurisdictionExistException
taxJurisdiction - the taxJurisdiction to update
TaxJurisdictionExistException - - if a taxJurisdiction associated with the given region already exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||