Class StoreImpl

java.lang.Object
com.commercetools.api.models.store.StoreImpl
All Implemented Interfaces:
BaseResource, Customizable<Store>, DomainResource<Store>, Identifiable<Store>, Referencable<Store>, ResourceIdentifiable<Store>, Store, StoreMixin, Versioned<Store>, WithKey, io.vrap.rmf.base.client.ModelBase

public class StoreImpl extends Object implements Store, io.vrap.rmf.base.client.ModelBase
Store
  • Constructor Details

    • StoreImpl

      public StoreImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique ID of the Store.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface DomainResource<Store>
      Specified by:
      getId in interface Identifiable<Store>
      Specified by:
      getId in interface Store
      Specified by:
      getId in interface Versioned<Store>
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Store.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Store>
      Specified by:
      getVersion in interface Store
      Specified by:
      getVersion in interface Versioned<Store>
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Store was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Store
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the Store was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Store
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface Store
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Store
      Returns:
      createdBy
    • getKey

      public String getKey()

      User-defined unique and immutable identifier for the Store.

      Specified by:
      getKey in interface Store
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getName

      public LocalizedString getName()

      Name of the Store.

      Specified by:
      getName in interface Store
      Returns:
      name
    • getLanguages

      public List<String> getLanguages()

      Languages configured for the Store.

      Specified by:
      getLanguages in interface Store
      Returns:
      languages
    • getCountries

      public List<StoreCountry> getCountries()

      Countries defined for the Store.

      Specified by:
      getCountries in interface Store
      Returns:
      countries
    • getDistributionChannels

      public List<ChannelReference> getDistributionChannels()

      Product Distribution Channels allowed for the Store.

      Specified by:
      getDistributionChannels in interface Store
      Returns:
      distributionChannels
    • getSupplyChannels

      public List<ChannelReference> getSupplyChannels()

      Inventory Supply Channels allowed for the Store.

      Specified by:
      getSupplyChannels in interface Store
      Returns:
      supplyChannels
    • getProductSelections

      public List<ProductSelectionSetting> 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 inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are availlable in this Store.
      • If all the Product Selections provided are inactive and there's at least a Product Selection of mode Individual, no Product is availlable in this Store.
      • If at least an active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.
      Specified by:
      getProductSelections in interface Store
      Returns:
      productSelections
    • getCustom

      public CustomFields getCustom()

      Custom fields for the Store.

      Specified by:
      getCustom in interface Customizable<Store>
      Specified by:
      getCustom in interface Store
      Returns:
      custom
    • setId

      public void setId(String id)
      Description copied from interface: Store

      Unique ID of the Store.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface Store
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Store

      Current version of the Store.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Store
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Store

      Date and time (UTC) the Store was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Store
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Store

      Date and time (UTC) the Store was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Store
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Store

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface Store
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Store

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Store
      Parameters:
      createdBy - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: Store

      User-defined unique and immutable identifier for the Store.

      Specified by:
      setKey in interface Store
      Parameters:
      key - value to be set
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: Store

      Name of the Store.

      Specified by:
      setName in interface Store
      Parameters:
      name - value to be set
    • setLanguages

      public void setLanguages(String... languages)
      Description copied from interface: Store

      Languages configured for the Store.

      Specified by:
      setLanguages in interface Store
      Parameters:
      languages - values to be set
    • setLanguages

      public void setLanguages(List<String> languages)
      Description copied from interface: Store

      Languages configured for the Store.

      Specified by:
      setLanguages in interface Store
      Parameters:
      languages - values to be set
    • setCountries

      public void setCountries(StoreCountry... countries)
      Description copied from interface: Store

      Countries defined for the Store.

      Specified by:
      setCountries in interface Store
      Parameters:
      countries - values to be set
    • setCountries

      public void setCountries(List<StoreCountry> countries)
      Description copied from interface: Store

      Countries defined for the Store.

      Specified by:
      setCountries in interface Store
      Parameters:
      countries - values to be set
    • setDistributionChannels

      public void setDistributionChannels(ChannelReference... distributionChannels)
      Description copied from interface: Store

      Product Distribution Channels allowed for the Store.

      Specified by:
      setDistributionChannels in interface Store
      Parameters:
      distributionChannels - values to be set
    • setDistributionChannels

      public void setDistributionChannels(List<ChannelReference> distributionChannels)
      Description copied from interface: Store

      Product Distribution Channels allowed for the Store.

      Specified by:
      setDistributionChannels in interface Store
      Parameters:
      distributionChannels - values to be set
    • setSupplyChannels

      public void setSupplyChannels(ChannelReference... supplyChannels)
      Description copied from interface: Store

      Inventory Supply Channels allowed for the Store.

      Specified by:
      setSupplyChannels in interface Store
      Parameters:
      supplyChannels - values to be set
    • setSupplyChannels

      public void setSupplyChannels(List<ChannelReference> supplyChannels)
      Description copied from interface: Store

      Inventory Supply Channels allowed for the Store.

      Specified by:
      setSupplyChannels in interface Store
      Parameters:
      supplyChannels - values to be set
    • setProductSelections

      public void setProductSelections(ProductSelectionSetting... productSelections)
      Description copied from interface: Store

      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 inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are availlable in this Store.
      • If all the Product Selections provided are inactive and there's at least a Product Selection of mode Individual, no Product is availlable in this Store.
      • If at least an active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.
      Specified by:
      setProductSelections in interface Store
      Parameters:
      productSelections - values to be set
    • setProductSelections

      public void setProductSelections(List<ProductSelectionSetting> productSelections)
      Description copied from interface: Store

      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 inactive Product Selections with IndividualExclusion ProductSelectionMode are provided, all the Products are availlable in this Store.
      • If all the Product Selections provided are inactive and there's at least a Product Selection of mode Individual, no Product is availlable in this Store.
      • If at least an active Product Selection is provided, only active Product Selections are considered to compute the availlability in this Store.
      Specified by:
      setProductSelections in interface Store
      Parameters:
      productSelections - values to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: Store

      Custom fields for the Store.

      Specified by:
      setCustom in interface Customizable<Store>
      Specified by:
      setCustom in interface Store
      Parameters:
      custom - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object