Class CaEventNameChange
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventNameChange
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventNameChange
extends Object
implements Serializable
Name/ticker change payload delivered when `event_type == name_change_corporateaction_event`. Corresponds to `name_changes` on the REST [`GET /v1/corporate-actions`](#operation/CorporateActions) response.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CaEventNameChangeCreate an instance of CaEventNameChange 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.getId()The internal Alpaca identifier of the corporate action.CUSIP after the change.International Securities Identification Number (ISIN) as defined by ISO 6166.Ticker after the change.CUSIP before the change.International Securities Identification Number (ISIN) as defined by ISO 6166.Ticker before the change.The date when the corporate action is processed by Alpaca.inthashCode()processDate(LocalDate processDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCurrency(String currency) voidvoidsetNewCusip(String newCusip) voidsetNewIsin(String newIsin) voidsetNewSymbol(String newSymbol) voidsetOldCusip(String oldCusip) voidsetOldIsin(String oldIsin) voidsetOldSymbol(String oldSymbol) voidsetProcessDate(LocalDate processDate) toJson()Convert an instance of CaEventNameChange 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_NEW_CUSIP
- See Also:
-
SERIALIZED_NAME_NEW_ISIN
- See Also:
-
SERIALIZED_NAME_NEW_SYMBOL
- See Also:
-
SERIALIZED_NAME_OLD_CUSIP
- See Also:
-
SERIALIZED_NAME_OLD_ISIN
- See Also:
-
SERIALIZED_NAME_OLD_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventNameChange
public CaEventNameChange()
-
-
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
-
newCusip
-
getNewCusip
CUSIP after the change.- 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
-
newSymbol
-
getNewSymbol
Ticker after the change.- Returns:
- newSymbol
-
setNewSymbol
-
oldCusip
-
getOldCusip
CUSIP before the change.- 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
-
oldSymbol
-
getOldSymbol
Ticker before the change.- Returns:
- oldSymbol
-
setOldSymbol
-
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 CaEventNameChange 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 CaEventNameChange
-
fromJson
Create an instance of CaEventNameChange given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventNameChange
- Throws:
IOException- if the JSON string is invalid with respect to CaEventNameChange
-
toJson
Convert an instance of CaEventNameChange to an JSON string- Returns:
- JSON string
-