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 booleancanEqual(java.lang.Object other)static 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 ValueListcreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates a newValueListobject, which can then be referenced in rules.static ValueListcreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates a newValueListobject, which can then be referenced in rules.ValueListdelete()Deletes aValueListobject, also deleting any items contained within the value list.ValueListdelete(RequestOptions options)Deletes aValueListobject, also deleting any items contained within the value list.ValueListdelete(java.util.Map<java.lang.String,java.lang.Object> params)Deletes aValueListobject, also deleting any items contained within the value list.ValueListdelete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Deletes aValueListobject, also deleting any items contained within the value list.booleanequals(java.lang.Object o)java.lang.StringgetAlias()The name of the value list for use in rules.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCreatedBy()The name or email address of the user who created this value list.java.lang.BooleangetDeleted()Always true for a deleted object.java.lang.StringgetId()Unique identifier for the object.java.lang.StringgetItemType()The type of items in the value list.ValueListItemCollectiongetListItems()List of items contained within this value list.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif 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.StringgetName()The name of the value list.java.lang.StringgetObject()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 ValueListCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list ofValueListobjects.static ValueListCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list ofValueListobjects.static ValueListretrieve(java.lang.String valueList)Retrieves aValueListobject.static ValueListretrieve(java.lang.String valueList, RequestOptions options)Retrieves aValueListobject.static ValueListretrieve(java.lang.String valueList, ValueListRetrieveParams params, RequestOptions options)Retrieves aValueListobject.static ValueListretrieve(java.lang.String valueList, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves aValueListobject.voidsetAlias(java.lang.String alias)The name of the value list for use in rules.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCreatedBy(java.lang.String createdBy)The name or email address of the user who created this value list.voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetId(java.lang.String id)Unique identifier for the object.voidsetItemType(java.lang.String itemType)The type of items in the value list.voidsetListItems(ValueListItemCollection listItems)List of items contained within this value list.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetName(java.lang.String name)The name of the value list.voidsetObject(java.lang.String object)String representing the object's type.ValueListupdate(ValueListUpdateParams params)Updates aValueListobject by setting the values of the parameters passed.ValueListupdate(ValueListUpdateParams params, RequestOptions options)Updates aValueListobject by setting the values of the parameters passed.ValueListupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates aValueListobject by setting the values of the parameters passed.ValueListupdate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Updates aValueListobject 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, 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 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(java.util.Map<java.lang.String,java.lang.Object> 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
-
list
public static ValueListCollection list(ValueListListParams params) 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
-
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
public static ValueList retrieve(java.lang.String valueList) throws StripeException
Retrieves aValueListobject.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(java.lang.String valueList, RequestOptions options) throws StripeException
Retrieves aValueListobject.- 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 aValueListobject.- Throws:
StripeException
-
retrieve
public static ValueList retrieve(java.lang.String valueList, ValueListRetrieveParams params, RequestOptions options) throws StripeException
Retrieves aValueListobject.- Throws:
StripeException
-
create
public static ValueList create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a newValueListobject, 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 newValueListobject, which can then be referenced in rules.- Throws:
StripeException
-
create
public static ValueList create(ValueListCreateParams params) throws StripeException
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
-
update
public ValueList update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public ValueList update(java.util.Map<java.lang.String,java.lang.Object> 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.- Specified by:
updatein interfaceMetadataStore<ValueList>- Throws:
StripeException
-
update
public ValueList update(ValueListUpdateParams params) 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
-
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
-
delete
public ValueList delete() throws StripeException
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
public ValueList delete(RequestOptions options) throws StripeException
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
public ValueList delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
public ValueList delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
-
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, orcase_sensitive_string.
-
getListItems
public ValueListItemCollection getListItems()
List of items contained within this value list.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif 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, orcase_sensitive_string.
-
setListItems
public void setListItems(ValueListItemCollection listItems)
List of items contained within this value list.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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:
getMetadatain interfaceMetadataStore<ValueList>
-
-