Class Configuration.Features.SubscriptionUpdate

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

public static class Configuration.Features.SubscriptionUpdate extends StripeObject
For more details about SubscriptionUpdate, please refer to the API Reference.
  • Constructor Details

    • SubscriptionUpdate

      public SubscriptionUpdate()
  • Method Details

    • getBillingCycleAnchor

      public String getBillingCycleAnchor()
      Determines the value to use for the billing cycle anchor on subscription updates. Valid values are now or unchanged, and the default value is unchanged. Setting the value to now resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle documentation.

      One of now, or unchanged.

    • getDefaultAllowedUpdates

      public List<String> getDefaultAllowedUpdates()
      The types of subscription updates that are supported for items listed in the products attribute. When empty, subscriptions are not updateable.
    • getEnabled

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

      The list of up to 10 products that support subscription updates.
    • getProrationBehavior

      public String getProrationBehavior()
      Determines how to handle prorations resulting from subscription updates. Valid values are none, create_prorations, and always_invoice. Defaults to a value of none if you don't set it during creation.

      One of always_invoice, create_prorations, or none.

    • getScheduleAtPeriodEnd

    • getTrialUpdateBehavior

      public String getTrialUpdateBehavior()
      Determines how handle updates to trialing subscriptions. Valid values are end_trial and continue_trial. Defaults to a value of end_trial if you don't set it during creation.

      One of continue_trial, or end_trial.

    • setBillingCycleAnchor

      public void setBillingCycleAnchor(String billingCycleAnchor)
      Determines the value to use for the billing cycle anchor on subscription updates. Valid values are now or unchanged, and the default value is unchanged. Setting the value to now resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle documentation.

      One of now, or unchanged.

    • setDefaultAllowedUpdates

      public void setDefaultAllowedUpdates(List<String> defaultAllowedUpdates)
      The types of subscription updates that are supported for items listed in the products attribute. When empty, subscriptions are not updateable.
    • setEnabled

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

      public void setProducts(List<Configuration.Features.SubscriptionUpdate.Product> products)
      The list of up to 10 products that support subscription updates.
    • setProrationBehavior

      public void setProrationBehavior(String prorationBehavior)
      Determines how to handle prorations resulting from subscription updates. Valid values are none, create_prorations, and always_invoice. Defaults to a value of none if you don't set it during creation.

      One of always_invoice, create_prorations, or none.

    • setScheduleAtPeriodEnd

      public void setScheduleAtPeriodEnd(Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd scheduleAtPeriodEnd)
    • setTrialUpdateBehavior

      public void setTrialUpdateBehavior(String trialUpdateBehavior)
      Determines how handle updates to trialing subscriptions. Valid values are end_trial and continue_trial. Defaults to a value of end_trial if you don't set it during creation.

      One of continue_trial, or end_trial.

    • 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