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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes that can be set to this request.The name for the item.javax.money.MonetaryAmountgetPrice()The price of the item.inthashCode()booleanWhether this non-catalog item can receive discounts.booleanWhether this non-catalog item is taxable.voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be set to this request.voidsetDiscountable(boolean discountable) Whether this non-catalog item can receive discounts.voidsetItemName(String itemName) The name for the item.voidsetPrice(javax.money.MonetaryAmount price) The price of the item.voidsetTaxable(boolean taxable) Whether this non-catalog item is taxable.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 overrideforCartItem.getOverrideDetails()- See Also:
-
CartItem.isOverridePriceFlag()
-
isDiscountable
public boolean isDiscountable()Whether this non-catalog item can receive discounts. Default is false.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
isTaxable
public boolean isTaxable()Whether this non-catalog item is taxable. Default is false.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
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 overrideforCartItem.getOverrideDetails()- See Also:
-
CartItem.isOverridePriceFlag()
-
setDiscountable
public void setDiscountable(boolean discountable) Whether this non-catalog item can receive discounts. Default is false.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
setTaxable
public void setTaxable(boolean taxable) Whether this non-catalog item is taxable. Default is false.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
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
-