# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe # Reviews can be used to supplement automated fraud detection with human expertise. # # Learn more about [Radar](https://stripe.com/radar) and reviewing payments # [here](https://stripe.com/docs/radar/reviews). class Review < APIResource extend Stripe::APIOperations::List OBJECT_NAME = "review" def approve(params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/reviews/%s/approve", { review: CGI.escape(self["id"]) }), params: params, opts: opts ) end def self.approve(review, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/reviews/%s/approve", { review: CGI.escape(review) }), params: params, opts: opts ) end end end