Package com.plaid.client.model
Class AccountBalance
java.lang.Object
com.plaid.client.model.AccountBalance
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class AccountBalance
extends java.lang.Object
A set of fields describing the balance for an account. Balance information may be cached unless the balance object was returned by `/accounts/balance/get`.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_AVAILABLE
static java.lang.String
SERIALIZED_NAME_CURRENT
static java.lang.String
SERIALIZED_NAME_ISO_CURRENCY_CODE
static java.lang.String
SERIALIZED_NAME_LAST_UPDATED_DATETIME
static java.lang.String
SERIALIZED_NAME_LIMIT
static java.lang.String
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
-
Constructor Summary
Constructors Constructor Description AccountBalance()
-
Method Summary
Modifier and Type Method Description AccountBalance
available(java.lang.Double available)
AccountBalance
current(java.lang.Double current)
boolean
equals(java.lang.Object o)
java.lang.Double
getAvailable()
The amount of funds available to be withdrawn from the account, as determined by the financial institution.java.lang.Double
getCurrent()
The total amount of funds in or owed by the account.java.lang.String
getIsoCurrencyCode()
The ISO-4217 currency code of the balance.java.time.OffsetDateTime
getLastUpdatedDatetime()
Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ssZ`) indicating the last time that the balance for the given account has been updated This is currently only provided when the `min_last_updated_datetime` is passed when calling `/accounts/balance/get` for `ins_128026` (Capital One).java.lang.Double
getLimit()
For `credit`-type accounts, this represents the credit limit.java.lang.String
getUnofficialCurrencyCode()
The unofficial currency code associated with the balance.int
hashCode()
AccountBalance
isoCurrencyCode(java.lang.String isoCurrencyCode)
AccountBalance
lastUpdatedDatetime(java.time.OffsetDateTime lastUpdatedDatetime)
AccountBalance
limit(java.lang.Double limit)
void
setAvailable(java.lang.Double available)
void
setCurrent(java.lang.Double current)
void
setIsoCurrencyCode(java.lang.String isoCurrencyCode)
void
setLastUpdatedDatetime(java.time.OffsetDateTime lastUpdatedDatetime)
void
setLimit(java.lang.Double limit)
void
setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
java.lang.String
toString()
AccountBalance
unofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
-
Field Details
-
SERIALIZED_NAME_AVAILABLE
public static final java.lang.String SERIALIZED_NAME_AVAILABLE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENT
public static final java.lang.String SERIALIZED_NAME_CURRENT- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LIMIT
public static final java.lang.String SERIALIZED_NAME_LIMIT- 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
-
SERIALIZED_NAME_LAST_UPDATED_DATETIME
public static final java.lang.String SERIALIZED_NAME_LAST_UPDATED_DATETIME- See Also:
- Constant Field Values
-
-
Constructor Details
-
AccountBalance
public AccountBalance()
-
-
Method Details
-
available
-
getAvailable
@Nullable public java.lang.Double getAvailable()The amount of funds available to be withdrawn from the account, as determined by the financial institution. For `credit`-type accounts, the `available` balance typically equals the `limit` less the `current` balance, less any pending outflows plus any pending inflows. For `depository`-type accounts, the `available` balance typically equals the `current` balance less any pending outflows plus any pending inflows. For `depository`-type accounts, the `available` balance does not include the overdraft limit. For `investment`-type accounts, the `available` balance is the total cash available to withdraw as presented by the institution. Note that not all institutions calculate the `available` balance. In the event that `available` balance is unavailable, Plaid will return an `available` balance value of `null`. Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by `/accounts/balance/get`. If `current` is `null` this field is guaranteed not to be `null`.- Returns:
- available
-
setAvailable
public void setAvailable(java.lang.Double available) -
current
-
getCurrent
@Nullable public java.lang.Double getCurrent()The total amount of funds in or owed by the account. For `credit`-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder. For `loan`-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (`ins_116944`). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest. For `investment`-type accounts, the current balance is the total value of assets as presented by the institution. Note that balance information may be cached unless the value was returned by `/accounts/balance/get`; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the `available` balance as provided by `/accounts/balance/get`. When returned by `/accounts/balance/get`, this field may be `null`. When this happens, `available` is guaranteed not to be `null`.- Returns:
- current
-
setCurrent
public void setCurrent(java.lang.Double current) -
limit
-
getLimit
@Nullable public java.lang.Double getLimit()For `credit`-type accounts, this represents the credit limit. For `depository`-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe. In North America, this field is typically only available for `credit`-type accounts.- Returns:
- limit
-
setLimit
public void setLimit(java.lang.Double limit) -
isoCurrencyCode
-
getIsoCurrencyCode
@Nullable public java.lang.String getIsoCurrencyCode()The ISO-4217 currency code of the balance. 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 balance. 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 `unofficial_currency_code`s.- Returns:
- unofficialCurrencyCode
-
setUnofficialCurrencyCode
public void setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode) -
lastUpdatedDatetime
-
getLastUpdatedDatetime
@Nullable public java.time.OffsetDateTime getLastUpdatedDatetime()Timestamp in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ssZ`) indicating the last time that the balance for the given account has been updated This is currently only provided when the `min_last_updated_datetime` is passed when calling `/accounts/balance/get` for `ins_128026` (Capital One).- Returns:
- lastUpdatedDatetime
-
setLastUpdatedDatetime
public void setLastUpdatedDatetime(java.time.OffsetDateTime lastUpdatedDatetime) -
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
-