Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `request_stripe_object' in Stripe::InvoiceLineItem #1535

Open
K0H205 opened this issue Feb 21, 2025 · 1 comment
Labels

Comments

@K0H205
Copy link

K0H205 commented Feb 21, 2025

Describe the bug

I encountered the following error when executing the update method of Stripe::InvoiceLineItem.

     NoMethodError:
       undefined method `request_stripe_object' for class Stripe::InvoiceLineItem
     #*/stripe-13.4.1/lib/stripe/resources/invoice_line_item.rb:21:in `update'

To Reproduce

  1. Generate an invoice with at least one line item.
  2. Find the line item ID by inspecting Stripe::Invoice.retrieve(...).lines.data
  3. Execute a request using the specified syntax: Stripe::InvoiceLineItem.update(<invoice.id>, <line_item.id>, {...})

Expected behavior

Change the inheritance source of Stripe::InvoiceLineItem from StripeObject to APIResource.

OS

macOS

Language version

Ruby 3.3.2

Library version

stripe-ruby 13.4.1

API version

2025-01-27

Additional context

No response

@K0H205 K0H205 added the bug label Feb 21, 2025
@helenye-stripe
Copy link
Contributor

Hi! Thanks for reporting, we will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants