Class MeterEventCreateParams

java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.v2.billing.MeterEventCreateParams

public class MeterEventCreateParams extends ApiRequestParams
  • Method Details

    • builder

      public static MeterEventCreateParams.Builder builder()
    • getEventName

      public String getEventName()
      Required. The name of the meter event. Corresponds with the event_name field on a meter.
    • 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.
    • getIdentifier

      public String getIdentifier()
      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.
    • getPayload

      public Map<String,String> getPayload()
      Required. The payload of the event. This must contain the fields corresponding to a meter’s customer_mapping.event_payload_key (default is stripe_customer_id) and value_settings.event_payload_key (default is value). Read more about the payload.
    • getTimestamp

      public Instant getTimestamp()
      The time of the event. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object