Package com.stripe.param.billing
Class MeterEventCreateParams.Builder
java.lang.Object
com.stripe.param.billing.MeterEventCreateParams.Builder
- Enclosing class:
- MeterEventCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllPayload
(Map<String, String> map) Add all map key/value pairs to `payload` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putPayload
(String key, String value) Add a key/value pair to `payload` map.setEventName
(String eventName) Required. The name of the meter event.setIdentifier
(String identifier) A unique identifier for the event.setTimestamp
(Long timestamp) The time of the event.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEventName
Required. The name of the meter event. Corresponds with theevent_name
field on a meter. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeMeterEventCreateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeMeterEventCreateParams.expand
for the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeMeterEventCreateParams.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeMeterEventCreateParams.extraParams
for the field documentation. -
setIdentifier
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. -
putPayload
Add a key/value pair to `payload` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeMeterEventCreateParams.payload
for the field documentation. -
putAllPayload
Add all map key/value pairs to `payload` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeMeterEventCreateParams.payload
for the field documentation. -
setTimestamp
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.
-