Class Configuration.Features.SubscriptionCancel

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billingportal.Configuration.Features.SubscriptionCancel
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Configuration.Features

public static class Configuration.Features.SubscriptionCancel extends StripeObject
  • Constructor Details

    • SubscriptionCancel

      public SubscriptionCancel()
  • Method Details

    • getCancellationReason

    • getEnabled

      public Boolean getEnabled()
      Whether the feature is enabled.
    • getMode

      public String getMode()
      Whether to cancel subscriptions immediately or at the end of the billing period.

      One of at_period_end, or immediately.

    • getProrationBehavior

      public String getProrationBehavior()
      Whether to create prorations when canceling subscriptions. Possible values are none and create_prorations.

      One of always_invoice, create_prorations, or none.

    • setCancellationReason

      public void setCancellationReason(Configuration.Features.SubscriptionCancel.CancellationReason cancellationReason)
    • setEnabled

      public void setEnabled(Boolean enabled)
      Whether the feature is enabled.
    • setMode

      public void setMode(String mode)
      Whether to cancel subscriptions immediately or at the end of the billing period.

      One of at_period_end, or immediately.

    • setProrationBehavior

      public void setProrationBehavior(String prorationBehavior)
      Whether to create prorations when canceling subscriptions. Possible values are none and create_prorations.

      One of always_invoice, create_prorations, or none.

    • 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