Package com.stripe.model.billing
Class MeterEventSummary
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.MeterEventSummary
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
A billing meter event summary represents an aggregated view of a customer's billing meter events
within a specified timeframe. It indicates how much usage was accrued by a customer for that
period.
Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
-
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 booleanbooleanAggregated value of all the events withinstart_time(inclusive) andend_time(inclusive).Key-value pairs of dimension values for event summaries with grouping on dimensions.End timestamp for this event summary (exclusive).getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.getMeter()The meter associated with this event summary.String representing the object's type.Start timestamp for this event summary (inclusive).inthashCode()static MeterEventSummaryCollectionlist(String id, MeterEventSummaryListParams params) Retrieve a list of billing meter event summaries.static MeterEventSummaryCollectionlist(String id, MeterEventSummaryListParams params, RequestOptions options) Retrieve a list of billing meter event summaries.static MeterEventSummaryCollectionRetrieve a list of billing meter event summaries.static MeterEventSummaryCollectionRetrieve a list of billing meter event summaries.voidsetAggregatedValue(BigDecimal aggregatedValue) Aggregated value of all the events withinstart_time(inclusive) andend_time(inclusive).voidsetDimensions(Map<String, String> dimensions) Key-value pairs of dimension values for event summaries with grouping on dimensions.voidsetEndTime(Long endTime) End timestamp for this event summary (exclusive).voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidThe meter associated with this event summary.voidString representing the object's type.voidsetStartTime(Long startTime) Start timestamp for this event summary (inclusive).Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, 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
-
MeterEventSummary
public MeterEventSummary()
-
-
Method Details
-
list
public static MeterEventSummaryCollection list(String id, Map<String, Object> params) throws StripeExceptionRetrieve a list of billing meter event summaries.- Throws:
StripeException
-
list
public static MeterEventSummaryCollection list(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of billing meter event summaries.- Throws:
StripeException
-
list
public static MeterEventSummaryCollection list(String id, MeterEventSummaryListParams params) throws StripeException Retrieve a list of billing meter event summaries.- Throws:
StripeException
-
list
public static MeterEventSummaryCollection list(String id, MeterEventSummaryListParams params, RequestOptions options) throws StripeException Retrieve a list of billing meter event summaries.- Throws:
StripeException
-
getAggregatedValue
Aggregated value of all the events withinstart_time(inclusive) andend_time(inclusive). The aggregation strategy is defined on meter viadefault_aggregation. -
getDimensions
Key-value pairs of dimension values for event summaries with grouping on dimensions. -
getEndTime
End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMeter
The meter associated with this event summary. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_event_summary. -
getStartTime
Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries. -
setAggregatedValue
Aggregated value of all the events withinstart_time(inclusive) andend_time(inclusive). The aggregation strategy is defined on meter viadefault_aggregation. -
setDimensions
Key-value pairs of dimension values for event summaries with grouping on dimensions. -
setEndTime
End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMeter
The meter associated with this event summary. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_event_summary. -
setStartTime
Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-