View Source Stripe.Review (Striped v0.5.0) (generated)
Reviews can be used to supplement automated fraud detection with human expertise.
Link to this section Summary
Functions
Approves a Review
object, closing it and removing it from the list of reviews.
Returns a list of Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Retrieves a Review
object.
Link to this section Types
@type t() :: %Stripe.Review{ billing_zip: binary() | nil, charge: (binary() | Stripe.Charge.t()) | nil, closed_reason: binary() | nil, created: integer(), id: binary(), ip_address: binary() | nil, ip_address_location: term() | nil, livemode: boolean(), object: binary(), open: boolean(), opened_reason: binary(), payment_intent: binary() | Stripe.PaymentIntent.t(), reason: binary(), session: term() | nil }
The review
type.
billing_zip
The ZIP or postal code of the card used, if applicable.charge
The charge associated with this review.closed_reason
The reason the review was closed, or null if it has not yet been closed. One ofapproved
,refunded
,refunded_as_fraud
,disputed
, orredacted
.created
Time at which the object was created. Measured in seconds since the Unix epoch.id
Unique identifier for the object.ip_address
The IP address where the payment originated.ip_address_location
Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.livemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.object
String representing the object's type. Objects of the same type share the same value.open
Iftrue
, the review needs action.opened_reason
The reason the review was opened. One ofrule
ormanual
.payment_intent
The PaymentIntent ID associated with this review, if one exists.reason
The reason the review is currently open or closed. One ofrule
,manual
,approved
,refunded
,refunded_as_fraud
,disputed
, orredacted
.session
Information related to the browsing session of the user who initiated the payment.
Link to this section Functions
@spec approve( client :: Stripe.t(), review :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Approves a Review
object, closing it and removing it from the list of reviews.
Details
- Method:
post
- Path:
/v1/reviews/{review}/approve
@spec list( client :: Stripe.t(), params :: %{ optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
Details
- Method:
get
- Path:
/v1/reviews
@spec retrieve( client :: Stripe.t(), review :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a Review
object.
Details
- Method:
get
- Path:
/v1/reviews/{review}