mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-02 00:00:35 -04:00
Follows the path established in 2d75c8f by porting the rest of stripe-ruby's tests over to OpenAPI. There are a few other changes here where I've removed some tests that are duplicated or don't make much sense, or reorganized how we test certain things, but this commit is largely the same migration operation applied in bulk a few dozen test suites.
16 lines
331 B
Ruby
16 lines
331 B
Ruby
module Stripe
|
|
class Dispute < APIResource
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
def close(params={}, opts={})
|
|
resp, opts = request(:post, close_url, params, opts)
|
|
initialize_from(resp.data, opts)
|
|
end
|
|
|
|
def close_url
|
|
resource_url + '/close'
|
|
end
|
|
end
|
|
end
|