Class CreateItemRequest
java.lang.Object
dev.getelements.elements.sdk.model.goods.CreateItemRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(String name, Object value) boolean
Gets the item category.@NotNull String
Gets the long description for the Item@NotNull String
Gets the display name for this item, suitable for use at the presentation tier.Gets a copy of metadata of string key-value pairs for this Item.Gets the metadata spec ID.@NotNull String
getName()
Get the unique name of the ItemgetTags()
Get the tags for the Item.int
hashCode()
boolean
Returns the visibility of this Itemvoid
setCategory
(ItemCategory category) Sets the item category.void
setDescription
(@NotNull String description) Sets the long description for the Itemvoid
setDisplayName
(@NotNull String displayName) Sets the display name for this item.void
setMetadata
(Map<String, Object> metadata) Sets the metadata of string key-value pairs for this Item.void
setMetadataSpec
(String metadataSpecId) Sets the metadata spec.void
Set the unique name for the Itemvoid
setPublicVisible
(boolean publicVisible) Sets the visibility of this Itemvoid
Sets the tags for the Item.toString()
-
Constructor Details
-
CreateItemRequest
public CreateItemRequest()
-
-
Method Details
-
getName
Get the unique name of the Item- Returns:
- The unique name for the Item
-
setName
Set the unique name for the Item- Parameters:
name
- unique name for the Item
-
getTags
Get the tags for the Item. The returned List should be treated as immutable.- Returns:
- The tags for an Item, or an empty List if the Item does not have any tags.
-
setTags
Sets the tags for the Item.- Parameters:
tags
- The tags for the Item.
-
getDisplayName
Gets the display name for this item, suitable for use at the presentation tier.- Returns:
- The display name for the Item
-
setDisplayName
Sets the display name for this item.- Parameters:
displayName
- The display name for this item
-
getDescription
Gets the long description for the Item- Returns:
- The long description for the Item
-
setDescription
Sets the long description for the Item- Parameters:
description
- The long description for the Item
-
getCategory
Gets the item category.- Returns:
- the item category
-
setCategory
Sets the item category.- Parameters:
category
-
-
getMetadataSpecId
Gets the metadata spec ID.- Returns:
- the metadata spec id
-
setMetadataSpec
Sets the metadata spec.- Parameters:
metadataSpecId
- the metadata spec id
-
getMetadata
Gets a copy of metadata of string key-value pairs for this Item. Changes to the returned Map are not reflected on this Item.- Returns:
- The metadata for the Item
-
setMetadata
Sets the metadata of string key-value pairs for this Item.- Parameters:
metadata
- The metadata for the Item
-
addMetadata
-
isPublicVisible
public boolean isPublicVisible()Returns the visibility of this Item -
setPublicVisible
public void setPublicVisible(boolean publicVisible) Sets the visibility of this Item- Parameters:
publicVisible
- The boolean flag for the Item
-
equals
-
hashCode
public int hashCode() -
toString
-