Class: Stripe::QuoteComputedUpfrontLineItemsService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/quote_computed_upfront_line_items_service.rb

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#list(quote, params = {}, opts = {}) ⇒ Object

When retrieving a quote, there is an includable [computed.upfront.line_items](stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.



7
8
9
10
11
12
13
14
15
# File 'lib/stripe/services/quote_computed_upfront_line_items_service.rb', line 7

def list(quote, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/quotes/%<quote>s/computed_upfront_line_items", { quote: CGI.escape(quote) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end