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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about Cancel, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanstatic MeterEventAdjustmentCreates a billing meter event adjustment.static MeterEventAdjustmentcreate(MeterEventAdjustmentCreateParams params, RequestOptions options) Creates a billing meter event adjustment.static MeterEventAdjustmentCreates a billing meter event adjustment.static MeterEventAdjustmentcreate(Map<String, Object> params, RequestOptions options) Creates a billing meter event adjustment.booleanSpecifies which event to cancel.The name of the meter event.Has the valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()voidsetCancel(MeterEventAdjustment.Cancel cancel) Specifies which event to cancel.voidsetEventName(String eventName) The name of the meter event.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe meter event adjustment's status.voidSpecifies whether to cancel a single event or a range of events for a time period.Methods inherited from class com.stripe.net.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
MeterEventAdjustmentpublic MeterEventAdjustment()
 
- 
- 
Method Details- 
createCreates a billing meter event adjustment.- Throws:
- StripeException
 
- 
createpublic static MeterEventAdjustment create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a billing meter event adjustment.- Throws:
- StripeException
 
- 
createpublic static MeterEventAdjustment create(MeterEventAdjustmentCreateParams params) throws StripeException Creates a billing meter event adjustment.- Throws:
- StripeException
 
- 
createpublic static MeterEventAdjustment create(MeterEventAdjustmentCreateParams params, RequestOptions options) throws StripeException Creates a billing meter event adjustment.- Throws:
- StripeException
 
- 
setResponseGetterDescription copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getCancelSpecifies which event to cancel.
- 
getEventNameThe name of the meter event. Corresponds with theevent_namefield on a meter.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to billing.meter_event_adjustment.
- 
getStatusThe meter event adjustment's status.One of complete, orpending.
- 
getTypeSpecifies 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.
- 
setCancelSpecifies which event to cancel.
- 
setEventNameThe name of the meter event. Corresponds with theevent_namefield on a meter.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to billing.meter_event_adjustment.
- 
setStatusThe meter event adjustment's status.One of complete, orpending.
- 
setTypeSpecifies 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
- 
hashCodepublic int hashCode()
 
-