Class ProductTerm

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.ProductTerm
All Implemented Interfaces:
Serializable

public class ProductTerm extends Object implements Serializable
Represents a configurable contract term for a Product. Terms are useful for configuring different prices depending on the length of the term. The default term is used for the initial display price.
Since:
Catalog Browse Service 2.1.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • ProductTerm

      public ProductTerm()
  • Method Details

    • getDurationLength

      public int getDurationLength()
      Time interval (number of seconds, minutes, hours, etc.)
    • getDurationType

      public String getDurationType()
      The type of time interval (seconds, minutes, hours, etc.)
    • isDefault

      public boolean isDefault()
      Whether this term is the default term for the product
    • setDurationLength

      public void setDurationLength(int durationLength)
      Time interval (number of seconds, minutes, hours, etc.)
    • setDurationType

      public void setDurationType(String durationType)
      The type of time interval (seconds, minutes, hours, etc.)
    • setDefault

      public void setDefault(boolean isDefault)
      Whether this term is the default term for the product
    • 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