Files
Peter Porfy b5530243e1 feat(ads): cache customer info from verified reward polls instead of refetching (#8166)
* feat(ads): cache customer info from verified reward polls instead of refetching

* fix(ads): cache reward poll customer info under the user it was polled for

* refactor(ads): require customerInfo on Outcome.Verified

* refactor(ads): require customerInfo on RewardVerificationPollStatus.Verified

* refactor(ads): require customerInfo on RewardVerificationStatusResponse.init

* docs(ads): describe pollRewardVerification as updating state from the response

* fix(ads): poll reward verification for the user captured before polling

* fix(ads): reword malformed customer info log now that the poll no longer refetches

* fix(ads): treat a null subscriber in the reward poll as no customer info

* refactor(ads): pass appUserID through the poll run instead of storing it in the poller

* refactor(ads): drop async from rewardVerificationResult

* test(ads): assert the null subscriber guard skips the malformed customer info warning

* test(ads): assert the polled appUserID stays fixed across attempts

* docs(ads): fix the fetchRewardVerificationStatus reference in the poller doc comment
2026-11-09 14:51:33 +01:00
..
2026-10-23 11:11:52 -06:00
2026-10-30 11:12:38 -06:00
2026-11-06 10:05:31 -06:00
2026-10-23 11:11:52 -06:00
2026-11-06 10:05:31 -06:00