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

    • addAdditionalAttribute

      public void addAdditionalAttribute(String name, Object value)
      Takes in any additional attributes passed in the request not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAdditionalAttribute

      public Map<String,Object> getAdditionalAttribute()
      Return any additional attributes passed in the request not matching any defined properties.
      Returns:
      any additional attributes passed in the request not matching any defined properties.
    • 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
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Map holding any additional attributes passed in the request not matching any defined properties.
    • 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
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Map holding any additional attributes passed in the request not matching any defined properties.
    • 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