Class SubscriptionScheduleRevision

  • All Implemented Interfaces:
    HasId

    public class SubscriptionScheduleRevision
    extends StripeObject
    implements HasId
    • Constructor Detail

      • SubscriptionScheduleRevision

        public SubscriptionScheduleRevision()
    • Method Detail

      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.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.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.
      • getPreviousRevision

        public java.lang.String getPreviousRevision()
      • getRenewalBehavior

        public java.lang.String getRenewalBehavior()
        Behavior of the subscription schedule and underlying subscription when it ends.
      • getRenewalInterval

        public SubscriptionSchedule.RenewalInterval getRenewalInterval()
        Interval and duration at which the subscription schedule renews for when it ends if `renewal_behavior` is `renew`.
      • getSchedule

        public java.lang.String getSchedule()
        ID of the subscription schedule the revision points to.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.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.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.
      • setPhases

        public void setPhases​(java.util.List<SubscriptionSchedule.Phase> phases)
        Configuration for the subscription schedule's phases.
      • setPreviousRevision

        public void setPreviousRevision​(java.lang.String previousRevision)
      • setRenewalBehavior

        public void setRenewalBehavior​(java.lang.String renewalBehavior)
        Behavior of the subscription schedule and underlying subscription when it ends.
      • setRenewalInterval

        public void setRenewalInterval​(SubscriptionSchedule.RenewalInterval renewalInterval)
        Interval and duration at which the subscription schedule renews for when it ends if `renewal_behavior` is `renew`.
      • setSchedule

        public void setSchedule​(java.lang.String schedule)
        ID of the subscription schedule the revision points to.
      • 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
      • getId

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId