Package com.stripe.model.radar
Class ValueListItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.radar.ValueListItem
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Value list items allow you to add specific values to a given Radar value list, which can then be
used in rules.
Related guide: Managing list items
-
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 ValueListItem
create
(ValueListItemCreateParams params) Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
create
(ValueListItemCreateParams params, RequestOptions options) Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
create
(Map<String, Object> params, RequestOptions options) Creates a newValueListItem
object, which is added to the specified parent value list.delete()
Deletes aValueListItem
object, removing it from its parent value list.delete
(RequestOptions options) Deletes aValueListItem
object, removing it from its parent value list.Deletes aValueListItem
object, removing it from its parent value list.delete
(Map<String, Object> params, RequestOptions options) Deletes aValueListItem
object, removing it from its parent value list.boolean
Time at which the object was created.The name or email address of the user who added this item to the value list.Always true for a deleted object.getId()
Unique identifier for the object.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.getValue()
The value of the item.The identifier of the value list this item belongs to.int
hashCode()
static ValueListItemCollection
list
(ValueListItemListParams params) Returns a list ofValueListItem
objects.static ValueListItemCollection
list
(ValueListItemListParams params, RequestOptions options) Returns a list ofValueListItem
objects.static ValueListItemCollection
Returns a list ofValueListItem
objects.static ValueListItemCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list ofValueListItem
objects.static ValueListItem
Retrieves aValueListItem
object.static ValueListItem
retrieve
(String item, RequestOptions options) Retrieves aValueListItem
object.static ValueListItem
retrieve
(String item, ValueListItemRetrieveParams params, RequestOptions options) Retrieves aValueListItem
object.static ValueListItem
Retrieves aValueListItem
object.void
setCreated
(Long created) Time at which the object was created.void
setCreatedBy
(String createdBy) The name or email address of the user who added this item to the value list.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
Unique identifier for the object.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
The value of the item.void
setValueList
(String valueList) The identifier of the value list this item belongs to.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, 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
-
ValueListItem
public ValueListItem()
-
-
Method Details
-
create
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params, RequestOptions options) throws StripeException Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(Map<String, Object> params, RequestOptions options) throws StripeExceptionDeletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
list
Returns a list ofValueListItem
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ValueListItemCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofValueListItem
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list ofValueListItem
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ValueListItemCollection list(ValueListItemListParams params, RequestOptions options) throws StripeException Returns a list ofValueListItem
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
Retrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(String item, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(String item, ValueListItemRetrieveParams params, RequestOptions options) throws StripeException Retrieves aValueListItem
object.- Throws:
StripeException
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCreatedBy
The name or email address of the user who added this item to the value list. -
getDeleted
Always true for a deleted object. -
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
radar.value_list_item
. -
getValue
The value of the item. -
getValueList
The identifier of the value list this item belongs to. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCreatedBy
The name or email address of the user who added this item to the value list. -
setDeleted
Always true for a deleted object. -
setId
Unique identifier for the object. -
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
radar.value_list_item
. -
setValue
The value of the item. -
setValueList
The identifier of the value list this item belongs to. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-