mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-15 00:00:44 -04:00
* 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>
23 lines
751 B
Ruby
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
|