Package com.plaid.client.model
Class Security
java.lang.Object
com.plaid.client.model.Security
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class Security
extends java.lang.Object
Contains details about a security
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_CLOSE_PRICE
static java.lang.String
SERIALIZED_NAME_CLOSE_PRICE_AS_OF
static java.lang.String
SERIALIZED_NAME_CUSIP
static java.lang.String
SERIALIZED_NAME_INSTITUTION_ID
static java.lang.String
SERIALIZED_NAME_INSTITUTION_SECURITY_ID
static java.lang.String
SERIALIZED_NAME_IS_CASH_EQUIVALENT
static java.lang.String
SERIALIZED_NAME_ISIN
static java.lang.String
SERIALIZED_NAME_ISO_CURRENCY_CODE
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_PROXY_SECURITY_ID
static java.lang.String
SERIALIZED_NAME_SECURITY_ID
static java.lang.String
SERIALIZED_NAME_SEDOL
static java.lang.String
SERIALIZED_NAME_TICKER_SYMBOL
static java.lang.String
SERIALIZED_NAME_TYPE
static java.lang.String
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
-
Constructor Summary
Constructors Constructor Description Security()
-
Method Summary
Modifier and Type Method Description Security
closePrice(java.lang.Double closePrice)
Security
closePriceAsOf(java.time.LocalDate closePriceAsOf)
Security
cusip(java.lang.String cusip)
boolean
equals(java.lang.Object o)
java.lang.Double
getClosePrice()
Price of the security at the close of the previous trading session.java.time.LocalDate
getClosePriceAsOf()
Date for which `close_price` is accurate.java.lang.String
getCusip()
9-character CUSIP, an identifier assigned to North American securities.java.lang.String
getInstitutionId()
If `institution_security_id` is present, this field indicates the Plaid `institution_id` of the institution to whom the identifier belongs.java.lang.String
getInstitutionSecurityId()
An identifier given to the security by the institutionjava.lang.Boolean
getIsCashEquivalent()
Indicates that a security is a highly liquid asset and can be treated like cash.java.lang.String
getIsin()
12-character ISIN, a globally unique securities identifier.java.lang.String
getIsoCurrencyCode()
The ISO-4217 currency code of the price given.java.lang.String
getName()
A descriptive name for the security, suitable for display.java.lang.String
getProxySecurityId()
In certain cases, Plaid will provide the ID of another security whose performance resembles this security, typically when the original security has low volume, or when a private security can be modeled with a publicly traded security.java.lang.String
getSecurityId()
A unique, Plaid-specific identifier for the security, used to associate securities with holdings.java.lang.String
getSedol()
7-character SEDOL, an identifier assigned to securities in the UK.java.lang.String
getTickerSymbol()
The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.java.lang.String
getType()
The security type of the holding.java.lang.String
getUnofficialCurrencyCode()
The unofficial currency code associated with the security.int
hashCode()
Security
institutionId(java.lang.String institutionId)
Security
institutionSecurityId(java.lang.String institutionSecurityId)
Security
isCashEquivalent(java.lang.Boolean isCashEquivalent)
Security
isin(java.lang.String isin)
Security
isoCurrencyCode(java.lang.String isoCurrencyCode)
Security
name(java.lang.String name)
Security
proxySecurityId(java.lang.String proxySecurityId)
Security
securityId(java.lang.String securityId)
Security
sedol(java.lang.String sedol)
void
setClosePrice(java.lang.Double closePrice)
void
setClosePriceAsOf(java.time.LocalDate closePriceAsOf)
void
setCusip(java.lang.String cusip)
void
setInstitutionId(java.lang.String institutionId)
void
setInstitutionSecurityId(java.lang.String institutionSecurityId)
void
setIsCashEquivalent(java.lang.Boolean isCashEquivalent)
void
setIsin(java.lang.String isin)
void
setIsoCurrencyCode(java.lang.String isoCurrencyCode)
void
setName(java.lang.String name)
void
setProxySecurityId(java.lang.String proxySecurityId)
void
setSecurityId(java.lang.String securityId)
void
setSedol(java.lang.String sedol)
void
setTickerSymbol(java.lang.String tickerSymbol)
void
setType(java.lang.String type)
void
setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
Security
tickerSymbol(java.lang.String tickerSymbol)
java.lang.String
toString()
Security
type(java.lang.String type)
Security
unofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
-
Field Details
-
SERIALIZED_NAME_SECURITY_ID
public static final java.lang.String SERIALIZED_NAME_SECURITY_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISIN
public static final java.lang.String SERIALIZED_NAME_ISIN- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CUSIP
public static final java.lang.String SERIALIZED_NAME_CUSIP- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SEDOL
public static final java.lang.String SERIALIZED_NAME_SEDOL- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_SECURITY_ID
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_SECURITY_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_ID
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROXY_SECURITY_ID
public static final java.lang.String SERIALIZED_NAME_PROXY_SECURITY_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TICKER_SYMBOL
public static final java.lang.String SERIALIZED_NAME_TICKER_SYMBOL- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_CASH_EQUIVALENT
public static final java.lang.String SERIALIZED_NAME_IS_CASH_EQUIVALENT- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final java.lang.String SERIALIZED_NAME_TYPE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLOSE_PRICE
public static final java.lang.String SERIALIZED_NAME_CLOSE_PRICE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLOSE_PRICE_AS_OF
public static final java.lang.String SERIALIZED_NAME_CLOSE_PRICE_AS_OF- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISO_CURRENCY_CODE
public static final java.lang.String SERIALIZED_NAME_ISO_CURRENCY_CODE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
public static final java.lang.String SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Security
public Security()
-
-
Method Details
-
securityId
-
getSecurityId
public java.lang.String getSecurityId()A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the `security_id` is case sensitive.- Returns:
- securityId
-
setSecurityId
public void setSecurityId(java.lang.String securityId) -
isin
-
getIsin
@Nullable public java.lang.String getIsin()12-character ISIN, a globally unique securities identifier.- Returns:
- isin
-
setIsin
public void setIsin(java.lang.String isin) -
cusip
-
getCusip
@Nullable public java.lang.String getCusip()9-character CUSIP, an identifier assigned to North American securities.- Returns:
- cusip
-
setCusip
public void setCusip(java.lang.String cusip) -
sedol
-
getSedol
@Nullable public java.lang.String getSedol()7-character SEDOL, an identifier assigned to securities in the UK.- Returns:
- sedol
-
setSedol
public void setSedol(java.lang.String sedol) -
institutionSecurityId
-
getInstitutionSecurityId
@Nullable public java.lang.String getInstitutionSecurityId()An identifier given to the security by the institution- Returns:
- institutionSecurityId
-
setInstitutionSecurityId
public void setInstitutionSecurityId(java.lang.String institutionSecurityId) -
institutionId
-
getInstitutionId
@Nullable public java.lang.String getInstitutionId()If `institution_security_id` is present, this field indicates the Plaid `institution_id` of the institution to whom the identifier belongs.- Returns:
- institutionId
-
setInstitutionId
public void setInstitutionId(java.lang.String institutionId) -
proxySecurityId
-
getProxySecurityId
@Nullable public java.lang.String getProxySecurityId()In certain cases, Plaid will provide the ID of another security whose performance resembles this security, typically when the original security has low volume, or when a private security can be modeled with a publicly traded security.- Returns:
- proxySecurityId
-
setProxySecurityId
public void setProxySecurityId(java.lang.String proxySecurityId) -
name
-
getName
@Nullable public java.lang.String getName()A descriptive name for the security, suitable for display.- Returns:
- name
-
setName
public void setName(java.lang.String name) -
tickerSymbol
-
getTickerSymbol
@Nullable public java.lang.String getTickerSymbol()The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.- Returns:
- tickerSymbol
-
setTickerSymbol
public void setTickerSymbol(java.lang.String tickerSymbol) -
isCashEquivalent
-
getIsCashEquivalent
@Nullable public java.lang.Boolean getIsCashEquivalent()Indicates that a security is a highly liquid asset and can be treated like cash.- Returns:
- isCashEquivalent
-
setIsCashEquivalent
public void setIsCashEquivalent(java.lang.Boolean isCashEquivalent) -
type
-
getType
@Nullable public java.lang.String getType()The security type of the holding. Valid security types are: `cash`: Cash, currency, and money market funds `derivative`: Options, warrants, and other derivative instruments `equity`: Domestic and foreign equities `etf`: Multi-asset exchange-traded investment funds `fixed income`: Bonds and certificates of deposit (CDs) `loan`: Loans and loan receivables. `mutual fund`: Open- and closed-end vehicles pooling funds of multiple investors. `other`: Unknown or other investment types- Returns:
- type
-
setType
public void setType(java.lang.String type) -
closePrice
-
getClosePrice
@Nullable public java.lang.Double getClosePrice()Price of the security at the close of the previous trading session. `null` for non-public securities. If the security is a foreign currency or a cryptocurrency this field will be updated daily and will be priced in USD.- Returns:
- closePrice
-
setClosePrice
public void setClosePrice(java.lang.Double closePrice) -
closePriceAsOf
-
getClosePriceAsOf
@Nullable public java.time.LocalDate getClosePriceAsOf()Date for which `close_price` is accurate. Always `null` if `close_price` is `null`.- Returns:
- closePriceAsOf
-
setClosePriceAsOf
public void setClosePriceAsOf(java.time.LocalDate closePriceAsOf) -
isoCurrencyCode
-
getIsoCurrencyCode
@Nullable public java.lang.String getIsoCurrencyCode()The ISO-4217 currency code of the price given. Always `null` if `unofficial_currency_code` is non-`null`.- Returns:
- isoCurrencyCode
-
setIsoCurrencyCode
public void setIsoCurrencyCode(java.lang.String isoCurrencyCode) -
unofficialCurrencyCode
-
getUnofficialCurrencyCode
@Nullable public java.lang.String getUnofficialCurrencyCode()The unofficial currency code associated with the security. Always `null` if `iso_currency_code` is non-`null`. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s.- Returns:
- unofficialCurrencyCode
-
setUnofficialCurrencyCode
public void setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-