Package io.voucherify.client.model
Class CategoryWithStackingRulesType
java.lang.Object
io.voucherify.client.model.CategoryWithStackingRulesType
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CategoryWithStackingRulesType
extends Object
Category object with `stacking_rules_type`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON.static enumThe type of the stacking rule eligibility. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanCreate an instance of CategoryWithStackingRulesType given an JSON stringTimestamp representing the date and time when the category was created.Category hierarchy.getId()Unique category ID assigned by Voucherify.getName()Category name.The type of the object represented by the JSON.The type of the stacking rule eligibility.Timestamp representing the date and time when the category was updated.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidsetHierarchy(Integer hierarchy) voidvoidvoidvoidsetStackingRulesType(CategoryWithStackingRulesType.StackingRulesTypeEnum stackingRulesType) voidsetUpdatedAt(OffsetDateTime updatedAt) stackingRulesType(CategoryWithStackingRulesType.StackingRulesTypeEnum stackingRulesType) toJson()Convert an instance of CategoryWithStackingRulesType to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_HIERARCHY
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_STACKING_RULES_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CategoryWithStackingRulesType
public CategoryWithStackingRulesType()
-
-
Method Details
-
id
-
getId
Unique category ID assigned by Voucherify.- Returns:
- id
-
setId
-
name
-
getName
Category name.- Returns:
- name
-
setName
-
hierarchy
-
getHierarchy
Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value. minimum: 0- Returns:
- hierarchy
-
setHierarchy
-
_object
-
getObject
The type of the object represented by the JSON. This object stores information about the category.- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
stackingRulesType
public CategoryWithStackingRulesType stackingRulesType(CategoryWithStackingRulesType.StackingRulesTypeEnum stackingRulesType) -
getStackingRulesType
The type of the stacking rule eligibility.- Returns:
- stackingRulesType
-
setStackingRulesType
public void setStackingRulesType(CategoryWithStackingRulesType.StackingRulesTypeEnum stackingRulesType) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CategoryWithStackingRulesType given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CategoryWithStackingRulesType
- Throws:
IOException- if the JSON string is invalid with respect to CategoryWithStackingRulesType
-
toJson
Convert an instance of CategoryWithStackingRulesType to an JSON string- Returns:
- JSON string
-