Sha256: 2d68c72842c3b8dbb2d5eb17e06d26e83764f313486c345ca6f95053e9ca7036

Contents?: true

Size: 1.66 KB

Versions: 9

Compression:

Stored size: 1.66 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Issuing
    # As a [card issuer](https://stripe.com/docs/issuing), you can dispute transactions that the cardholder does not recognize, suspects to be fraudulent, or has other issues with.
    #
    # Related guide: [Issuing disputes](https://stripe.com/docs/issuing/purchases/disputes)
    class Dispute < APIResource
      extend Stripe::APIOperations::Create
      extend Stripe::APIOperations::List
      include Stripe::APIOperations::Save

      OBJECT_NAME = "issuing.dispute"

      # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
      def submit(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/issuing/disputes/%<dispute>s/submit", { dispute: CGI.escape(self["id"]) }),
          params: params,
          opts: opts
        )
      end

      # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
      def self.submit(dispute, params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/issuing/disputes/%<dispute>s/submit", { dispute: CGI.escape(dispute) }),
          params: params,
          opts: opts
        )
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stripe-10.7.1 lib/stripe/resources/issuing/dispute.rb
stripe-10.8.0.pre.beta.1 lib/stripe/resources/issuing/dispute.rb
stripe-10.7.0 lib/stripe/resources/issuing/dispute.rb
stripe-10.7.0.pre.beta.3 lib/stripe/resources/issuing/dispute.rb
stripe-10.7.0.pre.beta.2 lib/stripe/resources/issuing/dispute.rb
stripe-10.7.0.pre.beta.1 lib/stripe/resources/issuing/dispute.rb
stripe-10.6.0 lib/stripe/resources/issuing/dispute.rb
stripe-10.6.0.pre.beta.1 lib/stripe/resources/issuing/dispute.rb
stripe-10.5.0 lib/stripe/resources/issuing/dispute.rb