Skip to content

Commit

Permalink
Update generated code for v662 (#1288)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Nov 16, 2023
1 parent 625a586 commit fe52fcd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v640
v662
3 changes: 3 additions & 0 deletions lib/stripe/resources/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ class Invoice < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Search
include Stripe::APIOperations::Save
extend Stripe::APIOperations::NestedResource

OBJECT_NAME = "invoice"

nested_resource_class_methods :line, operations: %i[update]

def finalize_invoice(params = {}, opts = {})
request_stripe_object(
method: :post,
Expand Down
2 changes: 2 additions & 0 deletions lib/stripe/resources/invoice_line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

module Stripe
class InvoiceLineItem < StripeObject
include Stripe::APIOperations::Save

OBJECT_NAME = "line_item"
end
end

0 comments on commit fe52fcd

Please sign in to comment.