Class NonCatalogItemDetails

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.NonCatalogItemDetails
All Implemented Interfaces:
Serializable

public class NonCatalogItemDetails extends Object implements Serializable
A DTO for specifying the details for a non-catalog item in a cart.

For example, a sales rep could add a DefaultCartItemTypes.CUSTOM_QUOTE_ITEM that represents an item that is no longer available in the catalog, this DTO could be used for specifying the item name and the CSR-specified price.

Author:
Sunny Yu
See Also:
  • Constructor Details

    • NonCatalogItemDetails

      public NonCatalogItemDetails()
  • Method Details

    • getItemName

      public String getItemName()
      The name for the item.
    • getPrice

      public javax.money.MonetaryAmount getPrice()
      The price of the item.

      If specified by a CSR, this price is used to create an price override for CartItem.getOverrideDetails()

      See Also:
      • CartItem.isOverridePriceFlag()
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Miscellaneous attributes that can be set to this request.
      Returns:
      Miscellaneous attributes that can be set to this request.
    • setItemName

      public void setItemName(String itemName)
      The name for the item.
    • setPrice

      public void setPrice(javax.money.MonetaryAmount price)
      The price of the item.

      If specified by a CSR, this price is used to create an price override for CartItem.getOverrideDetails()

      See Also:
      • CartItem.isOverridePriceFlag()
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Miscellaneous attributes that can be set to this request.
      Parameters:
      additionalAttributes - Miscellaneous attributes that can be set to this request.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object