Package com.stripe.model.v2.billing
Class MeterEvent
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeterEvent
- All Implemented Interfaces:
StripeObjectInterface
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The creation time of this meter event.The name of the meter event.A unique identifier for the event.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 payload of the event.The time of the event.int
hashCode()
void
setCreated
(Instant created) The creation time of this meter event.void
setEventName
(String eventName) The name of the meter event.void
setIdentifier
(String identifier) A unique identifier for the event.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
setPayload
(Map<String, String> payload) The payload of the event.void
setTimestamp
(Instant timestamp) The time of the event.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
MeterEvent
public MeterEvent()
-
-
Method Details
-
getCreated
The creation time of this meter event. -
getEventName
The name of the meter event. Corresponds with theevent_name
field on a meter. -
getIdentifier
A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period. -
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 of the object field.Equal to
v2.billing.meter_event
. -
getPayload
The payload of the event. This must contain the fields corresponding to a meter’scustomer_mapping.event_payload_key
(default isstripe_customer_id
) andvalue_settings.event_payload_key
(default isvalue
). Read more about the payload. -
getTimestamp
The time of the event. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified. -
setCreated
The creation time of this meter event. -
setEventName
The name of the meter event. Corresponds with theevent_name
field on a meter. -
setIdentifier
A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period. -
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 of the object field.Equal to
v2.billing.meter_event
. -
setPayload
The payload of the event. This must contain the fields corresponding to a meter’scustomer_mapping.event_payload_key
(default isstripe_customer_id
) andvalue_settings.event_payload_key
(default isvalue
). Read more about the payload. -
setTimestamp
The time of the event. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified. -
equals
-
canEqual
-
hashCode
public int hashCode()
-