From 7a81acac442d7bc1477a3efbf7ad7b5a8ec2485c Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:44:02 -0800 Subject: [PATCH] Update generated code for v669 (#1290) 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, 1 insertion(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4d1efaa33..d491c2801 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v662 \ No newline at end of file +v669 \ No newline at end of file diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index 23214f731..eb6484638 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -40,12 +40,9 @@ 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 322190ddb..5590659bd 100644 --- a/lib/stripe/resources/invoice_line_item.rb +++ b/lib/stripe/resources/invoice_line_item.rb @@ -3,8 +3,6 @@ module Stripe class InvoiceLineItem < StripeObject - include Stripe::APIOperations::Save - OBJECT_NAME = "line_item" end end