stripe-ruby/lib/stripe/services/checkout/session_line_item_service.rb

20 lines
677 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Checkout
class SessionLineItemService < StripeService
# When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
def list(session, params = {}, opts = {})
request(
method: :get,
path: format("/v1/checkout/sessions/%<session>s/line_items", { session: CGI.escape(session) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end
end