juspay / juspay/hyperswitch

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

Open
#994 10 comments 0 reactions 1 assignee Claimed by @musosy View on GitHub
C-feature E-medium good first issue help wanted P-low
Dominant language
Rust
Stars
43.7k
Forks
5.1k
Avg merge
2d 20h
Merged PRs (30d)
205

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?

- [X] I checked and didn't find similar issue

### Have you read the Contributing Guidelines?

- [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md)

### Are you willing to submit a PR?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.