Skip to content

Commit

Permalink
Codegen for openapi 9664a38
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Mar 23, 2022
1 parent ba38dc9 commit c3a3341
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/stripe/resources/refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,16 @@ class Refund < APIResource
include Stripe::APIOperations::Save

OBJECT_NAME = "refund"

custom_method :cancel, http_verb: :post

def cancel(params = {}, opts = {})
request_stripe_object(
method: :post,
path: resource_url + "/cancel",
params: params,
opts: opts
)
end
end
end

0 comments on commit c3a3341

Please # to comment.