Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/stripe/resources/invoice_line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Stripe
# Invoice Line Items represent the individual lines within an [invoice](https://stripe.com/docs/api/invoices) and only exist within the context of an invoice.
#
# Each line item is backed by either an [invoice item](https://stripe.com/docs/api/invoiceitems) or a [subscription item](https://stripe.com/docs/api/subscription_items).
class InvoiceLineItem < StripeObject
class InvoiceLineItem < APIResource
include Stripe::APIOperations::Save

OBJECT_NAME = "line_item"
Expand Down
5 changes: 5 additions & 0 deletions test/stripe/invoice_line_item_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@

module Stripe
class InvoiceLineItemTest < Test::Unit::TestCase
should "be updateable" do
item = Stripe::InvoiceLineItem.update("in_123", "il_tmp_123")
assert_requested :post, "#{Stripe.api_base}/v1/invoices/in_123/lines/il_tmp_123"
assert item.is_a?(Stripe::InvoiceLineItem)
end
end
end
Loading