From a42ab44a3656d25a66a705333c09e56f04518cdd Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 19:17:56 +0000 Subject: [PATCH] Update generated code for v1011 (#1397) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- .../resources/treasury/outbound_payment.rb | 20 +++++++++++++++++++ .../resources/treasury/outbound_transfer.rb | 20 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) 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