Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1437

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading