Class NonCatalogItemDetails
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.NonCatalogItemDetails
- All Implemented Interfaces:
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:
-
AddItemRequest.getNonCatalogItemDetails()
DefaultCartItemTypes
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes that can be set to this request.The name for the item.javax.money.MonetaryAmount
getPrice()
The price of the item.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be set to this request.void
setItemName
(String itemName) The name for the item.void
setPrice
(javax.money.MonetaryAmount price) The price of the item.toString()
-
Constructor Details
-
NonCatalogItemDetails
public NonCatalogItemDetails()
-
-
Method Details
-
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
forCartItem.getOverrideDetails()
- See Also:
-
CartItem.isOverridePriceFlag()
-
getAdditionalAttributes
Miscellaneous attributes that can be set to this request.- Returns:
- Miscellaneous attributes that can be set to this request.
-
setItemName
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
forCartItem.getOverrideDetails()
- See Also:
-
CartItem.isOverridePriceFlag()
-
setAdditionalAttributes
Miscellaneous attributes that can be set to this request.- Parameters:
additionalAttributes
- Miscellaneous attributes that can be set to this request.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-