diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5730a1e88..4d1efaa33 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v640 \ No newline at end of file +v662 \ No newline at end of file diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index eb6484638..23214f731 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -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, diff --git a/lib/stripe/resources/invoice_line_item.rb b/lib/stripe/resources/invoice_line_item.rb index 5590659bd..322190ddb 100644 --- a/lib/stripe/resources/invoice_line_item.rb +++ b/lib/stripe/resources/invoice_line_item.rb @@ -3,6 +3,8 @@ module Stripe class InvoiceLineItem < StripeObject + include Stripe::APIOperations::Save + OBJECT_NAME = "line_item" end end