Add invoice lines fetching for specific invoice
tutelaris opened this issue · 1 comments
tutelaris commented
Is your feature request related to a problem? Please describe.
In the documentation, there is an ability to retrieve invoice lines: https://stripe.com/docs/api/invoices/invoice_lines#invoice_lines
Going through the code, I didn't find any method that can help me to retrieve invoice lines from the existing invoice. The reason I specifically need it is that we need to fetch invoice items with more than 10 items (let's say 20), so I want to tweak this param for invoice items a bit.
Describe the solution you'd like
It would be great if we could have something like:
module Stripe
class Invoice < APIResource
...
custom_method :all_lines, http_verb: :get
...
def all_lines(params = {}, opts = {})
request_stripe_object(
method: :get,
path: resource_url + "/lines",
params: params,
opts: opts
)
end
end
end
Can open the PR if needed.
Describe alternatives you've considered
No response
Additional context
No response
tutelaris commented
NVM, searched through issues and found an already implemented solution. Sorry