Package com.stripe.model.billing
Class MeterEventAdjustment
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.MeterEventAdjustment
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static MeterEventAdjustment
Creates a billing meter event adjustment.static MeterEventAdjustment
create
(MeterEventAdjustmentCreateParams params, RequestOptions options) Creates a billing meter event adjustment.static MeterEventAdjustment
Creates a billing meter event adjustment.static MeterEventAdjustment
create
(Map<String, Object> params, RequestOptions options) Creates a billing meter event adjustment.boolean
Specifies which event to cancel.The name of the meter event.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.The meter event adjustment's status.getType()
Specifies whether to cancel a single event or a range of events for a time period.int
hashCode()
void
setCancel
(MeterEventAdjustment.Cancel cancel) Specifies which event to cancel.void
setEventName
(String eventName) The name of the meter event.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The meter event adjustment's status.void
Specifies whether to cancel a single event or a range of events for a time period.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
MeterEventAdjustment
public MeterEventAdjustment()
-
-
Method Details
-
create
Creates a billing meter event adjustment.- Throws:
StripeException
-
create
public static MeterEventAdjustment create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a billing meter event adjustment.- Throws:
StripeException
-
create
public static MeterEventAdjustment create(MeterEventAdjustmentCreateParams params) throws StripeException Creates a billing meter event adjustment.- Throws:
StripeException
-
create
public static MeterEventAdjustment create(MeterEventAdjustmentCreateParams params, RequestOptions options) throws StripeException Creates a billing meter event adjustment.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCancel
Specifies which event to cancel. -
getEventName
The name of the meter event. Corresponds with theevent_name
field on a meter. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_event_adjustment
. -
getStatus
The meter event adjustment's status.One of
complete
, orpending
. -
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
Specifies which event to cancel. -
setEventName
The name of the meter event. Corresponds with theevent_name
field on a meter. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.meter_event_adjustment
. -
setStatus
The meter event adjustment's status.One of
complete
, orpending
. -
setType
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
-
canEqual
-
hashCode
public int hashCode()
-