stripe-ruby/lib/stripe/review.rb
Olivier Bellone 160028ada1
New custom_method DSL for defining custom API request methods as static methods (#754)
New `custom_method` DSL for defining custom API request methods as static methods
2019-04-02 10:06:40 -07:00

17 lines
367 B
Ruby

# 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