Skip to content

DEV-1215: expose purchaseOptionId on Product#457

Merged
SpertsyanKM merged 3 commits into
developfrom
kamo/dev-1215-expose-purchaseoptionid-as-a-separate-sdk-field-split-from
Jul 21, 2026
Merged

DEV-1215: expose purchaseOptionId on Product#457
SpertsyanKM merged 3 commits into
developfrom
kamo/dev-1215-expose-purchaseoptionid-as-a-separate-sdk-field-split-from

Conversation

@SpertsyanKM

Copy link
Copy Markdown
Contributor

Issue: DEV-1215

Add a dedicated purchaseOptionId field for one-time products, parsed from the native bridge map, mirroring basePlanId. basePlanId now carries the subscription base plan only (null for one-time); purchaseOptionId carries the one-time purchase option (null for subscriptions).

Runtime chain: native (android-sdk #847) → sandwich (#352, must emit the key) → this wrapper. Wrapper code is self-contained (TypeScript); the value populates once the bundled sandwich emits purchaseOptionId.

🤖 Generated with Claude Code

SpertsyanKM and others added 3 commits July 21, 2026 18:30
Add a dedicated purchaseOptionId field for one-time products, parsed from the bridge
map in Mapper.convertProduct, mirroring basePlanId. basePlanId now carries the
subscription base plan only (null for one-time); purchaseOptionId carries the one-time
purchase option (null for subscriptions).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Carry the split down to product.storeDetails for consistency with product: add a
purchaseOptionId field parsed from the bridge map, mirroring basePlanId (which the
native side now reports as null for one-time products).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…onId)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SpertsyanKM
SpertsyanKM merged commit 4964ba9 into develop Jul 21, 2026
1 check passed
@SpertsyanKM
SpertsyanKM deleted the kamo/dev-1215-expose-purchaseoptionid-as-a-separate-sdk-field-split-from branch July 21, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant