Class ConfigurationCreateParams.Features.SubscriptionCancel

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

public static class ConfigurationCreateParams.Features.SubscriptionCancel extends Object
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See ConfigurationCreateParams.Features.PaymentMethodUpdate.extraParams for the field documentation.
  • 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()
      Required. 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