Class AccountCreationRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountCreationRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class AccountCreationRequest
extends Object
implements Serializable
Fields accepted when creating an account. Requirements vary by account type, enabled assets, existing holder agreements, and correspondent configuration. The server enforces conditional requirements that are not represented statically in this schema. Account-specific requirements: - Trading accounts require inline `identity` plus `contact`, or an existing holder through `primary_account_holder_id`. Individual US equity accounts created with inline identity also require `disclosures`. - Custodial accounts require `identity` and `minor_identity`. US equity accounts also require `disclosures`. - IRA accounts require `account_sub_type`, US equity, and either inline `identity` or an existing holder through `primary_account_holder_id`; they do not support crypto. IRA accounts created with inline identity also require `disclosures`. - Donor-advised accounts require `entity_id`.
- 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountSubType(AccountSubType accountSubType) accountType(AccountCreationType accountType) addAgreementsItem(Agreement agreementsItem) addBeneficiariesItem(Beneficiary beneficiariesItem) addDocumentsItem(OwnerDocumentUploadRequest documentsItem) addEnabledAssetsItem(EnabledAssetClass enabledAssetsItem) agreements(List<Agreement> agreements) allowInstantAch(Boolean allowInstantAch) beneficiaries(List<Beneficiary> beneficiaries) cashInterest(AccountCashInterestPost cashInterest) disclosures(Disclosures disclosures) documents(List<OwnerDocumentUploadRequest> documents) enabledAssets(List<EnabledAssetClass> enabledAssets) booleanfpsl(AccountFPSLPost fpsl) static AccountCreationRequestCreate an instance of AccountCreationRequest given an JSON stringThe account subtype.The account type.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Agreements submitted for the account or holder.Determines whether the account will be enabled for Instant ACH by the partner.IRA Account only.Get cashInterestGet contactGet disclosuresGet documentsWill default to `us_equity`.UUID of an existing legal entity used as the holder of a donor-advised account.getFpsl()Get fpslGet identityThe user's investment objective.The expected period of time the user plan to invest to achieve his/her financial goal(s).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.Identity information for the minor.UUID of an existing party to use as the primary account holder.The user's investment risk tolerance.Get tradingConfigurationsGet trustedContactinthashCode()investmentObjective(AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) investmentTimeHorizon(AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) liquidityNeeds(AccountCreationRequest.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(AccountCreationRequest.RiskToleranceEnum riskTolerance) voidsetAccountSubType(AccountSubType accountSubType) voidsetAccountType(AccountCreationType accountType) voidsetAgreements(List<Agreement> agreements) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetBeneficiaries(List<Beneficiary> beneficiaries) voidsetCashInterest(AccountCashInterestPost cashInterest) voidsetContact(Contact contact) voidsetDisclosures(Disclosures disclosures) voidsetDocuments(List<OwnerDocumentUploadRequest> documents) voidsetEnabledAssets(List<EnabledAssetClass> enabledAssets) voidsetEntityId(UUID entityId) voidsetFpsl(AccountFPSLPost fpsl) voidsetIdentity(Identity identity) voidsetInvestmentObjective(AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) voidsetInvestmentTimeHorizon(AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) voidsetLiquidityNeeds(AccountCreationRequest.LiquidityNeedsEnum liquidityNeeds) voidsetMinorIdentity(CustodialAccountMinorIdentity minorIdentity) voidsetPrimaryAccountHolderId(UUID primaryAccountHolderId) voidsetRiskTolerance(AccountCreationRequest.RiskToleranceEnum riskTolerance) voidsetTradingConfigurations(AccountConfigurations tradingConfigurations) voidsetTrustedContact(TrustedContact trustedContact) toJson()Convert an instance of AccountCreationRequest to an JSON stringtoString()tradingConfigurations(AccountConfigurations tradingConfigurations) trustedContact(TrustedContact trustedContact) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
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_DISCLOSURES
- See Also:
-
SERIALIZED_NAME_DOCUMENTS
- See Also:
-
SERIALIZED_NAME_ENABLED_ASSETS
- See Also:
-
SERIALIZED_NAME_ENTITY_ID
- See Also:
-
SERIALIZED_NAME_FPSL
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_INVESTMENT_OBJECTIVE
- See Also:
-
SERIALIZED_NAME_INVESTMENT_TIME_HORIZON
- 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_TRADING_CONFIGURATIONS
- See Also:
-
SERIALIZED_NAME_TRUSTED_CONTACT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountCreationRequest
public AccountCreationRequest()
-
-
Method Details
-
accountSubType
-
getAccountSubType
The account subtype. Required for IRA accounts.- Returns:
- accountSubType
-
setAccountSubType
-
accountType
-
getAccountType
The account type. Defaults to `trading` when omitted.- Returns:
- accountType
-
setAccountType
-
agreements
-
addAgreementsItem
-
getAgreements
Agreements submitted for the account or holder. Required agreement types depend on account type, enabled assets, existing holder agreements, and correspondent configuration. The server validates required coverage.- Returns:
- agreements
-
setAgreements
-
allowInstantAch
-
getAllowInstantAch
Determines whether the account will be enabled for Instant ACH by the partner. Defaults to false if not provided.- Returns:
- allowInstantAch
-
setAllowInstantAch
-
beneficiaries
-
addBeneficiariesItem
-
getBeneficiaries
IRA Account only. A user can submit max 6 beneficiaries.- Returns:
- beneficiaries
-
setBeneficiaries
-
cashInterest
-
getCashInterest
Get cashInterest- Returns:
- cashInterest
-
setCashInterest
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
disclosures
-
getDisclosures
Get disclosures- Returns:
- disclosures
-
setDisclosures
-
documents
-
addDocumentsItem
-
getDocuments
Get documents- Returns:
- documents
-
setDocuments
-
enabledAssets
-
addEnabledAssetsItem
-
getEnabledAssets
Will default to `us_equity`. Alpaca has the ability to update the default value upon request.- Returns:
- enabledAssets
-
setEnabledAssets
-
entityId
-
getEntityId
UUID of an existing legal entity used as the holder of a donor-advised account. Required for donor-advised accounts.- Returns:
- entityId
-
setEntityId
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
identity
-
getIdentity
Get identity- Returns:
- identity
-
setIdentity
-
investmentObjective
public AccountCreationRequest investmentObjective(@Nullable AccountCreationRequest.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 AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) -
investmentTimeHorizon
public AccountCreationRequest investmentTimeHorizon(@Nullable AccountCreationRequest.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 AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) -
liquidityNeeds
public AccountCreationRequest liquidityNeeds(@Nullable AccountCreationRequest.LiquidityNeedsEnum 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
Identity information for the minor. Required for custodial accounts.- Returns:
- minorIdentity
-
setMinorIdentity
-
-
getPrimaryAccountHolderId
UUID of an existing party to use as the primary account holder. Among the documented account types, existing holders are supported for trading and IRA accounts. When provided, omit inline holder fields such as `contact`, `identity`, `disclosures`, and `minor_identity`. The server validates the referenced party, account-type compatibility, eligibility, and required agreements.- Returns:
- primaryAccountHolderId
-
setPrimaryAccountHolderId
-
riskTolerance
public AccountCreationRequest riskTolerance(@Nullable AccountCreationRequest.RiskToleranceEnum riskTolerance) -
getRiskTolerance
The user's investment risk tolerance. This field should be used instead of the deprecated `risk_tolerance` under identity.- Returns:
- riskTolerance
-
setRiskTolerance
-
tradingConfigurations
public AccountCreationRequest tradingConfigurations(@Nullable AccountConfigurations tradingConfigurations) -
getTradingConfigurations
Get tradingConfigurations- Returns:
- tradingConfigurations
-
setTradingConfigurations
-
trustedContact
-
getTrustedContact
Get trustedContact- Returns:
- trustedContact
-
setTrustedContact
-
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 AccountCreationRequest 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 AccountCreationRequest
-
fromJson
Create an instance of AccountCreationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountCreationRequest
- Throws:
IOException- if the JSON string is invalid with respect to AccountCreationRequest
-
toJson
Convert an instance of AccountCreationRequest to an JSON string- Returns:
- JSON string
-