Package com.stripe.model.radar
Class ValueList
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.radar.ValueList
- All Implemented Interfaces:
HasId
,MetadataStore<ValueList>
,StripeActiveObject
,StripeObjectInterface
Value lists allow you to group values together which can then be referenced in rules.
Related guide: Default Stripe lists
-
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 ValueList
create
(ValueListCreateParams params) Creates a newValueList
object, which can then be referenced in rules.static ValueList
create
(ValueListCreateParams params, RequestOptions options) Creates a newValueList
object, which can then be referenced in rules.static ValueList
Creates a newValueList
object, which can then be referenced in rules.static ValueList
create
(Map<String, Object> params, RequestOptions options) Creates a newValueList
object, which can then be referenced in rules.delete()
Deletes aValueList
object, also deleting any items contained within the value list.delete
(RequestOptions options) Deletes aValueList
object, also deleting any items contained within the value list.Deletes aValueList
object, also deleting any items contained within the value list.delete
(Map<String, Object> params, RequestOptions options) Deletes aValueList
object, also deleting any items contained within the value list.boolean
getAlias()
The name of the value list for use in rules.Time at which the object was created.The name or email address of the user who created this value list.Always true for a deleted object.getId()
Unique identifier for the object.The type of items in the value list.List of items contained within this value list.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.getName()
The name of the value list.String representing the object's type.int
hashCode()
static ValueListCollection
list
(ValueListListParams params) Returns a list ofValueList
objects.static ValueListCollection
list
(ValueListListParams params, RequestOptions options) Returns a list ofValueList
objects.static ValueListCollection
Returns a list ofValueList
objects.static ValueListCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list ofValueList
objects.static ValueList
Retrieves aValueList
object.static ValueList
retrieve
(String valueList, RequestOptions options) Retrieves aValueList
object.static ValueList
retrieve
(String valueList, ValueListRetrieveParams params, RequestOptions options) Retrieves aValueList
object.static ValueList
Retrieves aValueList
object.void
The name of the value list for use in rules.void
setCreated
(Long created) Time at which the object was created.void
setCreatedBy
(String createdBy) The name or email address of the user who created this value list.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
Unique identifier for the object.void
setItemType
(String itemType) The type of items in the value list.void
setListItems
(ValueListItemCollection listItems) List of items contained within this value list.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
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
The name of the value list.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.update
(ValueListUpdateParams params) Updates aValueList
object by setting the values of the parameters passed.update
(ValueListUpdateParams params, RequestOptions options) Updates aValueList
object by setting the values of the parameters passed.Updates aValueList
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates aValueList
object by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, 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
-
ValueList
public ValueList()
-
-
Method Details
-
create
Creates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
create
Creates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(ValueListCreateParams params, RequestOptions options) throws StripeException Creates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
delete
Deletes aValueList
object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.- Throws:
StripeException
-
delete
Deletes aValueList
object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.- Throws:
StripeException
-
delete
Deletes aValueList
object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.- Throws:
StripeException
-
delete
Deletes aValueList
object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.- Throws:
StripeException
-
list
Returns a list ofValueList
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ValueListCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofValueList
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 ofValueList
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ValueListCollection list(ValueListListParams params, RequestOptions options) throws StripeException Returns a list ofValueList
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aValueList
object.- Throws:
StripeException
-
retrieve
Retrieves aValueList
object.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(String valueList, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aValueList
object.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(String valueList, ValueListRetrieveParams params, RequestOptions options) throws StripeException Retrieves aValueList
object.- Throws:
StripeException
-
update
Updates aValueList
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_type
is immutable.- Specified by:
update
in interfaceMetadataStore<ValueList>
- Throws:
StripeException
-
update
Updates aValueList
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_type
is immutable.- Specified by:
update
in interfaceMetadataStore<ValueList>
- Throws:
StripeException
-
update
Updates aValueList
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_type
is immutable.- Throws:
StripeException
-
update
public ValueList update(ValueListUpdateParams params, RequestOptions options) throws StripeException Updates aValueList
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_type
is immutable.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAlias
The name of the value list for use in rules. -
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 created this value list. -
getDeleted
Always true for a deleted object. -
getItemType
The type of items in the value list. One ofcard_fingerprint
,us_bank_account_fingerprint
,sepa_debit_fingerprint
,card_bin
,email
,ip_address
,country
,string
,case_sensitive_string
, orcustomer_id
. -
getListItems
List of items contained within this value list. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getName
The name of the value list. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.value_list
. -
setAlias
The name of the value list for use in rules. -
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 created this value list. -
setDeleted
Always true for a deleted object. -
setId
Unique identifier for the object. -
setItemType
The type of items in the value list. One ofcard_fingerprint
,us_bank_account_fingerprint
,sepa_debit_fingerprint
,card_bin
,email
,ip_address
,country
,string
,case_sensitive_string
, orcustomer_id
. -
setListItems
List of items contained within this value list. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setName
The name of the value list. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
radar.value_list
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<ValueList>
-