CreditNoteService (services/credit_note_service.rb)

stripe-ruby · lib/stripe/services/credit_note_service.rb · ruby · MIT
payments

File generated from our OpenAPI spec frozen_string_literal: true

# Source: https://github.com/stripe/stripe-ruby | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
# Provided via justclaw.it.com; keep this notice with the code.
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class CreditNoteService < StripeService
    attr_reader :line_items, :preview_lines

    def initialize(requestor)
      super
      @line_items = Stripe::CreditNoteLineItemService.new(@requestor)
      @preview_lines = Stripe::CreditNotePreviewLinesService.new(@requestor)
    end

    # Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
    # This amount is indicated by the credit note's pre_payment_amount. The exce

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key