Class CaEventUnitSplit
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventUnitSplit
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventUnitSplit
extends Object
implements Serializable
Unit split payload delivered when `event_type == unit_split_corporateaction_event`. Corresponds to `unit_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 Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateCusip(String alternateCusip) alternateIsin(String alternateIsin) alternateRate(String alternateRate) alternateSymbol(String alternateSymbol) effectiveDate(LocalDate effectiveDate) booleanstatic CaEventUnitSplitCreate an instance of CaEventUnitSplit given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.CUSIP of the secondary leg.International Securities Identification Number (ISIN) as defined by ISO 6166.Secondary-leg shares delivered per unit, as a decimal string.Ticker of the secondary leg (usually a warrant).The ISO 4217 currency code associated with the corporate action.The effective date marks the cutoff point for shareholders to be credited.getId()The internal Alpaca identifier of the corporate action.CUSIP of the primary leg.International Securities Identification Number (ISIN) as defined by ISO 6166.Primary-leg shares delivered per unit, as a decimal string.Ticker of the primary leg (usually the common share).CUSIP of the unit.International Securities Identification Number (ISIN) as defined by ISO 6166.Units per ratio unit, as a decimal string.Ticker of the unit being split.The date when the corporate action benefit is paid or distributed.The date when the corporate action is processed by Alpaca.inthashCode()payableDate(LocalDate payableDate) processDate(LocalDate processDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAlternateCusip(String alternateCusip) voidsetAlternateIsin(String alternateIsin) voidsetAlternateRate(String alternateRate) voidsetAlternateSymbol(String alternateSymbol) voidsetCurrency(String currency) voidsetEffectiveDate(LocalDate effectiveDate) voidvoidsetNewCusip(String newCusip) voidsetNewIsin(String newIsin) voidsetNewRate(String newRate) voidsetNewSymbol(String newSymbol) voidsetOldCusip(String oldCusip) voidsetOldIsin(String oldIsin) voidsetOldRate(String oldRate) voidsetOldSymbol(String oldSymbol) voidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) toJson()Convert an instance of CaEventUnitSplit 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_ALTERNATE_CUSIP
- See Also:
-
SERIALIZED_NAME_ALTERNATE_ISIN
- See Also:
-
SERIALIZED_NAME_ALTERNATE_RATE
- See Also:
-
SERIALIZED_NAME_ALTERNATE_SYMBOL
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_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_OLD_SYMBOL
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventUnitSplit
public CaEventUnitSplit()
-
-
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
-
alternateCusip
-
getAlternateCusip
CUSIP of the secondary leg.- Returns:
- alternateCusip
-
setAlternateCusip
-
alternateIsin
-
getAlternateIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- alternateIsin
-
setAlternateIsin
-
alternateRate
-
getAlternateRate
Secondary-leg shares delivered per unit, as a decimal string.- Returns:
- alternateRate
-
setAlternateRate
-
alternateSymbol
-
getAlternateSymbol
Ticker of the secondary leg (usually a warrant).- Returns:
- alternateSymbol
-
setAlternateSymbol
-
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
-
effectiveDate
-
getEffectiveDate
The effective date marks the cutoff point for shareholders to be credited.- Returns:
- effectiveDate
-
setEffectiveDate
-
newCusip
-
getNewCusip
CUSIP of the primary leg.- 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
Primary-leg shares delivered per unit, as a decimal string.- Returns:
- newRate
-
setNewRate
-
newSymbol
-
getNewSymbol
Ticker of the primary leg (usually the common share).- Returns:
- newSymbol
-
setNewSymbol
-
oldCusip
-
getOldCusip
CUSIP of the unit.- 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
Units per ratio unit, as a decimal string.- Returns:
- oldRate
-
setOldRate
-
oldSymbol
-
getOldSymbol
Ticker of the unit being split.- Returns:
- oldSymbol
-
setOldSymbol
-
payableDate
-
getPayableDate
The date when the corporate action benefit is paid or distributed.- Returns:
- payableDate
-
setPayableDate
-
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 CaEventUnitSplit 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 CaEventUnitSplit
-
fromJson
Create an instance of CaEventUnitSplit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventUnitSplit
- Throws:
IOException- if the JSON string is invalid with respect to CaEventUnitSplit
-
toJson
Convert an instance of CaEventUnitSplit to an JSON string- Returns:
- JSON string
-