Class CaEventStockAndCashMerger
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventStockAndCashMerger
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventStockAndCashMerger
extends Object
implements Serializable
Merger paying a mix of stock and cash. Delivered when `event_type == stock_and_cash_merger_corporateaction_event`. Corresponds to `stock_and_cash_mergers` 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 TypeMethodDescriptionacquireeCusip(String acquireeCusip) acquireeIsin(String acquireeIsin) acquireeRate(String acquireeRate) acquireeSymbol(String acquireeSymbol) acquirerCusip(String acquirerCusip) acquirerIsin(String acquirerIsin) acquirerRate(String acquirerRate) acquirerSymbol(String acquirerSymbol) effectiveDate(LocalDate effectiveDate) booleanstatic CaEventStockAndCashMergerCreate an instance of CaEventStockAndCashMerger given an JSON stringCUSIP of the company being bought.International Securities Identification Number (ISIN) as defined by ISO 6166.Bought-side ratio, as a decimal string.Ticker being bought (will disappear).Buyer's CUSIP.International Securities Identification Number (ISIN) as defined by ISO 6166.Buyer shares given per unit ratio, as a decimal string.Buyer's ticker (the surviving company).Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Extra cash paid per share of the acquired company, as a decimal string.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.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.voidsetAcquireeCusip(String acquireeCusip) voidsetAcquireeIsin(String acquireeIsin) voidsetAcquireeRate(String acquireeRate) voidsetAcquireeSymbol(String acquireeSymbol) voidsetAcquirerCusip(String acquirerCusip) voidsetAcquirerIsin(String acquirerIsin) voidsetAcquirerRate(String acquirerRate) voidsetAcquirerSymbol(String acquirerSymbol) voidsetCashRate(String cashRate) voidsetCurrency(String currency) voidsetEffectiveDate(LocalDate effectiveDate) voidvoidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) toJson()Convert an instance of CaEventStockAndCashMerger 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_ACQUIREE_CUSIP
- See Also:
-
SERIALIZED_NAME_ACQUIREE_ISIN
- See Also:
-
SERIALIZED_NAME_ACQUIREE_RATE
- See Also:
-
SERIALIZED_NAME_ACQUIREE_SYMBOL
- See Also:
-
SERIALIZED_NAME_ACQUIRER_CUSIP
- See Also:
-
SERIALIZED_NAME_ACQUIRER_ISIN
- See Also:
-
SERIALIZED_NAME_ACQUIRER_RATE
- See Also:
-
SERIALIZED_NAME_ACQUIRER_SYMBOL
- See Also:
-
SERIALIZED_NAME_CASH_RATE
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_DATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventStockAndCashMerger
public CaEventStockAndCashMerger()
-
-
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
-
acquireeCusip
-
getAcquireeCusip
CUSIP of the company being bought.- Returns:
- acquireeCusip
-
setAcquireeCusip
-
acquireeIsin
-
getAcquireeIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- acquireeIsin
-
setAcquireeIsin
-
acquireeRate
-
getAcquireeRate
Bought-side ratio, as a decimal string.- Returns:
- acquireeRate
-
setAcquireeRate
-
acquireeSymbol
-
getAcquireeSymbol
Ticker being bought (will disappear).- Returns:
- acquireeSymbol
-
setAcquireeSymbol
-
acquirerCusip
-
getAcquirerCusip
Buyer's CUSIP.- Returns:
- acquirerCusip
-
setAcquirerCusip
-
acquirerIsin
-
getAcquirerIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- acquirerIsin
-
setAcquirerIsin
-
acquirerRate
-
getAcquirerRate
Buyer shares given per unit ratio, as a decimal string.- Returns:
- acquirerRate
-
setAcquirerRate
-
acquirerSymbol
-
getAcquirerSymbol
Buyer's ticker (the surviving company).- Returns:
- acquirerSymbol
-
setAcquirerSymbol
-
cashRate
-
getCashRate
Extra cash paid per share of the acquired company, 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
-
effectiveDate
-
getEffectiveDate
The effective date marks the cutoff point for shareholders to be credited.- Returns:
- effectiveDate
-
setEffectiveDate
-
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 CaEventStockAndCashMerger 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 CaEventStockAndCashMerger
-
fromJson
Create an instance of CaEventStockAndCashMerger given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventStockAndCashMerger
- Throws:
IOException- if the JSON string is invalid with respect to CaEventStockAndCashMerger
-
toJson
Convert an instance of CaEventStockAndCashMerger to an JSON string- Returns:
- JSON string
-