commit e050b2badf033fc547b92a7a41f2bf83629ff5d4
Author: elizabeth-ilina
Date: Thu Nov 20 14:12:50 2025 -0500
feat(payments-next): Add logic to check eligibility and return Churn intervention content
Because:
We will need to check whether:
* A churn coupon type exists for the offering and interval combo
* A customer is eligible to redeem the churn coupon
This commit:
Adds eligibility check for Stay Subscribed flow, based on the following criteria:
* The churn type coupon exists for offering/interval combo in CMS
* The customer can redeem the churn type coupon (compares customer’s redemption count for Churn intervention ID and redemption limit of Churn Intervention ID in CMS)
* The customer’s subscription for auto-renew is set to false.
Closes #PAY-3361