Class NonCatalogItemDetails
java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.NonCatalogItemDetails
- All Implemented Interfaces:
Serializable
A DTO for specifying the details for a non-catalog item in a cart.
For example, on cancelling a subscription the original catalog item would no longer exist and will be substituted by an item that would hold a cancellation charge. This DTO could be used for specifying the information about such item.
- Author:
- karanjariwala
- See Also:
-
AddItemRequest.getNonCatalogItemDetails()DefaultCartItemTypes- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes that can be set on this item.The name of the non-catalog-item.javax.money.MonetaryAmountgetPrice()The price of the non-catalog-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 on this item.voidsetDiscountable(boolean discountable) Whether this non-catalog item can receive discounts.voidsetItemName(String itemName) The name of the non-catalog-item.voidsetPrice(javax.money.MonetaryAmount price) The price of the non-catalog-item.voidsetTaxable(boolean taxable) Whether this non-catalog item is taxable.toString()
-
Constructor Details
-
NonCatalogItemDetails
public NonCatalogItemDetails()
-
-
Method Details
-
getItemName
The name of the non-catalog-item. -
getPrice
public javax.money.MonetaryAmount getPrice()The price of the non-catalog-item. -
isDiscountable
public boolean isDiscountable()Whether this non-catalog item can receive discounts. Default is false. -
isTaxable
public boolean isTaxable()Whether this non-catalog item is taxable. Default is false. -
getAdditionalAttributes
Miscellaneous attributes that can be set on this item. -
setItemName
The name of the non-catalog-item. -
setPrice
public void setPrice(javax.money.MonetaryAmount price) The price of the non-catalog-item. -
setDiscountable
public void setDiscountable(boolean discountable) Whether this non-catalog item can receive discounts. Default is false. -
setTaxable
public void setTaxable(boolean taxable) Whether this non-catalog item is taxable. Default is false. -
setAdditionalAttributes
Miscellaneous attributes that can be set on this item. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-