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

Fixes erroneous error message when fetching upcoming invoices. #764

Merged
merged 2 commits into from
Feb 18, 2021

Conversation

csalvato
Copy link
Collaborator

When fetching an upcoming invoice, you should be able to provide only a customer or a subscription.

The current implementation only supports fetching by customer.

This changes it to support either-or, which is more consistent with the current Stripe API.

This only throws an error if both customer and subscription aren't present,
which is more consistent with the real API.
@csalvato csalvato merged commit 14896d9 into master Feb 18, 2021
@csalvato csalvato deleted the fix-erroneous-error-message branch February 18, 2021 01:51
@csalvato csalvato changed the title Fixes erroneous error message when Fixes erroneous error message when fetching upcoming invoices. Feb 18, 2021
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.

None yet

1 participant