Sha256: 0be56ec53ef4782376b5a9972b1b5c28d2ea54b354e6cf6304fdfe3f76a1718a

Contents?: true

Size: 1.42 KB

Versions: 52

Compression:

Stored size: 1.42 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # Invoice Items represent the component lines of an [invoice](https://stripe.com/docs/api/invoices). An invoice item is added to an
  # invoice by creating or updating it with an `invoice` field, at which point it will be included as
  # [an invoice line item](https://stripe.com/docs/api/invoices/line_item) within
  # [invoice.lines](https://stripe.com/docs/api/invoices/object#invoice_object-lines).
  #
  # Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined
  # with a [subscription](https://stripe.com/docs/api/subscriptions). Sometimes you want to add a charge or credit to a customer, but actually charge
  # or credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges
  # (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.
  #
  # Related guides: [Integrate with the Invoicing API](https://stripe.com/docs/invoicing/integration), [Subscription Invoices](https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items).
  class InvoiceItem < APIResource
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Delete
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save

    OBJECT_NAME = "invoiceitem"
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
stripe-8.6.0.pre.beta.5 lib/stripe/resources/invoice_item.rb
stripe-8.6.0.pre.beta.4 lib/stripe/resources/invoice_item.rb
stripe-8.6.0.pre.beta.3 lib/stripe/resources/invoice_item.rb
stripe-8.6.0.pre.beta.2 lib/stripe/resources/invoice_item.rb
stripe-8.6.0.pre.beta.1 lib/stripe/resources/invoice_item.rb
stripe-8.5.0 lib/stripe/resources/invoice_item.rb
stripe-8.5.0.pre.beta.1 lib/stripe/resources/invoice_item.rb
stripe-8.4.0 lib/stripe/resources/invoice_item.rb
stripe-8.4.0.pre.beta.3 lib/stripe/resources/invoice_item.rb
stripe-8.4.0.pre.beta.2 lib/stripe/resources/invoice_item.rb
stripe-8.4.0.pre.beta.1 lib/stripe/resources/invoice_item.rb
stripe-8.3.0 lib/stripe/resources/invoice_item.rb