java.lang.Object
com.broadleafcommerce.cartoperation.domain.subscription.CancellationPolicy
All Implemented Interfaces:
Serializable

public class CancellationPolicy extends Object implements 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 Details

    • CancellationPolicy

      public CancellationPolicy()
  • Method Details

    • getCancellationPolicyDetail

      public CancellationPolicyDetail getCancellationPolicyDetail(String paymentStrategy)
      Gets the appropriate CancellationPolicyDetail based on the payment strategy used.
      Parameters:
      paymentStrategy - The payment strategy used. Can be either of prepaid or postpaid
      Returns:
      A CancellationPolicyDetail corresponding to the paymentStrategy.
    • getId

      public String getId()
      The id of the policy.
    • getName

      public String getName()
      The name of the policy.
    • getDescription

      public String getDescription()
      The description of the policy.
    • getPrepaidPolicyDetail

      public CancellationPolicyDetail getPrepaidPolicyDetail()
      The policy details for items that are using the PREPAID strategy.
    • getPostpaidPolicyDetail

      public CancellationPolicyDetail getPostpaidPolicyDetail()
      The policy details for items that are using the POSTPAID strategy.
    • getAttributes

      public Map<String,Object> getAttributes()
      The additional attributes.
    • setId

      public void setId(String id)
      The id of the policy.
    • setName

      public void setName(String name)
      The name of the policy.
    • setDescription

      public void setDescription(String description)
      The description of the policy.
    • setPrepaidPolicyDetail

      public void setPrepaidPolicyDetail(CancellationPolicyDetail prepaidPolicyDetail)
      The policy details for items that are using the PREPAID strategy.
    • setPostpaidPolicyDetail

      public void setPostpaidPolicyDetail(CancellationPolicyDetail postpaidPolicyDetail)
      The policy details for items that are using the POSTPAID strategy.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      The additional attributes.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object