Package cm.xd.genapi.ynab.model
Class CategoryBase
java.lang.Object
cm.xd.genapi.ynab.model.CategoryBase
@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 CategoryBase
extends Object
CategoryBase
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryGroupId(UUID categoryGroupId) categoryGroupName(String categoryGroupName) booleanstatic CategoryBaseCreate an instance of CategoryBase given an JSON stringActivity amount in milliunits formatAvailable balance in milliunits formatAssigned (budgeted) amount in milliunits 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 amount of funding still needed to complete the goal within the current goal period.The percentage completion of the goalThe date/time the goal was snoozed.The goal target amount in milliunitsThe target date for the goal to be completed.DEPRECATED: 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.Whether 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) goalOverallLeft(Long goalOverallLeft) goalPercentageComplete(Integer goalPercentageComplete) goalSnoozedAt(OffsetDateTime goalSnoozedAt) goalTarget(Long goalTarget) goalTargetDate(LocalDate goalTargetDate) goalTargetMonth(LocalDate goalTargetMonth) goalType(CategoryBase.GoalTypeEnum goalType) goalUnderFunded(Long goalUnderFunded) inthashCode()originalCategoryGroupId(UUID originalCategoryGroupId) voidsetActivity(Long activity) voidsetBalance(Long balance) voidsetBudgeted(Long budgeted) 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) voidsetGoalOverallLeft(Long goalOverallLeft) voidsetGoalPercentageComplete(Integer goalPercentageComplete) voidsetGoalSnoozedAt(OffsetDateTime goalSnoozedAt) voidsetGoalTarget(Long goalTarget) voidsetGoalTargetDate(LocalDate goalTargetDate) voidsetGoalTargetMonth(LocalDate goalTargetMonth) voidsetGoalType(CategoryBase.GoalTypeEnum goalType) voidsetGoalUnderFunded(Long goalUnderFunded) voidvoidvoidvoidvoidsetOriginalCategoryGroupId(UUID originalCategoryGroupId) toJson()Convert an instance of CategoryBase 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CategoryBase
public CategoryBase()
-
-
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
-
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 CategoryBase
-
fromJson
Create an instance of CategoryBase given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CategoryBase
- Throws:
IOException- if the JSON string is invalid with respect to CategoryBase
-
toJson
Convert an instance of CategoryBase to an JSON string- Returns:
- JSON string
-