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>
,StripeObjectInterface
public class ValueList extends ApiResource implements HasId, MetadataStore<ValueList>
-
-
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
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description ValueList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
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
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a newValueList
object, which can then be referenced in rules.static ValueList
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Creates a newValueList
object, which can then be referenced in rules.ValueList
delete()
Deletes aValueList
object, also deleting any items contained within the value list.ValueList
delete(RequestOptions options)
Deletes aValueList
object, also deleting any items contained within the value list.ValueList
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes aValueList
object, also deleting any items contained within the value list.ValueList
delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Deletes aValueList
object, also deleting any items contained within the value list.boolean
equals(java.lang.Object o)
java.lang.String
getAlias()
The name of the value list for use in rules.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCreatedBy()
The name or email address of the user who created this value list.java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getId()
Unique identifier for the object.java.lang.String
getItemType()
The type of items in the value list.ValueListItemCollection
getListItems()
List of items contained within this value list.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Set of key-value pairs that you can attach to an object.java.lang.String
getName()
The name of the value list.java.lang.String
getObject()
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
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list ofValueList
objects.static ValueListCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list ofValueList
objects.static ValueList
retrieve(java.lang.String valueList)
Retrieves aValueList
object.static ValueList
retrieve(java.lang.String valueList, RequestOptions options)
Retrieves aValueList
object.static ValueList
retrieve(java.lang.String valueList, ValueListRetrieveParams params, RequestOptions options)
Retrieves aValueList
object.static ValueList
retrieve(java.lang.String valueList, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves aValueList
object.void
setAlias(java.lang.String alias)
The name of the value list for use in rules.void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCreatedBy(java.lang.String createdBy)
The name or email address of the user who created this value list.void
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.void
setId(java.lang.String id)
Unique identifier for the object.void
setItemType(java.lang.String itemType)
The type of items in the value list.void
setListItems(ValueListItemCollection listItems)
List of items contained within this value list.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.void
setName(java.lang.String name)
The name of the value list.void
setObject(java.lang.String object)
String representing the object's type.ValueList
update(ValueListUpdateParams params)
Updates aValueList
object by setting the values of the parameters passed.ValueList
update(ValueListUpdateParams params, RequestOptions options)
Updates aValueList
object by setting the values of the parameters passed.ValueList
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates aValueList
object by setting the values of the parameters passed.ValueList
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Updates aValueList
object by setting the values of the parameters passed.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
list
public static ValueListCollection list(java.util.Map<java.lang.String,java.lang.Object> params) 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
-
list
public static ValueListCollection list(java.util.Map<java.lang.String,java.lang.Object> 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
-
list
public static ValueListCollection list(ValueListListParams params) 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
-
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
public static ValueList retrieve(java.lang.String valueList) throws StripeException
Retrieves aValueList
object.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(java.lang.String valueList, RequestOptions options) throws StripeException
Retrieves aValueList
object.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(java.lang.String valueList, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves aValueList
object.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(java.lang.String valueList, ValueListRetrieveParams params, RequestOptions options) throws StripeException
Retrieves aValueList
object.- Throws:
StripeException
-
create
public static ValueList create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a newValueList
object, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(ValueListCreateParams params) throws StripeException
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
-
update
public ValueList update(java.util.Map<java.lang.String,java.lang.Object> params) 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.- Specified by:
update
in interfaceMetadataStore<ValueList>
- Throws:
StripeException
-
update
public ValueList update(java.util.Map<java.lang.String,java.lang.Object> 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.- Specified by:
update
in interfaceMetadataStore<ValueList>
- Throws:
StripeException
-
update
public ValueList update(ValueListUpdateParams params) 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
-
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
-
delete
public ValueList delete() throws StripeException
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
public ValueList delete(RequestOptions options) throws StripeException
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
public ValueList delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public ValueList delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
-
getAlias
public java.lang.String getAlias()
The name of the value list for use in rules.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCreatedBy
public java.lang.String getCreatedBy()
The name or email address of the user who created this value list.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getItemType
public java.lang.String getItemType()
The type of items in the value list. One ofcard_fingerprint
,card_bin
,email
,ip_address
,country
,string
,case_sensitive_string
, orcustomer_id
.
-
getListItems
public ValueListItemCollection getListItems()
List of items contained within this value list.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getName
public java.lang.String getName()
The name of the value list.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
radar.value_list
.
-
setAlias
public void setAlias(java.lang.String alias)
The name of the value list for use in rules.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
The name or email address of the user who created this value list.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setItemType
public void setItemType(java.lang.String itemType)
The type of items in the value list. One ofcard_fingerprint
,card_bin
,email
,ip_address
,country
,string
,case_sensitive_string
, orcustomer_id
.
-
setListItems
public void setListItems(ValueListItemCollection listItems)
List of items contained within this value list.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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
public void setName(java.lang.String name)
The name of the value list.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
radar.value_list
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> 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>
-
-