Class: Stripe::CreditNotePreviewLinesService

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

When retrieving a credit note preview, you’ll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.



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

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v1/credit_notes/preview/lines",
    params: params,
    opts: opts,
    base_address: :api
  )
end