juspay/hyperswitch

[FEATURE] add `upsert` endpoint to `cards_info` table

Open

#994 opened on Apr 26, 2023

View on GitHub
 (10 comments) (0 reactions) (1 assignee)Rust (4,676 forks)batch import
C-featureE-mediumP-lowgood first issuehelp wanted

Repository metrics

Stars
 (42,690 stars)
PR merge metrics
 (Avg merge 6d 22h) (213 merged PRs in 30d)

Description

Feature Description

Currently there is only read endpoint available for cards_info table. It would be useful to add a upsert endpoint which would

  • Insert the row if the card_iin is not present
  • Update the fields if card_iin is already present

Possible Implementation

Similar to the get endpoint.

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

  • I checked and didn't find similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

Contributor guide