Class 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
    • getData

      public List<MeterUsageRow> getData()
      The aggregated meter usage data for the specified customer and time range.
    • getDataRefreshedAt

      public Long getDataRefreshedAt()
      Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch.
    • 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.meter_usage.

    • setData

      public void setData(List<MeterUsageRow> data)
      The aggregated meter usage data for the specified customer and time range.
    • setDataRefreshedAt

      public void setDataRefreshedAt(Long dataRefreshedAt)
      Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch.
    • 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.meter_usage.

    • 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