Class AccountCashInterestEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountCashInterestEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountCashInterestEvent
extends Object
implements Serializable
This property is included when the account's cash interest program had changed due to an enrollment, APR tier change, or unenrollment. The from and to status or APR tier name will be included in the event, depending on the change.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaprTierNameFrom(String aprTierNameFrom) aprTierNameTo(String aprTierNameTo) booleanstatic AccountCashInterestEventCreate an instance of AccountCashInterestEvent given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The APR tier name before the changeThe APR tier name after the changeThe currency of the cash interest program that changed.The cash_interest program status of the account before the changeThe cash_interest program status of the account after the changeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAprTierNameFrom(String aprTierNameFrom) voidsetAprTierNameTo(String aprTierNameTo) voidsetCurrency(String currency) voidsetStatusFrom(String statusFrom) voidsetStatusTo(String statusTo) statusFrom(String statusFrom) toJson()Convert an instance of AccountCashInterestEvent to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_APR_TIER_NAME_FROM
- See Also:
-
SERIALIZED_NAME_APR_TIER_NAME_TO
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_STATUS_FROM
- See Also:
-
SERIALIZED_NAME_STATUS_TO
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountCashInterestEvent
public AccountCashInterestEvent()
-
-
Method Details
-
aprTierNameFrom
-
getAprTierNameFrom
The APR tier name before the change- Returns:
- aprTierNameFrom
-
setAprTierNameFrom
-
aprTierNameTo
-
getAprTierNameTo
The APR tier name after the change- Returns:
- aprTierNameTo
-
setAprTierNameTo
-
currency
-
getCurrency
The currency of the cash interest program that changed.- Returns:
- currency
-
setCurrency
-
statusFrom
-
getStatusFrom
The cash_interest program status of the account before the change- Returns:
- statusFrom
-
setStatusFrom
-
statusTo
-
getStatusTo
The cash_interest program status of the account after the change- Returns:
- statusTo
-
setStatusTo
-
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 AccountCashInterestEvent 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 AccountCashInterestEvent
-
fromJson
Create an instance of AccountCashInterestEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountCashInterestEvent
- Throws:
IOException- if the JSON string is invalid with respect to AccountCashInterestEvent
-
toJson
Convert an instance of AccountCashInterestEvent to an JSON string- Returns:
- JSON string
-