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.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Aggregated value of all the events withinstart_time
(inclusive) andend_time
(inclusive).End timestamp for this event summary (exclusive).getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if 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).int
hashCode()
static MeterEventSummaryCollection
list
(String id, MeterEventSummaryListParams params) Retrieve a list of billing meter event summaries.static MeterEventSummaryCollection
list
(String id, MeterEventSummaryListParams params, RequestOptions options) Retrieve a list of billing meter event summaries.static MeterEventSummaryCollection
Retrieve a list of billing meter event summaries.static MeterEventSummaryCollection
Retrieve a list of billing meter event summaries.void
setAggregatedValue
(BigDecimal aggregatedValue) Aggregated value of all the events withinstart_time
(inclusive) andend_time
(inclusive).void
setEndTime
(Long endTime) End timestamp for this event summary (exclusive).void
Unique identifier for the object.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
The meter associated with this event summary.void
String representing the object's type.void
setStartTime
(Long startTime) Start timestamp for this event summary (inclusive).Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
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
-
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
. -
getEndTime
End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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
. -
setEndTime
End timestamp for this event summary (exclusive). Must be aligned with minute boundaries. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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.
-