Skip to content

Commit

Permalink
Update generated code for v1011 (#1397)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stripe-openapi[bot] and ramya-stripe committed May 9, 2024
1 parent 7f2bdfa commit a42ab44
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1005
v1011
20 changes: 20 additions & 0 deletions lib/stripe/resources/treasury/outbound_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<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
Expand Down
20 changes: 20 additions & 0 deletions lib/stripe/resources/treasury/outbound_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<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
Expand Down

0 comments on commit a42ab44

Please sign in to comment.