Class MeterCreateParams

java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.billing.MeterCreateParams

public class MeterCreateParams extends ApiRequestParams
  • Method Details

    • builder

      public static MeterCreateParams.Builder builder()
    • getCustomerMapping

      public MeterCreateParams.CustomerMapping getCustomerMapping()
      Fields that specify how to map a meter event to a customer.
    • getDefaultAggregation

      public MeterCreateParams.DefaultAggregation getDefaultAggregation()
      Required. The default settings to aggregate a meter's events with.
    • getDisplayName

      public String getDisplayName()
      Required. The meter's name.
    • getEventName

      public String getEventName()
      Required. The name of the meter event to record usage for. Corresponds with the event_name field on meter events.
    • getEventTimeWindow

      public MeterCreateParams.EventTimeWindow getEventTimeWindow()
      The time window to pre-aggregate meter events for, if any.
    • getExpand

      public List<String> getExpand()
      Specifies which fields in the response should be expanded.
    • getExtraParams

      public Map<String,Object> 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.
    • getValueSettings

      public MeterCreateParams.ValueSettings getValueSettings()
      Fields that specify how to calculate a meter event's value.