diff --git a/Gemfile b/Gemfile index 62cab7f0..193658d6 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7229c633..0e632c42 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1009 \ No newline at end of file +v1011 \ No newline at end of file diff --git a/lib/stripe/resources/treasury/outbound_payment.rb b/lib/stripe/resources/treasury/outbound_payment.rb index 232db3b6..4ed791fd 100644 --- a/lib/stripe/resources/treasury/outbound_payment.rb +++ b/lib/stripe/resources/treasury/outbound_payment.rb @@ -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/%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/%s", { id: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end end end end diff --git a/lib/stripe/resources/treasury/outbound_transfer.rb b/lib/stripe/resources/treasury/outbound_transfer.rb index 59451cb6..0636e7c2 100644 --- a/lib/stripe/resources/treasury/outbound_transfer.rb +++ b/lib/stripe/resources/treasury/outbound_transfer.rb @@ -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/%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/%s", { outbound_transfer: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end end end end