Package com.stripe.param.billing
Class MeterEventCreateParams.Builder
java.lang.Object
com.stripe.param.billing.MeterEventCreateParams.Builder
- Enclosing class:
- MeterEventCreateParams
-
Constructor Summary
-
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 will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. -
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.
-