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

Fix when certain events have a different schema under the invoice lines #15

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

dmosorast
Copy link
Contributor

In the case of an invoice.payment_succeeded event, the lines key came through as a dict of the structure {"subscriptions": [... subscription objects...]}.

This PR alters the schema to allow this key to be an object with any properties, and modifies the foreign key reduction code to just pass it along as a Python dictionary of lists of dictionaries.

@KAllan357 KAllan357 merged commit 8ba3f65 into master Dec 18, 2018
@luandy64 luandy64 deleted the fix/subscription-events branch April 3, 2020 17:05
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