Skip to content

Commit

Permalink
Update generated code (#1437)
Browse files Browse the repository at this point in the history
* Update generated code for v1137

* Update generated code for v1154

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 25, 2024
1 parent 0dfd04c commit b40dc1f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1126
v1154
11 changes: 11 additions & 0 deletions lib/stripe/resources/checkout/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module Checkout
class Session < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "checkout.session"
def self.object_name
Expand Down Expand Up @@ -89,6 +90,16 @@ def self.list_line_items(session, params = {}, opts = {})
opts: opts
)
end

# Updates a Session object.
def self.update(id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/checkout/sessions/%<id>s", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
end
end
end
2 changes: 1 addition & 1 deletion lib/stripe/resources/refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def self.create(params = {}, opts = {})
request_stripe_object(method: :post, path: "/v1/refunds", params: params, opts: opts)
end

# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.
# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/refunds", params: filters, opts: opts)
end
Expand Down

0 comments on commit b40dc1f

Please sign in to comment.