Class CGDActivityV2
java.lang.Object
markets.alpaca.client.openapi.trading.model.CGDActivityV2
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CGDActivityV2
extends Object
implements Serializable
Capital gains distribution. Used for both Long-Term (LTCG) and Short-Term (STCG) sub-types. Each activity represents a single leg; `long_term_rate` and/or `short_term_rate` are populated based on the source event, and `rate` matches the leg's own rate.
- 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 Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncashPayout(String cashPayout) entitledQty(String entitledQty) booleanstatic CGDActivityV2Create an instance of CGDActivityV2 given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCaId()The unique identifier for this corporate actionCash amount paid for this leggetCusip()The CUSIP of the security involved with the activityQuantity of shares entitled to receive the capital gains distributionThe ex_date for this corporate actionOptional group ID which can help grouping together related activitiesgetIsin()The ISIN of the security involved with the activityLong-term capital gains distribution rate per share, when applicableThe payable_date for this corporate actionThe position_date for this corporate actiongetRate()Distribution rate per share for this leg (LTCG or STCG)The record_date for this corporate actionThe reorg identifier, if present in the source corporate action definitionShort-term capital gains distribution rate per share, when applicableThe symbol of the security involved with the activityThe date when the activity was bookedinthashCode()longTermRate(String longTermRate) payableDate(LocalDate payableDate) positionDate(LocalDate positionDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.recordDate(LocalDate recordDate) voidvoidsetCashPayout(String cashPayout) voidvoidsetEntitledQty(String entitledQty) voidvoidsetGroupId(UUID groupId) voidvoidsetLongTermRate(String longTermRate) voidsetPayableDate(LocalDate payableDate) voidsetPositionDate(LocalDate positionDate) voidvoidsetRecordDate(LocalDate recordDate) voidsetReorgId(String reorgId) voidsetShortTermRate(String shortTermRate) voidvoidsetSystemDate(LocalDate systemDate) shortTermRate(String shortTermRate) systemDate(LocalDate systemDate) toJson()Convert an instance of CGDActivityV2 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_GROUP_ID
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
SERIALIZED_NAME_CA_ID
- See Also:
-
SERIALIZED_NAME_POSITION_DATE
- See Also:
-
SERIALIZED_NAME_REORG_ID
- See Also:
-
SERIALIZED_NAME_CASH_PAYOUT
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_ENTITLED_QTY
- See Also:
-
SERIALIZED_NAME_EX_DATE
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_LONG_TERM_RATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_RATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_SHORT_TERM_RATE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CGDActivityV2
public CGDActivityV2()
-
-
Method Details
-
groupId
-
getGroupId
Optional group ID which can help grouping together related activities- Returns:
- groupId
-
setGroupId
-
systemDate
-
getSystemDate
The date when the activity was booked- Returns:
- systemDate
-
setSystemDate
-
caId
-
getCaId
The unique identifier for this corporate action- Returns:
- caId
-
setCaId
-
positionDate
-
getPositionDate
The position_date for this corporate action- Returns:
- positionDate
-
setPositionDate
-
reorgId
-
getReorgId
The reorg identifier, if present in the source corporate action definition- Returns:
- reorgId
-
setReorgId
-
cashPayout
-
getCashPayout
Cash amount paid for this leg- Returns:
- cashPayout
-
setCashPayout
-
cusip
-
getCusip
The CUSIP of the security involved with the activity- Returns:
- cusip
-
setCusip
-
entitledQty
-
getEntitledQty
Quantity of shares entitled to receive the capital gains distribution- Returns:
- entitledQty
-
setEntitledQty
-
exDate
-
getExDate
The ex_date for this corporate action- Returns:
- exDate
-
setExDate
-
isin
-
getIsin
The ISIN of the security involved with the activity- Returns:
- isin
-
setIsin
-
longTermRate
-
getLongTermRate
Long-term capital gains distribution rate per share, when applicable- Returns:
- longTermRate
-
setLongTermRate
-
payableDate
-
getPayableDate
The payable_date for this corporate action- Returns:
- payableDate
-
setPayableDate
-
rate
-
getRate
Distribution rate per share for this leg (LTCG or STCG)- Returns:
- rate
-
setRate
-
recordDate
-
getRecordDate
The record_date for this corporate action- Returns:
- recordDate
-
setRecordDate
-
shortTermRate
-
getShortTermRate
Short-term capital gains distribution rate per share, when applicable- Returns:
- shortTermRate
-
setShortTermRate
-
symbol
-
getSymbol
The symbol of the security involved with the activity- 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 CGDActivityV2 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 CGDActivityV2
-
fromJson
Create an instance of CGDActivityV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CGDActivityV2
- Throws:
IOException- if the JSON string is invalid with respect to CGDActivityV2
-
toJson
Convert an instance of CGDActivityV2 to an JSON string- Returns:
- JSON string
-