Skip to content

feat: answer at the second path Stripe serves the people of an account and balance transactions at - #366

Merged
Benzilla merged 1 commit into
mainfrom
feat/alternative-paths
Dec 4, 2026
Merged

Benzilla merged 1 commit into
mainfrom
feat/alternative-paths

Conversation

@Benzilla

@Benzilla Benzilla commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Description

Stripe serves some resources at two paths, and the API had one of each pair: the people of an account at /persons and not at /people, and balance transactions at /v1/balance_transactions and not at /v1/balance/history. A request written for the other path got a 404.

Both paths of each pair now answer. A pair is named once, the API answers a request to the second path with the routes of the first, and the spec declares the seven operations at the second path. An SDK keeps one method for each endpoint.

Closes #276

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation

How Was This Tested?

  • Unit tests
  • Integration tests
  • Manual testing

Unit tests for the path a request is answered at, with an ID, a query string and paths that only look alike. A test of the spec checks that it declares each alternative with the operations of the path it stands for, and that no SDK gets a second method. End-to-end tests create, update, retrieve, list and delete a person at /people, and list and retrieve balance transactions at /balance/history. The end-to-end suite passes with bodies sent as JSON and as forms.

Screenshots (if applicable)

Checklist

  • Self-reviewed my code
  • No new warnings
  • Existing tests still pass
  • Breaking changes are documented above

@Benzilla
Benzilla enabled auto-merge (squash) December 4, 2026 18:34
@Benzilla
Benzilla merged commit 1be16e2 into main Dec 4, 2026
6 checks passed
@Benzilla
Benzilla deleted the feat/alternative-paths branch December 4, 2026 18:36
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.

Add Stripe's alternative paths

1 participant