hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

refactor(router): add `updated` field to `PaymentsResponse`

Open soumilbaldota opened this issue 10 months ago • 0 comments

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

soumilbaldota avatar Apr 03 '24 19:04 soumilbaldota