Class Contact
java.lang.Object
markets.alpaca.client.openapi.broker.model.Contact
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Contact
extends Object
implements Serializable
Contact is the model for the account owner contact information.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStreetAddressItem(String streetAddressItem) emailAddress(String emailAddress) booleanstatic ContactCreate an instance of Contact given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCity()Get citycountry code in ISO 3166-1 alpha-3 format, representing the country the person/entity resides in.Get emailAddressPhone number should include the country code, format: \"+15555555555\"Get postalCodegetState()Required if the country or country_of_tax_residence (in the identity model below) is 'USA'.The user's street address.getUnit()The specific apartment number if applicableinthashCode()phoneNumber(String phoneNumber) postalCode(String postalCode) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetCountry(String country) voidsetEmailAddress(String emailAddress) voidsetPhoneNumber(String phoneNumber) voidsetPostalCode(String postalCode) voidvoidsetStreetAddress(List<String> streetAddress) voidstreetAddress(List<String> streetAddress) toJson()Convert an instance of Contact to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CITY
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_EMAIL_ADDRESS
- See Also:
-
SERIALIZED_NAME_PHONE_NUMBER
- See Also:
-
SERIALIZED_NAME_POSTAL_CODE
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_STREET_ADDRESS
- See Also:
-
SERIALIZED_NAME_UNIT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Contact
public Contact()
-
-
Method Details
-
city
-
getCity
Get city- Returns:
- city
-
setCity
-
country
-
getCountry
country code in ISO 3166-1 alpha-3 format, representing the country the person/entity resides in.- Returns:
- country
-
setCountry
-
emailAddress
-
getEmailAddress
Get emailAddress- Returns:
- emailAddress
-
setEmailAddress
-
phoneNumber
-
getPhoneNumber
Phone number should include the country code, format: \"+15555555555\"- Returns:
- phoneNumber
-
setPhoneNumber
-
postalCode
-
getPostalCode
Get postalCode- Returns:
- postalCode
-
setPostalCode
-
state
-
getState
Required if the country or country_of_tax_residence (in the identity model below) is 'USA'.- Returns:
- state
-
setState
-
streetAddress
-
addStreetAddressItem
-
getStreetAddress
The user's street address. If multiple lines in address, pass in as additional array elements. Maximum of 3 objects in array- Returns:
- streetAddress
-
setStreetAddress
-
unit
-
getUnit
The specific apartment number if applicable- Returns:
- unit
-
setUnit
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Contact instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Contact
-
fromJson
Create an instance of Contact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Contact
- Throws:
IOException- if the JSON string is invalid with respect to Contact
-
toJson
Convert an instance of Contact to an JSON string- Returns:
- JSON string
-