Package com.stripe.model.v2.billing
Class MeterEventAdjustment
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeterEventAdjustment
- All Implemented Interfaces:
HasId,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecifies which event to cancel. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanSpecifies which event to cancel.The time the adjustment was created.The name of the meter event.getId()The unique id of this meter event adjustment.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Open Enum.getType()Open Enum.inthashCode()voidsetCancel(MeterEventAdjustment.Cancel cancel) Specifies which event to cancel.voidsetCreated(Instant created) The time the adjustment was created.voidsetEventName(String eventName) The name of the meter event.voidThe unique id of this meter event adjustment.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.voidOpen Enum.voidOpen Enum.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
MeterEventAdjustment
public MeterEventAdjustment()
-
-
Method Details
-
getCancel
Specifies which event to cancel. -
getCreated
The time the adjustment was created. -
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 of the object field.Equal to
v2.billing.meter_event_adjustment. -
getStatus
Open Enum. The meter event adjustment’s status.One of
complete, orpending. -
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
Specifies which event to cancel. -
setCreated
The time the adjustment was created. -
setEventName
The name of the meter event. Corresponds with theevent_namefield on a meter. -
setId
The unique id of this meter event adjustment. -
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 of the object field.Equal to
v2.billing.meter_event_adjustment. -
setStatus
Open Enum. The meter event adjustment’s status.One of
complete, orpending. -
setType
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
-
canEqual
-
hashCode
public int hashCode() -
getId
The unique id of this meter event adjustment.
-