Class CaEventCashDividend
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventCashDividend
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventCashDividend
extends Object
implements Serializable
Cash dividend payload delivered when `event_type == cash_dividend_corporateaction_event`. Corresponds to `cash_dividends` on the REST [`GET /v1/corporate-actions`](#operation/CorporateActions) response, but every decimal field is emitted as a JSON string to preserve precision on the wire.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumOptional sub-classification of the dividend. -
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondueBillOffDate(LocalDate dueBillOffDate) dueBillOnDate(LocalDate dueBillOnDate) booleanstatic CaEventCashDividendCreate an instance of CaEventCashDividend given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The ISO 4217 currency code associated with the corporate action.getCusip()CUSIP of the security.End of the due-bill period.Start of the due-bill period.The ex-date marks the cutoff point for shareholders to be credited.`true` if the issuer is not US-based.getId()The internal Alpaca identifier of the corporate action.getIsin()International Securities Identification Number (ISIN) as defined by ISO 6166.The date when the corporate action benefit is paid or distributed.The date when the corporate action is processed by Alpaca.getRate()Cash paid per share, as a decimal string.The date shareholders must own shares to receive the benefit.`true` if this is a one-off dividend outside the issuer's regular distribution schedule.Optional sub-classification of the dividend.Ticker paying the dividend.inthashCode()payableDate(LocalDate payableDate) processDate(LocalDate processDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.recordDate(LocalDate recordDate) voidsetCurrency(String currency) voidvoidsetDueBillOffDate(LocalDate dueBillOffDate) voidsetDueBillOnDate(LocalDate dueBillOnDate) voidvoidsetForeign(Boolean foreign) voidvoidvoidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) voidvoidsetRecordDate(LocalDate recordDate) voidsetSpecial(Boolean special) voidvoidsubType(CaEventCashDividend.SubTypeEnum subType) toJson()Convert an instance of CaEventCashDividend 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_ID
- See Also:
-
SERIALIZED_NAME_PROCESS_DATE
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_DUE_BILL_OFF_DATE
- See Also:
-
SERIALIZED_NAME_DUE_BILL_ON_DATE
- See Also:
-
SERIALIZED_NAME_EX_DATE
- See Also:
-
SERIALIZED_NAME_FOREIGN
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_RATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_SPECIAL
- See Also:
-
SERIALIZED_NAME_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventCashDividend
public CaEventCashDividend()
-
-
Method Details
-
id
-
getId
The internal Alpaca identifier of the corporate action.- Returns:
- id
-
setId
-
processDate
-
getProcessDate
The date when the corporate action is processed by Alpaca.- Returns:
- processDate
-
setProcessDate
-
currency
-
getCurrency
The ISO 4217 currency code associated with the corporate action. Empty value can mean USD, non-applicable (e.g. for name changes) or unknown (can change later to a valid currency).- Returns:
- currency
-
setCurrency
-
cusip
-
getCusip
CUSIP of the security.- Returns:
- cusip
-
setCusip
-
dueBillOffDate
-
getDueBillOffDate
End of the due-bill period.- Returns:
- dueBillOffDate
-
setDueBillOffDate
-
dueBillOnDate
-
getDueBillOnDate
Start of the due-bill period.- Returns:
- dueBillOnDate
-
setDueBillOnDate
-
exDate
-
getExDate
The ex-date marks the cutoff point for shareholders to be credited.- Returns:
- exDate
-
setExDate
-
foreign
-
getForeign
`true` if the issuer is not US-based.- Returns:
- foreign
-
setForeign
-
isin
-
getIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- isin
-
setIsin
-
payableDate
-
getPayableDate
The date when the corporate action benefit is paid or distributed.- Returns:
- payableDate
-
setPayableDate
-
rate
-
getRate
Cash paid per share, as a decimal string.- Returns:
- rate
-
setRate
-
recordDate
-
getRecordDate
The date shareholders must own shares to receive the benefit.- Returns:
- recordDate
-
setRecordDate
-
special
-
getSpecial
`true` if this is a one-off dividend outside the issuer's regular distribution schedule.- Returns:
- special
-
setSpecial
-
subType
-
getSubType
Optional sub-classification of the dividend.- Returns:
- subType
-
setSubType
-
symbol
-
getSymbol
Ticker paying the dividend.- Returns:
- symbol
-
setSymbol
-
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 CaEventCashDividend 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 CaEventCashDividend
-
fromJson
Create an instance of CaEventCashDividend given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventCashDividend
- Throws:
IOException- if the JSON string is invalid with respect to CaEventCashDividend
-
toJson
Convert an instance of CaEventCashDividend to an JSON string- Returns:
- JSON string
-