Class Price.Recurring

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Price.Recurring
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Price

public static class Price.Recurring extends StripeObject
  • Constructor Details

    • Recurring

      public Recurring()
  • Method Details

    • getAggregateUsage

      public String getAggregateUsage()
      Specifies a usage aggregation strategy for prices of usage_type=metered. Defaults to sum.

      One of last_during_period, last_ever, max, or sum.

    • getInterval

      public String getInterval()
      The frequency at which a subscription is billed. One of day, week, month or year.
    • getIntervalCount

      public Long getIntervalCount()
      The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months.
    • getMeter

      public String getMeter()
      The meter tracking the usage of a metered price.
    • getTrialPeriodDays

      public Long getTrialPeriodDays()
      Default number of trial days when subscribing a customer to this price using trial_from_plan=true.
    • getUsageType

      public String getUsageType()
      Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.
    • setAggregateUsage

      public void setAggregateUsage(String aggregateUsage)
      Specifies a usage aggregation strategy for prices of usage_type=metered. Defaults to sum.

      One of last_during_period, last_ever, max, or sum.

    • setInterval

      public void setInterval(String interval)
      The frequency at which a subscription is billed. One of day, week, month or year.
    • setIntervalCount

      public void setIntervalCount(Long intervalCount)
      The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months.
    • setMeter

      public void setMeter(String meter)
      The meter tracking the usage of a metered price.
    • setTrialPeriodDays

      public void setTrialPeriodDays(Long trialPeriodDays)
      Default number of trial days when subscribing a customer to this price using trial_from_plan=true.
    • setUsageType

      public void setUsageType(String usageType)
      Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.
    • 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