diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dc5a50d6b..0e632c42d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1005 \ 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 232db3b6b..4ed791fde 100644 --- a/lib/stripe/resources/treasury/outbound_payment.rb +++ b/lib/stripe/resources/treasury/outbound_payment.rb @@ -124,6 +124,26 @@ def return_outbound_payment(params = {}, opts = {}) 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 59451cb6c..0636e7c27 100644 --- a/lib/stripe/resources/treasury/outbound_transfer.rb +++ b/lib/stripe/resources/treasury/outbound_transfer.rb @@ -124,6 +124,26 @@ def return_outbound_transfer(params = {}, opts = {}) 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