Interface StoreDraft
- All Superinterfaces:
CustomizableDraft<StoreDraft>,Draft<StoreDraft>,WithKey
Example to create an instance using the builder pattern
StoreDraft storeDraft = StoreDraft.builder()
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreDraftBuilderbuilder()builder factory method for StoreDraftstatic StoreDraftBuilderbuilder(StoreDraft template) create builder for StoreDraft instancecopyDeep()static StoreDraftdeepCopy(StoreDraft template) factory method to create a deep copy of StoreDraft@Valid List<StoreCountry>Countries defined for the Store.@Valid CustomFieldsDraftCustom fields for the Store.@Valid List<ChannelResourceIdentifier>ResourceIdentifier of a Channel withProductDistributionChannelRoleEnum.@NotNull StringgetKey()User-defined unique and immutable identifier for the Store.Languages defined in Project.@Valid LocalizedStringgetName()Name of the Store.@Valid List<ProductSelectionSettingDraft>Controls availability of Products for this Store via active/inactive Product Selections:@Valid List<ChannelResourceIdentifier>ResourceIdentifier of a Channel withInventorySupplyChannelRoleEnum.static StoreDraftof()factory methodstatic StoreDraftof(StoreDraft template) factory method to create a shallow copy StoreDraftvoidsetCountries(StoreCountry... countries) Countries defined for the Store.voidsetCountries(List<StoreCountry> countries) Countries defined for the Store.voidsetCustom(CustomFieldsDraft custom) Custom fields for the Store.voidsetDistributionChannels(ChannelResourceIdentifier... distributionChannels) ResourceIdentifier of a Channel withProductDistributionChannelRoleEnum.voidsetDistributionChannels(List<ChannelResourceIdentifier> distributionChannels) ResourceIdentifier of a Channel withProductDistributionChannelRoleEnum.voidUser-defined unique and immutable identifier for the Store.voidsetLanguages(String... languages) Languages defined in Project.voidsetLanguages(List<String> languages) Languages defined in Project.voidsetName(LocalizedString name) Name of the Store.voidsetProductSelections(ProductSelectionSettingDraft... productSelections) Controls availability of Products for this Store via active/inactive Product Selections:voidsetProductSelections(List<ProductSelectionSettingDraft> productSelections) Controls availability of Products for this Store via active/inactive Product Selections:voidsetSupplyChannels(ChannelResourceIdentifier... supplyChannels) ResourceIdentifier of a Channel withInventorySupplyChannelRoleEnum.voidsetSupplyChannels(List<ChannelResourceIdentifier> supplyChannels) ResourceIdentifier of a Channel withInventorySupplyChannelRoleEnum.static com.fasterxml.jackson.core.type.TypeReference<StoreDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStoreDraft(Function<StoreDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getKey
User-defined unique and immutable identifier for the Store. Keys can only contain alphanumeric characters, underscores, and hyphens.
-
getName
Name of the Store.
- Returns:
- name
-
getLanguages
Languages defined in Project. Only languages defined in the Project can be used.
- Returns:
- languages
-
getCountries
Countries defined for the Store.
- Returns:
- countries
-
getDistributionChannels
ResourceIdentifier of a Channel with
ProductDistributionChannelRoleEnum.- Returns:
- distributionChannels
-
getSupplyChannels
ResourceIdentifier of a Channel with
InventorySupplyChannelRoleEnum.- Returns:
- supplyChannels
-
getProductSelections
Controls availability of Products for this Store via active/inactive Product Selections:
- Leave empty if all Products in the Project should be available in this Store.
- If only
inactiveProduct Selections withIndividualExclusionProductSelectionMode are provided, all the Products are available in this Store. - If all the Product Selections provided are
inactiveand there's at least a Product Selection of modeIndividual, no Product is available in this Store. - If at least an
activeProduct Selection is provided, onlyactiveProduct Selections are considered to compute the availability in this Store.
- Returns:
- productSelections
-
getCustom
Custom fields for the Store.
- Specified by:
getCustomin interfaceCustomizableDraft<StoreDraft>- Returns:
- custom
-
setKey
User-defined unique and immutable identifier for the Store. Keys can only contain alphanumeric characters, underscores, and hyphens.
- Parameters:
key- value to be set
-
setName
Name of the Store.
- Parameters:
name- value to be set
-
setLanguages
Languages defined in Project. Only languages defined in the Project can be used.
- Parameters:
languages- values to be set
-
setLanguages
Languages defined in Project. Only languages defined in the Project can be used.
- Parameters:
languages- values to be set
-
setCountries
Countries defined for the Store.
- Parameters:
countries- values to be set
-
setCountries
Countries defined for the Store.
- Parameters:
countries- values to be set
-
setDistributionChannels
ResourceIdentifier of a Channel with
ProductDistributionChannelRoleEnum.- Parameters:
distributionChannels- values to be set
-
setDistributionChannels
ResourceIdentifier of a Channel with
ProductDistributionChannelRoleEnum.- Parameters:
distributionChannels- values to be set
-
setSupplyChannels
ResourceIdentifier of a Channel with
InventorySupplyChannelRoleEnum.- Parameters:
supplyChannels- values to be set
-
setSupplyChannels
ResourceIdentifier of a Channel with
InventorySupplyChannelRoleEnum.- Parameters:
supplyChannels- values to be set
-
setProductSelections
Controls availability of Products for this Store via active/inactive Product Selections:
- Leave empty if all Products in the Project should be available in this Store.
- If only
inactiveProduct Selections withIndividualExclusionProductSelectionMode are provided, all the Products are available in this Store. - If all the Product Selections provided are
inactiveand there's at least a Product Selection of modeIndividual, no Product is available in this Store. - If at least an
activeProduct Selection is provided, onlyactiveProduct Selections are considered to compute the availability in this Store.
- Parameters:
productSelections- values to be set
-
setProductSelections
Controls availability of Products for this Store via active/inactive Product Selections:
- Leave empty if all Products in the Project should be available in this Store.
- If only
inactiveProduct Selections withIndividualExclusionProductSelectionMode are provided, all the Products are available in this Store. - If all the Product Selections provided are
inactiveand there's at least a Product Selection of modeIndividual, no Product is available in this Store. - If at least an
activeProduct Selection is provided, onlyactiveProduct Selections are considered to compute the availability in this Store.
- Parameters:
productSelections- values to be set
-
setCustom
Custom fields for the Store.
- Specified by:
setCustomin interfaceCustomizableDraft<StoreDraft>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of StoreDraft
-
of
factory method to create a shallow copy StoreDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreDraft copyDeep() -
deepCopy
factory method to create a deep copy of StoreDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreDraft- Returns:
- builder
-
builder
create builder for StoreDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-