Class PlacesFields
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.locations.core.api.PlacesFields
-
- All Implemented Interfaces:
android.os.Parcelable
public class PlacesFields extends BaseParams
Class for setting the field parameters of Places API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlacesFields.Builder
Builder class forPlacesFields
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
BaseParams.BaseBuilder<T extends BaseParams,B extends BaseParams.BaseBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<PlacesFields>
CREATOR
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
mId, mQueryMap
-
-
Constructor Summary
Constructors Constructor Description PlacesFields()
PlacesFields(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCity()
Returns the cityjava.lang.String
getCountryCode()
Returns country codejava.lang.String
getPhoneNumber()
Returns phone numberjava.lang.String
getState()
Returns statejava.lang.String
getStreetAddress()
Returns street addressjava.lang.String
getStreetAddress2()
Returns the second street addressjava.lang.String
getZipCode()
Returns zip codejava.lang.Boolean
isSkipVerification()
Returns the flag that was set to skip validation of addressvoid
setCity(java.lang.String city)
Set the cityvoid
setCountryCode(java.lang.String countryCode)
Set country codevoid
setPhoneNumber(java.lang.String phoneNumber)
Set phone numbervoid
setSkipVerification(java.lang.Boolean skipVerification)
Set the flag to skip address verificationvoid
setState(java.lang.String state)
Set statevoid
setStreetAddress(java.lang.String streetAddress)
Set the street addressvoid
setStreetAddress2(java.lang.String streetAddress2)
Set the second street addressvoid
setZipCode(java.lang.String zipCode)
Set zip code-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
addParam, describeContents, getAccessToken, getId, getParam, getQueryMap, setAccessToken, setId, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<PlacesFields> CREATOR
-
-
Method Detail
-
getStreetAddress
@Nullable public java.lang.String getStreetAddress()
Returns street address- Returns:
- street address
-
setStreetAddress
public void setStreetAddress(@Nullable java.lang.String streetAddress)
Set the street address- Parameters:
streetAddress
- street address
-
getStreetAddress2
@Nullable public java.lang.String getStreetAddress2()
Returns the second street address- Returns:
- the second street address
-
setStreetAddress2
public void setStreetAddress2(@Nullable java.lang.String streetAddress2)
Set the second street address- Parameters:
streetAddress2
- the second street address
-
getCity
@Nullable public java.lang.String getCity()
Returns the city- Returns:
- city
-
setCity
public void setCity(@Nullable java.lang.String city)
Set the city- Parameters:
city
- city
-
getState
@Nullable public java.lang.String getState()
Returns state- Returns:
- state
-
setState
public void setState(@Nullable java.lang.String state)
Set state- Parameters:
state
- value for state
-
getCountryCode
@Nullable public java.lang.String getCountryCode()
Returns country code- Returns:
- country code
-
setCountryCode
public void setCountryCode(@Nullable java.lang.String countryCode)
Set country code- Parameters:
countryCode
- country code
-
getZipCode
@Nullable public java.lang.String getZipCode()
Returns zip code- Returns:
- zip code
-
setZipCode
public void setZipCode(@Nullable java.lang.String zipCode)
Set zip code- Parameters:
zipCode
- zip code
-
getPhoneNumber
@Nullable public java.lang.String getPhoneNumber()
Returns phone number- Returns:
- phone number
-
setPhoneNumber
public void setPhoneNumber(@Nullable java.lang.String phoneNumber)
Set phone number- Parameters:
phoneNumber
- phone number
-
isSkipVerification
@Nullable public java.lang.Boolean isSkipVerification()
Returns the flag that was set to skip validation of address- Returns:
- flag if address verification was skipped
-
setSkipVerification
public void setSkipVerification(@Nullable java.lang.Boolean skipVerification)
Set the flag to skip address verification- Parameters:
skipVerification
- flag to skip address verification
-
-