Class CreateItemRequest
java.lang.Object
dev.getelements.elements.sdk.model.goods.CreateItemRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(String name, Object value) booleanGets the item category.@NotNull StringGets the long description for the Item@NotNull StringGets 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 StringgetName()Get the unique name of the ItemgetTags()Get the tags for the Item.inthashCode()booleanReturns the visibility of this ItemvoidsetCategory(ItemCategory category) Sets the item category.voidsetDescription(@NotNull String description) Sets the long description for the ItemvoidsetDisplayName(@NotNull String displayName) Sets the display name for this item.voidsetMetadata(Map<String, Object> metadata) Sets the metadata of string key-value pairs for this Item.voidsetMetadataSpec(String metadataSpecId) Sets the metadata spec.voidSet the unique name for the ItemvoidsetPublicVisible(boolean publicVisible) Sets the visibility of this ItemvoidSets 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
-