# `Stripe.Review`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/review.ex#L1)

Reviews can be used to supplement automated fraud detection with human expertise.

Learn more about [Radar](/radar) and reviewing payments
[here](https://stripe.com/docs/radar/reviews).

# `created`

```elixir
@type created() :: %{
  optional(:gt) =&gt; integer(),
  optional(:gte) =&gt; integer(),
  optional(:lt) =&gt; integer(),
  optional(:lte) =&gt; integer()
}
```

# `t`

```elixir
@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 of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
  * `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 value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `open` If `true`, the review needs action.
  * `opened_reason` The reason the review was opened. One of `rule` or `manual`.
  * `payment_intent` The PaymentIntent ID associated with this review, if one exists.
  * `reason` The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`.
  * `session` Information related to the browsing session of the user who initiated the payment.

# `approve`

```elixir
@spec approve(
  review :: binary(),
  params :: %{optional(:expand) =&gt; [binary()]},
  opts :: Keyword.t()
) ::
  {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Approves a <code>Review</code> object, closing it and removing it from the list of reviews.</p>

#### Details

 * Method: `post`
 * Path: `/v1/reviews/{review}/approve`

# `list`

```elixir
@spec list(
  params :: %{
    optional(:created) =&gt; created() | integer(),
    optional(:ending_before) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:limit) =&gt; integer(),
    optional(:starting_after) =&gt; binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Returns a list of <code>Review</code> objects that have <code>open</code> set to <code>true</code>. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>

#### Details

 * Method: `get`
 * Path: `/v1/reviews`

# `retrieve`

```elixir
@spec retrieve(
  review :: binary(),
  params :: %{optional(:expand) =&gt; [binary()]},
  opts :: Keyword.t()
) ::
  {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Retrieves a <code>Review</code> object.</p>

#### Details

 * Method: `get`
 * Path: `/v1/reviews/{review}`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
