Skip to content

Limit option not working properly for list_account_invoices #870

Open
@sbecka

Description

@sbecka

Describe the bug

Hello, I noticed when I set the limit option to 5 or any number for the list_account_invoices method, it gets ignored and returns all account invoices every time. Our Recurly sandbox account has around 40 invoices and all of them get returned each time. I'm not sure if I'm using the correct setup for params or not.

To Reproduce
I used the example code found here and pass the limit option to params: Method: Recurly::Client#list_account_invoices

test_params = { limit: 5 }

invoices = @client.list_account_invoices( account_id: account_id, params: test_params )

invoices.each do |invoice| puts "Invoice: #{invoice.number}" end

Expected behavior

I expected at least 5 account invoices to be returned if the limit is set to 5.

Your Environment

  • Which version of this library are you using? version 4.42.0
  • Which version of ruby are you using? version 3.0.1

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