Class Subscription.PendingUpdate

    • Constructor Summary

      Constructors 
      Constructor Description
      PendingUpdate()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.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.
      java.lang.Long getExpiresAt()
      The point after which the changes reflected by this update will be discarded and no longer applied.
      java.util.List<SubscriptionItem> getSubscriptionItems()
      List of subscription items, each with an attached plan, that will be set if the update is applied.
      java.lang.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.
      java.lang.Boolean getTrialFromPlan()
      Indicates if a plan's trial_period_days should be applied to the subscription.
      int hashCode()  
      void setBillingCycleAnchor​(java.lang.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.
      void setExpiresAt​(java.lang.Long expiresAt)
      The point after which the changes reflected by this update will be discarded and no longer applied.
      void setSubscriptionItems​(java.util.List<SubscriptionItem> subscriptionItems)
      List of subscription items, each with an attached plan, that will be set if the update is applied.
      void setTrialEnd​(java.lang.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.
      void setTrialFromPlan​(java.lang.Boolean trialFromPlan)
      Indicates if a plan's trial_period_days should be applied to the subscription.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PendingUpdate

        public PendingUpdate()
    • Method Detail

      • getBillingCycleAnchor

        public java.lang.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.
      • getExpiresAt

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

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

        public java.lang.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 java.lang.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.
      • setBillingCycleAnchor

        public void setBillingCycleAnchor​(java.lang.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.
      • setExpiresAt

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

        public void setSubscriptionItems​(java.util.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​(java.lang.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​(java.lang.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.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object