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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanHas the valuetrueif the object exists in live mode or the valuefalseif 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()inthashCode()static MeterUsageretrieve()Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsageretrieve(RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsageretrieve(MeterUsageRetrieveParams params, RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.static MeterUsageretrieve(Map<String, Object> params, RequestOptions options) Returns aggregated meter usage data for a customer within a specified time interval.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetRefreshedAt(Long refreshedAt) The timestamp to indicate data freshness, measured in seconds since the Unix epoch.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidMethods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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()
-