Class JpaCancellationPolicyDetail
- All Implemented Interfaces:
Serializable
CancellationPolicyDetail- Author:
- karanjariwala
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanContains any additional properties of a permission that do not fit in the above fields.Reference to a product that holds an additional cancellation fee.The ways in which a subscription can be cancelled.The ways in which a subscription's cancellation charge can be collected.ThegetCancellationFeeProductId()in the grace period context.TheCancellationStrategyin grace period context.TheChargeStrategyin grace period context.Duration of the initial grace period in days.inthashCode()booleanWhether the customer can cancel their service before the end of the agreement.booleanWhether the customer should be charged for any discounts he/she received before cancelling the subscription.booleanWhether the customer should be charged for the remainder of the term despite cancelling the subscription.booleanWhether the customer should be charged the full, unadjusted (un-discounted) price when cancelling.booleanWhether the grace period resets after each billing period.booleanWhether grace period properties are enabled.voidsetAllowCancellation(boolean allowCancellation) Whether the customer can cancel their service before the end of the agreement.voidsetAttributes(Map<String, Object> attributes) Contains any additional properties of a permission that do not fit in the above fields.voidsetCancellationFeeProductId(String cancellationFeeProductId) Reference to a product that holds an additional cancellation fee.voidsetCancellationStrategy(String cancellationStrategy) The ways in which a subscription can be cancelled.voidsetChargeForPreviouslyReceivedDiscountAmounts(boolean chargeForPreviouslyReceivedDiscountAmounts) Whether the customer should be charged for any discounts he/she received before cancelling the subscription.voidsetChargeForRemainderOfTerms(boolean chargeForRemainderOfTerms) Whether the customer should be charged for the remainder of the term despite cancelling the subscription.voidsetChargeFullPriceForRemainderOfTerms(boolean chargeFullPriceForRemainderOfTerms) Whether the customer should be charged the full, unadjusted (un-discounted) price when cancelling.voidsetChargeStrategy(String chargeStrategy) The ways in which a subscription's cancellation charge can be collected.voidsetGracePeriodCancellationFeeProductId(String gracePeriodCancellationFeeProductId) ThegetCancellationFeeProductId()in the grace period context.voidsetGracePeriodCancellationStrategy(String gracePeriodCancellationStrategy) TheCancellationStrategyin grace period context.voidsetGracePeriodChargeStrategy(String gracePeriodChargeStrategy) TheChargeStrategyin grace period context.voidsetGracePeriodDurationInDays(Integer gracePeriodDurationInDays) Duration of the initial grace period in days.voidsetGracePeriodRecursEachBillingPeriod(boolean gracePeriodRecursEachBillingPeriod) Whether the grace period resets after each billing period.voidsetGracePeriodSupported(boolean gracePeriodSupported) Whether grace period properties are enabled.toString()
-
Constructor Details
-
JpaCancellationPolicyDetail
public JpaCancellationPolicyDetail()
-
-
Method Details
-
isAllowCancellation
public boolean isAllowCancellation()Whether the customer can cancel their service before the end of the agreement. -
getCancellationStrategy
The ways in which a subscription can be cancelled.- See Also:
-
getChargeStrategy
The ways in which a subscription's cancellation charge can be collected.- See Also:
-
isChargeForRemainderOfTerms
public boolean isChargeForRemainderOfTerms()Whether the customer should be charged for the remainder of the term despite cancelling the subscription. -
isChargeFullPriceForRemainderOfTerms
public boolean isChargeFullPriceForRemainderOfTerms()Whether the customer should be charged the full, unadjusted (un-discounted) price when cancelling. -
isChargeForPreviouslyReceivedDiscountAmounts
public boolean isChargeForPreviouslyReceivedDiscountAmounts()Whether the customer should be charged for any discounts he/she received before cancelling the subscription. -
getCancellationFeeProductId
Reference to a product that holds an additional cancellation fee. -
isGracePeriodSupported
public boolean isGracePeriodSupported()Whether grace period properties are enabled.The grace period is a time-window (typically ~7 days) in which the cancellation policy can differ from the normal cancellation policy. This period occurs just after the subscription’s Auto Renewal. For products without a contract, the grace period opens at the beginning of each period. For products with a contract, the grace period opens at the beginning of the contract & each contract renewal.
-
getGracePeriodDurationInDays
Duration of the initial grace period in days. -
isGracePeriodRecursEachBillingPeriod
public boolean isGracePeriodRecursEachBillingPeriod()Whether the grace period resets after each billing period. If "true", the grace period may be applicable at the beginning of the subscription and if "false" it may recur with each billing cycle.For “terms”, this would typically be false.
-
getGracePeriodCancellationStrategy
TheCancellationStrategyin grace period context. -
getGracePeriodChargeStrategy
TheChargeStrategyin grace period context. -
getGracePeriodCancellationFeeProductId
ThegetCancellationFeeProductId()in the grace period context. -
getAttributes
Contains any additional properties of a permission that do not fit in the above fields. -
setAllowCancellation
public void setAllowCancellation(boolean allowCancellation) Whether the customer can cancel their service before the end of the agreement. -
setCancellationStrategy
The ways in which a subscription can be cancelled.- See Also:
-
setChargeStrategy
The ways in which a subscription's cancellation charge can be collected.- See Also:
-
setChargeForRemainderOfTerms
public void setChargeForRemainderOfTerms(boolean chargeForRemainderOfTerms) Whether the customer should be charged for the remainder of the term despite cancelling the subscription. -
setChargeFullPriceForRemainderOfTerms
public void setChargeFullPriceForRemainderOfTerms(boolean chargeFullPriceForRemainderOfTerms) Whether the customer should be charged the full, unadjusted (un-discounted) price when cancelling. -
setChargeForPreviouslyReceivedDiscountAmounts
public void setChargeForPreviouslyReceivedDiscountAmounts(boolean chargeForPreviouslyReceivedDiscountAmounts) Whether the customer should be charged for any discounts he/she received before cancelling the subscription. -
setCancellationFeeProductId
Reference to a product that holds an additional cancellation fee. -
setGracePeriodSupported
public void setGracePeriodSupported(boolean gracePeriodSupported) Whether grace period properties are enabled.The grace period is a time-window (typically ~7 days) in which the cancellation policy can differ from the normal cancellation policy. This period occurs just after the subscription’s Auto Renewal. For products without a contract, the grace period opens at the beginning of each period. For products with a contract, the grace period opens at the beginning of the contract & each contract renewal.
-
setGracePeriodDurationInDays
Duration of the initial grace period in days. -
setGracePeriodRecursEachBillingPeriod
public void setGracePeriodRecursEachBillingPeriod(boolean gracePeriodRecursEachBillingPeriod) Whether the grace period resets after each billing period. If "true", the grace period may be applicable at the beginning of the subscription and if "false" it may recur with each billing cycle.For “terms”, this would typically be false.
-
setGracePeriodCancellationStrategy
TheCancellationStrategyin grace period context. -
setGracePeriodChargeStrategy
TheChargeStrategyin grace period context. -
setGracePeriodCancellationFeeProductId
ThegetCancellationFeeProductId()in the grace period context. -
setAttributes
Contains any additional properties of a permission that do not fit in the above fields. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-