Class CaEventReverseSplit
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventReverseSplit
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventReverseSplit
extends Object
implements Serializable
Reverse stock split payload delivered when `event_type == reverse_split_corporateaction_event`. Corresponds to `reverse_splits` 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 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CaEventReverseSplitCreate an instance of CaEventReverseSplit 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.The ex-date marks the cutoff point for shareholders to be credited.getId()The internal Alpaca identifier of the corporate action.CUSIP after the split.International Securities Identification Number (ISIN) as defined by ISO 6166.Shares after the split, as a decimal string.Ticker after the split when the issuer also changes symbol (e.g.CUSIP before the split.International Securities Identification Number (ISIN) as defined by ISO 6166.Shares before the split, as a decimal string.The date when the corporate action benefit is paid or distributed.The date when the corporate action is processed by Alpaca.The date shareholders must own shares to receive the benefit.Ticker being split.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) voidvoidvoidsetNewCusip(String newCusip) voidsetNewIsin(String newIsin) voidsetNewRate(String newRate) voidsetNewSymbol(String newSymbol) voidsetOldCusip(String oldCusip) voidsetOldIsin(String oldIsin) voidsetOldRate(String oldRate) voidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) voidsetRecordDate(LocalDate recordDate) voidtoJson()Convert an instance of CaEventReverseSplit 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_EX_DATE
- See Also:
-
SERIALIZED_NAME_NEW_CUSIP
- See Also:
-
SERIALIZED_NAME_NEW_ISIN
- See Also:
-
SERIALIZED_NAME_NEW_RATE
- See Also:
-
SERIALIZED_NAME_NEW_SYMBOL
- See Also:
-
SERIALIZED_NAME_OLD_CUSIP
- See Also:
-
SERIALIZED_NAME_OLD_ISIN
- See Also:
-
SERIALIZED_NAME_OLD_RATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventReverseSplit
public CaEventReverseSplit()
-
-
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
-
exDate
-
getExDate
The ex-date marks the cutoff point for shareholders to be credited.- Returns:
- exDate
-
setExDate
-
newCusip
-
getNewCusip
CUSIP after the split.- Returns:
- newCusip
-
setNewCusip
-
newIsin
-
getNewIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- newIsin
-
setNewIsin
-
newRate
-
getNewRate
Shares after the split, as a decimal string.- Returns:
- newRate
-
setNewRate
-
newSymbol
-
getNewSymbol
Ticker after the split when the issuer also changes symbol (e.g. with a \"D\" suffix). Omitted when the ticker doesn't change.- Returns:
- newSymbol
-
setNewSymbol
-
oldCusip
-
getOldCusip
CUSIP before the split.- Returns:
- oldCusip
-
setOldCusip
-
oldIsin
-
getOldIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- oldIsin
-
setOldIsin
-
oldRate
-
getOldRate
Shares before the split, as a decimal string.- Returns:
- oldRate
-
setOldRate
-
payableDate
-
getPayableDate
The date when the corporate action benefit is paid or distributed.- Returns:
- payableDate
-
setPayableDate
-
recordDate
-
getRecordDate
The date shareholders must own shares to receive the benefit.- Returns:
- recordDate
-
setRecordDate
-
symbol
-
getSymbol
Ticker being split.- 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 CaEventReverseSplit 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 CaEventReverseSplit
-
fromJson
Create an instance of CaEventReverseSplit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventReverseSplit
- Throws:
IOException- if the JSON string is invalid with respect to CaEventReverseSplit
-
toJson
Convert an instance of CaEventReverseSplit to an JSON string- Returns:
- JSON string
-