Class CapitalGainsDistribution
java.lang.Object
markets.alpaca.client.openapi.data.model.CapitalGainsDistribution
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CapitalGainsDistribution
extends Object
implements Serializable
Capital gains distribution paid by a fund. A single event may carry a long-term leg (`long_term_rate`), a short-term leg (`short_term_rate`), or both when combined. At least one of the two rates is always present.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CapitalGainsDistributionCreate an instance of CapitalGainsDistribution 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()Get cusipThe ex-date marks the cutoff point for shareholders to be credited.getId()The internal Alpaca identifier of the corporate action.getIsin()International Securities Identification Number (ISIN) as defined by ISO 6166.Long-term capital-gain payment per share.The date when the corporate action benefit is paid or distributed.The date when the corporate action is processed by Alpaca.The date shareholders must own shares to receive the benefit.Short-term capital-gain payment per share.Get symbolinthashCode()longTermRate(Double longTermRate) 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) voidsetCurrency(String currency) voidvoidvoidvoidvoidsetLongTermRate(Double longTermRate) voidsetPayableDate(LocalDate payableDate) voidsetProcessDate(LocalDate processDate) voidsetRecordDate(LocalDate recordDate) voidsetShortTermRate(Double shortTermRate) voidshortTermRate(Double shortTermRate) toJson()Convert an instance of CapitalGainsDistribution 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_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_EX_DATE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_LONG_TERM_RATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_PROCESS_DATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_SHORT_TERM_RATE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CapitalGainsDistribution
public CapitalGainsDistribution()
-
-
Method Details
-
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
Get cusip- Returns:
- cusip
-
setCusip
-
exDate
-
getExDate
The ex-date marks the cutoff point for shareholders to be credited.- Returns:
- exDate
-
setExDate
-
id
-
getId
The internal Alpaca identifier of the corporate action.- Returns:
- id
-
setId
-
isin
-
getIsin
International Securities Identification Number (ISIN) as defined by ISO 6166. May be empty for US corporate actions.- Returns:
- isin
-
setIsin
-
longTermRate
-
getLongTermRate
Long-term capital-gain payment per share.- Returns:
- longTermRate
-
setLongTermRate
-
payableDate
-
getPayableDate
The date when the corporate action benefit is paid or distributed.- Returns:
- payableDate
-
setPayableDate
-
processDate
-
getProcessDate
The date when the corporate action is processed by Alpaca.- Returns:
- processDate
-
setProcessDate
-
recordDate
-
getRecordDate
The date shareholders must own shares to receive the benefit.- Returns:
- recordDate
-
setRecordDate
-
shortTermRate
-
getShortTermRate
Short-term capital-gain payment per share.- Returns:
- shortTermRate
-
setShortTermRate
-
symbol
-
getSymbol
Get symbol- 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 CapitalGainsDistribution 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 CapitalGainsDistribution
-
fromJson
Create an instance of CapitalGainsDistribution given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalGainsDistribution
- Throws:
IOException- if the JSON string is invalid with respect to CapitalGainsDistribution
-
toJson
Convert an instance of CapitalGainsDistribution to an JSON string- Returns:
- JSON string
-