Class ConfigurationUpdateParams.Features.SubscriptionCancel

java.lang.Object
com.stripe.param.billingportal.ConfigurationUpdateParams.Features.SubscriptionCancel
Enclosing class:
ConfigurationUpdateParams.Features

public static class ConfigurationUpdateParams.Features.SubscriptionCancel extends Object
The Payment Method Configuration to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
  • Method Details

    • builder

    • getCancellationReason

      Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer.
    • getEnabled

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

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getMode

      Whether to cancel subscriptions immediately or at the end of the billing period.
    • getProrationBehavior

      Whether to create prorations when canceling subscriptions. Possible values are none and create_prorations, which is only compatible with mode=immediately. Passing always_invoice will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
    • 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