Package io.voucherify.client.model
Class CategoriesCreateResponseBody
java.lang.Object
io.voucherify.client.model.CategoriesCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CategoriesCreateResponseBody
extends Object
Response body schema for **POST** `v1/categories`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets _object -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic CategoriesCreateResponseBodyCreate an instance of CategoriesCreateResponseBody 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.Get _objectinthashCode()voidsetCreatedAt(OffsetDateTime createdAt) voidsetHierarchy(Integer hierarchy) voidvoidvoidtoJson()Convert an instance of CategoriesCreateResponseBody to an JSON stringtoString()
-
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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CategoriesCreateResponseBody
public CategoriesCreateResponseBody()
-
-
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
Get _object- 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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CategoriesCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CategoriesCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CategoriesCreateResponseBody
-
toJson
Convert an instance of CategoriesCreateResponseBody to an JSON string- Returns:
- JSON string
-