Merge upstream and update generated code for v1011

This commit is contained in:
Stripe OpenAPI 2024-05-06 20:17:43 +00:00
commit 318bed2067
4 changed files with 41 additions and 5 deletions

View File

@ -27,10 +27,6 @@ group :development do
# The latest version of rubocop is only compatible with Ruby 2.7+
gem "rubocop", "1.57.2" if RUBY_VERSION >= "2.7"
# jaro_winkler 1.5.5 installation fails for jruby
# don't install on truffleruby
gem "jaro_winkler", "1.5.4" unless RUBY_ENGINE == "truffleruby"
gem "sorbet"
gem "tapioca"

View File

@ -1 +1 @@
v1009
v1011

View File

@ -124,6 +124,26 @@ module Stripe
opts: opts
)
end
# Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
def self.update(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
# Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
def update(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s", { id: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -124,6 +124,26 @@ module Stripe
opts: opts
)
end
# Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
def self.update(outbound_transfer, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s", { outbound_transfer: CGI.escape(outbound_transfer) }),
params: params,
opts: opts
)
end
# Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
def update(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s", { outbound_transfer: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
end
end
end