Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Allow params for entries request #89

@edison

Description

@edison

Just allow to use LIMIT and OFFSET parameters for entries request as described on API docs: https://dev.wirecard.com.br/v2.0/reference#listar-todos-lan%C3%A7amentos

Without this it's impossible to get more than 20 entries through this SDK.

I had previously made a pull-request (#86) to fix this, but I couldn't reopen. So I'm giving the following code which works properly if you can make the change directly:

File: lib/moip2/entry_api.rb

You need to change the find_all method to the following:

def find_all(params = {})
  params = URI.encode_www_form params
  Resource::Entry.new client, client.get("#{base_path}?#{params}")
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions