Skip to content

Parse exit_offers field on WorkflowScreen#6754

Merged
facumenzella merged 2 commits into
mainfrom
facu/workflow-screen-exit-offers
May 8, 2026
Merged

Parse exit_offers field on WorkflowScreen#6754
facumenzella merged 2 commits into
mainfrom
facu/workflow-screen-exit-offers

Conversation

@facumenzella

@facumenzella facumenzella commented May 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds exitOffers: ExitOffers? to WorkflowScreen model, decoded from the exit_offers JSON key
  • Passes it through WorkflowScreenMapper into PaywallComponentsData
  • Adds decode tests in WorkflowResponseTests and mapper passthrough tests in WorkflowScreenMapperTests

Android equivalent: RevenueCat/purchases-android#3452

Test plan

  • New testDecodeWorkflowScreenWithExitOffers and testDecodeWorkflowScreenExitOffersAbsentByDefault tests in WorkflowResponseTests (Xcode/Tuist only)
  • New testPassesThroughExitOffers and testExitOffersIsNilWhenAbsent tests in WorkflowScreenMapperTests (pass via swift test)

🤖 Generated with Claude Code


Note

Low Risk
Low risk: adds an optional decoded field and passes it through to existing paywall component data, with test coverage for presence/absence.

Overview
Adds support for the exit_offers field on WorkflowScreen by decoding it into a new optional exitOffers: ExitOffers? property.

Updates WorkflowScreenMapper to pass exitOffers through into PaywallComponentsData, and adds unit/UI tests to verify decoding and mapper passthrough when present and nil when absent.

Reviewed by Cursor Bugbot for commit 097a886. Bugbot is set up for automated code reviews on this repo. Configure here.

Parses the exit_offers JSON field on WorkflowScreen and passes it
through WorkflowScreenMapper into PaywallComponentsData, matching
the Android implementation in purchases-android#3452.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@facumenzella facumenzella requested a review from a team as a code owner May 8, 2026 12:28
@facumenzella facumenzella requested a review from a team as a code owner May 8, 2026 12:28
@facumenzella facumenzella requested a review from a team as a code owner May 8, 2026 12:28
@facumenzella facumenzella merged commit 5cd0adc into main May 8, 2026
16 of 18 checks passed
@facumenzella facumenzella deleted the facu/workflow-screen-exit-offers branch May 8, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants