async-stripe icon indicating copy to clipboard operation
async-stripe copied to clipboard

How to Finalize an Invoice?

Open oco-adam opened this issue 2 years ago • 3 comments

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

oco-adam avatar Sep 26 '23 11:09 oco-adam

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

arlyon avatar Sep 27 '23 14:09 arlyon

Great, thank you - I’ll give it a go 👍🏼

oco-adam avatar Oct 08 '23 17:10 oco-adam

Hi @arlyon pull request for this is here: https://github.com/arlyon/async-stripe/pull/450

oco-adam avatar Nov 18 '23 07:11 oco-adam