View Source Stripe.Radar.ValueListItem (Striped v0.5.0) (generated)
Value list items allow you to add specific values to a given Radar value list, which can then be used in rules.
Related guide: Managing List Items.
Link to this section Summary
Functions
Creates a new ValueListItem object, which is added to the specified parent value list.
Deletes a ValueListItem object, removing it from its parent value list.
Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves a ValueListItem object.
Link to this section Types
@type t() :: %Stripe.Radar.ValueListItem{ created: integer(), created_by: binary(), id: binary(), livemode: boolean(), object: binary(), value: binary(), value_list: binary() }
The radar.value_list_item type.
createdTime at which the object was created. Measured in seconds since the Unix epoch.created_byThe name or email address of the user who added this item to the value list.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.valueThe value of the item.value_listThe identifier of the value list this item belongs to.
Link to this section Functions
@spec create( client :: Stripe.t(), params :: %{ optional(:expand) => [binary()], optional(:value) => binary(), optional(:value_list) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates a new ValueListItem object, which is added to the specified parent value list.
Details
- Method:
post - Path:
/v1/radar/value_list_items
@spec delete(client :: Stripe.t(), item :: binary(), opts :: Keyword.t()) :: {:ok, Stripe.DeletedRadar.ValueListItem.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Deletes a ValueListItem object, removing it from its parent value list.
Details
- Method:
delete - Path:
/v1/radar/value_list_items/{item}
@spec list( client :: Stripe.t(), params :: %{ optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary(), optional(:value) => binary(), optional(:value_list) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Details
- Method:
get - Path:
/v1/radar/value_list_items
@spec retrieve( client :: Stripe.t(), item :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a ValueListItem object.
Details
- Method:
get - Path:
/v1/radar/value_list_items/{item}