Skip to content

[Billing Plans]: Parse platform_product_plan_identifier in offerings response#6738

Merged
fire-at-will merged 2 commits into
mainfrom
parse-platformProductPlanIdentifier
May 7, 2026
Merged

[Billing Plans]: Parse platform_product_plan_identifier in offerings response#6738
fire-at-will merged 2 commits into
mainfrom
parse-platformProductPlanIdentifier

Conversation

@fire-at-will

@fire-at-will fire-at-will commented May 6, 2026

Copy link
Copy Markdown
Contributor

Motivation

Preliminary work required for supporting billing plans in the iOS SDK.

Description

Adds parsing support for platform_product_plan_identifier in OfferingsResponse.Offering.Package.

The new value is exposed internally as the optional platformProductPlanIdentifier, allowing offerings responses to carry a platform-specific product plan/base plan identifier when present while preserving nil behavior for responses that omit it.

No public API/behavior changes are introduced.

Changes

  • Added platformProductPlanIdentifier: String? to OfferingsResponse.Offering.Package
  • Updated internal test fixtures and package construction call sites to account for the new optional field

Testing

  • Added explicit offerings decoding fixtures and tests for:
    • JSON with platform_product_plan_identifier
    • JSON without platform_product_plan_identifier

Note

Low Risk
Low risk: adds an optional decoded field to OfferingsResponse.Offering.Package and updates tests/fixtures; behavior is unchanged when the key is absent.

Overview
Adds support for decoding platform_product_plan_identifier into a new optional platformProductPlanIdentifier on OfferingsResponse.Offering.Package.

Updates all affected test helpers to pass the new argument and adds fixtures + decoding tests covering both presence and absence of the new JSON field.

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

@fire-at-will fire-at-will marked this pull request as ready for review May 6, 2026 17:18
@fire-at-will fire-at-will requested a review from a team as a code owner May 6, 2026 17:18
@fire-at-will

Copy link
Copy Markdown
Contributor Author

@claude please review

@fire-at-will fire-at-will merged commit c12e65d into main May 7, 2026
42 checks passed
@fire-at-will fire-at-will deleted the parse-platformProductPlanIdentifier branch May 7, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants