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
,StripeObjectInterface
public class ValueListItem extends ApiResource implements HasId
-
-
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 ValueListItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static ValueListItem
create(ValueListItemCreateParams params)
Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
create(ValueListItemCreateParams params, RequestOptions options)
Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a newValueListItem
object, which is added to the specified parent value list.static ValueListItem
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Creates a newValueListItem
object, which is added to the specified parent value list.ValueListItem
delete()
Deletes aValueListItem
object, removing it from its parent value list.ValueListItem
delete(RequestOptions options)
Deletes aValueListItem
object, removing it from its parent value list.ValueListItem
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes aValueListItem
object, removing it from its parent value list.ValueListItem
delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Deletes aValueListItem
object, removing it from its parent value list.boolean
equals(java.lang.Object o)
java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCreatedBy()
The name or email address of the user who added this item to the value list.java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getId()
Unique identifier for the object.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.lang.String
getObject()
String representing the object's type.java.lang.String
getValue()
The value of the item.java.lang.String
getValueList()
The identifier of the value list this item belongs to.int
hashCode()
static ValueListItemCollection
list(ValueListItemListParams params)
Returns a list ofValueListItem
objects.static ValueListItemCollection
list(ValueListItemListParams params, RequestOptions options)
Returns a list ofValueListItem
objects.static ValueListItemCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list ofValueListItem
objects.static ValueListItemCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list ofValueListItem
objects.static ValueListItem
retrieve(java.lang.String item)
Retrieves aValueListItem
object.static ValueListItem
retrieve(java.lang.String item, RequestOptions options)
Retrieves aValueListItem
object.static ValueListItem
retrieve(java.lang.String item, ValueListItemRetrieveParams params, RequestOptions options)
Retrieves aValueListItem
object.static ValueListItem
retrieve(java.lang.String item, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves aValueListItem
object.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 added this item to the 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
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
setObject(java.lang.String object)
String representing the object's type.void
setValue(java.lang.String value)
The value of the item.void
setValueList(java.lang.String valueList)
The identifier of the value list this item belongs to.-
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 ValueListItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list ofValueListItem
objects. 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(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list ofValueListItem
objects. 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) throws StripeException
Returns a list ofValueListItem
objects. 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 ofValueListItem
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item) throws StripeException
Retrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item, RequestOptions options) throws StripeException
Retrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves aValueListItem
object.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item, ValueListItemRetrieveParams params, RequestOptions options) throws StripeException
Retrieves aValueListItem
object.- Throws:
StripeException
-
create
public static ValueListItem create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params) throws StripeException
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params, RequestOptions options) throws StripeException
Creates a newValueListItem
object, which is added to the specified parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete() throws StripeException
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(RequestOptions options) throws StripeException
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Deletes aValueListItem
object, removing it from its parent value list.- Throws:
StripeException
-
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 added this item to the value list.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
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.
-
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_item
.
-
getValue
public java.lang.String getValue()
The value of the item.
-
getValueList
public java.lang.String getValueList()
The identifier of the value list this item belongs to.
-
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 added this item to the 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.
-
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.
-
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_item
.
-
setValue
public void setValue(java.lang.String value)
The value of the item.
-
setValueList
public void setValueList(java.lang.String valueList)
The identifier of the value list this item belongs to.
-
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
-
-