Package com.plaid.client.model
Class Holding
java.lang.Object
com.plaid.client.model.Holding
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class Holding
extends java.lang.Object
A securities holding at an institution.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_ACCOUNT_ID
static java.lang.String
SERIALIZED_NAME_COST_BASIS
static java.lang.String
SERIALIZED_NAME_INSTITUTION_PRICE
static java.lang.String
SERIALIZED_NAME_INSTITUTION_PRICE_AS_OF
static java.lang.String
SERIALIZED_NAME_INSTITUTION_VALUE
static java.lang.String
SERIALIZED_NAME_ISO_CURRENCY_CODE
static java.lang.String
SERIALIZED_NAME_QUANTITY
static java.lang.String
SERIALIZED_NAME_SECURITY_ID
static java.lang.String
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
-
Constructor Summary
Constructors Constructor Description Holding()
-
Method Summary
Modifier and Type Method Description Holding
accountId(java.lang.String accountId)
Holding
costBasis(java.lang.Double costBasis)
boolean
equals(java.lang.Object o)
java.lang.String
getAccountId()
The Plaid `account_id` associated with the holding.java.lang.Double
getCostBasis()
The cost basis of the holding.java.lang.Double
getInstitutionPrice()
The last price given by the institution for this security.java.time.LocalDate
getInstitutionPriceAsOf()
The date at which `institution_price` was current.java.lang.Double
getInstitutionValue()
The value of the holding, as reported by the institution.java.lang.String
getIsoCurrencyCode()
The ISO-4217 currency code of the holding.java.lang.Double
getQuantity()
The total quantity of the asset held, as reported by the financial institution.java.lang.String
getSecurityId()
The Plaid `security_id` associated with the holding.java.lang.String
getUnofficialCurrencyCode()
The unofficial currency code associated with the holding.int
hashCode()
Holding
institutionPrice(java.lang.Double institutionPrice)
Holding
institutionPriceAsOf(java.time.LocalDate institutionPriceAsOf)
Holding
institutionValue(java.lang.Double institutionValue)
Holding
isoCurrencyCode(java.lang.String isoCurrencyCode)
Holding
quantity(java.lang.Double quantity)
Holding
securityId(java.lang.String securityId)
void
setAccountId(java.lang.String accountId)
void
setCostBasis(java.lang.Double costBasis)
void
setInstitutionPrice(java.lang.Double institutionPrice)
void
setInstitutionPriceAsOf(java.time.LocalDate institutionPriceAsOf)
void
setInstitutionValue(java.lang.Double institutionValue)
void
setIsoCurrencyCode(java.lang.String isoCurrencyCode)
void
setQuantity(java.lang.Double quantity)
void
setSecurityId(java.lang.String securityId)
void
setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
java.lang.String
toString()
Holding
unofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
public static final java.lang.String SERIALIZED_NAME_ACCOUNT_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECURITY_ID
public static final java.lang.String SERIALIZED_NAME_SECURITY_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_PRICE
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_PRICE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_PRICE_AS_OF
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_PRICE_AS_OF- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INSTITUTION_VALUE
public static final java.lang.String SERIALIZED_NAME_INSTITUTION_VALUE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COST_BASIS
public static final java.lang.String SERIALIZED_NAME_COST_BASIS- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QUANTITY
public static final java.lang.String SERIALIZED_NAME_QUANTITY- 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
-
Holding
public Holding()
-
-
Method Details
-
accountId
-
getAccountId
public java.lang.String getAccountId()The Plaid `account_id` associated with the holding.- Returns:
- accountId
-
setAccountId
public void setAccountId(java.lang.String accountId) -
securityId
-
getSecurityId
public java.lang.String getSecurityId()The Plaid `security_id` associated with the holding.- Returns:
- securityId
-
setSecurityId
public void setSecurityId(java.lang.String securityId) -
institutionPrice
-
getInstitutionPrice
public java.lang.Double getInstitutionPrice()The last price given by the institution for this security.- Returns:
- institutionPrice
-
setInstitutionPrice
public void setInstitutionPrice(java.lang.Double institutionPrice) -
institutionPriceAsOf
-
getInstitutionPriceAsOf
@Nullable public java.time.LocalDate getInstitutionPriceAsOf()The date at which `institution_price` was current.- Returns:
- institutionPriceAsOf
-
setInstitutionPriceAsOf
public void setInstitutionPriceAsOf(java.time.LocalDate institutionPriceAsOf) -
institutionValue
-
getInstitutionValue
public java.lang.Double getInstitutionValue()The value of the holding, as reported by the institution.- Returns:
- institutionValue
-
setInstitutionValue
public void setInstitutionValue(java.lang.Double institutionValue) -
costBasis
-
getCostBasis
@Nullable public java.lang.Double getCostBasis()The cost basis of the holding.- Returns:
- costBasis
-
setCostBasis
public void setCostBasis(java.lang.Double costBasis) -
quantity
-
getQuantity
public java.lang.Double getQuantity()The total quantity of the asset held, as reported by the financial institution. If the security is an option, `quantity` will reflect the total number of options (typically the number of contracts multiplied by 100), not the number of contracts.- Returns:
- quantity
-
setQuantity
public void setQuantity(java.lang.Double quantity) -
isoCurrencyCode
-
getIsoCurrencyCode
@Nullable public java.lang.String getIsoCurrencyCode()The ISO-4217 currency code of the holding. 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 holding. 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
-