Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source-stripe-native: Handle empty connected account list in resource methods #2504

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

JustinASmith
Copy link
Contributor

@JustinASmith JustinASmith commented Mar 7, 2025

Description:

Modify base_object, child_object, split_child_object, usage_records, and no_events_object methods to handle cases where no connected accounts are provided. When no connected accounts are present, the methods now use a single fetch function with a None account_id instead of creating per-account fetch functions.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

Modify resource bindings to handle cases where no connected accounts are provided. When no connected accounts are present, the methods now use a single fetch function with a None account_id instead of creating per-account fetch functions.
@JustinASmith JustinASmith force-pushed the jsmith/stripe-connected-accounts-bug branch from 693f828 to 16d2066 Compare March 7, 2025 21:26
@JustinASmith JustinASmith marked this pull request as ready for review March 7, 2025 21:32
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JustinASmith JustinASmith merged commit 86695d2 into main Mar 7, 2025
83 of 90 checks passed
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