Class AccountStatusEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountStatusEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountStatusEvent
extends Object
implements Serializable
Represents a change to certain account properties, sent over the events streaming API.
- See Also:
-
Nested Class Summary
Nested Classes -
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountBlocked(Boolean accountBlocked) accountNumber(String accountNumber) adminConfigurations(AdminConfigurationsEvent adminConfigurations) cashInterest(AccountCashInterestEvent cashInterest) cryptoStatusFrom(String cryptoStatusFrom) cryptoStatusTo(String cryptoStatusTo) booleanfpsl(AccountFPSLEvent fpsl) static AccountStatusEventCreate an instance of AccountStatusEvent given an JSON stringIf true the account was blocked, if false, the account got unblockedThe unique identifier of the account that was changedThe account number of the account that was changedReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get adminConfigurationsgetAt()timestamp of eventGet cashInterestaccount crypto_status changed fromaccount crypto_status changed toMonotonically increasing 64-bit integer not available to new partners, and for backward compatibility purposes only; use `event_ulid` as the stable identifier where possiblelexically sortable, monotonically increasing character arraygetFpsl()Get fpslGet kycResultsGet optionsDeprecated.The account status before the changeThe account status after the changeIf true the account cannot trade going forward, if false, the ban has been lifedinthashCode()kycResults(KYCResults kycResults) options(OptionsApprovalEvent options) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.Deprecated.voidsetAccountBlocked(Boolean accountBlocked) voidsetAccountId(String accountId) voidsetAccountNumber(String accountNumber) voidsetAdminConfigurations(AdminConfigurationsEvent adminConfigurations) voidvoidsetCashInterest(AccountCashInterestEvent cashInterest) voidsetCryptoStatusFrom(String cryptoStatusFrom) voidsetCryptoStatusTo(String cryptoStatusTo) voidsetEventId(Integer eventId) voidsetEventUlid(String eventUlid) voidsetFpsl(AccountFPSLEvent fpsl) voidsetKycResults(KYCResults kycResults) voidsetOptions(OptionsApprovalEvent options) voidDeprecated.voidsetStatusFrom(String statusFrom) voidsetStatusTo(String statusTo) voidsetTradingBlocked(Boolean tradingBlocked) statusFrom(String statusFrom) toJson()Convert an instance of AccountStatusEvent to an JSON stringtoString()tradingBlocked(Boolean tradingBlocked) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_BLOCKED
- See Also:
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_ADMIN_CONFIGURATIONS
- See Also:
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_CASH_INTEREST
- See Also:
-
SERIALIZED_NAME_CRYPTO_STATUS_FROM
- See Also:
-
SERIALIZED_NAME_CRYPTO_STATUS_TO
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_EVENT_ULID
- See Also:
-
SERIALIZED_NAME_FPSL
- See Also:
-
SERIALIZED_NAME_KYC_RESULTS
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_STATUS_FROM
- See Also:
-
SERIALIZED_NAME_STATUS_TO
- See Also:
-
SERIALIZED_NAME_TRADING_BLOCKED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountStatusEvent
public AccountStatusEvent()
-
-
Method Details
-
accountBlocked
-
getAccountBlocked
If true the account was blocked, if false, the account got unblocked- Returns:
- accountBlocked
-
setAccountBlocked
-
accountId
-
getAccountId
The unique identifier of the account that was changed- Returns:
- accountId
-
setAccountId
-
accountNumber
-
getAccountNumber
The account number of the account that was changed- Returns:
- accountNumber
-
setAccountNumber
-
adminConfigurations
public AccountStatusEvent adminConfigurations(@Nullable AdminConfigurationsEvent adminConfigurations) -
getAdminConfigurations
Get adminConfigurations- Returns:
- adminConfigurations
-
setAdminConfigurations
-
at
-
getAt
timestamp of event- Returns:
- at
-
setAt
-
cashInterest
-
getCashInterest
Get cashInterest- Returns:
- cashInterest
-
setCashInterest
-
cryptoStatusFrom
-
getCryptoStatusFrom
account crypto_status changed from- Returns:
- cryptoStatusFrom
-
setCryptoStatusFrom
-
cryptoStatusTo
-
getCryptoStatusTo
account crypto_status changed to- Returns:
- cryptoStatusTo
-
setCryptoStatusTo
-
eventId
-
getEventId
Monotonically increasing 64-bit integer not available to new partners, and for backward compatibility purposes only; use `event_ulid` as the stable identifier where possible- Returns:
- eventId
-
setEventId
-
eventUlid
-
getEventUlid
lexically sortable, monotonically increasing character array- Returns:
- eventUlid
-
setEventUlid
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
kycResults
-
getKycResults
Get kycResults- Returns:
- kycResults
-
setKycResults
-
options
-
getOptions
Get options- Returns:
- options
-
setOptions
-
reason
Deprecated. -
getReason
Deprecated.Get reason- Returns:
- reason
-
setReason
Deprecated. -
statusFrom
-
getStatusFrom
The account status before the change- Returns:
- statusFrom
-
setStatusFrom
-
statusTo
-
getStatusTo
The account status after the change- Returns:
- statusTo
-
setStatusTo
-
tradingBlocked
-
getTradingBlocked
If true the account cannot trade going forward, if false, the ban has been lifed- Returns:
- tradingBlocked
-
setTradingBlocked
-
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 AccountStatusEvent 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 AccountStatusEvent
-
fromJson
Create an instance of AccountStatusEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountStatusEvent
- Throws:
IOException- if the JSON string is invalid with respect to AccountStatusEvent
-
toJson
Convert an instance of AccountStatusEvent to an JSON string- Returns:
- JSON string
-