public interface AddressService
| Modifier and Type | Method and Description |
|---|---|
Address |
copyAddress(Address orig)
Returns a new address instance with the given properties on the originating address
minus any default or active values set
|
Address |
copyAddress(Address dest,
Address orig)
Copies properties from the originating address to the destination address
minus any default or active values
|
Address |
create() |
void |
delete(Address address) |
void |
populateAddressISOCountrySub(Address address)
Convenience method that attempts to pre-populate the ISO Country Subdivision on an address.
|
Address |
readAddressById(Long addressId) |
Address |
saveAddress(Address address) |
List<Address> |
verifyAddress(Address address)
Verifies the address and returns a collection of addresses.
|
Address create()
void delete(Address address)
List<Address> verifyAddress(Address address) throws AddressVerificationException
AddressValidationException.
For example, an address may be close, but missing zip four. This service should return
the address in question with zip four populated.address - AddressVerificationExceptionAddress copyAddress(Address orig)
address - - the address to copyAddress copyAddress(Address dest, Address orig)
address - - the address to copyvoid populateAddressISOCountrySub(Address address)
address - Copyright © 2019. All rights reserved.