Class CaEventReorganization
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventReorganization
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventReorganization
extends Object
implements Serializable
General-purpose corporate restructuring (e.g. Chapter 11 emergence) where existing holders receive a mix of cash and/or one or more replacement securities. Each entry in `stock_movements` describes a separate share-class distribution. Delivered when `event_type == reorganization_corporateaction_event`. Corresponds to `reorganizations` 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStockMovementsItem(CaEventReorganizationStockMovement stockMovementsItem) effectiveDate(LocalDate effectiveDate) booleanstatic CaEventReorganizationCreate an instance of CaEventReorganization given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Cash paid per source share, as a decimal string.The ISO 4217 currency code associated with the corporate action.getCusip()CUSIP of the original security.The effective date marks the cutoff point for shareholders to be credited.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.One entry per replacement security delivered to holders.Ticker undergoing the reorganization.inthashCode()payableDate(LocalDate payableDate) processDate(LocalDate processDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCashRate(String cashRate) voidsetCurrency(String currency) voidvoidsetEffectiveDate(LocalDate effectiveDate) voidvoidvoidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) voidsetStockMovements(List<CaEventReorganizationStockMovement> stockMovements) voidstockMovements(List<CaEventReorganizationStockMovement> stockMovements) toJson()Convert an instance of CaEventReorganization 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_CASH_RATE
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_DATE
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_STOCK_MOVEMENTS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventReorganization
public CaEventReorganization()
-
-
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
-
cashRate
-
getCashRate
Cash paid per source share, as a decimal string.- Returns:
- cashRate
-
setCashRate
-
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 original security.- Returns:
- cusip
-
setCusip
-
effectiveDate
-
getEffectiveDate
The effective date marks the cutoff point for shareholders to be credited.- Returns:
- effectiveDate
-
setEffectiveDate
-
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
-
stockMovements
public CaEventReorganization stockMovements(@Nullable List<CaEventReorganizationStockMovement> stockMovements) -
addStockMovementsItem
public CaEventReorganization addStockMovementsItem(CaEventReorganizationStockMovement stockMovementsItem) -
getStockMovements
One entry per replacement security delivered to holders.- Returns:
- stockMovements
-
setStockMovements
-
symbol
-
getSymbol
Ticker undergoing the reorganization.- 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 CaEventReorganization 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 CaEventReorganization
-
fromJson
Create an instance of CaEventReorganization given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventReorganization
- Throws:
IOException- if the JSON string is invalid with respect to CaEventReorganization
-
toJson
Convert an instance of CaEventReorganization to an JSON string- Returns:
- JSON string
-