Sha256: c398987f5bba6c680c8160ac127e682e5587ad5921aaec94913b4bc40bc3d57b

Contents?: true

Size: 1.14 KB

Versions: 26

Compression:

Stored size: 1.14 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # A dispute occurs when a customer questions your charge with their card issuer.
  # When this happens, you're given the opportunity to respond to the dispute with
  # evidence that shows that the charge is legitimate. You can find more
  # information about the dispute process in our [Disputes and
  # Fraud](https://stripe.com/docs/disputes) documentation.
  #
  # Related guide: [Disputes and Fraud](https://stripe.com/docs/disputes).
  class Dispute < APIResource
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save

    OBJECT_NAME = "dispute"

    def close(params = {}, opts = {})
      request_stripe_object(
        method: :post,
        path: format("/v1/disputes/%<dispute>s/close", { dispute: CGI.escape(self["id"]) }),
        params: params,
        opts: opts
      )
    end

    def self.close(dispute, params = {}, opts = {})
      request_stripe_object(
        method: :post,
        path: format("/v1/disputes/%<dispute>s/close", { dispute: CGI.escape(dispute) }),
        params: params,
        opts: opts
      )
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
stripe-8.6.0.pre.beta.3 lib/stripe/resources/dispute.rb
stripe-8.6.0.pre.beta.2 lib/stripe/resources/dispute.rb
stripe-8.6.0.pre.beta.1 lib/stripe/resources/dispute.rb
stripe-8.5.0 lib/stripe/resources/dispute.rb
stripe-8.5.0.pre.beta.1 lib/stripe/resources/dispute.rb
stripe-8.4.0 lib/stripe/resources/dispute.rb
stripe-8.4.0.pre.beta.3 lib/stripe/resources/dispute.rb
stripe-8.4.0.pre.beta.2 lib/stripe/resources/dispute.rb
stripe-8.4.0.pre.beta.1 lib/stripe/resources/dispute.rb
stripe-8.3.0 lib/stripe/resources/dispute.rb
stripe-8.3.0.pre.beta.1 lib/stripe/resources/dispute.rb
stripe-8.2.0 lib/stripe/resources/dispute.rb
stripe-8.2.0.pre.beta.3 lib/stripe/resources/dispute.rb
stripe-8.2.0.pre.beta.2 lib/stripe/resources/dispute.rb
stripe-8.2.0.pre.beta.1 lib/stripe/resources/dispute.rb
stripe-8.1.0 lib/stripe/resources/dispute.rb
stripe-8.1.0.pre.beta.4 lib/stripe/resources/dispute.rb
stripe-8.1.0.pre.beta.3 lib/stripe/resources/dispute.rb
stripe-8.1.0.pre.beta.2 lib/stripe/resources/dispute.rb
stripe-8.1.0.pre.beta.1 lib/stripe/resources/dispute.rb