Class MeterEvent

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeterEvent
All Implemented Interfaces:
StripeObjectInterface

public class MeterEvent extends StripeObject
  • Constructor Details

    • MeterEvent

      public MeterEvent()
  • Method Details

    • getCreated

      public Instant getCreated()
      The creation time of this meter event.
    • getEventName

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

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.meter_event.

    • getPayload

      public Map<String,String> getPayload()
      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.
    • setCreated

      public void setCreated(Instant created)
      The creation time of this meter event.
    • setEventName

      public void setEventName(String eventName)
      The name of the meter event. Corresponds with the event_name field on a meter.
    • setIdentifier

      public void setIdentifier(String identifier)
      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.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.meter_event.

    • setPayload

      public void setPayload(Map<String,String> payload)
      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.
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      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