Skip to content

Pass the response getter into nested model types that own an active field - #2330

Open
jar-stripe wants to merge 2 commits into
masterfrom
jar/fix-v1-nested-active-object-propagation
Open

jar-stripe wants to merge 2 commits into
masterfrom
jar/fix-v1-nested-active-object-propagation

Conversation

@jar-stripe

@jar-stripe jar-stripe commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Why?

Customer.InvoiceSettings and other nested, non-resource types extended plain StripeObject with no way to receive or propagate a StripeResponseGetter. If such a type owns an expandable field, or a field whose own type does, the expanded object's instance methods silently fell back to the process-global client/key instead of the client that retrieved it. The generator now gives any type that owns an active field, resource or not, the StripeActiveObject interface and a propagating setResponseGetter override.

What?

  • regenerates all affected model classes (e.g. Customer.InvoiceSettings, Charge.Outcome, ConnectCollectionTransfer) via just gen java against the sdk-codegen fix
  • adds the Hark changefile

See Also

http://go/j/RUN_DEVSDK-3696

Configuration

  • skip-changefile: This PR is not a user-facing change, so there's no changefile.

…ve field

Customer.InvoiceSettings and the same shape elsewhere extended plain
StripeObject with no way to receive or propagate a StripeResponseGetter.
If such a type owns an expandable field, or a field whose own type does,
the expanded object's instance methods silently fell back to the
process-global client/key instead of the client that retrieved it.

Generated from stripe/sdk-codegen#4350.

RUN_DEVSDK-3696

Committed-By-Agent: claude
@jar-stripe jar-stripe changed the title Preserve the response getter into nested model types that own an active field Pass the response getter into nested model types that own an active field Nov 7, 2026
@jar-stripe
jar-stripe marked this pull request as ready for review November 7, 2026 05:06
@jar-stripe
jar-stripe requested a review from a team as a code owner November 7, 2026 05:06
@jar-stripe
jar-stripe requested review from mnorth-stripe and removed request for a team November 7, 2026 05:06
@jar-stripe
jar-stripe enabled auto-merge (squash) November 7, 2026 05:46

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant