Skip to content

Commit

Permalink
Deprecate Ruby methods based on OpenAPI spec (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmesh-stripe committed May 2, 2024
1 parent 1177f60 commit 46cc83f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/stripe/resources/issuing/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Issuing
#
# Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations)
class Authorization < APIResource
extend Gem::Deprecate
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

Expand All @@ -27,6 +28,7 @@ def approve(params = {}, opts = {})
opts: opts
)
end
deprecate :approve, :none, 2024, 3

# [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
# This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
Expand All @@ -38,6 +40,10 @@ def self.approve(authorization, params = {}, opts = {})
opts: opts
)
end
class << self
extend Gem::Deprecate
deprecate :approve, :none, 2024, 3
end

# [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
# This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
Expand All @@ -49,6 +55,7 @@ def decline(params = {}, opts = {})
opts: opts
)
end
deprecate :decline, :none, 2024, 3

# [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
# This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
Expand All @@ -60,6 +67,10 @@ def self.decline(authorization, params = {}, opts = {})
opts: opts
)
end
class << self
extend Gem::Deprecate
deprecate :decline, :none, 2024, 3
end

# Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
def self.list(filters = {}, opts = {})
Expand Down

0 comments on commit 46cc83f

Please sign in to comment.