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
Fix me empty_doc_string.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe creation time of this meter event.The name of the meter event.A unique identifier for the event.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.The payload of the event.The time of the event.inthashCode()voidsetCreated(Instant created) The creation time of this meter event.voidsetEventName(String eventName) The name of the meter event.voidsetIdentifier(String identifier) A unique identifier for the event.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.voidsetPayload(Map<String, String> payload) The payload of the event.voidsetTimestamp(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_namefield 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 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 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_namefield 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 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 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()
-