Sha256: 748124f52edbd5d55a316578b370a95b99c10a079dd4e8a933b2439aef9db20e

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class CreditNoteLineItemService < StripeService
    # When retrieving a credit note, you'll get a lines 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(credit_note, params = {}, opts = {})
      request(
        method: :get,
        path: format("/v1/credit_notes/%<credit_note>s/lines", { credit_note: CGI.escape(credit_note) }),
        params: params,
        opts: opts,
        base_address: :api
      )
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.2.0 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.1.2 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.1.1 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.1.0 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.0.2 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.0.1 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/credit_note_line_item_service.rb
stripe-13.0.0 lib/stripe/services/credit_note_line_item_service.rb