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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic ValueListItemcreate(ValueListItemCreateParams params) Creates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemcreate(ValueListItemCreateParams params, RequestOptions options) Creates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemCreates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemcreate(Map<String, Object> params, RequestOptions options) Creates a newValueListItemobject, which is added to the specified parent value list.delete()Deletes aValueListItemobject, removing it from its parent value list.delete(RequestOptions options) Deletes aValueListItemobject, removing it from its parent value list.Deletes aValueListItemobject, removing it from its parent value list.delete(Map<String, Object> params, RequestOptions options) Deletes aValueListItemobject, removing it from its parent value list.booleanTime 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()static ValueListItemCollectionlist(ValueListItemListParams params) Returns a list ofValueListItemobjects.static ValueListItemCollectionlist(ValueListItemListParams params, RequestOptions options) Returns a list ofValueListItemobjects.static ValueListItemCollectionReturns a list ofValueListItemobjects.static ValueListItemCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list ofValueListItemobjects.static ValueListItemRetrieves aValueListItemobject.static ValueListItemretrieve(String item, RequestOptions options) Retrieves aValueListItemobject.static ValueListItemretrieve(String item, ValueListItemRetrieveParams params, RequestOptions options) Retrieves aValueListItemobject.static ValueListItemRetrieves aValueListItemobject.voidsetCreated(Long created) Time at which the object was created.voidsetCreatedBy(String createdBy) The name or email address of the user who added this item to the value list.voidsetDeleted(Boolean deleted) Always true for a deleted object.voidUnique identifier for the object.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.voidThe value of the item.voidsetValueList(String valueList) The identifier of the value list this item belongs to.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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
-
ValueListItem
public ValueListItem()
-
-
Method Details
-
create
Creates a newValueListItemobject, 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 newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
create
Creates a newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params, RequestOptions options) throws StripeException Creates a newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItemobject, removing it from its parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItemobject, removing it from its parent value list.- Throws:
StripeException
-
delete
Deletes aValueListItemobject, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(Map<String, Object> params, RequestOptions options) throws StripeExceptionDeletes aValueListItemobject, removing it from its parent value list.- Throws:
StripeException
-
list
Returns a list ofValueListItemobjects. 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 ofValueListItemobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list ofValueListItemobjects. 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 ofValueListItemobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aValueListItemobject.- Throws:
StripeException
-
retrieve
Retrieves aValueListItemobject.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(String item, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aValueListItemobject.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(String item, ValueListItemRetrieveParams params, RequestOptions options) throws StripeException Retrieves aValueListItemobject.- 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 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
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 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
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.
-