Package cm.xd.genapi.ynab.model
Class Account
java.lang.Object
cm.xd.genapi.ynab.model.Account
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-26T18:05:30.720340+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class Account
extends Object
Account
-
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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbalanceCurrency(Double balanceCurrency) balanceFormatted(String balanceFormatted) clearedBalance(Long clearedBalance) clearedBalanceCurrency(Double clearedBalanceCurrency) clearedBalanceFormatted(String clearedBalanceFormatted) debtEscrowAmounts(Map<String, Long> debtEscrowAmounts) debtInterestRates(Map<String, Long> debtInterestRates) debtMinimumPayments(Map<String, Long> debtMinimumPayments) debtOriginalBalance(Long debtOriginalBalance) directImportInError(Boolean directImportInError) directImportLinked(Boolean directImportLinked) booleanstatic AccountCreate an instance of Account given an JSON stringThe current available balance of the account in milliunits formatThe current available balance of the account as a decimal currency amountThe current available balance of the account formatted in the plan's currency formatThe current cleared balance of the account in milliunits formatThe current cleared balance of the account as a decimal currency amountThe current cleared balance of the account formatted in the plan's currency formatWhether this account is closed or notGet debtEscrowAmountsGet debtInterestRatesGet debtMinimumPaymentsThis field is deprecated and will always be null.Whether or not the account has been deleted.If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.Whether or not the account is linked to a financial institution for automatic transaction import.getId()Get idA date/time specifying when the account was last reconciled.getName()Get namegetNote()Get noteWhether this account is \"on budget\" or notThe payee id which should be used when transferring to this accountgetType()Get typeThe current uncleared balance of the account in milliunits formatThe current uncleared balance of the account as a decimal currency amountThe current uncleared balance of the account formatted in the plan's currency formatinthashCode()lastReconciledAt(OffsetDateTime lastReconciledAt) putDebtEscrowAmountsItem(String key, Long debtEscrowAmountsItem) putDebtInterestRatesItem(String key, Long debtInterestRatesItem) putDebtMinimumPaymentsItem(String key, Long debtMinimumPaymentsItem) voidsetBalance(Long balance) voidsetBalanceCurrency(Double balanceCurrency) voidsetBalanceFormatted(String balanceFormatted) voidsetClearedBalance(Long clearedBalance) voidsetClearedBalanceCurrency(Double clearedBalanceCurrency) voidsetClearedBalanceFormatted(String clearedBalanceFormatted) voidvoidsetDebtEscrowAmounts(Map<String, Long> debtEscrowAmounts) voidsetDebtInterestRates(Map<String, Long> debtInterestRates) voidsetDebtMinimumPayments(Map<String, Long> debtMinimumPayments) voidsetDebtOriginalBalance(Long debtOriginalBalance) voidsetDeleted(Boolean deleted) voidsetDirectImportInError(Boolean directImportInError) voidsetDirectImportLinked(Boolean directImportLinked) voidvoidsetLastReconciledAt(OffsetDateTime lastReconciledAt) voidvoidvoidsetOnBudget(Boolean onBudget) voidsetTransferPayeeId(UUID transferPayeeId) voidsetType(AccountType type) voidsetUnclearedBalance(Long unclearedBalance) voidsetUnclearedBalanceCurrency(Double unclearedBalanceCurrency) voidsetUnclearedBalanceFormatted(String unclearedBalanceFormatted) toJson()Convert an instance of Account to an JSON stringtoString()transferPayeeId(UUID transferPayeeId) type(AccountType type) unclearedBalance(Long unclearedBalance) unclearedBalanceCurrency(Double unclearedBalanceCurrency) unclearedBalanceFormatted(String unclearedBalanceFormatted) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ON_BUDGET
- See Also:
-
SERIALIZED_NAME_CLOSED
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_CLEARED_BALANCE
- See Also:
-
SERIALIZED_NAME_UNCLEARED_BALANCE
- See Also:
-
SERIALIZED_NAME_TRANSFER_PAYEE_ID
- See Also:
-
SERIALIZED_NAME_DIRECT_IMPORT_LINKED
- See Also:
-
SERIALIZED_NAME_DIRECT_IMPORT_IN_ERROR
- See Also:
-
SERIALIZED_NAME_LAST_RECONCILED_AT
- See Also:
-
SERIALIZED_NAME_DEBT_ORIGINAL_BALANCE
- See Also:
-
SERIALIZED_NAME_DEBT_INTEREST_RATES
- See Also:
-
SERIALIZED_NAME_DEBT_MINIMUM_PAYMENTS
- See Also:
-
SERIALIZED_NAME_DEBT_ESCROW_AMOUNTS
- See Also:
-
SERIALIZED_NAME_DELETED
- See Also:
-
SERIALIZED_NAME_BALANCE_FORMATTED
- See Also:
-
SERIALIZED_NAME_BALANCE_CURRENCY
- See Also:
-
SERIALIZED_NAME_CLEARED_BALANCE_FORMATTED
- See Also:
-
SERIALIZED_NAME_CLEARED_BALANCE_CURRENCY
- See Also:
-
SERIALIZED_NAME_UNCLEARED_BALANCE_FORMATTED
- See Also:
-
SERIALIZED_NAME_UNCLEARED_BALANCE_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
type
-
getType
Get type- Returns:
- type
-
setType
-
onBudget
-
getOnBudget
Whether this account is \"on budget\" or not- Returns:
- onBudget
-
setOnBudget
-
closed
-
getClosed
Whether this account is closed or not- Returns:
- closed
-
setClosed
-
note
-
getNote
Get note- Returns:
- note
-
setNote
-
balance
-
getBalance
The current available balance of the account in milliunits format- Returns:
- balance
-
setBalance
-
clearedBalance
-
getClearedBalance
The current cleared balance of the account in milliunits format- Returns:
- clearedBalance
-
setClearedBalance
-
unclearedBalance
-
getUnclearedBalance
The current uncleared balance of the account in milliunits format- Returns:
- unclearedBalance
-
setUnclearedBalance
-
transferPayeeId
-
getTransferPayeeId
The payee id which should be used when transferring to this account- Returns:
- transferPayeeId
-
setTransferPayeeId
-
directImportLinked
-
getDirectImportLinked
Whether or not the account is linked to a financial institution for automatic transaction import.- Returns:
- directImportLinked
-
setDirectImportLinked
-
directImportInError
-
getDirectImportInError
If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true.- Returns:
- directImportInError
-
setDirectImportInError
-
lastReconciledAt
-
getLastReconciledAt
A date/time specifying when the account was last reconciled.- Returns:
- lastReconciledAt
-
setLastReconciledAt
-
debtOriginalBalance
-
getDebtOriginalBalance
This field is deprecated and will always be null.- Returns:
- debtOriginalBalance
-
setDebtOriginalBalance
-
debtInterestRates
-
putDebtInterestRatesItem
-
getDebtInterestRates
Get debtInterestRates- Returns:
- debtInterestRates
-
setDebtInterestRates
-
debtMinimumPayments
-
putDebtMinimumPaymentsItem
-
getDebtMinimumPayments
Get debtMinimumPayments- Returns:
- debtMinimumPayments
-
setDebtMinimumPayments
-
debtEscrowAmounts
-
putDebtEscrowAmountsItem
-
getDebtEscrowAmounts
Get debtEscrowAmounts- Returns:
- debtEscrowAmounts
-
setDebtEscrowAmounts
-
deleted
-
getDeleted
Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.- Returns:
- deleted
-
setDeleted
-
balanceFormatted
-
getBalanceFormatted
The current available balance of the account formatted in the plan's currency format- Returns:
- balanceFormatted
-
setBalanceFormatted
-
balanceCurrency
-
getBalanceCurrency
The current available balance of the account as a decimal currency amount- Returns:
- balanceCurrency
-
setBalanceCurrency
-
clearedBalanceFormatted
-
getClearedBalanceFormatted
The current cleared balance of the account formatted in the plan's currency format- Returns:
- clearedBalanceFormatted
-
setClearedBalanceFormatted
-
clearedBalanceCurrency
-
getClearedBalanceCurrency
The current cleared balance of the account as a decimal currency amount- Returns:
- clearedBalanceCurrency
-
setClearedBalanceCurrency
-
unclearedBalanceFormatted
-
getUnclearedBalanceFormatted
The current uncleared balance of the account formatted in the plan's currency format- Returns:
- unclearedBalanceFormatted
-
setUnclearedBalanceFormatted
-
unclearedBalanceCurrency
-
getUnclearedBalanceCurrency
The current uncleared balance of the account as a decimal currency amount- Returns:
- unclearedBalanceCurrency
-
setUnclearedBalanceCurrency
-
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 Account
-
fromJson
Create an instance of Account given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Account
- Throws:
IOException- if the JSON string is invalid with respect to Account
-
toJson
Convert an instance of Account to an JSON string- Returns:
- JSON string
-