juspay/hyperswitch

[FEATURE] return list of all the attempts in PayoutsResponse

Open

#6.168 aberto em 1 de out. de 2024

Ver no GitHub
 (16 comments) (0 reactions) (1 assignee)Rust (4.676 forks)batch import
C-featureS-awaiting-triagegood first issuehacktoberfest

Métricas do repositório

Stars
 (42.690 stars)
Métricas de merge de PR
 (Mesclagem média 6d 22h) (213 fundiu PRs em 30d)

Description

Feature Description

Currently, a given payout resource can have multiple attempts attached to it if the payout was retried with multiple connectors.

These n number of attempts are linked to the payouts resource should be sent back in the response when fetching a payout and in the webhooks response.

Possible Implementation

  1. Add a DB query for fetching all the attempts for a given payout_id
  2. Consume this query while forming API / webhooks response
    • Both API and webhook response uses response_handler function in core/payouts.rs for forming this response
    • API response for list APIs uses a transformer, look at both API handlers for list and filter APIs

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

Guia do colaborador