Skip to content

The Orders object is not using the correct NEXT_KEY parameter name. #226

@dfguerrerom

Description

@dfguerrerom

When I tried to use the items_iter() or iter() methods over the get_orders() client method, they were only displaying the first page. It is because the response is using the "next" key instead of "_next".

class Orders(Paged):

proposed fix:

class Orders(Paged):
    ITEM_KEY = 'orders'
    NEXT_KEY = 'next'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugverifiedreported issue can be reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions