Package com.stripe.model.billing
Class MeterUsage
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.MeterUsage
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
A billing meter usage event represents an aggregated view of a customer’s billing meter events
within a specified timeframe.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getData()
The aggregated meter usage data for the specified customer and time range.Timestamp indicating how fresh the data is.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.int
hashCode()
static MeterUsage
retrieve()
Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsage
retrieve
(RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsage
retrieve
(MeterUsageRetrieveParams params, RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsage
retrieve
(Map<String, Object> params, RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.void
setData
(List<MeterUsageRow> data) The aggregated meter usage data for the specified customer and time range.void
setDataRefreshedAt
(Long dataRefreshedAt) Timestamp indicating how fresh the data is.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
MeterUsage
public MeterUsage()
-
-
Method Details
-
retrieve
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
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 StripeExceptionReturns 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
The aggregated meter usage data for the specified customer and time range. -
getDataRefreshedAt
Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_usage
. -
setData
The aggregated meter usage data for the specified customer and time range. -
setDataRefreshedAt
Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_usage
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-