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

    • getDiscounts

      public List<String> getDiscounts()
      Get IDs of expandable discounts object list.
    • setDiscounts

      public void setDiscounts(List<String> ids)
    • getDiscountObjects

      public List<Discount> getDiscountObjects()
      Get expanded discounts.
    • setDiscountObjects

      public void setDiscountObjects(List<Discount> objs)
    • 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.
    • getDiscount

      public Discount getDiscount()
      The pending subscription-level discount that will be applied when the pending update is applied.
    • getExpiresAt

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

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • 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.
    • setDiscount

      public void setDiscount(Discount discount)
      The pending subscription-level discount that will be applied when the pending update is applied.
    • setExpiresAt

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

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • 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