Class RecurringPriceDetail

java.lang.Object
com.broadleafcommerce.order.common.domain.RecurringPriceDetail
All Implemented Interfaces:
Serializable

public class RecurringPriceDetail extends Object implements Serializable
Represents the details related to a recurring (or subscription) price include the terms.
Since:
Order Common 2.0.3
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    int
    The frequency with which the recurring price should be charged., e.g., a value of 1 combined with periodType of MONTH would indicate to a subscription service that the price should be charged every 1 month.
    Defines the number of periods the price should recur.
    The period type for the price, e.g.
    javax.money.MonetaryAmount
    The amount of the recurring price.
    int
     
    void
    setPeriodFrequency(int periodFrequency)
    The frequency with which the recurring price should be charged., e.g., a value of 1 combined with periodType of MONTH would indicate to a subscription service that the price should be charged every 1 month.
    void
    setPeriodLimit(Integer periodLimit)
    Defines the number of periods the price should recur.
    void
    setPeriodType(String periodType)
    The period type for the price, e.g.
    void
    setPrice(javax.money.MonetaryAmount price)
    The amount of the recurring price.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RecurringPriceDetail

      public RecurringPriceDetail()
  • Method Details

    • getPrice

      public javax.money.MonetaryAmount getPrice()
      The amount of the recurring price.
    • getPeriodFrequency

      public int getPeriodFrequency()
      The frequency with which the recurring price should be charged., e.g., a value of 1 combined with periodType of MONTH would indicate to a subscription service that the price should be charged every 1 month.
      See Also:
      • periodType
    • getPeriodType

      public String getPeriodType()
      The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY
      See Also:
      • periodFrequency
    • getPeriodLimit

      public Integer getPeriodLimit()
      Defines the number of periods the price should recur. Only applicable for non-standard price lists, particularly sales where a discount may be applied for the first 'n' periods after which the price reverts to a standard price list's.
      See Also:
      • periodFrequency
      • periodType
    • setPrice

      public void setPrice(javax.money.MonetaryAmount price)
      The amount of the recurring price.
    • setPeriodFrequency

      public void setPeriodFrequency(int periodFrequency)
      The frequency with which the recurring price should be charged., e.g., a value of 1 combined with periodType of MONTH would indicate to a subscription service that the price should be charged every 1 month.
      See Also:
      • periodType
    • setPeriodType

      public void setPeriodType(String periodType)
      The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY
      See Also:
      • periodFrequency
    • setPeriodLimit

      public void setPeriodLimit(Integer periodLimit)
      Defines the number of periods the price should recur. Only applicable for non-standard price lists, particularly sales where a discount may be applied for the first 'n' periods after which the price reverts to a standard price list's.
      See Also:
      • periodFrequency
      • periodType
    • 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