Package io.voucherify.client.model
Class Category
java.lang.Object
io.voucherify.client.model.Category
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Category
extends Object
This is an object representing a category.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(Category.ObjectEnum _object) createdAt(OffsetDateTime createdAt) booleanstatic CategoryCreate an instance of Category 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.Timestamp representing the date and time when the category was updated.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidsetHierarchy(Integer hierarchy) voidvoidvoidsetObject(Category.ObjectEnum _object) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of Category 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Category
public Category()
-
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
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
-