Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecate Ruby methods based on OpenAPI spec #1392

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading