Class MeterEventAdjustment

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeterEventAdjustment
All Implemented Interfaces:
HasId, StripeObjectInterface

public class MeterEventAdjustment extends StripeObject implements HasId
A Meter Event Adjustment is used to cancel or modify previously recorded meter events. Meter Event Adjustments allow you to correct billing data by canceling individual events or event ranges, with tracking of adjustment status and creation time.
  • Constructor Details

    • MeterEventAdjustment

      public MeterEventAdjustment()
  • Method Details

    • getCancel

      public MeterEventAdjustment.Cancel getCancel()
      Specifies which event to cancel.
    • getCreated

      public Instant getCreated()
      The time the adjustment was created.
    • getEventName

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

    • getStatus

      public String getStatus()
      Open Enum. The meter event adjustment’s status.

      One of complete, or pending.

    • getType

      public String getType()
      Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.

      Equal to cancel.

    • setCancel

      public void setCancel(MeterEventAdjustment.Cancel cancel)
      Specifies which event to cancel.
    • setCreated

      public void setCreated(Instant created)
      The time the adjustment was created.
    • setEventName

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

      public void setId(String id)
      The unique id of this meter event adjustment.
    • 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_adjustment.

    • setStatus

      public void setStatus(String status)
      Open Enum. The meter event adjustment’s status.

      One of complete, or pending.

    • setType

      public void setType(String type)
      Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.

      Equal to cancel.

    • 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
    • getId

      public String getId()
      The unique id of this meter event adjustment.
      Specified by:
      getId in interface HasId