diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9cb5323..732dc4c7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1333 \ No newline at end of file +v1334 \ No newline at end of file diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index c21088e0..f5cffe92 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -192,6 +192,26 @@ def increment(params = {}, opts = {}) ) end + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def self.respond(authorization, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts + ) + end + + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def respond(params = {}, opts = {}) + @resource.request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end + # Reverse a test-mode Authorization. def self.reverse(authorization, params = {}, opts = {}) request_stripe_object( diff --git a/lib/stripe/services/test_helpers/issuing/authorization_service.rb b/lib/stripe/services/test_helpers/issuing/authorization_service.rb index e9bbc38e..45c620db 100644 --- a/lib/stripe/services/test_helpers/issuing/authorization_service.rb +++ b/lib/stripe/services/test_helpers/issuing/authorization_service.rb @@ -60,6 +60,17 @@ def increment(authorization, params = {}, opts = {}) ) end + # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + def respond(authorization, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts, + base_address: :api + ) + end + # Reverse a test-mode Authorization. def reverse(authorization, params = {}, opts = {}) request(