Class CancellationPolicy
java.lang.Object
com.broadleafcommerce.cartoperation.domain.subscription.CancellationPolicy
- All Implemented Interfaces:
Serializable
Describes details for access & charges in the current period in which the cancellation is being
requested/executed.
- 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.getCancellationPolicyDetail(String paymentStrategy) Gets the appropriateCancellationPolicyDetailbased on the payment strategy used.The description of the policy.getId()The id of the policy.getName()The name of the policy.The policy details for items that are using thePOSTPAIDstrategy.The policy details for items that are using thePREPAIDstrategy.inthashCode()voidsetAttributes(Map<String, Object> attributes) The additional attributes.voidsetDescription(String description) The description of the policy.voidThe id of the policy.voidThe name of the policy.voidsetPostpaidPolicyDetail(CancellationPolicyDetail postpaidPolicyDetail) The policy details for items that are using thePOSTPAIDstrategy.voidsetPrepaidPolicyDetail(CancellationPolicyDetail prepaidPolicyDetail) The policy details for items that are using thePREPAIDstrategy.toString()
-
Constructor Details
-
CancellationPolicy
public CancellationPolicy()
-
-
Method Details
-
getCancellationPolicyDetail
Gets the appropriateCancellationPolicyDetailbased on the payment strategy used.- Parameters:
paymentStrategy- The payment strategy used. Can be either ofprepaidorpostpaid- Returns:
- A
CancellationPolicyDetailcorresponding to the paymentStrategy.
-
getId
The id of the policy. -
getName
The name of the policy. -
getDescription
The description of the policy. -
getPrepaidPolicyDetail
The policy details for items that are using thePREPAIDstrategy. -
getPostpaidPolicyDetail
The policy details for items that are using thePOSTPAIDstrategy. -
getAttributes
The additional attributes. -
setId
The id of the policy. -
setName
The name of the policy. -
setDescription
The description of the policy. -
setPrepaidPolicyDetail
The policy details for items that are using thePREPAIDstrategy. -
setPostpaidPolicyDetail
The policy details for items that are using thePOSTPAIDstrategy. -
setAttributes
The additional attributes. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-