Class CancellationPolicyDetail
- All Implemented Interfaces:
Serializable
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- Author:
- karanjariwala
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe additional attributes.The product id that holds the cancellation fee.The strategy to use when cancelling a subscription, e.g.The strategy to use when charging a customer for cancelling a subscription, e.g.The product id that holds the cancellation fee for the grace period.The cancellation strategy to use during the grace period.The charge strategy to use during the grace period.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 would be charged for any discounts he/she received before cancelling the subscription.booleanWhether the customer would be charged for the remainder of the term despite cancelling the subscription.booleanWhether the customer would be charged the full price for the remainder of the term despite cancelling the subscription.booleanWhether the grace period repeats 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) The additional attributes.voidsetCancellationFeeProductId(String cancellationFeeProductId) The product id that holds the cancellation fee.voidsetCancellationStrategy(String cancellationStrategy) The strategy to use when cancelling a subscription, e.g.voidsetChargeForPreviouslyReceivedDiscountAmounts(boolean chargeForPreviouslyReceivedDiscountAmounts) Whether the customer would be charged for any discounts he/she received before cancelling the subscription.voidsetChargeForRemainderOfTerms(boolean chargeForRemainderOfTerms) Whether the customer would be charged for the remainder of the term despite cancelling the subscription.voidsetChargeFullPriceForRemainderOfTerms(boolean chargeFullPriceForRemainderOfTerms) Whether the customer would be charged the full price for the remainder of the term despite cancelling the subscription.voidsetChargeStrategy(String chargeStrategy) The strategy to use when charging a customer for cancelling a subscription, e.g.voidsetGracePeriodCancellationFeeProductId(String gracePeriodCancellationFeeProductId) The product id that holds the cancellation fee for the grace period.voidsetGracePeriodCancellationStrategy(String gracePeriodCancellationStrategy) The cancellation strategy to use during the grace period.voidsetGracePeriodChargeStrategy(String gracePeriodChargeStrategy) The charge strategy to use during the grace period.voidsetGracePeriodDurationInDays(Integer gracePeriodDurationInDays) Duration of the initial grace period in days.voidsetGracePeriodRecursEachBillingPeriod(boolean gracePeriodRecursEachBillingPeriod) Whether the grace period repeats after each billing period.voidsetGracePeriodSupported(boolean gracePeriodSupported) Whether grace period properties are enabled.toString()
-
Constructor Details
-
CancellationPolicyDetail
public CancellationPolicyDetail()
-
-
Method Details
-
isAllowCancellation
public boolean isAllowCancellation()Whether the customer can cancel their service before the end of the agreement. -
getCancellationStrategy
The strategy to use when cancelling a subscription, e.g. IMMEDIATE, CANCEL_AUTO_RENEWAL. -
getChargeStrategy
The strategy to use when charging a customer for cancelling a subscription, e.g. NO_CHARGE, PRORATED. -
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 repeats after each billing period.For “terms”, this would typically be false.
-
getGracePeriodCancellationStrategy
The cancellation strategy to use during the grace period. -
getGracePeriodChargeStrategy
The charge strategy to use during the grace period. -
getGracePeriodCancellationFeeProductId
The product id that holds the cancellation fee for the grace period. -
isChargeForRemainderOfTerms
public boolean isChargeForRemainderOfTerms()Whether the customer would be charged for the remainder of the term despite cancelling the subscription. -
isChargeFullPriceForRemainderOfTerms
public boolean isChargeFullPriceForRemainderOfTerms()Whether the customer would be charged the full price for the remainder of the term despite cancelling the subscription. -
isChargeForPreviouslyReceivedDiscountAmounts
public boolean isChargeForPreviouslyReceivedDiscountAmounts()Whether the customer would be charged for any discounts he/she received before cancelling the subscription. -
getCancellationFeeProductId
The product id that holds the cancellation fee. -
getAttributes
The additional attributes. -
setAllowCancellation
public void setAllowCancellation(boolean allowCancellation) Whether the customer can cancel their service before the end of the agreement. -
setCancellationStrategy
The strategy to use when cancelling a subscription, e.g. IMMEDIATE, CANCEL_AUTO_RENEWAL. -
setChargeStrategy
The strategy to use when charging a customer for cancelling a subscription, e.g. NO_CHARGE, PRORATED. -
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 repeats after each billing period.For “terms”, this would typically be false.
-
setGracePeriodCancellationStrategy
The cancellation strategy to use during the grace period. -
setGracePeriodChargeStrategy
The charge strategy to use during the grace period. -
setGracePeriodCancellationFeeProductId
The product id that holds the cancellation fee for the grace period. -
setChargeForRemainderOfTerms
public void setChargeForRemainderOfTerms(boolean chargeForRemainderOfTerms) Whether the customer would be charged for the remainder of the term despite cancelling the subscription. -
setChargeFullPriceForRemainderOfTerms
public void setChargeFullPriceForRemainderOfTerms(boolean chargeFullPriceForRemainderOfTerms) Whether the customer would be charged the full price for the remainder of the term despite cancelling the subscription. -
setChargeForPreviouslyReceivedDiscountAmounts
public void setChargeForPreviouslyReceivedDiscountAmounts(boolean chargeForPreviouslyReceivedDiscountAmounts) Whether the customer would be charged for any discounts he/she received before cancelling the subscription. -
setCancellationFeeProductId
The product id that holds the cancellation fee. -
setAttributes
The additional attributes. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-