Class: Stripe::Tax::CalculationLineItemService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/tax/calculation_line_item_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(calculation, params = {}, opts = {}) ⇒ Object

Retrieves the line items of a tax calculation as a collection, if the calculation hasn’t expired.



8
9
10
11
12
13
14
15
16
# File 'lib/stripe/services/tax/calculation_line_item_service.rb', line 8

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