Package cm.xd.genapi.ynab.model
Class Category
java.lang.Object
cm.xd.genapi.ynab.model.Category
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-13T16:11:17.024752+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class Category
extends Object
Category
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending') -
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 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 TypeMethodDescriptionactivityCurrency(Double activityCurrency) activityFormatted(String activityFormatted) balanceCurrency(Double balanceCurrency) balanceFormatted(String balanceFormatted) budgetedCurrency(Double budgetedCurrency) budgetedFormatted(String budgetedFormatted) categoryGroupId(UUID categoryGroupId) categoryGroupName(String categoryGroupName) booleanstatic CategoryCreate an instance of Category given an JSON stringActivity amount in milliunits formatActivity of the category as a decimal currency amountActivity of the category formatted in the plan's currency formatAvailable balance in milliunits formatAvailable balance of the category as a decimal currency amountAvailable balance of the category formatted in the plan's currency formatAssigned (budgeted) amount in milliunits formatAssigned (budgeted) amount of the category as a decimal currency amountAssigned (budgeted) amount of the category formatted in the plan's currency formatGet categoryGroupIdGet categoryGroupNameWhether or not the category has been deleted.The goal cadence.The goal cadence frequency.The month a goal was createdA day offset modifier for the goal's due date.The number of months, including the current month, left in the current goal period.Indicates the monthly rollover behavior for \"NEED\"-type goals.The total amount funded towards the goal within the current goal period.The total amount funded towards the goal as a decimal currency amountThe total amount funded towards the goal formatted in the plan's currency formatThe amount of funding still needed to complete the goal within the current goal period.The amount of funding still needed to complete the goal as a decimal currency amountThe amount of funding still needed to complete the goal formatted in the plan's currency formatThe percentage completion of the goalThe date/time the goal was snoozed.The goal target amount in milliunitsThe goal target amount as a decimal currency amountThe target date for the goal to be completed.The goal target amount formatted in the plan's currency formatDEPRECATED: No longer used.The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period.The goal underfunded amount as a decimal currency amountThe goal underfunded amount formatted in the plan's currency formatWhether or not the category is hiddengetId()Get idgetName()Get namegetNote()Get noteDEPRECATED: No longer used.goalCadence(Integer goalCadence) goalCadenceFrequency(Integer goalCadenceFrequency) goalCreationMonth(LocalDate goalCreationMonth) goalMonthsToBudget(Integer goalMonthsToBudget) goalNeedsWholeAmount(Boolean goalNeedsWholeAmount) goalOverallFunded(Long goalOverallFunded) goalOverallFundedCurrency(Double goalOverallFundedCurrency) goalOverallFundedFormatted(String goalOverallFundedFormatted) goalOverallLeft(Long goalOverallLeft) goalOverallLeftCurrency(Double goalOverallLeftCurrency) goalOverallLeftFormatted(String goalOverallLeftFormatted) goalPercentageComplete(Integer goalPercentageComplete) goalSnoozedAt(OffsetDateTime goalSnoozedAt) goalTarget(Long goalTarget) goalTargetCurrency(Double goalTargetCurrency) goalTargetDate(LocalDate goalTargetDate) goalTargetFormatted(String goalTargetFormatted) goalTargetMonth(LocalDate goalTargetMonth) goalType(Category.GoalTypeEnum goalType) goalUnderFunded(Long goalUnderFunded) goalUnderFundedCurrency(Double goalUnderFundedCurrency) goalUnderFundedFormatted(String goalUnderFundedFormatted) inthashCode()originalCategoryGroupId(UUID originalCategoryGroupId) voidsetActivity(Long activity) voidsetActivityCurrency(Double activityCurrency) voidsetActivityFormatted(String activityFormatted) voidsetBalance(Long balance) voidsetBalanceCurrency(Double balanceCurrency) voidsetBalanceFormatted(String balanceFormatted) voidsetBudgeted(Long budgeted) voidsetBudgetedCurrency(Double budgetedCurrency) voidsetBudgetedFormatted(String budgetedFormatted) voidsetCategoryGroupId(UUID categoryGroupId) voidsetCategoryGroupName(String categoryGroupName) voidsetDeleted(Boolean deleted) voidsetGoalCadence(Integer goalCadence) voidsetGoalCadenceFrequency(Integer goalCadenceFrequency) voidsetGoalCreationMonth(LocalDate goalCreationMonth) voidsetGoalDay(Integer goalDay) voidsetGoalMonthsToBudget(Integer goalMonthsToBudget) voidsetGoalNeedsWholeAmount(Boolean goalNeedsWholeAmount) voidsetGoalOverallFunded(Long goalOverallFunded) voidsetGoalOverallFundedCurrency(Double goalOverallFundedCurrency) voidsetGoalOverallFundedFormatted(String goalOverallFundedFormatted) voidsetGoalOverallLeft(Long goalOverallLeft) voidsetGoalOverallLeftCurrency(Double goalOverallLeftCurrency) voidsetGoalOverallLeftFormatted(String goalOverallLeftFormatted) voidsetGoalPercentageComplete(Integer goalPercentageComplete) voidsetGoalSnoozedAt(OffsetDateTime goalSnoozedAt) voidsetGoalTarget(Long goalTarget) voidsetGoalTargetCurrency(Double goalTargetCurrency) voidsetGoalTargetDate(LocalDate goalTargetDate) voidsetGoalTargetFormatted(String goalTargetFormatted) voidsetGoalTargetMonth(LocalDate goalTargetMonth) voidsetGoalType(Category.GoalTypeEnum goalType) voidsetGoalUnderFunded(Long goalUnderFunded) voidsetGoalUnderFundedCurrency(Double goalUnderFundedCurrency) voidsetGoalUnderFundedFormatted(String goalUnderFundedFormatted) voidvoidvoidvoidvoidsetOriginalCategoryGroupId(UUID originalCategoryGroupId) toJson()Convert an instance of Category 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_ID
- See Also:
-
SERIALIZED_NAME_CATEGORY_GROUP_ID
- See Also:
-
SERIALIZED_NAME_CATEGORY_GROUP_NAME
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_HIDDEN
- See Also:
-
SERIALIZED_NAME_ORIGINAL_CATEGORY_GROUP_ID
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_BUDGETED
- See Also:
-
SERIALIZED_NAME_ACTIVITY
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_GOAL_TYPE
- See Also:
-
SERIALIZED_NAME_GOAL_NEEDS_WHOLE_AMOUNT
- See Also:
-
SERIALIZED_NAME_GOAL_DAY
- See Also:
-
SERIALIZED_NAME_GOAL_CADENCE
- See Also:
-
SERIALIZED_NAME_GOAL_CADENCE_FREQUENCY
- See Also:
-
SERIALIZED_NAME_GOAL_CREATION_MONTH
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_MONTH
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_DATE
- See Also:
-
SERIALIZED_NAME_GOAL_PERCENTAGE_COMPLETE
- See Also:
-
SERIALIZED_NAME_GOAL_MONTHS_TO_BUDGET
- See Also:
-
SERIALIZED_NAME_GOAL_UNDER_FUNDED
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_FUNDED
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_LEFT
- See Also:
-
SERIALIZED_NAME_GOAL_SNOOZED_AT
- See Also:
-
SERIALIZED_NAME_DELETED
- See Also:
-
SERIALIZED_NAME_BALANCE_FORMATTED
- See Also:
-
SERIALIZED_NAME_BALANCE_CURRENCY
- See Also:
-
SERIALIZED_NAME_ACTIVITY_FORMATTED
- See Also:
-
SERIALIZED_NAME_ACTIVITY_CURRENCY
- See Also:
-
SERIALIZED_NAME_BUDGETED_FORMATTED
- See Also:
-
SERIALIZED_NAME_BUDGETED_CURRENCY
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_FORMATTED
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_CURRENCY
- See Also:
-
SERIALIZED_NAME_GOAL_UNDER_FUNDED_FORMATTED
- See Also:
-
SERIALIZED_NAME_GOAL_UNDER_FUNDED_CURRENCY
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_FUNDED_FORMATTED
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_FUNDED_CURRENCY
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_LEFT_FORMATTED
- See Also:
-
SERIALIZED_NAME_GOAL_OVERALL_LEFT_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Category
public Category()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
categoryGroupId
-
getCategoryGroupId
Get categoryGroupId- Returns:
- categoryGroupId
-
setCategoryGroupId
-
categoryGroupName
-
getCategoryGroupName
Get categoryGroupName- Returns:
- categoryGroupName
-
setCategoryGroupName
-
name
-
getName
Get name- Returns:
- name
-
setName
-
getHidden
Whether or not the category is hidden- Returns:
- hidden
-
setHidden
-
originalCategoryGroupId
-
getOriginalCategoryGroupId
DEPRECATED: No longer used. Value will always be null.- Returns:
- originalCategoryGroupId
-
setOriginalCategoryGroupId
-
note
-
getNote
Get note- Returns:
- note
-
setNote
-
budgeted
-
getBudgeted
Assigned (budgeted) amount in milliunits format- Returns:
- budgeted
-
setBudgeted
-
activity
-
getActivity
Activity amount in milliunits format- Returns:
- activity
-
setActivity
-
balance
-
getBalance
Available balance in milliunits format- Returns:
- balance
-
setBalance
-
goalType
-
getGoalType
The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')- Returns:
- goalType
-
setGoalType
-
goalNeedsWholeAmount
-
getGoalNeedsWholeAmount
Indicates the monthly rollover behavior for \"NEED\"-type goals. When \"true\", the goal will always ask for the target amount in the new month (\"Set Aside\"). When \"false\", previous month category funding is used (\"Refill\"). For other goal types, this field will be null.- Returns:
- goalNeedsWholeAmount
-
setGoalNeedsWholeAmount
-
goalDay
-
getGoalDay
A day offset modifier for the goal's due date. When goal_cadence is 2 (Weekly), this value specifies which day of the week the goal is due (0 = Sunday, 6 = Saturday). Otherwise, this value specifies which day of the month the goal is due (1 = 1st, 31 = 31st, null = Last day of Month).- Returns:
- goalDay
-
setGoalDay
-
goalCadence
-
getGoalCadence
The goal cadence. Value in range 0-14. There are two subsets of these values which behave differently. For values 0, 1, 2, and 13, the goal's due date repeats every goal_cadence * goal_cadence_frequency, where 0 = None, 1 = Monthly, 2 = Weekly, and 13 = Yearly. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. For values 3-12 and 14, goal_cadence_frequency is ignored and the goal's due date repeats every goal_cadence, where 3 = Every 2 Months, 4 = Every 3 Months, ..., 12 = Every 11 Months, and 14 = Every 2 Years.- Returns:
- goalCadence
-
setGoalCadence
-
goalCadenceFrequency
-
getGoalCadenceFrequency
The goal cadence frequency. When goal_cadence is 0, 1, 2, or 13, a goal's due date repeats every goal_cadence * goal_cadence_frequency. For example, goal_cadence 1 with goal_cadence_frequency 2 means the goal is due every other month. When goal_cadence is 3-12 or 14, goal_cadence_frequency is ignored.- Returns:
- goalCadenceFrequency
-
setGoalCadenceFrequency
-
goalCreationMonth
-
getGoalCreationMonth
The month a goal was created- Returns:
- goalCreationMonth
-
setGoalCreationMonth
-
goalTarget
-
getGoalTarget
The goal target amount in milliunits- Returns:
- goalTarget
-
setGoalTarget
-
goalTargetMonth
-
getGoalTargetMonth
DEPRECATED: No longer used. Use `goal_target_date` instead.- Returns:
- goalTargetMonth
-
setGoalTargetMonth
-
goalTargetDate
-
getGoalTargetDate
The target date for the goal to be completed. Only some goal types specify this date.- Returns:
- goalTargetDate
-
setGoalTargetDate
-
goalPercentageComplete
-
getGoalPercentageComplete
The percentage completion of the goal- Returns:
- goalPercentageComplete
-
setGoalPercentageComplete
-
goalMonthsToBudget
-
getGoalMonthsToBudget
The number of months, including the current month, left in the current goal period.- Returns:
- goalMonthsToBudget
-
setGoalMonthsToBudget
-
goalUnderFunded
-
getGoalUnderFunded
The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month.- Returns:
- goalUnderFunded
-
setGoalUnderFunded
-
goalOverallFunded
-
getGoalOverallFunded
The total amount funded towards the goal within the current goal period.- Returns:
- goalOverallFunded
-
setGoalOverallFunded
-
goalOverallLeft
-
getGoalOverallLeft
The amount of funding still needed to complete the goal within the current goal period.- Returns:
- goalOverallLeft
-
setGoalOverallLeft
-
goalSnoozedAt
-
getGoalSnoozedAt
The date/time the goal was snoozed. If the goal is not snoozed, this will be null.- Returns:
- goalSnoozedAt
-
setGoalSnoozedAt
-
deleted
-
getDeleted
Whether or not the category has been deleted. Deleted categories will only be included in delta requests.- Returns:
- deleted
-
setDeleted
-
balanceFormatted
-
getBalanceFormatted
Available balance of the category formatted in the plan's currency format- Returns:
- balanceFormatted
-
setBalanceFormatted
-
balanceCurrency
-
getBalanceCurrency
Available balance of the category as a decimal currency amount- Returns:
- balanceCurrency
-
setBalanceCurrency
-
activityFormatted
-
getActivityFormatted
Activity of the category formatted in the plan's currency format- Returns:
- activityFormatted
-
setActivityFormatted
-
activityCurrency
-
getActivityCurrency
Activity of the category as a decimal currency amount- Returns:
- activityCurrency
-
setActivityCurrency
-
budgetedFormatted
-
getBudgetedFormatted
Assigned (budgeted) amount of the category formatted in the plan's currency format- Returns:
- budgetedFormatted
-
setBudgetedFormatted
-
budgetedCurrency
-
getBudgetedCurrency
Assigned (budgeted) amount of the category as a decimal currency amount- Returns:
- budgetedCurrency
-
setBudgetedCurrency
-
goalTargetFormatted
-
getGoalTargetFormatted
The goal target amount formatted in the plan's currency format- Returns:
- goalTargetFormatted
-
setGoalTargetFormatted
-
goalTargetCurrency
-
getGoalTargetCurrency
The goal target amount as a decimal currency amount- Returns:
- goalTargetCurrency
-
setGoalTargetCurrency
-
goalUnderFundedFormatted
-
getGoalUnderFundedFormatted
The goal underfunded amount formatted in the plan's currency format- Returns:
- goalUnderFundedFormatted
-
setGoalUnderFundedFormatted
-
goalUnderFundedCurrency
-
getGoalUnderFundedCurrency
The goal underfunded amount as a decimal currency amount- Returns:
- goalUnderFundedCurrency
-
setGoalUnderFundedCurrency
-
goalOverallFundedFormatted
-
getGoalOverallFundedFormatted
The total amount funded towards the goal formatted in the plan's currency format- Returns:
- goalOverallFundedFormatted
-
setGoalOverallFundedFormatted
-
goalOverallFundedCurrency
-
getGoalOverallFundedCurrency
The total amount funded towards the goal as a decimal currency amount- Returns:
- goalOverallFundedCurrency
-
setGoalOverallFundedCurrency
-
goalOverallLeftFormatted
-
getGoalOverallLeftFormatted
The amount of funding still needed to complete the goal formatted in the plan's currency format- Returns:
- goalOverallLeftFormatted
-
setGoalOverallLeftFormatted
-
goalOverallLeftCurrency
-
getGoalOverallLeftCurrency
The amount of funding still needed to complete the goal as a decimal currency amount- Returns:
- goalOverallLeftCurrency
-
setGoalOverallLeftCurrency
-
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 Category
-
fromJson
Create an instance of Category given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Category
- Throws:
IOException- if the JSON string is invalid with respect to Category
-
toJson
Convert an instance of Category to an JSON string- Returns:
- JSON string
-