Sha256: debe363cc108189dc914536866fbbe7871046403af76a672f3578bf5eda12ad2

Contents?: true

Size: 367 Bytes

Versions: 12

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module Stripe
  class Review < APIResource
    extend Stripe::APIOperations::List

    OBJECT_NAME = "review".freeze

    custom_method :approve, http_verb: :post

    def approve(params = {}, opts = {})
      resp, opts = request(:post, resource_url + "/approve", params, opts)
      initialize_from(resp.data, opts)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
stripe-4.22.0 lib/stripe/resources/review.rb
bongloy-4.21.3 lib/stripe/resources/review.rb
stripe-4.21.3 lib/stripe/resources/review.rb
stripe-4.21.2 lib/stripe/resources/review.rb
stripe-4.18.1 lib/stripe/review.rb
stripe-4.18.0 lib/stripe/review.rb
stripe-4.17.0 lib/stripe/review.rb
stripe-4.16.0 lib/stripe/review.rb
stripe-4.15.0 lib/stripe/review.rb
stripe-4.14.0 lib/stripe/review.rb
stripe-4.13.0 lib/stripe/review.rb
stripe-4.12.0 lib/stripe/review.rb