Class AccountExtended
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountExtended
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountExtended
extends Object
implements Serializable
Represents an account with all data available. If your api response is missing some of these fields, there is a good chance you are using a route that returns `Account` instances instead of these.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic 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 to cash all or a portion of the investments in this account without experiencing significant loss in value.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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountName(String accountName) accountNumber(String accountNumber) accountSubType(AccountSubType accountSubType) accountType(AccountType accountType) addAgreementsItem(Agreement agreementsItem) addBeneficiariesItem(Beneficiary beneficiariesItem) addDocumentsItem(OwnerDocument documentsItem) addEnabledAssetsItem(AssetClass enabledAssetsItem) agreements(List<Agreement> agreements) allowInstantAch(Boolean allowInstantAch) beneficiaries(List<Beneficiary> beneficiaries) cashInterest(AccountCashInterestResponse cashInterest) createdAt(OffsetDateTime createdAt) cryptoStatus(AccountStatus cryptoStatus) custodialAccountType(String custodialAccountType) disclosures(Disclosures disclosures) documents(List<OwnerDocument> documents) enabledAssets(List<AssetClass> enabledAssets) booleanfpsl(AccountFPSLResponse fpsl) static AccountExtendedCreate an instance of AccountExtended given an JSON stringGet accountNameGet accountNumberGet accountSubTypeGet accountTypeReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get agreementsDetermines whether the account is enabled for Instant ACH by the partner.Get beneficiariesGet cashInterestGet contactGet createdAtGet cryptoStatus\"USD\" // US Dollar \"JPY\" // Japanese Yen \"EUR\" // Euro \"CAD\" // Canadian Dollar \"GBP\" // British Pound Sterling \"CHF\" // Swiss Franc \"TRY\" // Turkish Lira \"AUD\" // Australian Dollar \"CZK\" // Czech Koruna \"SEK\" // Swedish Krona \"DKK\" // Danish Krone \"SGD\" // Singapore Dollar \"HKD\" // Hong Kong Dollar \"HUF\" // Hungarian Forint \"NZD\" // New Zealand Dollar \"NOK\" // Norwegian Krone \"PLN\" // Poland ZłotyRepresents the type of custodial account based on the state where the beneficiary resides.Get disclosuresThe documents associated with the primary owner of the accountGet enabledAssetsgetFpsl()Get fpslgetId()Get idGet identityIndicates whether the account is blocked for Instant ACH by Alpaca.The user's investment objective.The expected period of time the user plan to invest to achieve his/her financial goal(s).Get kycResultsGet lastEquityThe user's ability to quickly and easily convert to cash all or a portion of the investments in this account without experiencing significant loss in value.Get minorIdentityUUID that identifies the primary account holder (party) for accounts opened under the Multi-Live Accounts (MLA) flow.The user's investment risk tolerance.Get statusGet tradingConfigurationsGet trustedContactgetUsd()Get usdinthashCode()instantAchBlocked(Boolean instantAchBlocked) investmentObjective(AccountExtended.InvestmentObjectiveEnum investmentObjective) investmentTimeHorizon(AccountExtended.InvestmentTimeHorizonEnum investmentTimeHorizon) kycResults(KYCResults kycResults) lastEquity(BigDecimal lastEquity) liquidityNeeds(AccountExtended.LiquidityNeedsEnum liquidityNeeds) minorIdentity(CustodialAccountMinorIdentity minorIdentity) primaryAccountHolderId(UUID primaryAccountHolderId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.riskTolerance(AccountExtended.RiskToleranceEnum riskTolerance) voidsetAccountName(String accountName) voidsetAccountNumber(String accountNumber) voidsetAccountSubType(AccountSubType accountSubType) voidsetAccountType(AccountType accountType) voidsetAgreements(List<Agreement> agreements) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetBeneficiaries(List<Beneficiary> beneficiaries) voidsetCashInterest(AccountCashInterestResponse cashInterest) voidsetContact(Contact contact) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCryptoStatus(AccountStatus cryptoStatus) voidsetCurrency(String currency) voidsetCustodialAccountType(String custodialAccountType) voidsetDisclosures(Disclosures disclosures) voidsetDocuments(List<OwnerDocument> documents) voidsetEnabledAssets(List<AssetClass> enabledAssets) voidsetFpsl(AccountFPSLResponse fpsl) voidvoidsetIdentity(Identity identity) voidsetInstantAchBlocked(Boolean instantAchBlocked) voidsetInvestmentObjective(AccountExtended.InvestmentObjectiveEnum investmentObjective) voidsetInvestmentTimeHorizon(AccountExtended.InvestmentTimeHorizonEnum investmentTimeHorizon) voidsetKycResults(KYCResults kycResults) voidsetLastEquity(BigDecimal lastEquity) voidsetLiquidityNeeds(AccountExtended.LiquidityNeedsEnum liquidityNeeds) voidsetMinorIdentity(CustodialAccountMinorIdentity minorIdentity) voidsetPrimaryAccountHolderId(UUID primaryAccountHolderId) voidsetRiskTolerance(AccountExtended.RiskToleranceEnum riskTolerance) voidsetStatus(AccountStatus status) voidsetTradingConfigurations(AccountConfigurations tradingConfigurations) voidsetTrustedContact(TrustedContact trustedContact) voidsetUsd(AccountExtendedUsd usd) status(AccountStatus status) toJson()Convert an instance of AccountExtended to an JSON stringtoString()tradingConfigurations(AccountConfigurations tradingConfigurations) trustedContact(TrustedContact trustedContact) usd(AccountExtendedUsd usd) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_NAME
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_ACCOUNT_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
-
SERIALIZED_NAME_AGREEMENTS
- See Also:
-
SERIALIZED_NAME_ALLOW_INSTANT_ACH
- See Also:
-
SERIALIZED_NAME_BENEFICIARIES
- See Also:
-
SERIALIZED_NAME_CASH_INTEREST
- See Also:
-
SERIALIZED_NAME_CONTACT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CRYPTO_STATUS
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSTODIAL_ACCOUNT_TYPE
- See Also:
-
SERIALIZED_NAME_DISCLOSURES
- See Also:
-
SERIALIZED_NAME_DOCUMENTS
- See Also:
-
SERIALIZED_NAME_ENABLED_ASSETS
- See Also:
-
SERIALIZED_NAME_FPSL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_INSTANT_ACH_BLOCKED
- See Also:
-
SERIALIZED_NAME_INVESTMENT_OBJECTIVE
- See Also:
-
SERIALIZED_NAME_INVESTMENT_TIME_HORIZON
- See Also:
-
SERIALIZED_NAME_KYC_RESULTS
- See Also:
-
SERIALIZED_NAME_LAST_EQUITY
- See Also:
-
SERIALIZED_NAME_LIQUIDITY_NEEDS
- See Also:
-
SERIALIZED_NAME_MINOR_IDENTITY
- See Also:
-
SERIALIZED_NAME_PRIMARY_ACCOUNT_HOLDER_ID
- See Also:
-
SERIALIZED_NAME_RISK_TOLERANCE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TRADING_CONFIGURATIONS
- See Also:
-
SERIALIZED_NAME_TRUSTED_CONTACT
- See Also:
-
SERIALIZED_NAME_USD
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountExtended
public AccountExtended()
-
-
Method Details
-
accountName
-
getAccountName
Get accountName- Returns:
- accountName
-
setAccountName
-
accountNumber
-
getAccountNumber
Get accountNumber- Returns:
- accountNumber
-
setAccountNumber
-
accountSubType
-
getAccountSubType
Get accountSubType- Returns:
- accountSubType
-
setAccountSubType
-
accountType
-
getAccountType
Get accountType- Returns:
- accountType
-
setAccountType
-
agreements
-
addAgreementsItem
-
getAgreements
Get agreements- Returns:
- agreements
-
setAgreements
-
allowInstantAch
-
getAllowInstantAch
Determines whether the account is enabled for Instant ACH by the partner.- Returns:
- allowInstantAch
-
setAllowInstantAch
-
beneficiaries
-
addBeneficiariesItem
-
getBeneficiaries
Get beneficiaries- Returns:
- beneficiaries
-
setBeneficiaries
-
cashInterest
-
getCashInterest
Get cashInterest- Returns:
- cashInterest
-
setCashInterest
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
cryptoStatus
-
getCryptoStatus
Get cryptoStatus- Returns:
- cryptoStatus
-
setCryptoStatus
-
currency
-
getCurrency
\"USD\" // US Dollar \"JPY\" // Japanese Yen \"EUR\" // Euro \"CAD\" // Canadian Dollar \"GBP\" // British Pound Sterling \"CHF\" // Swiss Franc \"TRY\" // Turkish Lira \"AUD\" // Australian Dollar \"CZK\" // Czech Koruna \"SEK\" // Swedish Krona \"DKK\" // Danish Krone \"SGD\" // Singapore Dollar \"HKD\" // Hong Kong Dollar \"HUF\" // Hungarian Forint \"NZD\" // New Zealand Dollar \"NOK\" // Norwegian Krone \"PLN\" // Poland Złoty- Returns:
- currency
-
setCurrency
-
custodialAccountType
-
getCustodialAccountType
Represents the type of custodial account based on the state where the beneficiary resides. This value is returned only when the `country_of_tax_residence` is `USA`. For other countries, this property is not included in the response. **Possible Return Values** `CustodianTypeUTMA` - Indicates that the custodial account is governed by the Uniform Transfers to Minors Act. `CustodianTypeUGMA` - Indicates that the custodial account is governed by the Uniform Gifts to Minors Act.- Returns:
- custodialAccountType
-
setCustodialAccountType
-
disclosures
-
getDisclosures
Get disclosures- Returns:
- disclosures
-
setDisclosures
-
documents
-
addDocumentsItem
-
getDocuments
The documents associated with the primary owner of the account- Returns:
- documents
-
setDocuments
-
enabledAssets
-
addEnabledAssetsItem
-
getEnabledAssets
Get enabledAssets- Returns:
- enabledAssets
-
setEnabledAssets
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
id
-
getId
Get id- Returns:
- id
-
setId
-
identity
-
getIdentity
Get identity- Returns:
- identity
-
setIdentity
-
instantAchBlocked
-
getInstantAchBlocked
Indicates whether the account is blocked for Instant ACH by Alpaca. Defaults to false when the partner creates the account. If the partner has set allow_instant_ach to true but instant_ach_blocked is true, then the account is blocked for Instant ACH irrespective of the fact that the partner has it enabled.- Returns:
- instantAchBlocked
-
setInstantAchBlocked
-
investmentObjective
public AccountExtended investmentObjective(@Nullable AccountExtended.InvestmentObjectiveEnum investmentObjective) -
getInvestmentObjective
The user's investment objective. This field should be used instead of the deprecated `investment_objective` under identity.- Returns:
- investmentObjective
-
setInvestmentObjective
public void setInvestmentObjective(@Nullable AccountExtended.InvestmentObjectiveEnum investmentObjective) -
investmentTimeHorizon
public AccountExtended investmentTimeHorizon(@Nullable AccountExtended.InvestmentTimeHorizonEnum investmentTimeHorizon) -
getInvestmentTimeHorizon
The expected period of time the user plan to invest to achieve his/her financial goal(s). This field should be used instead of the deprecated `investment_time_horizon` under identity.- Returns:
- investmentTimeHorizon
-
setInvestmentTimeHorizon
public void setInvestmentTimeHorizon(@Nullable AccountExtended.InvestmentTimeHorizonEnum investmentTimeHorizon) -
kycResults
-
getKycResults
Get kycResults- Returns:
- kycResults
-
setKycResults
-
lastEquity
-
getLastEquity
Get lastEquity- Returns:
- lastEquity
-
setLastEquity
-
liquidityNeeds
-
getLiquidityNeeds
The user's ability to quickly and easily convert to cash all or a portion of the investments in this account without experiencing significant loss in value. This field should be used instead of the deprecated `liquidity_needs` under identity.- Returns:
- liquidityNeeds
-
setLiquidityNeeds
-
minorIdentity
-
getMinorIdentity
Get minorIdentity- Returns:
- minorIdentity
-
setMinorIdentity
-
-
getPrimaryAccountHolderId
UUID that identifies the primary account holder (party) for accounts opened under the Multi-Live Accounts (MLA) flow. Only populated when the account was created by referencing an existing account holder via `primary_account_holder_id` on `POST /v1/accounts`. Otherwise `null`. Currently only supported for `account_type` of `trading` and `ira`.- Returns:
- primaryAccountHolderId
-
setPrimaryAccountHolderId
-
riskTolerance
-
getRiskTolerance
The user's investment risk tolerance. This field should be used instead of the deprecated `risk_tolerance` under identity.- Returns:
- riskTolerance
-
setRiskTolerance
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
tradingConfigurations
-
getTradingConfigurations
Get tradingConfigurations- Returns:
- tradingConfigurations
-
setTradingConfigurations
-
trustedContact
-
getTrustedContact
Get trustedContact- Returns:
- trustedContact
-
setTrustedContact
-
usd
-
getUsd
Get usd- Returns:
- usd
-
setUsd
-
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 AccountExtended 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 AccountExtended
-
fromJson
Create an instance of AccountExtended given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountExtended
- Throws:
IOException- if the JSON string is invalid with respect to AccountExtended
-
toJson
Convert an instance of AccountExtended to an JSON string- Returns:
- JSON string
-