Sha256: 0663be7df4f9a52cf28b65a58e2e04f2c6eb0d96b8f35969fe9582d3225e5877

Contents?: true

Size: 360 Bytes

Versions: 15

Compression:

Stored size: 360 Bytes

Contents

module Stripe
  class Dispute < APIResource
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save

    OBJECT_NAME = 'dispute'

    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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stripe-3.3.2 lib/stripe/dispute.rb
stripe-3.3.1 lib/stripe/dispute.rb
stripe-3.3.0 lib/stripe/dispute.rb
stripe-3.2.0 lib/stripe/dispute.rb
stripe-3.1.0 lib/stripe/dispute.rb
stripe-3.0.3 lib/stripe/dispute.rb
stripe-3.0.1 lib/stripe/dispute.rb
stripe-3.0.0 lib/stripe/dispute.rb
stripe-2.12.0 lib/stripe/dispute.rb
stripe-2.11.0 lib/stripe/dispute.rb
stripe-2.10.0 lib/stripe/dispute.rb
stripe-2.9.0 lib/stripe/dispute.rb
stripe-2.8.0 lib/stripe/dispute.rb
stripe-2.7.0 lib/stripe/dispute.rb
stripe-2.6.0 lib/stripe/dispute.rb