Skip to content

Adds public BaseUrl to RawRequestOptions#3170

Merged
jar-stripe merged 1 commit intomasterfrom
jar/raw-request-api-base
Sep 11, 2025
Merged

Adds public BaseUrl to RawRequestOptions#3170
jar-stripe merged 1 commit intomasterfrom
jar/raw-request-api-base

Conversation

@jar-stripe
Copy link
Copy Markdown
Contributor

@jar-stripe jar-stripe commented Sep 10, 2025

Why?

RawRequest can be used to make custom requests to Stripe APIs not yet supported by the SDK, but it was limited to APIs exposed via api.stripe.com. This limits the ability to call some of our APs.

What?

  • renames internal BaseUrl in RequestOptions to InternalBaseUrl
  • adds public BaseUrl to RawRequestOptions which delegates to InternalBaseUrl for safety
  • adds test

See Also

Changelog

  • Adds BaseUrl to RawRequestOptions for raw request calls to endpoints at hosts other than api.stripe.com

adds public BaseUrl to RawRequestOptions - it delegates to InternalBaseUrl for safety
adds test
@jar-stripe jar-stripe requested a review from a team as a code owner September 10, 2025 17:42
@jar-stripe jar-stripe requested review from helenye-stripe and removed request for a team September 10, 2025 17:42
@helenye-stripe
Copy link
Copy Markdown
Contributor

lg but can we get a changelog entry?

@jar-stripe
Copy link
Copy Markdown
Contributor Author

lg but can we get a changelog entry?

good call! I was having a hard time wording it so lmk if that makes sense or if we want to tweak it at all.

@jar-stripe jar-stripe enabled auto-merge (squash) September 11, 2025 02:14
@jar-stripe jar-stripe merged commit e84e43c into master Sep 11, 2025
4 of 5 checks passed
@jar-stripe jar-stripe deleted the jar/raw-request-api-base branch September 11, 2025 15:48
helenye-stripe pushed a commit that referenced this pull request Sep 23, 2025
* Add private-preview branch to CI workflow triggers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* ⚠️ Build SDK w/ V2 OpenAPI spec (#3167)

* generate w/ v2 openapi spec

* move deleted object path

* Adds public BaseUrl to RawRequestOptions (#3170)

renames internal BaseUrl in RequestOptions to InternalBaseUrl 
adds public BaseUrl to RawRequestOptions - it delegates to InternalBaseUrl for safety

* Update generated code (#3172)

* Update generated code for v1955 and 2025-09-30.clover

* Update generated code for v1968 and 2025-09-30.clover

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* `just format` formats entire solution (#3174)

* Adds ability to specify file name and type when calling FileService.Create (#3171)

* Update generated code for 9de7288a5c444f47d15545549303c3de4c226c71 and 2025-09-30.clover

---------

Co-authored-by: Michael Broshi <mbroshi@stripe.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Brownman <109395161+xavdid-stripe@users.noreply.github.com>
Co-authored-by: jar-stripe <jar@stripe.com>
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
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.

2 participants