Class MeterUsage
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.analytics.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
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.The timestamp to indicate data freshness, measured in seconds since the Unix epoch.getRows()
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
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.void
setRefreshedAt
(Long refreshedAt) The timestamp to indicate data freshness, measured in seconds since the Unix epoch.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, 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
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
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.analytics.meter_usage
. -
getRefreshedAt
The timestamp to indicate data freshness, measured in seconds since the Unix epoch. -
getRows
-
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.analytics.meter_usage
. -
setRefreshedAt
The timestamp to indicate data freshness, measured in seconds since the Unix epoch. -
setRows
-
equals
-
canEqual
-
hashCode
public int hashCode()
-