mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-16 00:02:00 -04:00
As discussed in #325, this deprecates the public visibility of `#refresh_from` (by renaming it). It also adds some deprecation infrastructure to produce warnings when it's used.
17 lines
368 B
Ruby
17 lines
368 B
Ruby
module Stripe
|
|
class Dispute < APIResource
|
|
extend Stripe::APIOperations::List
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Update
|
|
|
|
def close(params={}, opts={})
|
|
response, opts = request(:post, close_url, params, opts)
|
|
initialize_from(response, opts)
|
|
end
|
|
|
|
def close_url
|
|
url + '/close'
|
|
end
|
|
end
|
|
end
|