Class MeterUsage

java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.analytics.MeterUsage
All Implemented Interfaces:
StripeActiveObject, StripeObjectInterface

public class MeterUsage extends ApiResource
A billing meter usage event represents an aggregated view of a customer’s billing meter events within a specified timeframe.
  • Constructor Details

    • MeterUsage

      public MeterUsage()
  • Method Details

    • retrieve

      public static MeterUsage retrieve() throws StripeException
      Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
      Throws:
      StripeException
    • retrieve

      public static MeterUsage retrieve(RequestOptions options) throws StripeException
      Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
      Throws:
      StripeException
    • retrieve

      public static MeterUsage retrieve(Map<String,Object> params, RequestOptions options) throws StripeException
      Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
      Throws:
      StripeException
    • retrieve

      public static MeterUsage retrieve(MeterUsageRetrieveParams params, RequestOptions options) throws StripeException
      Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getLivemode

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

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

      Equal to billing.analytics.meter_usage.

    • getRefreshedAt

      public Long getRefreshedAt()
      The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
    • getRows

      public MeterUsageRowCollection getRows()
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to billing.analytics.meter_usage.

    • setRefreshedAt

      public void setRefreshedAt(Long refreshedAt)
      The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
    • setRows

      public void setRows(MeterUsageRowCollection rows)
    • 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