Skip to content

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

@K0H205

Description

@K0H205

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions