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.
  • Field Details

  • Constructor Details

    • Category

      public Category()
  • Method Details

    • id

      public Category id(String id)
    • getId

      @Nullable public String getId()
      Unique category ID assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • name

      public Category name(String name)
    • getName

      @Nullable public String getName()
      Category name.
      Returns:
      name
    • setName

      public void setName(String name)
    • hierarchy

      public Category hierarchy(Integer hierarchy)
    • getHierarchy

      @Nullable public Integer getHierarchy()
      Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value. minimum: 0
      Returns:
      hierarchy
    • setHierarchy

      public void setHierarchy(Integer hierarchy)
    • _object

      public Category _object(Category.ObjectEnum _object)
    • getObject

      @Nullable public Category.ObjectEnum getObject()
      The type of the object represented by the JSON. This object stores information about the category.
      Returns:
      _object
    • setObject

      public void setObject(Category.ObjectEnum _object)
    • createdAt

      public Category createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the category was created. The value is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public Category updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp representing the date and time when the category was updated. The value is shown in the ISO 8601 format.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static Category fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of Category to an JSON string
      Returns:
      JSON string