mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
* Revert "Use Util.convert_to_stripe_object instead of initialize_from" This reverts commit ea736eba1b8f33d8febbf0b1be0957f34f7b04db. * Make SetupIntents use initialize_from instead of Util.convert_to_stripe_object * Fix issuing card details, which must have been broken prior to ea736eb
24 lines
528 B
Ruby
24 lines
528 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
class Dispute < APIResource
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "dispute".freeze
|
|
|
|
custom_method :close, http_verb: :post
|
|
|
|
def close(params = {}, opts = {})
|
|
resp, opts = request(:post, resource_url + "/close", params, opts)
|
|
initialize_from(resp.data, opts)
|
|
end
|
|
|
|
def close_url
|
|
resource_url + "/close"
|
|
end
|
|
extend Gem::Deprecate
|
|
deprecate :close_url, :none, 2019, 11
|
|
end
|
|
end
|