public class UserData extends Object
Constructor and Description |
---|
UserData() |
UserData(String email,
String phone,
String dateOfBirth,
String lastName,
String firstName,
String city,
String state,
String zipcode,
String countryCode,
String externalId,
String address) |
Modifier and Type | Method and Description |
---|---|
UserData |
address(String address)
Sets the address for the user data.
|
UserData |
city(String city)
Sets the city for the user data.
|
UserData |
countryCode(String countryCode)
Sets the country for the user data.
|
UserData |
dataOfBirth(String dateOfBirth)
Sets the date of birth for the user data.
|
UserData |
email(String email)
Sets the email address for the user data field.
|
UserData |
externalId(String externalId)
Sets the external id for the user data.
|
UserData |
firstName(String firstName)
Sets the first name for the user data.
|
String |
getAddress()
Gets the address for the user data.
|
String |
getCity()
Gets the city for the user data.
|
String |
getCountryCode()
Gets the country for the user data.
|
String |
getDateOfBirth()
Gets the date of birth for the user data.
|
String |
getEmail()
Gets the email address for the user data field.
|
String |
getExternalId()
Gets the external id for the user data.
|
String |
getFirstName()
Gets the first name for the user data.
|
String |
getLastName()
Gets the last name for the user data.
|
String |
getPhone()
Gets the phone number for the user data.
|
String |
getState()
Gets the state for the user data.
|
String |
getZipcode()
Gets the zip/postal code for the user data.
|
UserData |
lastName(String lastName)
Sets the last name for the user data.
|
UserData |
phone(String phone)
Sets the phone number for the user data.
|
void |
setAddress(String address)
Sets the address for the user data.
|
void |
setCity(String city)
Sets the city for the user data.
|
void |
setCountryCode(String countryCode)
Sets the country for the user data.
|
void |
setDateOfBirth(String dateOfBirth)
Sets the date of birth for the user data.
|
void |
setEmail(String email)
Sets the email address for the user data field.
|
void |
setExternalId(String externalId)
Sets the external id for the user data.
|
void |
setFirstName(String firstName)
Sets the first name for the user data.
|
void |
setLastName(String lastName)
Sets the last name for the user data.
|
void |
setPhone(String phone)
Sets the phone number for the user data.
|
void |
setState(String state)
Sets the state for the user data.
|
void |
setZipcode(String zipcode)
Sets the zip/postal code for the user data.
|
UserData |
state(String state)
Sets the state for the user data.
|
UserData |
zipcode(String zipcode)
Sets the zip/postal code for the user data.
|
public UserData()
public UserData(String email, String phone, String dateOfBirth, String lastName, String firstName, String city, String state, String zipcode, String countryCode, String externalId, String address)
email
- An email address, in lowercase.phone
- A phone number. Include only digits with country code,
area code, and number.firstName
- A first name in lowercase.lastName
- A last name in lowercase.dateOfBirth
- A date of birth given as year, month, and day in YYYYMMDD
format.city
- A city in lower-case without spaces or punctuation.state
- A two-letter state code in lowercase.countryCode
- A two-letter country code in lowercase.zipcode
- Postal code of the city in your country standard.externalId
- Any unique ID from the business.address
- An physical address.public String getEmail()
public void setEmail(String email)
email
- An email address, in lowercase. Example: [email protected]public UserData email(String email)
email
- An email address, in lowercase. Example: [email protected]public String getPhone()
public void setPhone(String phone)
phone
- A phone number. Include only digits with country code, area
code, and number. Example: 16505551212public UserData phone(String phone)
phone
- A phone number. Include only digits with country code, area
code, and number. Example: 16505551212public String getDateOfBirth()
public void setDateOfBirth(String dateOfBirth)
dateOfBirth
- A date of birth given as year, month, and day in the
Format YYYYMMDD Example: 19971226 for December 26, 1997.public UserData dataOfBirth(String dateOfBirth)
dateOfBirth
- A date of birth given as year, month, and day in the
Format YYYYMMDD Example: 19971226 for December 26, 1997.public String getLastName()
public void setLastName(String lastName)
lastName
- is last name in lowercase. Example: smithpublic UserData lastName(String lastName)
lastName
- is last name in lowercase. Example: smithpublic String getFirstName()
public void setFirstName(String firstName)
firstName
- is first name in lowercase. Example: joepublic UserData firstName(String firstName)
firstName
- is first name in lowercase. Example: joepublic String getCity()
public void setCity(String city)
city
- is city in lower-case without spaces or punctuation. Example:
menloparkpublic UserData city(String city)
city
- is city in lower-case without spaces or punctuation. Example:
menloparkpublic String getZipcode()
public void setZipcode(String zipcode)
zipcode
- is a five-digit zip code for United States.For other
locations, follow each country's standards. Example: 98121
(for United States zip code)public UserData zipcode(String zipcode)
zipcode
- is a five-digit zip code for United States.For other
locations, follow each country's standards. Example: 98121
(for United States zip code)public String getState()
public void setState(String state)
state
- is state in lower-case without spaces or punctuation. Example:
capublic UserData state(String state)
state
- is state in lower-case without spaces or punctuation. Example:
capublic String getCountryCode()
public void setCountryCode(String countryCode)
countryCode
- is A two-letter country code in lowercase. Example: usapublic UserData countryCode(String countryCode)
countryCode
- is A two-letter country code in lowercase. Example: usapublic String getExternalId()
public void setExternalId(String externalId)
externalId
- is a unique ID from the business, such as loyalty
membership IDs, user IDs, and external cookie IDs.public UserData externalId(String externalId)
externalId
- is a unique ID from the business, such as loyalty
membership IDs, user IDs, and external cookie IDs.public String getAddress()
public void setAddress(String address)
address
- is a physical addressCopyright © 2023. All rights reserved.