wyyerd / stripe-rs

Rust API bindings for the Stripe HTTP API.
Apache License 2.0
224 stars 88 forks source link

Update to the latest version of the Stripe API (v2019-12-03 as of 03/02/2020) #122

Closed kestred closed 4 years ago

kestred commented 4 years ago

Many changes have come since the last time we pulled the openapi/spec3.json (2019-09-09).

Notably, Stripe has changed many of their documentation patterns, and we'll need to update our doc-comment generator to handle the new documentation format(s).

ruseinov commented 4 years ago

@kestred are there any plans to work on this? Or maybe there's a WIP branch somewhere? Unfortunately Stipe does not allow to downgrade the API version for webhooks, which means that some of the functionality for new Stripe accounts is broken, including invoice.payment_succeeded. I'm going to try and fix the events I absolutely need, but of course it would be better to be able to generate the code. If there is any work already done in that direction - I'd appreciate it if it got shared for me to build upon. I will be happy to contribute the end result.

ruseinov commented 4 years ago

This seems to support the openapi v3 spec: https://github.com/OpenAPITools/openapi-generator, but the output is not 100% compatible.

kestred commented 4 years ago

Implemented on master, to be released in 0.13.0

ruseinov commented 4 years ago

Thanks a lot, I have temporarily specified last commit in master as a dependency, it works beautifully now. I'd fixed some of the events I needed manually, but that's much better!