Package com.stripe.param.billing
Class MeterEventCreateParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.billing.MeterEventCreateParams
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Required. The name of the meter event.Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.A unique identifier for the event.Required. The payload of the event.The time of the event.int
hashCode()
Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getEventName
Required. The name of the meter event. Corresponds with theevent_name
field on a meter. -
getExpand
Specifies which fields in the response should be expanded. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getIdentifier
A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. -
getPayload
Required. 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. Measured in seconds since the Unix epoch. 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()
-