@Generated(value="class io.swagger.codegen.languages.JavaClientCodegen", date="2017-01-03T19:15:39.720-05:00") public class AddressValidationApi extends Object
| Constructor and Description |
|---|
AddressValidationApi() |
AddressValidationApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
InlineResponse200 |
validateAddress(String userKey,
String requestId,
String street,
String secondary,
String city,
String state,
String zipcode)
[USA] Validate Address and provide corrected addresses.
|
InlineResponse200 |
validateGlobalAddress(String userKey,
String requestId,
String street,
String country,
String secondary,
String city,
String state,
String zipcode)
Global validate Address and provide corrected addresses for all over the world.
|
InlineResponse2001 |
zipInfo(String userKey,
String requestId,
String city,
String state,
String zipcode)
Gets zipcode details for a given zipcode Or get all zipcodes for given city & state.
|
public AddressValidationApi()
public AddressValidationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public InlineResponse200 validateAddress(String userKey, String requestId, String street, String secondary, String city, String state, String zipcode) throws ApiException
userKey - Your private key, given after opening account with snapcx.io (required)requestId - Any unique string identifier. Same string will be part of response header. (required)street - Address line1. It's mandatory field. (required)secondary - Address line2. Second line of address, as required. (optional)city - City name. (optional)state - 2 Char State abbrv. Example NJ, NY, CA etc. (optional)zipcode - 5 Digit zipcode. (optional)ApiException - if fails to make API callpublic InlineResponse200 validateGlobalAddress(String userKey, String requestId, String street, String country, String secondary, String city, String state, String zipcode) throws ApiException
userKey - Your private key, given after opening account with snapcx.io (required)requestId - Any unique string identifier. Same string will be part of response header. (required)street - Address line1. It's mandatory field. (required)country - Country name or ISO 3 Char country code. Example GBR, CAN, DEU etc. (required)secondary - Address line2. Second line of address, as required. (optional)city - City name. (optional)state - 2 Char State abbrv. Example NJ, NY, CA etc. (optional)zipcode - 5 Digit zipcode. (optional)ApiException - if fails to make API callpublic InlineResponse2001 zipInfo(String userKey, String requestId, String city, String state, String zipcode) throws ApiException
userKey - Your private key, given after opening account with snapcx.io (required)requestId - Any unique string identifier. Same string will be part of response header. (optional)city - City name. Provide either zipcode OR both city & state. (optional)state - 2 Char State abbrv. Example NJ, NY, CA etc. Provide either zipcode OR both city & state. (optional)zipcode - 5 Digit zipcode. Provide either zipcode OR both city & state. (optional)ApiException - if fails to make API callCopyright © 2012–2017 JFrameworks.com, LLC. All rights reserved.