|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.address.Address
com.avalara.avatax.services.address.ValidAddress
public class ValidAddress
A fully validated address based on initial Address
data passed to AddressSvcSoap.validate(com.avalara.avatax.services.address.ValidateRequest)
.
Example: [Java] ValidateRequest request = new ValidateRequest(); Address address = new Address(); address.setLine1("900 Winslow Way"); address.setLine2("Suite 130"); address.setCity("Bainbridge Is"); address.setRegion("WA"); address.setPostalCode("98110-2450"); request.setAddress(address); request.setTextCase(TextCase.Upper); ValidateResult result; result = svc.validate(request); if (SeverityLevel.Success.equals(result.getResultCode())) { ArrayOfValidAddress arrValids = result.getValidAddresses(); if (arrValids != null && arrValids.getValidAddress() != null && arrValids.getValidAddress().length > 0) { ValidAddress validAddress = result.getValidAddresses().getValidAddress(0); System.out.println(validAddress.getLine1()); // "900 WINSLOW WAY E STE 130", System.out.println(validAddress.getLine4()); // "BAINBRIDGE IS WA 98110-2450" System.out.println(validAddress.getFipsCode()); // "5303500000" System.out.println(validAddress.getCounty()); // "KITSAP" } }
ArrayOfValidAddress
,
Address
,
Serialized FormConstructor Summary | |
---|---|
ValidAddress()
Initializes a new instance of the class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. |
java.lang.String |
getAddressType()
|
java.lang.String |
getCarrierRoute()
The carrier route associated with the input address (USA). |
java.lang.String |
getCounty()
County Name. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code. |
java.lang.String |
getFipsCode()
Federal Information Processing Standards Code (USA). |
java.lang.String |
getLatitude()
Address Type - The type of address that was coded (PO Box, Rural Route, and so on), using the input address. |
java.lang.String |
getLine4()
Address line 4. |
java.lang.String |
getLongitude()
Gets the longitude value for this ValidAddress. |
java.lang.String |
getPostNet()
A 12-digit POSTNet barcode (USA). |
static org.apache.axis.encoding.Serializer |
getSerializer(java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
setAddressType(java.lang.String addressType)
Address Type - The type of address that was coded (PO Box, Rural Route, and so on), using the input address. |
void |
setCarrierRoute(java.lang.String carrierRoute)
The carrier route associated with the input address (USA). |
void |
setCounty(java.lang.String county)
County Name. |
void |
setFipsCode(java.lang.String fipsCode)
Federal Information Processing Standards Code (USA). |
void |
setLatitude(java.lang.String latitude)
Sets the latitude value for this ValidAddress. |
void |
setLine4(java.lang.String line4)
Address line 4. |
void |
setLongitude(java.lang.String longitude)
Sets the longitude value for this ValidAddress. |
void |
setPostNet(java.lang.String postNet)
A 12-digit POSTNet barcode (USA). |
Methods inherited from class com.avalara.avatax.services.address.Address |
---|
getAddressCode, getCity, getCountry, getLine1, getLine2, getLine3, getPostalCode, getRegion, getTaxRegionId, setAddressCode, setCity, setCountry, setLine1, setLine2, setLine3, setPostalCode, setRegion, setTaxRegionId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidAddress()
Method Detail |
---|
public java.lang.String getLine4()
public void setLine4(java.lang.String line4)
line4
- - Address line 4public java.lang.String getCounty()
public void setCounty(java.lang.String county)
county
- - County Namepublic java.lang.String getFipsCode()
This is a unique code representing each geographic combination of state, county, and city. The code is made up of the Federal Information Processing Code (FIPS) that uniquely identifies each state, county, and city in the U.S. See Federal Information Processing Standards (FIPS) Codes for more details.
Digits | Description |
---|---|
1-2 | State code |
3-5 | County code |
6-10 | City code |
public void setFipsCode(java.lang.String fipsCode)
This is a unique code representing each geographic combination of state, county, and city. The code is made up of the Federal Information Processing Code (FIPS) that uniquely identifies each state, county, and city in the U.S. See Federal Information Processing Standards (FIPS) Codes for more details.
Digits | Description |
---|---|
1-2 | State code |
3-5 | County code |
6-10 | City code |
fipsCode
- public java.lang.String getCarrierRoute()
The CarrierRoute Property is a 4 character string set after a successful return from the VerifyAddress Method.
The first character of this property is always alphabetic, and the last three characters are numeric. For example, "R001" or "C027" would be typical carrier routes. The alphabetic letter indicates the type of delivery associated with this address.
Term | Description |
---|---|
B | PO Box |
C | City Delivery |
G | General Delivery |
H | Highway Contract |
R | Rural Route |
public void setCarrierRoute(java.lang.String carrierRoute)
The CarrierRoute Property is a 4 character string set after a successful return from the VerifyAddress Method.
The first character of this property is always alphabetic, and the last three characters are numeric. For example, "R001" or "C027" would be typical carrier routes. The alphabetic letter indicates the type of delivery associated with this address.
Term | Description |
---|---|
B | PO Box |
C | City Delivery |
G | General Delivery |
H | Highway Contract |
R | Rural Route |
carrierRoute
- public java.lang.String getPostNet()
Digits | Description | |
---|---|---|
1-5 | ZIP Code | |
6-9 | Plus4 code | |
10-11 | Delivery point | |
12 | Check digit |
public void setPostNet(java.lang.String postNet)
Digits | Description | |
---|---|---|
1-5 | ZIP Code | |
6-9 | Plus4 code | |
10-11 | Delivery point | |
12 | Check digit |
postNet
- public java.lang.String getLatitude()
Code | Type | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
F | Firm or company address | |||||||||||||||||||||||||||||||||||
G | General Delivery address | |||||||||||||||||||||||||||||||||||
H | High-rise or business complexs | |||||||||||||||||||||||||||||||||||
P | PO Box address | |||||||||||||||||||||||||||||||||||
R | Rural route address | |||||||||||||||||||||||||||||||||||
S | Street or residential address | /** Gets the latitude value for this ValidAddress.
Code | Type | |
---|---|---|
F | Firm or company address | |
G | General Delivery address | |
H | High-rise or business complexs | |
P | PO Box address | |
R | Rural route address | |
S | Street or residential address |
NOTE: AddressTypeString is no longer available.
addressType
- public boolean equals(java.lang.Object obj)
obj
-
public int hashCode()
Object.hashCode()
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |