Package com.stripe.param.billing
Class MeterCreateParams.CustomerMapping.Builder
java.lang.Object
com.stripe.param.billing.MeterCreateParams.CustomerMapping.Builder
- Enclosing class:
- MeterCreateParams.CustomerMapping
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setEventPayloadKey
(String eventPayloadKey) Required. The key in the usage event payload to use for mapping the event to a customer.Required. The method for mapping a meter event to a customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEventPayloadKey
Required. The key in the usage event payload to use for mapping the event to a customer. -
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. SeeMeterCreateParams.CustomerMapping.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. SeeMeterCreateParams.CustomerMapping.extraParams
for the field documentation. -
setType
public MeterCreateParams.CustomerMapping.Builder setType(MeterCreateParams.CustomerMapping.Type type) Required. The method for mapping a meter event to a customer. Must beby_id
.
-