Giter VIP home page Giter VIP logo

Comments (8)

devdrops avatar devdrops commented on August 18, 2024 1

Hi @williamokano and @topogigiovanni!

We believe that this issue is solved, so we're closing it, and if you guys still need to discuss it further, please feel free to reopen it 😉

from pagarme-php.

devdrops avatar devdrops commented on August 18, 2024

Hih @williamokano! Do you still have something in mind for this issue?

from pagarme-php.

williamokano avatar williamokano commented on August 18, 2024

HI @devdrops I don't. Since I have to count has many payables by fetching the transaction (which will have to make 2 requests, making the performance for this action pretty bad. I think that is for the best if we drop this feature and start a new one, but, instead of fetching all the payables for some given transaction, create a new method with the possibility to pass the count and the page argument and let the user handle how to fetch those data.

from pagarme-php.

topogigiovanni avatar topogigiovanni commented on August 18, 2024

Hello everyone, sorry for the intrusion, but it would make sense to give TransactionHandler the ability to query your Payables (doc) so you don't need the Paging Parameters ? In this case, we would not have the restriction of 10 results, but from what I've noticed, it skips some of the list result patterns (which contains page and count).

Thank you guys.

from pagarme-php.

williamokano avatar williamokano commented on August 18, 2024

Hi @topogigiovanni.

Have you tried the elastic search advanced query? I think that might solve our problem hehehe.

from pagarme-php.

topogigiovanni avatar topogigiovanni commented on August 18, 2024

It's a good alternative, sure, but I thought I'd create a shortcut to this feature. In my project I am using this feature a lot.

Anyway thanks for the attention @williamokano

Cheers.

from pagarme-php.

williamokano avatar williamokano commented on August 18, 2024

What kind of query you need in the TransactionHandler? I am using this feature a lot too, since I have to keep track of the payables in order to build some custom bulk anticipations. But in my case, I just need to query the payables for some specific given transaction. The query for transaction_id works, but I don't actually know how many payables I don't know exactly how many payables the given transaction has, I have to keep scraping all the pages.

I suggested the elasticsearch since it's a good alternative for me, I thought it might solve your problem too :)

from pagarme-php.

topogigiovanni avatar topogigiovanni commented on August 18, 2024

In fact it would only be for a match to the existing method in the API (link). Of course, elasticsearch works very well, but by looking closely at the PHP SDK I've missed the coverage of this feature, given the importance of the Payable entity.

Thanks again @williamokano , elasticsearch is really amazing and your solution will work perfectly for me. :)

from pagarme-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.