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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic ValueListcreate(ValueListCreateParams params) Creates a newValueListobject, which can then be referenced in rules.static ValueListcreate(ValueListCreateParams params, RequestOptions options) Creates a newValueListobject, which can then be referenced in rules.static ValueListCreates a newValueListobject, which can then be referenced in rules.static ValueListcreate(Map<String, Object> params, RequestOptions options) Creates a newValueListobject, which can then be referenced in rules.delete()Deletes aValueListobject, also deleting any items contained within the value list.delete(RequestOptions options) Deletes aValueListobject, also deleting any items contained within the value list.Deletes aValueListobject, also deleting any items contained within the value list.delete(Map<String, Object> params, RequestOptions options) Deletes aValueListobject, also deleting any items contained within the value list.booleangetAlias()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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()static ValueListCollectionlist(ValueListListParams params) Returns a list ofValueListobjects.static ValueListCollectionlist(ValueListListParams params, RequestOptions options) Returns a list ofValueListobjects.static ValueListCollectionReturns a list ofValueListobjects.static ValueListCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list ofValueListobjects.static ValueListRetrieves aValueListobject.static ValueListretrieve(String valueList, RequestOptions options) Retrieves aValueListobject.static ValueListretrieve(String valueList, ValueListRetrieveParams params, RequestOptions options) Retrieves aValueListobject.static ValueListRetrieves aValueListobject.voidThe name of the value list for use in rules.voidsetCreated(Long created) Time at which the object was created.voidsetCreatedBy(String createdBy) The name or email address of the user who created this value list.voidsetDeleted(Boolean deleted) Always true for a deleted object.voidUnique identifier for the object.voidsetItemType(String itemType) The type of items in the value list.voidsetListItems(ValueListItemCollection listItems) List of items contained within this value list.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidThe name of the value list.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.update(ValueListUpdateParams params) Updates aValueListobject by setting the values of the parameters passed.update(ValueListUpdateParams params, RequestOptions options) Updates aValueListobject by setting the values of the parameters passed.Updates aValueListobject by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates aValueListobject by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, 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
-
ValueList
public ValueList()
-
-
Method Details
-
create
Creates a newValueListobject, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a newValueListobject, which can then be referenced in rules.- Throws:
StripeException
-
create
Creates a newValueListobject, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(ValueListCreateParams params, RequestOptions options) throws StripeException Creates a newValueListobject, which can then be referenced in rules.- Throws:
StripeException
-
delete
Deletes aValueListobject, 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 aValueListobject, 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 aValueListobject, 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 aValueListobject, 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 ofValueListobjects. 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 ofValueListobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list ofValueListobjects. 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 ofValueListobjects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aValueListobject.- Throws:
StripeException
-
retrieve
Retrieves aValueListobject.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(String valueList, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aValueListobject.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(String valueList, ValueListRetrieveParams params, RequestOptions options) throws StripeException Retrieves aValueListobject.- Throws:
StripeException
-
update
Updates aValueListobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_typeis immutable.- Specified by:
updatein interfaceMetadataStore<ValueList>- Throws:
StripeException
-
update
Updates aValueListobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_typeis immutable.- Specified by:
updatein interfaceMetadataStore<ValueList>- Throws:
StripeException
-
update
Updates aValueListobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_typeis immutable.- Throws:
StripeException
-
update
public ValueList update(ValueListUpdateParams params, RequestOptions options) throws StripeException Updates aValueListobject by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note thatitem_typeis immutable.- 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.
-
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,card_bin,email,ip_address,country,string,case_sensitive_string,customer_id,sepa_debit_fingerprint, orus_bank_account_fingerprint. -
getListItems
List of items contained within this value list. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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,card_bin,email,ip_address,country,string,case_sensitive_string,customer_id,sepa_debit_fingerprint, orus_bank_account_fingerprint. -
setListItems
List of items contained within this value list. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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:
getMetadatain interfaceMetadataStore<ValueList>
-