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 booleancanEqual(java.lang.Object other)static ValueListItemcreate(ValueListItemCreateParams params)Creates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemcreate(ValueListItemCreateParams params, RequestOptions options)Creates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemcreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates a newValueListItemobject, which is added to the specified parent value list.static ValueListItemcreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates a newValueListItemobject, which is added to the specified parent value list.ValueListItemdelete()Deletes aValueListItemobject, removing it from its parent value list.ValueListItemdelete(RequestOptions options)Deletes aValueListItemobject, removing it from its parent value list.ValueListItemdelete(java.util.Map<java.lang.String,java.lang.Object> params)Deletes aValueListItemobject, removing it from its parent value list.ValueListItemdelete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Deletes aValueListItemobject, removing it from its parent value list.booleanequals(java.lang.Object o)java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCreatedBy()The name or email address of the user who added this item to the value list.java.lang.BooleangetDeleted()Always true for a deleted object.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetValue()The value of the item.java.lang.StringgetValueList()The identifier of the value list this item belongs to.inthashCode()static ValueListItemCollectionlist(ValueListItemListParams params)Returns a list ofValueListItemobjects.static ValueListItemCollectionlist(ValueListItemListParams params, RequestOptions options)Returns a list ofValueListItemobjects.static ValueListItemCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list ofValueListItemobjects.static ValueListItemCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list ofValueListItemobjects.static ValueListItemretrieve(java.lang.String item)Retrieves aValueListItemobject.static ValueListItemretrieve(java.lang.String item, RequestOptions options)Retrieves aValueListItemobject.static ValueListItemretrieve(java.lang.String item, ValueListItemRetrieveParams params, RequestOptions options)Retrieves aValueListItemobject.static ValueListItemretrieve(java.lang.String item, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves aValueListItemobject.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 added this item to the value list.voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetValue(java.lang.String value)The value of the item.voidsetValueList(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 ofValueListItemobjects. 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 ofValueListItemobjects. 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 ofValueListItemobjects. 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 ofValueListItemobjects. 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 aValueListItemobject.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item, RequestOptions options) throws StripeException
Retrieves aValueListItemobject.- 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 aValueListItemobject.- Throws:
StripeException
-
retrieve
public static ValueListItem retrieve(java.lang.String item, ValueListItemRetrieveParams params, RequestOptions options) throws StripeException
Retrieves aValueListItemobject.- Throws:
StripeException
-
create
public static ValueListItem create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a newValueListItemobject, 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 newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params) throws StripeException
Creates a newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
create
public static ValueListItem create(ValueListItemCreateParams params, RequestOptions options) throws StripeException
Creates a newValueListItemobject, which is added to the specified parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete() throws StripeException
Deletes aValueListItemobject, removing it from its parent value list.- Throws:
StripeException
-
delete
public ValueListItem delete(RequestOptions options) throws StripeException
Deletes aValueListItemobject, 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 aValueListItemobject, 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 aValueListItemobject, 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-