Class Subscription.PendingUpdate

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Subscription.PendingUpdate
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Subscription

public static class Subscription.PendingUpdate extends StripeObject
Pending Updates store the changes pending from a previous update that will be applied to the Subscription upon successful payment.
  • Constructor Details

    • PendingUpdate

      public PendingUpdate()
  • Method Details

    • getBillingCycleAnchor

      public Long getBillingCycleAnchor()
      If the update is applied, determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
    • getExpiresAt

      public Long getExpiresAt()
      The point after which the changes reflected by this update will be discarded and no longer applied.
    • getPrebillingIterations

      public Long getPrebillingIterations()
      The number of iterations of prebilling to apply.
    • getSubscriptionItems

      public List<SubscriptionItem> getSubscriptionItems()
      List of subscription items, each with an attached plan, that will be set if the update is applied.
    • getTrialEnd

      public Long getTrialEnd()
      Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
    • getTrialFromPlan

      public Boolean getTrialFromPlan()
      Indicates if a plan's trial_period_days should be applied to the subscription. Setting trial_end per subscription is preferred, and this defaults to false. Setting this flag to true together with trial_end is not allowed. See Using trial periods on subscriptions to learn more.
    • setBillingCycleAnchor

      public void setBillingCycleAnchor(Long billingCycleAnchor)
      If the update is applied, determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
    • setExpiresAt

      public void setExpiresAt(Long expiresAt)
      The point after which the changes reflected by this update will be discarded and no longer applied.
    • setPrebillingIterations

      public void setPrebillingIterations(Long prebillingIterations)
      The number of iterations of prebilling to apply.
    • setSubscriptionItems

      public void setSubscriptionItems(List<SubscriptionItem> subscriptionItems)
      List of subscription items, each with an attached plan, that will be set if the update is applied.
    • setTrialEnd

      public void setTrialEnd(Long trialEnd)
      Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
    • setTrialFromPlan

      public void setTrialFromPlan(Boolean trialFromPlan)
      Indicates if a plan's trial_period_days should be applied to the subscription. Setting trial_end per subscription is preferred, and this defaults to false. Setting this flag to true together with trial_end is not allowed. See Using trial periods on subscriptions to learn more.
    • 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