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

Extend Stripe.Invoice.t() with from_invoice to allow to track invoice revisions #770

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

tristantreb
Copy link
Contributor

@tristantreb tristantreb commented Dec 5, 2022

Problem: stripe-elixir does not support the new Stripe API version that allows to edit finalized invoices.

Solution: This PR simply extends Stripe.Invoice.t() struct with the field from_invoice. I've tested the code updates end2end.

Why is this field useful? It allows to record all changes made on Stripe in 1 webhook event instead of 2 (because you can access the parent invoice id).

Question: I haven't seen tests for the invoice struct's keys. If I missed this, could you wire me to the right file?

@tristantreb tristantreb changed the title Extend Stripe.Invoice.t() with from_invoice to allow tracking invoice revisions Extend Stripe.Invoice.t() with from_invoice to allow to track invoice revisions Dec 5, 2022
@snewcomer snewcomer merged commit f2e7f3f into beam-community:master Dec 7, 2022
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