hyperswitch
hyperswitch copied to clipboard
refactor(router): add `updated` field to `PaymentsResponse`
Type of Change
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [X] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
This change adds the updated
field to the PaymentResponse.
It takes the value from the payment_intent.modified_at
field.
Additional Changes
- [X] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
https://github.com/juspay/hyperswitch/blob/97fbc899c12a0c66ac89a7feaa6d45d39239a746/crates/router/src/core/payments/transformers.rs#L792 https://github.com/juspay/hyperswitch/blob/97fbc899c12a0c66ac89a7feaa6d45d39239a746/crates/api_models/src/payments.rs#L3195
Motivation and Context
Fixes https://github.com/juspay/hyperswitch/issues/4283
How did you test it?
Checklist
- [X] I formatted the code
cargo +nightly fmt --all
- [X] I addressed lints thrown by
cargo clippy
- [X] I reviewed the submitted code