stripe-ruby/lib/stripe/resources/setup_attempt.rb
stripe-openapi[bot] d2c09c3b50
Update generated code (#1500)
* Update generated code for v1399

* Update generated code for v1409

* Update generated code for v1412

* Update generated code for v1412

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: jar-stripe <jar@stripe.com>
2024-12-18 23:27:41 +00:00

23 lines
751 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"
def self.object_name
"setup_attempt"
end
# Returns a list of SetupAttempts that associate with a provided SetupIntent.
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/setup_attempts", params: params, opts: opts)
end
end
end