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_zipThe ZIP or postal code of the card used, if applicable.chargeThe charge associated with this review.closed_reasonThe reason the review was closed, or null if it has not yet been closed. One ofapproved,refunded,refunded_as_fraud,disputed, orredacted.createdTime at which the object was created. Measured in seconds since the Unix epoch.idUnique identifier for the object.ip_addressThe IP address where the payment originated.ip_address_locationInformation 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.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.openIftrue, the review needs action.opened_reasonThe reason the review was opened. One ofruleormanual.payment_intentThe PaymentIntent ID associated with this review, if one exists.reasonThe reason the review is currently open or closed. One ofrule,manual,approved,refunded,refunded_as_fraud,disputed, orredacted.sessionInformation 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}