Class CaEventEquityPartialCall
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventEquityPartialCall
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventEquityPartialCall
extends Object
implements Serializable
Partial redemption of an equity issue where the issuer calls back only a fraction of outstanding shares -- typically allocated to holders via a lottery. Delivered when `event_type == equity_partial_call_corporateaction_event`. Corresponds to `partial_calls` 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 enumHow called shares were allocated among holders. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondividendRate(String dividendRate) booleanstatic CaEventEquityPartialCallCreate an instance of CaEventEquityPartialCall 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.Dividend rate associated with the called shares, as a decimal string.getId()The internal Alpaca identifier of the corporate action.getIsin()International Securities Identification Number (ISIN) as defined by ISO 6166.When the lottery drawing happens.How called shares were allocated among holders.The date when the corporate action benefit is paid or distributed.getPrice()Price paid per called share, as a decimal string.The date when the corporate action is processed by Alpaca.The date shareholders must own shares to receive the benefit.When the lottery results are published.Ticker being partially called.inthashCode()lotteryDate(LocalDate lotteryDate) lotteryType(CaEventEquityPartialCall.LotteryTypeEnum lotteryType) 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) resultsPublicationDate(LocalDate resultsPublicationDate) voidsetCurrency(String currency) voidvoidsetDividendRate(String dividendRate) voidvoidvoidsetLotteryDate(LocalDate lotteryDate) voidsetLotteryType(CaEventEquityPartialCall.LotteryTypeEnum lotteryType) voidsetPayableDate(LocalDate payableDate) voidvoidsetProcessDate(LocalDate processDate) voidsetRecordDate(LocalDate recordDate) voidsetResultsPublicationDate(LocalDate resultsPublicationDate) voidtoJson()Convert an instance of CaEventEquityPartialCall 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_DIVIDEND_RATE
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_LOTTERY_DATE
- See Also:
-
SERIALIZED_NAME_LOTTERY_TYPE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_RESULTS_PUBLICATION_DATE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventEquityPartialCall
public CaEventEquityPartialCall()
-
-
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
-
dividendRate
-
getDividendRate
Dividend rate associated with the called shares, as a decimal string.- Returns:
- dividendRate
-
setDividendRate
-
isin
-
getIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- isin
-
setIsin
-
lotteryDate
-
getLotteryDate
When the lottery drawing happens.- Returns:
- lotteryDate
-
setLotteryDate
-
lotteryType
public CaEventEquityPartialCall lotteryType(@Nullable CaEventEquityPartialCall.LotteryTypeEnum lotteryType) -
getLotteryType
How called shares were allocated among holders.- Returns:
- lotteryType
-
setLotteryType
-
payableDate
-
getPayableDate
The date when the corporate action benefit is paid or distributed.- Returns:
- payableDate
-
setPayableDate
-
price
-
getPrice
Price paid per called share, as a decimal string.- Returns:
- price
-
setPrice
-
recordDate
-
getRecordDate
The date shareholders must own shares to receive the benefit.- Returns:
- recordDate
-
setRecordDate
-
resultsPublicationDate
-
getResultsPublicationDate
When the lottery results are published.- Returns:
- resultsPublicationDate
-
setResultsPublicationDate
-
symbol
-
getSymbol
Ticker being partially called.- 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 CaEventEquityPartialCall 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 CaEventEquityPartialCall
-
fromJson
Create an instance of CaEventEquityPartialCall given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventEquityPartialCall
- Throws:
IOException- if the JSON string is invalid with respect to CaEventEquityPartialCall
-
toJson
Convert an instance of CaEventEquityPartialCall to an JSON string- Returns:
- JSON string
-