Class NonCatalogItemDetails

java.lang.Object
com.broadleafcommerce.subscriptionoperation.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, 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:
  • Constructor Details

    • NonCatalogItemDetails

      public NonCatalogItemDetails()
  • Method Details

    • getItemName

      public String 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

      public Map<String,Object> getAdditionalAttributes()
      Miscellaneous attributes that can be set on this item.
    • setItemName

      public void setItemName(String itemName)
      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

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Miscellaneous attributes that can be set on this item.
    • 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