Class TrashBinItem

java.lang.Object
io.voucherify.client.model.TrashBinItem

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TrashBinItem extends Object
Resource moved to the bin, i.e. a campaign, product, SKU, or voucher.
  • Field Details

  • Constructor Details

    • TrashBinItem

      public TrashBinItem()
  • Method Details

    • id

      public TrashBinItem id(String id)
    • getId

      @Nullable public String getId()
      Unique identifier of the trash bin entry. It should not be confused with the ID of the resource moved to the bin.
      Returns:
      id
    • setId

      public void setId(String id)
    • createdAt

      public TrashBinItem createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the resource was moved to the bin. The value for this parameter is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • deletedByUserId

      public TrashBinItem deletedByUserId(String deletedByUserId)
    • getDeletedByUserId

      @Nullable public String getDeletedByUserId()
      Unique identifier of the user who moved the resource to the bin. It returns a user ID if the resource was moved to the bin through an action in the website. It returns a `null` if the resource was deleted through the API.
      Returns:
      deletedByUserId
    • setDeletedByUserId

      public void setDeletedByUserId(String deletedByUserId)
    • resourceId

      public TrashBinItem resourceId(String resourceId)
    • getResourceId

      @Nullable public String getResourceId()
      Unique identifier of the resource moved to the bin, i.e. an ID of a campaign, product, SKU, or voucher.
      Returns:
      resourceId
    • setResourceId

      public void setResourceId(String resourceId)
    • resourceType

      public TrashBinItem resourceType(TrashBinItem.ResourceTypeEnum resourceType)
    • getResourceType

      @Nullable public TrashBinItem.ResourceTypeEnum getResourceType()
      Type of the resource moved to the bin.
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(TrashBinItem.ResourceTypeEnum resourceType)
    • resourceName

      public TrashBinItem resourceName(String resourceName)
    • getResourceName

      @Nullable public String getResourceName()
      Name of the resouce moved to the bin. It is the name of the campaign, product or SKU, or the voucher code.
      Returns:
      resourceName
    • setResourceName

      public void setResourceName(String resourceName)
    • resourceParentId

      public TrashBinItem resourceParentId(String resourceParentId)
    • getResourceParentId

      @Nullable public String getResourceParentId()
      Unique identifier of the parent resource. For a voucher, it is a campaign ID, except for standalone vouchers. For an SKU, it is the product ID. It returns `null` for campaigns and base products.
      Returns:
      resourceParentId
    • setResourceParentId

      public void setResourceParentId(String resourceParentId)
    • _object

      public TrashBinItem _object(TrashBinItem.ObjectEnum _object)
    • getObject

      @Nullable public TrashBinItem.ObjectEnum getObject()
      The type of the object represented by JSON. It is equal to the `resource_type`.
      Returns:
      _object
    • setObject

      public void setObject(TrashBinItem.ObjectEnum _object)
    • 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 TrashBinItem fromJson(String jsonString) throws IOException
      Create an instance of TrashBinItem given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TrashBinItem
      Throws:
      IOException - if the JSON string is invalid with respect to TrashBinItem
    • toJson

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