Class AccountUpdateRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountUpdateRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class AccountUpdateRequest
extends Object
implements Serializable
AccountUpdateRequest
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAgreementsItem(Agreement agreementsItem) addBeneficiariesItem(Beneficiary beneficiariesItem) addEnabledAssetsItem(EnabledAssetClass enabledAssetsItem) agreements(List<Agreement> agreements) allowInstantAch(Boolean allowInstantAch) beneficiaries(List<Beneficiary> beneficiaries) cashInterest(AccountCashInterestPatch cashInterest) disclosures(Disclosures disclosures) enabledAssets(List<EnabledAssetClass> enabledAssets) booleanfpsl(AccountFPSLPatch fpsl) static AccountUpdateRequestCreate an instance of AccountUpdateRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Additional agreements, or new revisions of existing agreements, read and signed by the account holder.If provided, updates whether the account is enabled for Instant ACH by the partner.Get beneficiariesGet cashInterestGet contactGet disclosuresThe asset classes enabled on the account.getFpsl()Get fpslGet identityThe UUID of the primary account holder.Get trustedContactinthashCode()primaryAccountHolderId(UUID primaryAccountHolderId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAgreements(List<Agreement> agreements) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetBeneficiaries(List<Beneficiary> beneficiaries) voidsetCashInterest(AccountCashInterestPatch cashInterest) voidsetContact(Contact contact) voidsetDisclosures(Disclosures disclosures) voidsetEnabledAssets(List<EnabledAssetClass> enabledAssets) voidsetFpsl(AccountFPSLPatch fpsl) voidsetIdentity(Identity identity) voidsetPrimaryAccountHolderId(UUID primaryAccountHolderId) voidsetTrustedContact(TrustedContact trustedContact) toJson()Convert an instance of AccountUpdateRequest to an JSON stringtoString()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_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_ENABLED_ASSETS
- See Also:
-
SERIALIZED_NAME_FPSL
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_PRIMARY_ACCOUNT_HOLDER_ID
- See Also:
-
SERIALIZED_NAME_TRUSTED_CONTACT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountUpdateRequest
public AccountUpdateRequest()
-
-
Method Details
-
agreements
-
addAgreementsItem
-
getAgreements
Additional agreements, or new revisions of existing agreements, read and signed by the account holder.- Returns:
- agreements
-
setAgreements
-
allowInstantAch
-
getAllowInstantAch
If provided, updates whether the account is enabled for Instant ACH by the partner. Omitting the field leaves the current setting unchanged.- 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
-
disclosures
-
getDisclosures
Get disclosures- Returns:
- disclosures
-
setDisclosures
-
enabledAssets
-
addEnabledAssetsItem
-
getEnabledAssets
The asset classes enabled on the account. Omit this field to leave the account's enabled assets unchanged. Updates are additive only: the submitted list must contain every asset class already enabled on the account, because asset removal is not supported. For example, to enable crypto for an account that currently trades only equities, submit `[\"us_equity\", \"crypto\"]` together with the signed crypto agreement. `us_option` may appear in this list for options-enabled accounts and must be re-listed on additive updates, but options cannot be enabled through this endpoint.- Returns:
- enabledAssets
-
setEnabledAssets
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
identity
-
getIdentity
Get identity- Returns:
- identity
-
setIdentity
-
-
getPrimaryAccountHolderId
The UUID of the primary account holder. This field is immutable after the account is created. - Omitting the field, or supplying the value already associated with the account, is a no-op. - Supplying a value different from the current primary account holder returns HTTP 403.- Returns:
- primaryAccountHolderId
-
setPrimaryAccountHolderId
-
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 AccountUpdateRequest 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 AccountUpdateRequest
-
fromJson
Create an instance of AccountUpdateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountUpdateRequest
- Throws:
IOException- if the JSON string is invalid with respect to AccountUpdateRequest
-
toJson
Convert an instance of AccountUpdateRequest to an JSON string- Returns:
- JSON string
-