hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(payout_link): return total_count in filtered payouts list API response

Open kashif-m opened this issue 6 months ago • 0 comments

Type of Change

  • [ ] Bugfix
  • [ ] New feature
  • [x] Enhancement
  • [x] Refactoring
  • [ ] Dependency updates
  • [ ] Documentation
  • [ ] CI/CD

Description

This PR refactors the payouts filtered list's API response to include total_count which specifies the total number of payout entries available for the given constraints.

Additional Changes

  • [x] This PR modifies the API contract
  • [ ] This PR modifies the database schema
  • [ ] This PR modifies application configuration/environment variables

How did you test it?

  1. Create payouts (create multiple for listing based on different constraints)
2. Filter payouts curl --location 'http://localhost:8080/payouts/list' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_cp78v8fT2C03KkEClI9aBMrqKF6N0SBLyUjasXtUQMbLTasfR2LJwjg0LlNHY060' \ --data '{}'

image

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed the submitted code
  • [ ] I added unit tests for my changes where possible

kashif-m avatar Aug 06 '24 09:08 kashif-m