Skip to content

Extract shared HTTP transport layer into BaseResource#192

Open
selinafeng-stripe wants to merge 1 commit into
mainfrom
selina/base-resource-extraction
Open

Extract shared HTTP transport layer into BaseResource#192
selinafeng-stripe wants to merge 1 commit into
mainfrom
selina/base-resource-extraction

Conversation

@selinafeng-stripe

Copy link
Copy Markdown

Extracts the HTTP transport infrastructure (rawFetch, apiFetch, 401 token refresh, verbose logging, error message extraction) from TransactionsResource into a shared BaseResource abstract class in packages/sdk/src/resources/base.ts.

TransactionsResource now extends BaseResource and only contains its endpoint-specific logic (URL building, response normalization). Later financial insights resources will follow the same pattern in upcoming PRs.

@selinafeng-stripe selinafeng-stripe requested a review from a team as a code owner July 14, 2026 04:08
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