Class CaEventReorganizationStockMovement
java.lang.Object
markets.alpaca.client.openapi.data.model.CaEventReorganizationStockMovement
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CaEventReorganizationStockMovement
extends Object
implements Serializable
A single replacement-security leg of a [`ca_event_reorganization`](#/components/schemas/ca_event_reorganization) payload. All decimal fields are emitted as JSON strings to preserve precision on the wire.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of CaEventReorganizationStockMovement given an JSON stringgetCusip()Replacement CUSIP.getIsin()International Securities Identification Number (ISIN) as defined by ISO 6166.Replacement shares delivered per `source_rate`, as a decimal string.Source shares required for each `new_rate`, as a decimal string.Replacement ticker.inthashCode()voidvoidvoidsetNewRate(String newRate) voidsetSourceRate(String sourceRate) voidsourceRate(String sourceRate) toJson()Convert an instance of CaEventReorganizationStockMovement 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_CUSIP
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_NEW_RATE
- See Also:
-
SERIALIZED_NAME_SOURCE_RATE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CaEventReorganizationStockMovement
public CaEventReorganizationStockMovement()
-
-
Method Details
-
cusip
-
getCusip
Replacement CUSIP.- Returns:
- cusip
-
setCusip
-
isin
-
getIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- isin
-
setIsin
-
newRate
-
getNewRate
Replacement shares delivered per `source_rate`, as a decimal string.- Returns:
- newRate
-
setNewRate
-
sourceRate
-
getSourceRate
Source shares required for each `new_rate`, as a decimal string.- Returns:
- sourceRate
-
setSourceRate
-
symbol
-
getSymbol
Replacement ticker.- Returns:
- symbol
-
setSymbol
-
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 CaEventReorganizationStockMovement
-
fromJson
Create an instance of CaEventReorganizationStockMovement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CaEventReorganizationStockMovement
- Throws:
IOException- if the JSON string is invalid with respect to CaEventReorganizationStockMovement
-
toJson
Convert an instance of CaEventReorganizationStockMovement to an JSON string- Returns:
- JSON string
-