arlyon / async-stripe

Async (and blocking!) Rust bindings for the Stripe API
https://payments.rs
Apache License 2.0
414 stars 121 forks source link

Add `Invoice::void` method #517

Open ferrohd opened 3 months ago

ferrohd commented 3 months ago

Is your feature request related to a problem? Please describe.

The Invoice object has some useful ext methods such as:

Invoices generated from a Subscription cannot be deleteed, instead must be voided. My feature request is to add Invoice::void.

Describe the solution you'd like

Add in the Invoice::void method, used to void invoices.

Describe alternatives you've considered

Invoice::void, like Invoice::delete feels like should already exists in the OpenAPI spec instead of adding it to invoice_ext

Additional context

I can try to work on the PR.