Class Identity
java.lang.Object
markets.alpaca.client.openapi.broker.model.Identity
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Identity
extends Object
implements Serializable
Identity is the model to provide account owner's identity information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets fundingSourcestatic enumThe user's level of expertise and familiarity with investing in Options.static enumThe user's level of expertise and familiarity with investing in US Equities.static enumThe user's investment objective.static enumThe expected period of time the user plan to invest to achieve his/her financial goal(s).static enumThe user's ability to quickly and easily convert all or part of their investments in this account to cash without significant loss in value.static enumThe marital status of the user.static enumThe user's investment risk tolerance. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFundingSourceItem(Identity.FundingSourceEnum fundingSourceItem) annualIncomeMax(BigDecimal annualIncomeMax) annualIncomeMin(BigDecimal annualIncomeMin) countryOfBirth(String countryOfBirth) countryOfCitizenship(String countryOfCitizenship) countryOfTaxResidence(String countryOfTaxResidence) dateOfBirth(LocalDate dateOfBirth) dateOfDepartureFromUsa(LocalDate dateOfDepartureFromUsa) booleanfamilyName(String familyName) static IdentityCreate an instance of Identity given an JSON stringfundingSource(List<Identity.FundingSourceEnum> fundingSource) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The upper bound of the user's annual income.The lower bound of the user's annual income.[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).The date of birth in \"YYYY-MM-DD\" format.Required if `visa_type` = B1 or B2The last name (surname) of the user.Can be one or more of the following: `employment_income`, `investments`, `inheritance`, `business_income`, `savings`, `family`.The first/given name of the user.The user's level of expertise and familiarity with investing in Options.The user's level of expertise and familiarity with investing in US Equities.Deprecated.Deprecated.Deprecated.The upper bound of the user's liquid net worth.The lower bound of the user's liquid net worth.The marital status of the user.The middle name of the user.The number of dependents the user has.Only used to collect permanent residence status in the USA.Deprecated.getTaxId()Required if tax_id_type is set.Get taxIdTypeThe upper bound of the user's total net worth.The lower bound of the user's total net worth.Required if `visa_type` is set.Only used to collect visa types for users residing in the USA.inthashCode()investmentExperienceWithOptions(Identity.InvestmentExperienceWithOptionsEnum investmentExperienceWithOptions) investmentExperienceWithStocks(Identity.InvestmentExperienceWithStocksEnum investmentExperienceWithStocks) investmentObjective(Identity.InvestmentObjectiveEnum investmentObjective) Deprecated.investmentTimeHorizon(Identity.InvestmentTimeHorizonEnum investmentTimeHorizon) Deprecated.liquidityNeeds(Identity.LiquidityNeedsEnum liquidityNeeds) Deprecated.liquidNetWorthMax(BigDecimal liquidNetWorthMax) liquidNetWorthMin(BigDecimal liquidNetWorthMin) maritalStatus(Identity.MaritalStatusEnum maritalStatus) middleName(String middleName) numberOfDependents(Integer numberOfDependents) permanentResident(Boolean permanentResident) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.riskTolerance(Identity.RiskToleranceEnum riskTolerance) Deprecated.voidsetAnnualIncomeMax(BigDecimal annualIncomeMax) voidsetAnnualIncomeMin(BigDecimal annualIncomeMin) voidsetCountryOfBirth(String countryOfBirth) voidsetCountryOfCitizenship(String countryOfCitizenship) voidsetCountryOfTaxResidence(String countryOfTaxResidence) voidsetDateOfBirth(LocalDate dateOfBirth) voidsetDateOfDepartureFromUsa(LocalDate dateOfDepartureFromUsa) voidsetFamilyName(String familyName) voidsetFundingSource(List<Identity.FundingSourceEnum> fundingSource) voidsetGivenName(String givenName) voidsetInvestmentExperienceWithOptions(Identity.InvestmentExperienceWithOptionsEnum investmentExperienceWithOptions) voidsetInvestmentExperienceWithStocks(Identity.InvestmentExperienceWithStocksEnum investmentExperienceWithStocks) voidsetInvestmentObjective(Identity.InvestmentObjectiveEnum investmentObjective) Deprecated.voidsetInvestmentTimeHorizon(Identity.InvestmentTimeHorizonEnum investmentTimeHorizon) Deprecated.voidsetLiquidityNeeds(Identity.LiquidityNeedsEnum liquidityNeeds) Deprecated.voidsetLiquidNetWorthMax(BigDecimal liquidNetWorthMax) voidsetLiquidNetWorthMin(BigDecimal liquidNetWorthMin) voidsetMaritalStatus(Identity.MaritalStatusEnum maritalStatus) voidsetMiddleName(String middleName) voidsetNumberOfDependents(Integer numberOfDependents) voidsetPermanentResident(Boolean permanentResident) voidsetRiskTolerance(Identity.RiskToleranceEnum riskTolerance) Deprecated.voidvoidsetTaxIdType(TaxIdType taxIdType) voidsetTotalNetWorthMax(BigDecimal totalNetWorthMax) voidsetTotalNetWorthMin(BigDecimal totalNetWorthMin) voidsetVisaExpirationDate(LocalDate visaExpirationDate) voidsetVisaType(String visaType) toJson()Convert an instance of Identity to an JSON stringtoString()totalNetWorthMax(BigDecimal totalNetWorthMax) totalNetWorthMin(BigDecimal totalNetWorthMin) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvisaExpirationDate(LocalDate visaExpirationDate)
-
Field Details
-
SERIALIZED_NAME_ANNUAL_INCOME_MAX
- See Also:
-
SERIALIZED_NAME_ANNUAL_INCOME_MIN
- See Also:
-
SERIALIZED_NAME_COUNTRY_OF_BIRTH
- See Also:
-
SERIALIZED_NAME_COUNTRY_OF_CITIZENSHIP
- See Also:
-
SERIALIZED_NAME_COUNTRY_OF_TAX_RESIDENCE
- See Also:
-
SERIALIZED_NAME_DATE_OF_BIRTH
- See Also:
-
SERIALIZED_NAME_DATE_OF_DEPARTURE_FROM_USA
- See Also:
-
SERIALIZED_NAME_FAMILY_NAME
- See Also:
-
SERIALIZED_NAME_FUNDING_SOURCE
- See Also:
-
SERIALIZED_NAME_GIVEN_NAME
- See Also:
-
SERIALIZED_NAME_INVESTMENT_EXPERIENCE_WITH_OPTIONS
- See Also:
-
SERIALIZED_NAME_INVESTMENT_EXPERIENCE_WITH_STOCKS
- See Also:
-
SERIALIZED_NAME_INVESTMENT_OBJECTIVE
- See Also:
-
SERIALIZED_NAME_INVESTMENT_TIME_HORIZON
- See Also:
-
SERIALIZED_NAME_LIQUID_NET_WORTH_MAX
- See Also:
-
SERIALIZED_NAME_LIQUID_NET_WORTH_MIN
- See Also:
-
SERIALIZED_NAME_LIQUIDITY_NEEDS
- See Also:
-
SERIALIZED_NAME_MARITAL_STATUS
- See Also:
-
SERIALIZED_NAME_MIDDLE_NAME
- See Also:
-
SERIALIZED_NAME_NUMBER_OF_DEPENDENTS
- See Also:
-
SERIALIZED_NAME_PERMANENT_RESIDENT
- See Also:
-
SERIALIZED_NAME_RISK_TOLERANCE
- See Also:
-
SERIALIZED_NAME_TAX_ID
- See Also:
-
SERIALIZED_NAME_TAX_ID_TYPE
- See Also:
-
SERIALIZED_NAME_TOTAL_NET_WORTH_MAX
- See Also:
-
SERIALIZED_NAME_TOTAL_NET_WORTH_MIN
- See Also:
-
SERIALIZED_NAME_VISA_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_VISA_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Identity
public Identity()
-
-
Method Details
-
annualIncomeMax
-
getAnnualIncomeMax
The upper bound of the user's annual income.- Returns:
- annualIncomeMax
-
setAnnualIncomeMax
-
annualIncomeMin
-
getAnnualIncomeMin
The lower bound of the user's annual income.- Returns:
- annualIncomeMin
-
setAnnualIncomeMin
-
countryOfBirth
-
getCountryOfBirth
[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).- Returns:
- countryOfBirth
-
setCountryOfBirth
-
countryOfCitizenship
-
getCountryOfCitizenship
[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).- Returns:
- countryOfCitizenship
-
setCountryOfCitizenship
-
countryOfTaxResidence
-
getCountryOfTaxResidence
[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).- Returns:
- countryOfTaxResidence
-
setCountryOfTaxResidence
-
dateOfBirth
-
getDateOfBirth
The date of birth in \"YYYY-MM-DD\" format.- Returns:
- dateOfBirth
-
setDateOfBirth
-
dateOfDepartureFromUsa
-
getDateOfDepartureFromUsa
Required if `visa_type` = B1 or B2- Returns:
- dateOfDepartureFromUsa
-
setDateOfDepartureFromUsa
-
familyName
-
getFamilyName
The last name (surname) of the user.- Returns:
- familyName
-
setFamilyName
-
fundingSource
-
addFundingSourceItem
-
getFundingSource
Can be one or more of the following: `employment_income`, `investments`, `inheritance`, `business_income`, `savings`, `family`.- Returns:
- fundingSource
-
setFundingSource
-
givenName
-
getGivenName
The first/given name of the user.- Returns:
- givenName
-
setGivenName
-
investmentExperienceWithOptions
public Identity investmentExperienceWithOptions(@Nullable Identity.InvestmentExperienceWithOptionsEnum investmentExperienceWithOptions) -
getInvestmentExperienceWithOptions
The user's level of expertise and familiarity with investing in Options.- Returns:
- investmentExperienceWithOptions
-
setInvestmentExperienceWithOptions
public void setInvestmentExperienceWithOptions(@Nullable Identity.InvestmentExperienceWithOptionsEnum investmentExperienceWithOptions) -
investmentExperienceWithStocks
public Identity investmentExperienceWithStocks(@Nullable Identity.InvestmentExperienceWithStocksEnum investmentExperienceWithStocks) -
getInvestmentExperienceWithStocks
The user's level of expertise and familiarity with investing in US Equities.- Returns:
- investmentExperienceWithStocks
-
setInvestmentExperienceWithStocks
public void setInvestmentExperienceWithStocks(@Nullable Identity.InvestmentExperienceWithStocksEnum investmentExperienceWithStocks) -
investmentObjective
@Deprecated public Identity investmentObjective(@Nullable Identity.InvestmentObjectiveEnum investmentObjective) Deprecated. -
getInvestmentObjective
Deprecated.The user's investment objective. This field is deprecated. Please use the top level `investment_objective` field.- Returns:
- investmentObjective
-
setInvestmentObjective
@Deprecated public void setInvestmentObjective(@Nullable Identity.InvestmentObjectiveEnum investmentObjective) Deprecated. -
investmentTimeHorizon
@Deprecated public Identity investmentTimeHorizon(@Nullable Identity.InvestmentTimeHorizonEnum investmentTimeHorizon) Deprecated. -
getInvestmentTimeHorizon
Deprecated.The expected period of time the user plan to invest to achieve his/her financial goal(s). This field is deprecated. Please use the top level `investment_time_horizon` field.- Returns:
- investmentTimeHorizon
-
setInvestmentTimeHorizon
@Deprecated public void setInvestmentTimeHorizon(@Nullable Identity.InvestmentTimeHorizonEnum investmentTimeHorizon) Deprecated. -
liquidNetWorthMax
-
getLiquidNetWorthMax
The upper bound of the user's liquid net worth.- Returns:
- liquidNetWorthMax
-
setLiquidNetWorthMax
-
liquidNetWorthMin
-
getLiquidNetWorthMin
The lower bound of the user's liquid net worth.- Returns:
- liquidNetWorthMin
-
setLiquidNetWorthMin
-
liquidityNeeds
Deprecated. -
getLiquidityNeeds
Deprecated.The user's ability to quickly and easily convert all or part of their investments in this account to cash without significant loss in value. This field is deprecated. Please use the top level `liquidity_needs` field.- Returns:
- liquidityNeeds
-
setLiquidityNeeds
Deprecated. -
maritalStatus
-
getMaritalStatus
The marital status of the user.- Returns:
- maritalStatus
-
setMaritalStatus
-
middleName
-
getMiddleName
The middle name of the user.- Returns:
- middleName
-
setMiddleName
-
numberOfDependents
-
getNumberOfDependents
The number of dependents the user has.- Returns:
- numberOfDependents
-
setNumberOfDependents
-
permanentResident
-
getPermanentResident
Only used to collect permanent residence status in the USA.- Returns:
- permanentResident
-
setPermanentResident
-
riskTolerance
Deprecated. -
getRiskTolerance
Deprecated.The user's investment risk tolerance. This field is deprecated. Please use the top level `risk_tolerance` field.- Returns:
- riskTolerance
-
setRiskTolerance
Deprecated. -
taxId
-
getTaxId
Required if tax_id_type is set.- Returns:
- taxId
-
setTaxId
-
taxIdType
-
getTaxIdType
Get taxIdType- Returns:
- taxIdType
-
setTaxIdType
-
totalNetWorthMax
-
getTotalNetWorthMax
The upper bound of the user's total net worth.- Returns:
- totalNetWorthMax
-
setTotalNetWorthMax
-
totalNetWorthMin
-
getTotalNetWorthMin
The lower bound of the user's total net worth.- Returns:
- totalNetWorthMin
-
setTotalNetWorthMin
-
visaExpirationDate
-
getVisaExpirationDate
Required if `visa_type` is set.- Returns:
- visaExpirationDate
-
setVisaExpirationDate
-
visaType
-
getVisaType
Only used to collect visa types for users residing in the USA.- Returns:
- visaType
-
setVisaType
-
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 Identity 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 Identity
-
fromJson
Create an instance of Identity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Identity
- Throws:
IOException- if the JSON string is invalid with respect to Identity
-
toJson
Convert an instance of Identity to an JSON string- Returns:
- JSON string
-