Class CartModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InMemoryCartModel

public class CartModel extends AbstractOrderModel
Generated model class for type Cart first defined at extension core.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String SESSIONID
      Generated constant - Attribute key of Cart.sessionId attribute defined at extension core.
      See Also:
    • CARTTOORDERCRONJOB

      public static final String CARTTOORDERCRONJOB
      Generated constant - Attribute key of Cart.cartToOrderCronJob attribute defined at extension basecommerce.
      See Also:
    • SAVETIME

      public static final String SAVETIME
      Generated constant - Attribute key of Cart.saveTime attribute defined at extension commerceservices.
      See Also:
    • SAVEDBY

      public static final String SAVEDBY
      Generated constant - Attribute key of Cart.savedBy attribute defined at extension commerceservices.
      See Also:
    • QUOTEREFERENCE

      public static final String QUOTEREFERENCE
      Generated constant - Attribute key of Cart.quoteReference attribute defined at extension commerceservices.
      See Also:
    • EARLIESTRETRIEVALDATE

      public static final String EARLIESTRETRIEVALDATE
      Generated constant - Attribute key of Cart.earliestRetrievalDate attribute defined at extension commerceservices.
      See Also:
    • IMPORTSTATUS

      public static final String IMPORTSTATUS
      Generated constant - Attribute key of Cart.importStatus attribute defined at extension acceleratorservices.
      See Also:
    • INVALIDMESSAGES

      public static final String INVALIDMESSAGES
      Generated constant - Attribute key of Cart.invalidMessages attribute defined at extension tuadatacommonsservices.
      See Also:
    • CARTVALIDATIONS

      public static final String CARTVALIDATIONS
      Generated constant - Attribute key of Cart.cartValidations attribute defined at extension tuadatacommonsservices.
      See Also:
  • Constructor Details

    • CartModel

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

      public CartModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • CartModel

      @Deprecated(since="4.1.1", forRemoval=true) public CartModel(CurrencyModel _currency, Date _date, UserModel _user)
      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:
      _currency - initial attribute declared by type AbstractOrder at extension core
      _date - initial attribute declared by type AbstractOrder at extension core
      _user - initial attribute declared by type Cart at extension core
    • CartModel

      @Deprecated(since="4.1.1", forRemoval=true) public CartModel(CurrencyModel _currency, Date _date, ItemModel _owner, UserModel _user)
      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:
      _currency - initial attribute declared by type AbstractOrder at extension core
      _date - initial attribute declared by type AbstractOrder at extension core
      _owner - initial attribute declared by type Item at extension core
      _user - initial attribute declared by type Cart at extension core
  • Method Details

    • getCartToOrderCronJob

      @Accessor(qualifier="cartToOrderCronJob", type=GETTER) public Collection<CartToOrderCronJobModel> getCartToOrderCronJob()
      Generated method - Getter of the Cart.cartToOrderCronJob attribute defined at extension basecommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the cartToOrderCronJob
    • getCartValidations

      @Accessor(qualifier="cartValidations", type=GETTER) public Set<TmaCartValidationModel> getCartValidations()
      Generated method - Getter of the Cart.cartValidations attribute defined at extension tuadatacommonsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the cartValidations - Cart validation list for the given cart
    • getEarliestRetrievalDate

      @Accessor(qualifier="earliestRetrievalDate", type=GETTER) public String getEarliestRetrievalDate()
      Generated method - Getter of the Cart.earliestRetrievalDate attribute defined at extension commerceservices.
      Returns:
      the earliestRetrievalDate - Date on which the earliest possible retrieval available for order
    • getImportStatus

      @Accessor(qualifier="importStatus", type=GETTER) public ImportStatus getImportStatus()
      Generated method - Getter of the Cart.importStatus attribute defined at extension acceleratorservices.
      Returns:
      the importStatus - set the status of the import cart process
    • getInvalidMessages

      @Deprecated(since="1911", forRemoval=true) @Accessor(qualifier="invalidMessages", type=GETTER) public List<String> getInvalidMessages()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1911
      Generated method - Getter of the Cart.invalidMessages attribute defined at extension tuadatacommonsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the invalidMessages - Represents the list of cart validation errors messages.
    • getQuoteReference

      @Accessor(qualifier="quoteReference", type=GETTER) public QuoteModel getQuoteReference()
      Generated method - Getter of the Cart.quoteReference attribute defined at extension commerceservices.
      Returns:
      the quoteReference - The reference to quote from which the cart was created.
    • getSavedBy

      @Accessor(qualifier="savedBy", type=GETTER) public UserModel getSavedBy()
      Generated method - Getter of the Cart.savedBy attribute defined at extension commerceservices.
      Returns:
      the savedBy - The user who saved the cart.
    • getSaveTime

      @Accessor(qualifier="saveTime", type=GETTER) public Date getSaveTime()
      Generated method - Getter of the Cart.saveTime attribute defined at extension commerceservices.
      Returns:
      the saveTime - The date/time when the cart was saved.
    • getSessionId

      @Accessor(qualifier="sessionId", type=GETTER) public String getSessionId()
      Generated method - Getter of the Cart.sessionId attribute defined at extension core.
      Returns:
      the sessionId
    • setCartToOrderCronJob

      @Accessor(qualifier="cartToOrderCronJob", type=SETTER) public void setCartToOrderCronJob(Collection<CartToOrderCronJobModel> value)
      Generated method - Setter of Cart.cartToOrderCronJob attribute defined at extension basecommerce.
      Parameters:
      value - the cartToOrderCronJob
    • setCartValidations

      @Accessor(qualifier="cartValidations", type=SETTER) public void setCartValidations(Set<TmaCartValidationModel> value)
      Generated method - Setter of Cart.cartValidations attribute defined at extension tuadatacommonsservices.
      Parameters:
      value - the cartValidations - Cart validation list for the given cart
    • setEarliestRetrievalDate

      @Accessor(qualifier="earliestRetrievalDate", type=SETTER) public void setEarliestRetrievalDate(String value)
      Generated method - Setter of Cart.earliestRetrievalDate attribute defined at extension commerceservices.
      Parameters:
      value - the earliestRetrievalDate - Date on which the earliest possible retrieval available for order
    • setImportStatus

      @Accessor(qualifier="importStatus", type=SETTER) public void setImportStatus(ImportStatus value)
      Generated method - Setter of Cart.importStatus attribute defined at extension acceleratorservices.
      Parameters:
      value - the importStatus - set the status of the import cart process
    • setInvalidMessages

      @Deprecated(since="1911", forRemoval=true) @Accessor(qualifier="invalidMessages", type=SETTER) public void setInvalidMessages(List<String> value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1911
      Generated method - Setter of Cart.invalidMessages attribute defined at extension tuadatacommonsservices.
      Parameters:
      value - the invalidMessages - Represents the list of cart validation errors messages.
    • setQuoteReference

      @Accessor(qualifier="quoteReference", type=SETTER) public void setQuoteReference(QuoteModel value)
      Generated method - Setter of Cart.quoteReference attribute defined at extension commerceservices.
      Parameters:
      value - the quoteReference - The reference to quote from which the cart was created.
    • setSavedBy

      @Accessor(qualifier="savedBy", type=SETTER) public void setSavedBy(UserModel value)
      Generated method - Setter of Cart.savedBy attribute defined at extension commerceservices.
      Parameters:
      value - the savedBy - The user who saved the cart.
    • setSaveTime

      @Accessor(qualifier="saveTime", type=SETTER) public void setSaveTime(Date value)
      Generated method - Setter of Cart.saveTime attribute defined at extension commerceservices.
      Parameters:
      value - the saveTime - The date/time when the cart was saved.
    • setSessionId

      @Accessor(qualifier="sessionId", type=SETTER) public void setSessionId(String value)
      Generated method - Setter of Cart.sessionId attribute defined at extension core.
      Parameters:
      value - the sessionId