stripe-ruby/lib/stripe/resources/setup_attempt.rb
helenye-stripe ce8d7ca4cc
Add methods for dynamically referenced constants (#1327)
* Update dynamic constant references

* Manual additionsg

* Fix lint

* Use const_Get

* Remove puts
2024-02-09 17:15:39 -08:00

23 lines
753 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(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/setup_attempts", params: filters, opts: opts)
end
end
end