async-stripe
async-stripe copied to clipboard
How to Finalize an Invoice?
Is your feature request related to a problem? Please describe.
Thanks very much for the great library! However, I can't figure out how to finalize an invoice, as in https://stripe.com/docs/api/invoices/finalize
Apologies if this feature already exists, but I did search around the repo a fair bit before submitting this request.
Describe the solution you'd like
To be able to finalise an invoice i.e. to move an invoice from draft status to open, as in https://stripe.com/docs/api/invoices/finalize
Describe alternatives you've considered
No response
Additional context
No response
Hi! You should be able to add this by putting the relevant api request in invoice_ext.rs. We are working on a revamp of the codegen that will make these manual extension apis obsolete but in the mean time non-crud things live in there. Shouldn't be too complicated if you'd like to submit a PR
Great, thank you - I’ll give it a go 👍🏼
Hi @arlyon pull request for this is here: https://github.com/arlyon/async-stripe/pull/450