Package build.cursed.genapi.ynab.model
Class ExistingCategory
java.lang.Object
build.cursed.genapi.ynab.model.ExistingCategory
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-08-03T05:02:43.013937+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class ExistingCategory
extends Object
ExistingCategory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumWhen specified, configures a recurring 'NEED' target of goal_target that repeats at this frequency, replacing any existing target. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryGroupId(UUID categoryGroupId) booleanstatic ExistingCategoryCreate an instance of ExistingCategory given an JSON stringThe id of the category group to which this category belongs.When specified, configures a recurring 'NEED' target of goal_target that repeats at this frequency, replacing any existing target.Whether the goal requires the full target amount each period.The goal target amount in milliunits format.The goal target date in ISO format (e.g.getName()Get namegetNote()Get notegoalFrequency(ExistingCategory.GoalFrequencyEnum goalFrequency) goalNeedsWholeAmount(Boolean goalNeedsWholeAmount) goalTarget(Long goalTarget) goalTargetDate(LocalDate goalTargetDate) inthashCode()voidsetCategoryGroupId(UUID categoryGroupId) voidsetGoalFrequency(ExistingCategory.GoalFrequencyEnum goalFrequency) voidsetGoalNeedsWholeAmount(Boolean goalNeedsWholeAmount) voidsetGoalTarget(Long goalTarget) voidsetGoalTargetDate(LocalDate goalTargetDate) voidvoidtoJson()Convert an instance of ExistingCategory 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_NAME
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_CATEGORY_GROUP_ID
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_DATE
- See Also:
-
SERIALIZED_NAME_GOAL_NEEDS_WHOLE_AMOUNT
- See Also:
-
SERIALIZED_NAME_GOAL_FREQUENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExistingCategory
public ExistingCategory()
-
-
Method Details
-
name
-
getName
Get name- Returns:
- name
-
setName
-
note
-
getNote
Get note- Returns:
- note
-
setNote
-
categoryGroupId
-
getCategoryGroupId
The id of the category group to which this category belongs. An internal category group may not be specified.- Returns:
- categoryGroupId
-
setCategoryGroupId
-
goalTarget
-
getGoalTarget
The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly goal will be created for the category with this target amount. If goal_type is not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories. When updating a category, passing null removes any existing target.- Returns:
- goalTarget
-
setGoalTarget
-
goalTargetDate
-
getGoalTargetDate
The goal target date in ISO format (e.g. 2016-12-01).- Returns:
- goalTargetDate
-
setGoalTargetDate
-
goalNeedsWholeAmount
-
getGoalNeedsWholeAmount
Whether the goal requires the full target amount each period. Only supported for 'NEED' goals. When true, the goal is configured as 'Set aside another...'. When false, the goal is configured as 'Refill up to...'.- Returns:
- goalNeedsWholeAmount
-
setGoalNeedsWholeAmount
-
goalFrequency
-
getGoalFrequency
When specified, configures a recurring 'NEED' target of goal_target that repeats at this frequency, replacing any existing target. Requires goal_target. Cannot be combined with goal_target_date and is not supported for Credit Card Payment categories. Omit to leave an existing target's cadence unchanged.- Returns:
- goalFrequency
-
setGoalFrequency
-
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 ExistingCategory
-
fromJson
Create an instance of ExistingCategory given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExistingCategory
- Throws:
IOException- if the JSON string is invalid with respect to ExistingCategory
-
toJson
Convert an instance of ExistingCategory to an JSON string- Returns:
- JSON string
-