diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index decc5e3b7..c5eeae69b 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -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 @@ -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). @@ -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). @@ -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). @@ -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 = {})