Package io.voucherify.client.model
Class CategoriesGetResponseBody
java.lang.Object
io.voucherify.client.model.CategoriesGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CategoriesGetResponseBody
extends Object
Response body schema for **GET** `v1/categories/{categoryId}`.
-
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 TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic CategoriesGetResponseBodyCreate an instance of CategoriesGetResponseBody 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) voidvoidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of CategoriesGetResponseBody 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
-
CategoriesGetResponseBody
public CategoriesGetResponseBody()
-
-
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 CategoriesGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CategoriesGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CategoriesGetResponseBody
-
toJson
Convert an instance of CategoriesGetResponseBody to an JSON string- Returns:
- JSON string
-