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 represents the status of a meter event adjustment.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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.booleanThe 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) 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.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getCancel
-
getEventName
The name of the meter event. Corresponds with theevent_namefield on a meter. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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.Equal to
cancel. -
setCancel
-
setEventName
The name of the meter event. Corresponds with theevent_namefield on a meter. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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.Equal to
cancel. -
equals
-
canEqual
-
hashCode
public int hashCode()
-