Class CommonSplitActivityV2
java.lang.Object
markets.alpaca.client.openapi.trading.model.CommonSplitActivityV2
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CommonSplitActivityV2
extends Object
implements Serializable
CommonSplitActivityV2
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommonSplitActivityV2Create an instance of CommonSplitActivityV2 given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.CUSIP of the new security after the splitRatio of new shares receivedCUSIP of the old security before the splitRatio of old shares exchangedThe payable_date for this corporate actioninthashCode()payableDate(LocalDate payableDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetNewCusip(String newCusip) voidsetNewRate(String newRate) voidsetOldCusip(String oldCusip) voidsetOldRate(String oldRate) voidsetPayableDate(LocalDate payableDate) toJson()Convert an instance of CommonSplitActivityV2 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_NEW_CUSIP
- See Also:
-
SERIALIZED_NAME_NEW_RATE
- See Also:
-
SERIALIZED_NAME_OLD_CUSIP
- See Also:
-
SERIALIZED_NAME_OLD_RATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CommonSplitActivityV2
public CommonSplitActivityV2()
-
-
Method Details
-
newCusip
-
getNewCusip
CUSIP of the new security after the split- Returns:
- newCusip
-
setNewCusip
-
newRate
-
getNewRate
Ratio of new shares received- Returns:
- newRate
-
setNewRate
-
oldCusip
-
getOldCusip
CUSIP of the old security before the split- Returns:
- oldCusip
-
setOldCusip
-
oldRate
-
getOldRate
Ratio of old shares exchanged- Returns:
- oldRate
-
setOldRate
-
payableDate
-
getPayableDate
The payable_date for this corporate action- 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 CommonSplitActivityV2 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 CommonSplitActivityV2
-
fromJson
Create an instance of CommonSplitActivityV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommonSplitActivityV2
- Throws:
IOException- if the JSON string is invalid with respect to CommonSplitActivityV2
-
toJson
Convert an instance of CommonSplitActivityV2 to an JSON string- Returns:
- JSON string
-