Interface Store
- All Superinterfaces:
BaseResource,Customizable<Store>,DomainResource<Store>,Identifiable<Store>,Referencable<Store>,ResourceIdentifiable<Store>,StoreMixin,Versioned<Store>,WithKey
Example to create an instance using the builder pattern
Store store = Store.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.key("{key}")
.plusLanguages(languagesBuilder -> languagesBuilder)
.plusCountries(countriesBuilder -> countriesBuilder)
.plusDistributionChannels(distributionChannelsBuilder -> distributionChannelsBuilder)
.plusSupplyChannels(supplyChannelsBuilder -> supplyChannelsBuilder)
.plusProductSelections(productSelectionsBuilder -> productSelectionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreBuilderbuilder()builder factory method for Storestatic StoreBuildercreate builder for Store instancecopyDeep()static Storefactory method to create a deep copy of Store@NotNull @Valid List<StoreCountry>Countries defined for the Store.@NotNull ZonedDateTimeDate and time (UTC) the Store was initially created.@Valid CreatedByIDs and references that created the Store.@Valid CustomFieldsCustom fields for the Store.@NotNull @Valid List<ChannelReference>Product Distribution Channels allowed for the Store.@NotNull StringgetId()Unique ID of the Store.@NotNull StringgetKey()User-defined unique and immutable identifier for the Store.Languages configured for the Store.@NotNull ZonedDateTimeDate and time (UTC) the Store was last updated.@Valid LastModifiedByIDs and references that last modified the Store.@Valid LocalizedStringgetName()Name of the Store.@NotNull @Valid List<ProductSelectionSetting>Controls availability of Products for this Store via Product Selections:@NotNull @Valid List<ChannelReference>Inventory Supply Channels allowed for the Store.@NotNull LongCurrent version of the Store.static Storeof()factory methodstatic Storefactory method to create a shallow copy Storestatic ReferenceTypeIdvoidsetCountries(StoreCountry... countries) Countries defined for the Store.voidsetCountries(List<StoreCountry> countries) Countries defined for the Store.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the Store was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the Store.voidsetCustom(CustomFields custom) Custom fields for the Store.voidsetDistributionChannels(ChannelReference... distributionChannels) Product Distribution Channels allowed for the Store.voidsetDistributionChannels(List<ChannelReference> distributionChannels) Product Distribution Channels allowed for the Store.voidUnique ID of the Store.voidUser-defined unique and immutable identifier for the Store.voidsetLanguages(String... languages) Languages configured for the Store.voidsetLanguages(List<String> languages) Languages configured for the Store.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the Store was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the Store.voidsetName(LocalizedString name) Name of the Store.voidsetProductSelections(ProductSelectionSetting... productSelections) Controls availability of Products for this Store via Product Selections:voidsetProductSelections(List<ProductSelectionSetting> productSelections) Controls availability of Products for this Store via Product Selections:voidsetSupplyChannels(ChannelReference... supplyChannels) Inventory Supply Channels allowed for the Store.voidsetSupplyChannels(List<ChannelReference> supplyChannels) Inventory Supply Channels allowed for the Store.voidsetVersion(Long version) Current version of the Store.static com.fasterxml.jackson.core.type.TypeReference<Store>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.store.StoreMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique ID of the Store.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<Store>- Specified by:
getIdin interfaceIdentifiable<Store>- Specified by:
getIdin interfaceVersioned<Store>- Returns:
- id
-
getVersion
Current version of the Store.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<Store>- Specified by:
getVersionin interfaceVersioned<Store>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Store was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Store was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the Store.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the Store.
- Returns:
- createdBy
-
getKey
User-defined unique and immutable identifier for the Store.
-
getName
Name of the Store.
- Returns:
- name
-
getLanguages
Languages configured for the Store.
- Returns:
- languages
-
getCountries
Countries defined for the Store.
- Returns:
- countries
-
getDistributionChannels
Product Distribution Channels allowed for the Store.
- Returns:
- distributionChannels
-
getSupplyChannels
Inventory Supply Channels allowed for the Store.
- Returns:
- supplyChannels
-
getProductSelections
Controls availability of Products for this Store via 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 availlability in this Store.
- Returns:
- productSelections
-
getCustom
Custom fields for the Store.
- Specified by:
getCustomin interfaceCustomizable<Store>- Returns:
- custom
-
setId
Unique ID of the Store.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the Store.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the Store was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the Store was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the Store.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the Store.
- Parameters:
createdBy- value to be set
-
setKey
User-defined unique and immutable identifier for the Store.
- Parameters:
key- value to be set
-
setName
Name of the Store.
- Parameters:
name- value to be set
-
setLanguages
Languages configured for the Store.
- Parameters:
languages- values to be set
-
setLanguages
Languages configured for the Store.
- 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
Product Distribution Channels allowed for the Store.
- Parameters:
distributionChannels- values to be set
-
setDistributionChannels
Product Distribution Channels allowed for the Store.
- Parameters:
distributionChannels- values to be set
-
setSupplyChannels
Inventory Supply Channels allowed for the Store.
- Parameters:
supplyChannels- values to be set
-
setSupplyChannels
Inventory Supply Channels allowed for the Store.
- Parameters:
supplyChannels- values to be set
-
setProductSelections
Controls availability of Products for this Store via 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 availlability in this Store.
- Parameters:
productSelections- values to be set
-
setProductSelections
Controls availability of Products for this Store via 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 availlability in this Store.
- Parameters:
productSelections- values to be set
-
setCustom
Custom fields for the Store.
- Specified by:
setCustomin interfaceCustomizable<Store>- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of Store
-
of
factory method to create a shallow copy Store- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Store copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of Store- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Store- Returns:
- builder
-
builder
create builder for Store instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStore
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-