hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[REFACTOR]: add `updated` filed to payments response

Open Narayanbhat166 opened this issue 10 months ago • 2 comments

Add a field called updated to the payments response. This field will have the ISO timestamp at which the payment was updated.

This field should have the value from modified_at column from the payment_intent table.

The struct that is being used for the response is https://github.com/juspay/hyperswitch/blob/97fbc899c12a0c66ac89a7feaa6d45d39239a746/crates/api_models/src/payments.rs#L2910

In order to populate the field, use the builder method .set_updated when the response is generated https://github.com/juspay/hyperswitch/blob/97fbc899c12a0c66ac89a7feaa6d45d39239a746/crates/router/src/core/payments/transformers.rs#L792

Narayanbhat166 avatar Apr 03 '24 07:04 Narayanbhat166

https://github.com/juspay/hyperswitch/pull/42920

@Narayanbhat166 Sent a PR.

soumilbaldota avatar Apr 03 '24 19:04 soumilbaldota

@soumilbaldota Thanks, I'll be assigning this issue to you.

SanchithHegde avatar Apr 03 '24 20:04 SanchithHegde

Is it closed ?. If not can I work on it ?.

abhishektanwar2309 avatar Apr 09 '24 15:04 abhishektanwar2309