hyperswitch
hyperswitch copied to clipboard
fix(router): metadata field update in merchant_account and merchant_connector_account
Type of Change
- [x] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
Description
metadata field in merchant_account is added in db . retrieval and updation of metadata in both merchant_account and merchant_connector_account are reflected in db
Additional Changes
- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
metadata field was unable to retrieve and update because merchant_account doesn't have metadata field and updating function of merchant_connecter_account didn't add metadata.
How did you test it?
tested using postman
![Screenshot 2023-01-12 at 1 15 03 PM](https://user-images.githubusercontent.com/121822803/212009821-e874dbdc-e69a-4dcc-91f5-ec8488b16946.png)
![Screenshot 2023-01-12 at 1 09 44 PM](https://user-images.githubusercontent.com/121822803/212009870-b3c724d9-540a-4605-96dc-a9e4f7e073f1.png)
Checklist
- [x] I formatted the code
cargo +nightly fmt --all
- [x] I addressed lints thrown by
cargo clippy
- [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
- [ ] I added a CHANGELOG entry if applicable