stripe-ruby/lib/stripe/resources/setup_attempt.rb
2024-02-05 20:32:27 +00:00

20 lines
698 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
# A SetupAttempt describes one attempted confirmation of a SetupIntent,
# whether that confirmation is successful or unsuccessful. You can use
# SetupAttempts to inspect details of a specific attempt at setting up a
# payment method using a SetupIntent.
class SetupAttempt < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "setup_attempt"
# Returns a list of SetupAttempts that associate with a provided SetupIntent.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/setup_attempts", params: filters, opts: opts)
end
end
end