feat(revenue_recovery): Add token active status filtering and account update history tracking#10056
Merged
Gnanasundari24 merged 5 commits intomainfrom Oct 31, 2025
Merged
feat(revenue_recovery): Add token active status filtering and account update history tracking#10056Gnanasundari24 merged 5 commits intomainfrom
Gnanasundari24 merged 5 commits intomainfrom
Conversation
Changed Files
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10056 +/- ##
=======================================
Coverage ? 3.91%
=======================================
Files ? 1223
Lines ? 301687
Branches ? 0
=======================================
Hits ? 11803
Misses ? 289884
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
srujanchikke
requested changes
Oct 30, 2025
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
Outdated
Show resolved
Hide resolved
srujanchikke
approved these changes
Oct 30, 2025
prasunna09
approved these changes
Oct 30, 2025
jagan-jaya
approved these changes
Oct 30, 2025
aadityaguptaa
pushed a commit
that referenced
this pull request
Nov 10, 2025
… update history tracking (#10056) Co-authored-by: sagarnaikjuspay <sagar.naik@juspay.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
This pull request introduces support for the active status and update history of payment processor tokens in the revenue recovery flow to deactive a token and update the history of the particular token . It adds new fields and parsing logic to handle these attributes.
The most important changes are:
API Model and Data Structure Enhancements:
is_activeandaccount_update_historyfields toRevenueRecoveryBackfillRequestandComprehensiveCardDatastructs, and introduced a newAccountUpdateHistoryRecordstruct to represent token update history.PaymentProcessorTokenStatusin storage models to includeis_activeandaccount_update_historyfields, enabling storage of these new attributes.Parsing and Data Processing Logic:
parse_is_activeandparse_account_update_historyhelper functions to extract and validate these fields from incoming data, and integrated them into resid update through csv function.Redis Storage and Retrieval Updates:
RedisTokenManagermethods to store and retrieve the new fields, including logic to filter tokens by their active status and to persist update history. Added a new method to optionally include inactive tokens in retrievals.Default and Example Data Adjustments:
Additional Changes
Motivation and Context
How did you test it?
file content
when the token is active
Checklist
cargo +nightly fmt --allcargo clippy