Skip to content

Commit

Permalink
Update generated code for v1334
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 7, 2024
1 parent 51983eb commit f6a53cf
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1333
v1334
20 changes: 20 additions & 0 deletions lib/stripe/resources/issuing/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<authorization>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/%<authorization>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(
Expand Down
11 changes: 11 additions & 0 deletions lib/stripe/services/test_helpers/issuing/authorization_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<authorization>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(
Expand Down

0 comments on commit f6a53cf

Please sign in to comment.