Class MeterEventAdjustment

java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.MeterEventAdjustment
All Implemented Interfaces:
StripeActiveObject, StripeObjectInterface

public class MeterEventAdjustment extends ApiResource
A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
  • Constructor Details

    • MeterEventAdjustment

      public MeterEventAdjustment()
  • Method Details

    • create

      public static MeterEventAdjustment create(Map<String,Object> params) throws StripeException
      Creates a billing meter event adjustment.
      Throws:
      StripeException
    • create

      public static MeterEventAdjustment create(Map<String,Object> params, RequestOptions options) throws StripeException
      Creates a billing meter event adjustment.
      Throws:
      StripeException
    • create

      Creates a billing meter event adjustment.
      Throws:
      StripeException
    • create

      Creates a billing meter event adjustment.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getCancel

      public MeterEventAdjustment.Cancel getCancel()
      Specifies which event to cancel.
    • 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.

      Equal to billing.meter_event_adjustment.

    • getStatus

      public String getStatus()
      The meter event adjustment's status.

      One of complete, or pending.

    • getType

      public String getType()
      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.
    • setEventName

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

      Equal to billing.meter_event_adjustment.

    • setStatus

      public void setStatus(String status)
      The meter event adjustment's status.

      One of complete, or pending.

    • setType

      public void setType(String type)
      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