Enum Class DefaultSubscriptionPriceDetailType
java.lang.Object
java.lang.Enum<DefaultSubscriptionPriceDetailType>
com.broadleafcommerce.subscriptionoperation.service.enums.DefaultSubscriptionPriceDetailType
- All Implemented Interfaces:
Serializable,Comparable<DefaultSubscriptionPriceDetailType>,Constable
Defines the default supported types of prices on a
SubscriptionItemPriceDetail or
SubscriptionPriceResponse.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor edits, upgrades, and downgrades on a subscription that’s using anDefaultSubscriptionPaymentStrategy.PREPAIDpayment strategy, the customer has already paid the full amount for this billing cycle at the previous rate.The subscription item discount per unit to be deducted from theCREDITED_UNIT_AMOUNT.Prior to an edit, upgrade, or downgrade on a subscription that’s using a Postpaid payment strategy, the system will have prior unbilled charges that will be part of the next invoice.The subscription item discount per unit to be deducted from thePRIOR_UNBILLED_UNIT_AMOUNT.The subscription item price per unit, prorated relative to the next invoice date.The subscription item discount per unit, prorated relative to the next invoice date.The unit amount to charge for the remainder of terms ifthe remainder of terms is being charged.The unit discount amount to be applied to the remainder of terms charge ifthe remainder of terms is being charged.The subscription item discount per unit to be deducted from thePRIOR_UNBILLED_UNIT_AMOUNT. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCreditedUnitAmount(String priceDetailType) static booleanisCreditedUnitDiscountAmount(String priceDetailType) static booleanisPriorUnbilledUnitAmount(String priceDetailType) static booleanisPriorUnbilledUnitDiscountAmount(String priceDetailType) static booleanisProratedUnitAmount(String priceDetailType) static booleanisProratedUnitDiscountAmount(String priceDetailType) static booleanisRemainderOfTermsUnitAmount(String priceDetailType) static booleanisRemainderOfTermsUnitDiscountAmount(String priceDetailType) static booleanisUnitChargeForPreviouslyDiscountedPeriods(String priceDetailType) Returns the enum constant of this class with the specified name.static DefaultSubscriptionPriceDetailType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRORATED_UNIT_AMOUNT
The subscription item price per unit, prorated relative to the next invoice date. For a new purchase, this reflects the full date range. For edits, upgrades, & downgrades, this reflects the prorated price between the action & the end of the billing period. -
CREDITED_UNIT_AMOUNT
For edits, upgrades, and downgrades on a subscription that’s using anDefaultSubscriptionPaymentStrategy.PREPAIDpayment strategy, the customer has already paid the full amount for this billing cycle at the previous rate. For example, consider a customer who is upgrading from 10 to 20 licenses at $1 each half-way through a 30-day month. The user prorated amount would be $10 for 20 licenses. This user has already partially paid for 10 of the licenses, so they will be due a credit of $5 toward the second-half-of-the-month amount. Note: This typically only impacts the first period in the estimatedFuturePayments list. -
PRIOR_UNBILLED_UNIT_AMOUNT
Prior to an edit, upgrade, or downgrade on a subscription that’s using a Postpaid payment strategy, the system will have prior unbilled charges that will be part of the next invoice. In this case, the user will owe this in addition to the prorated charges for the changes being made. For example, consider a customer who is upgrading from 10 to 20 licenses at $1 each half-way through a 30-day month. The user prorated amount would be $10 for 20 licenses. This user also owes $5 for access to the 10 licenses in the first half of the month. Note: This typically only impacts the first period in the estimatedFuturePayments list. -
REMAINDER_OF_TERMS_UNIT_AMOUNT
The unit amount to charge for the remainder of terms ifthe remainder of terms is being charged. Note: This typically only impacts the first period in the estimatedFuturePayments list. -
PRORATED_UNIT_DISCOUNT_AMOUNT
The subscription item discount per unit, prorated relative to the next invoice date. For a new purchase, this reflects the full date range. For edits, upgrades, & downgrades, this reflects the prorated price between the action & the end of the billing period. -
CREDITED_UNIT_DISCOUNT_AMOUNT
The subscription item discount per unit to be deducted from theCREDITED_UNIT_AMOUNT.Similar to
CREDITED_UNIT_AMOUNT, the customer had the full discount applied in their previous payment, so when it needs to be credited due to an edit, upgrade, or downgrade, the discount amount needs to be prorated and deducted from the credited amount. -
PRIOR_UNBILLED_UNIT_DISCOUNT_AMOUNT
The subscription item discount per unit to be deducted from thePRIOR_UNBILLED_UNIT_AMOUNT.Similar to
PRIOR_UNBILLED_UNIT_AMOUNT, the discount amount also needs to be prorated and deducted from the prior unbilled amount, since the discount was applied prior to the edit, upgrade, or downgrade. -
REMAINDER_OF_TERMS_UNIT_DISCOUNT_AMOUNT
The unit discount amount to be applied to the remainder of terms charge ifthe remainder of terms is being charged. -
UNIT_CHARGE_FOR_PREVIOUSLY_DISCOUNTED_PERIODS
public static final DefaultSubscriptionPriceDetailType UNIT_CHARGE_FOR_PREVIOUSLY_DISCOUNTED_PERIODSThe subscription item discount per unit to be deducted from thePRIOR_UNBILLED_UNIT_AMOUNT.Similar to
PRIOR_UNBILLED_UNIT_AMOUNT, the discount amount also needs to be prorated and deducted from the prior unbilled amount, since the discount was applied prior to the edit, upgrade, or downgrade.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isProratedUnitAmount
-
isCreditedUnitAmount
-
isPriorUnbilledUnitAmount
-
isRemainderOfTermsUnitAmount
-
isProratedUnitDiscountAmount
-
isCreditedUnitDiscountAmount
-
isPriorUnbilledUnitDiscountAmount
-
isRemainderOfTermsUnitDiscountAmount
-
isUnitChargeForPreviouslyDiscountedPeriods
-