From fe52fcd1e7733235bfd0c762ab35ea5f55882aeb Mon Sep 17 00:00:00 2001
From: "stripe-openapi[bot]"
 <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 16 Nov 2023 10:43:45 -0800
Subject: [PATCH] Update generated code for v662 (#1288)

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
---
 OPENAPI_VERSION                           | 2 +-
 lib/stripe/resources/invoice.rb           | 3 +++
 lib/stripe/resources/invoice_line_item.rb | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)

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