Class StockLevelModel

All Implemented Interfaces:
Serializable

public class StockLevelModel extends ItemModel
Generated model class for type StockLevel first defined at extension basecommerce.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _ADVANCEDSHIPPINGNOTICEENTRY2STOCKLEVELRELATION

      public static final String _ADVANCEDSHIPPINGNOTICEENTRY2STOCKLEVELRELATION
      Generated relation code constant for relation AdvancedShippingNoticeEntry2StockLevelRelation defining source attribute asnEntry in extension warehousing.
      See Also:
    • PRODUCT

      public static final String PRODUCT
      Generated constant - Attribute key of StockLevel.product attribute defined at extension basecommerce.
      See Also:
    • AVAILABLE

      public static final String AVAILABLE
      Generated constant - Attribute key of StockLevel.available attribute defined at extension basecommerce.
      See Also:
    • RELEASEDATE

      public static final String RELEASEDATE
      Generated constant - Attribute key of StockLevel.releaseDate attribute defined at extension basecommerce.
      See Also:
    • NEXTDELIVERYTIME

      public static final String NEXTDELIVERYTIME
      Generated constant - Attribute key of StockLevel.nextDeliveryTime attribute defined at extension basecommerce.
      See Also:
    • PRODUCTCODE

      public static final String PRODUCTCODE
      Generated constant - Attribute key of StockLevel.productCode attribute defined at extension basecommerce.
      See Also:
    • RESERVED

      public static final String RESERVED
      Generated constant - Attribute key of StockLevel.reserved attribute defined at extension basecommerce.
      See Also:
    • OVERSELLING

      public static final String OVERSELLING
      Generated constant - Attribute key of StockLevel.overSelling attribute defined at extension basecommerce.
      See Also:
    • PREORDER

      public static final String PREORDER
      Generated constant - Attribute key of StockLevel.preOrder attribute defined at extension basecommerce.
      See Also:
    • MAXPREORDER

      public static final String MAXPREORDER
      Generated constant - Attribute key of StockLevel.maxPreOrder attribute defined at extension basecommerce.
      See Also:
    • TREATNEGATIVEASZERO

      public static final String TREATNEGATIVEASZERO
      Generated constant - Attribute key of StockLevel.treatNegativeAsZero attribute defined at extension basecommerce.
      See Also:
    • INSTOCKSTATUS

      public static final String INSTOCKSTATUS
      Generated constant - Attribute key of StockLevel.inStockStatus attribute defined at extension basecommerce.
      See Also:
    • MAXSTOCKLEVELHISTORYCOUNT

      public static final String MAXSTOCKLEVELHISTORYCOUNT
      Generated constant - Attribute key of StockLevel.maxStockLevelHistoryCount attribute defined at extension basecommerce.
      See Also:
    • PRODUCTS

      public static final String PRODUCTS
      Generated constant - Attribute key of StockLevel.products attribute defined at extension basecommerce.
      See Also:
    • WAREHOUSE

      public static final String WAREHOUSE
      Generated constant - Attribute key of StockLevel.warehouse attribute defined at extension basecommerce.
      See Also:
    • STOCKLEVELHISTORYENTRIES

      public static final String STOCKLEVELHISTORYENTRIES
      Generated constant - Attribute key of StockLevel.stockLevelHistoryEntries attribute defined at extension basecommerce.
      See Also:
    • BIN

      public static final String BIN
      Generated constant - Attribute key of StockLevel.bin attribute defined at extension warehousing.
      See Also:
    • INVENTORYEVENTS

      public static final String INVENTORYEVENTS
      Generated constant - Attribute key of StockLevel.inventoryEvents attribute defined at extension warehousing.
      See Also:
    • ASNENTRY

      public static final String ASNENTRY
      Generated constant - Attribute key of StockLevel.asnEntry attribute defined at extension warehousing.
      See Also:
  • Constructor Details

    • StockLevelModel

      public StockLevelModel()
      Generated constructor - Default constructor for generic creation.
    • StockLevelModel

      public StockLevelModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • StockLevelModel

      @Deprecated(since="4.1.1", forRemoval=true) public StockLevelModel(int _available, String _productCode, WarehouseModel _warehouse)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _available - initial attribute declared by type StockLevel at extension basecommerce
      _productCode - initial attribute declared by type StockLevel at extension basecommerce
      _warehouse - initial attribute declared by type StockLevel at extension basecommerce
    • StockLevelModel

      @Deprecated(since="4.1.1", forRemoval=true) public StockLevelModel(int _available, ItemModel _owner, String _productCode, WarehouseModel _warehouse)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _available - initial attribute declared by type StockLevel at extension basecommerce
      _owner - initial attribute declared by type Item at extension core
      _productCode - initial attribute declared by type StockLevel at extension basecommerce
      _warehouse - initial attribute declared by type StockLevel at extension basecommerce
  • Method Details

    • getAsnEntry

      @Accessor(qualifier="asnEntry", type=GETTER) public AdvancedShippingNoticeEntryModel getAsnEntry()
      Generated method - Getter of the StockLevel.asnEntry attribute defined at extension warehousing.
      Returns:
      the asnEntry
    • getAvailable

      @Accessor(qualifier="available", type=GETTER) public int getAvailable()
      Generated method - Getter of the StockLevel.available attribute defined at extension basecommerce.
      Returns:
      the available
    • getBin

      @Accessor(qualifier="bin", type=GETTER) public String getBin()
      Generated method - Getter of the StockLevel.bin attribute defined at extension warehousing.
      Returns:
      the bin
    • getInStockStatus

      @Accessor(qualifier="inStockStatus", type=GETTER) public InStockStatus getInStockStatus()
      Generated method - Getter of the StockLevel.inStockStatus attribute defined at extension basecommerce.
      Returns:
      the inStockStatus
    • getInventoryEvents

      @Accessor(qualifier="inventoryEvents", type=GETTER) public Collection<InventoryEventModel> getInventoryEvents()
      Generated method - Getter of the StockLevel.inventoryEvents attribute defined at extension warehousing. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the inventoryEvents
    • getMaxPreOrder

      @Accessor(qualifier="maxPreOrder", type=GETTER) public int getMaxPreOrder()
      Generated method - Getter of the StockLevel.maxPreOrder attribute defined at extension basecommerce.
      Returns:
      the maxPreOrder
    • getMaxStockLevelHistoryCount

      @Accessor(qualifier="maxStockLevelHistoryCount", type=GETTER) public int getMaxStockLevelHistoryCount()
      Generated method - Getter of the StockLevel.maxStockLevelHistoryCount attribute defined at extension basecommerce.
      Returns:
      the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • getNextDeliveryTime

      @Accessor(qualifier="nextDeliveryTime", type=GETTER) public Date getNextDeliveryTime()
      Generated method - Getter of the StockLevel.nextDeliveryTime attribute defined at extension basecommerce.
      Returns:
      the nextDeliveryTime
    • getOverSelling

      @Accessor(qualifier="overSelling", type=GETTER) public int getOverSelling()
      Generated method - Getter of the StockLevel.overSelling attribute defined at extension basecommerce.
      Returns:
      the overSelling
    • getPreOrder

      @Accessor(qualifier="preOrder", type=GETTER) public int getPreOrder()
      Generated method - Getter of the StockLevel.preOrder attribute defined at extension basecommerce.
      Returns:
      the preOrder
    • getProduct

      @Accessor(qualifier="product", type=GETTER) public ProductModel getProduct()
      Generated method - Getter of the StockLevel.product attribute defined at extension basecommerce.
      Returns:
      the product
    • getProductCode

      @Accessor(qualifier="productCode", type=GETTER) public String getProductCode()
      Generated method - Getter of the StockLevel.productCode attribute defined at extension basecommerce.
      Returns:
      the productCode
    • getProducts

      @Accessor(qualifier="products", type=GETTER) public Collection<ProductModel> getProducts()
      Generated method - Getter of the StockLevel.products attribute defined at extension basecommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the products
    • getReleaseDate

      @Accessor(qualifier="releaseDate", type=GETTER) public Date getReleaseDate()
      Generated method - Getter of the StockLevel.releaseDate attribute defined at extension basecommerce.
      Returns:
      the releaseDate
    • getReserved

      @Accessor(qualifier="reserved", type=GETTER) public int getReserved()
      Generated method - Getter of the StockLevel.reserved attribute defined at extension basecommerce.
      Returns:
      the reserved
    • getStockLevelHistoryEntries

      @Accessor(qualifier="stockLevelHistoryEntries", type=GETTER) public List<StockLevelHistoryEntryModel> getStockLevelHistoryEntries()
      Generated method - Getter of the StockLevel.stockLevelHistoryEntries attribute defined at extension basecommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the stockLevelHistoryEntries
    • getWarehouse

      @Accessor(qualifier="warehouse", type=GETTER) public WarehouseModel getWarehouse()
      Generated method - Getter of the StockLevel.warehouse attribute defined at extension basecommerce.
      Returns:
      the warehouse
    • isTreatNegativeAsZero

      @Accessor(qualifier="treatNegativeAsZero", type=GETTER) public boolean isTreatNegativeAsZero()
      Generated method - Getter of the StockLevel.treatNegativeAsZero attribute defined at extension basecommerce.
      Returns:
      the treatNegativeAsZero
    • setAsnEntry

      @Accessor(qualifier="asnEntry", type=SETTER) public void setAsnEntry(AdvancedShippingNoticeEntryModel value)
      Generated method - Setter of StockLevel.asnEntry attribute defined at extension warehousing.
      Parameters:
      value - the asnEntry
    • setAvailable

      @Accessor(qualifier="available", type=SETTER) public void setAvailable(int value)
      Generated method - Setter of StockLevel.available attribute defined at extension basecommerce.
      Parameters:
      value - the available
    • setBin

      @Accessor(qualifier="bin", type=SETTER) public void setBin(String value)
      Generated method - Setter of StockLevel.bin attribute defined at extension warehousing.
      Parameters:
      value - the bin
    • setInStockStatus

      @Accessor(qualifier="inStockStatus", type=SETTER) public void setInStockStatus(InStockStatus value)
      Generated method - Setter of StockLevel.inStockStatus attribute defined at extension basecommerce.
      Parameters:
      value - the inStockStatus
    • setInventoryEvents

      @Accessor(qualifier="inventoryEvents", type=SETTER) public void setInventoryEvents(Collection<InventoryEventModel> value)
      Generated method - Setter of StockLevel.inventoryEvents attribute defined at extension warehousing.
      Parameters:
      value - the inventoryEvents
    • setMaxPreOrder

      @Accessor(qualifier="maxPreOrder", type=SETTER) public void setMaxPreOrder(int value)
      Generated method - Setter of StockLevel.maxPreOrder attribute defined at extension basecommerce.
      Parameters:
      value - the maxPreOrder
    • setMaxStockLevelHistoryCount

      @Accessor(qualifier="maxStockLevelHistoryCount", type=SETTER) public void setMaxStockLevelHistoryCount(int value)
      Generated method - Setter of StockLevel.maxStockLevelHistoryCount attribute defined at extension basecommerce.
      Parameters:
      value - the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • setNextDeliveryTime

      @Accessor(qualifier="nextDeliveryTime", type=SETTER) public void setNextDeliveryTime(Date value)
      Generated method - Setter of StockLevel.nextDeliveryTime attribute defined at extension basecommerce.
      Parameters:
      value - the nextDeliveryTime
    • setOverSelling

      @Accessor(qualifier="overSelling", type=SETTER) public void setOverSelling(int value)
      Generated method - Setter of StockLevel.overSelling attribute defined at extension basecommerce.
      Parameters:
      value - the overSelling
    • setPreOrder

      @Accessor(qualifier="preOrder", type=SETTER) public void setPreOrder(int value)
      Generated method - Setter of StockLevel.preOrder attribute defined at extension basecommerce.
      Parameters:
      value - the preOrder
    • setProduct

      @Accessor(qualifier="product", type=SETTER) public void setProduct(ProductModel value)
      Generated method - Setter of StockLevel.product attribute defined at extension basecommerce.
      Parameters:
      value - the product
    • setProductCode

      @Accessor(qualifier="productCode", type=SETTER) public void setProductCode(String value)
      Generated method - Setter of StockLevel.productCode attribute defined at extension basecommerce.
      Parameters:
      value - the productCode
    • setProducts

      @Accessor(qualifier="products", type=SETTER) public void setProducts(Collection<ProductModel> value)
      Generated method - Setter of StockLevel.products attribute defined at extension basecommerce.
      Parameters:
      value - the products
    • setReleaseDate

      @Accessor(qualifier="releaseDate", type=SETTER) public void setReleaseDate(Date value)
      Generated method - Setter of StockLevel.releaseDate attribute defined at extension basecommerce.
      Parameters:
      value - the releaseDate
    • setReserved

      @Accessor(qualifier="reserved", type=SETTER) public void setReserved(int value)
      Generated method - Setter of StockLevel.reserved attribute defined at extension basecommerce.
      Parameters:
      value - the reserved
    • setStockLevelHistoryEntries

      @Accessor(qualifier="stockLevelHistoryEntries", type=SETTER) public void setStockLevelHistoryEntries(List<StockLevelHistoryEntryModel> value)
      Generated method - Setter of StockLevel.stockLevelHistoryEntries attribute defined at extension basecommerce.
      Parameters:
      value - the stockLevelHistoryEntries
    • setTreatNegativeAsZero

      @Accessor(qualifier="treatNegativeAsZero", type=SETTER) public void setTreatNegativeAsZero(boolean value)
      Generated method - Setter of StockLevel.treatNegativeAsZero attribute defined at extension basecommerce.
      Parameters:
      value - the treatNegativeAsZero
    • setWarehouse

      @Accessor(qualifier="warehouse", type=SETTER) public void setWarehouse(WarehouseModel value)
      Generated method - Initial setter of StockLevel.warehouse attribute defined at extension basecommerce. Can only be used at creation of model - before first save.
      Parameters:
      value - the warehouse