Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON.static enumType of the resource moved to the bin. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(TrashBinItem.ObjectEnum _object) createdAt(OffsetDateTime createdAt) deletedByUserId(String deletedByUserId) booleanstatic TrashBinItemCreate an instance of TrashBinItem given an JSON stringTimestamp representing the date and time when the resource was moved to the bin.Unique identifier of the user who moved the resource to the bin.getId()Unique identifier of the trash bin entry.The type of the object represented by JSON.Unique identifier of the resource moved to the bin, i.e.Name of the resouce moved to the bin.Unique identifier of the parent resource.Type of the resource moved to the bin.inthashCode()resourceId(String resourceId) resourceName(String resourceName) resourceParentId(String resourceParentId) resourceType(TrashBinItem.ResourceTypeEnum resourceType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDeletedByUserId(String deletedByUserId) voidvoidsetObject(TrashBinItem.ObjectEnum _object) voidsetResourceId(String resourceId) voidsetResourceName(String resourceName) voidsetResourceParentId(String resourceParentId) voidsetResourceType(TrashBinItem.ResourceTypeEnum resourceType) toJson()Convert an instance of TrashBinItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DELETED_BY_USER_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_ID
- See Also:
-
SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
-
SERIALIZED_NAME_RESOURCE_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCE_PARENT_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TrashBinItem
public TrashBinItem()
-
-
Method Details
-
id
-
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
-
createdAt
-
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
-
deletedByUserId
-
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
-
resourceId
-
getResourceId
Unique identifier of the resource moved to the bin, i.e. an ID of a campaign, product, SKU, or voucher.- Returns:
- resourceId
-
setResourceId
-
resourceType
-
getResourceType
Type of the resource moved to the bin.- Returns:
- resourceType
-
setResourceType
-
resourceName
-
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
-
resourceParentId
-
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
-
_object
-
getObject
The type of the object represented by JSON. It is equal to the `resource_type`.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of TrashBinItem to an JSON string- Returns:
- JSON string
-