Class RecurringPriceDetail
java.lang.Object
com.broadleafcommerce.order.common.domain.RecurringPriceDetail
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintThe frequency with which the recurringpriceshould be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that thepriceshould be charged every 1 month.Defines the number of periods the price should recur.The period type for the price, e.g.javax.money.MonetaryAmountgetPrice()The amount of the recurring price.inthashCode()voidsetPeriodFrequency(int periodFrequency) The frequency with which the recurringpriceshould be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that thepriceshould be charged every 1 month.voidsetPeriodLimit(Integer periodLimit) Defines the number of periods the price should recur.voidsetPeriodType(String periodType) The period type for the price, e.g.voidsetPrice(javax.money.MonetaryAmount price) The amount of the recurring price.toString()
-
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 recurringpriceshould be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that thepriceshould be charged every 1 month.- See Also:
-
periodType
-
getPeriodType
The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY- See Also:
-
periodFrequency
-
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:
-
periodFrequencyperiodType
-
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 recurringpriceshould be charged., e.g., a value of 1 combined withperiodTypeof MONTH would indicate to a subscription service that thepriceshould be charged every 1 month.- See Also:
-
periodType
-
setPeriodType
The period type for the price, e.g. MONTHLY, QUARTERLY, ANNUALLY- See Also:
-
periodFrequency
-
setPeriodLimit
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:
-
periodFrequencyperiodType
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-