arlyon / async-stripe

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

It seems that the API Version is completely out of date #360

Closed fd closed 1 year ago

fd commented 1 year ago

Describe the bug

https://github.com/arlyon/async-stripe/blob/15c6e8ffcd7fdf2f35e7d9eff4e1ea4f06102640/src/client/stripe.rs#L36

For example, CheckoutSession is already at a newer version as it has the renamed shipping_details field.

https://github.com/arlyon/async-stripe/blob/15c6e8ffcd7fdf2f35e7d9eff4e1ea4f06102640/src/resources/generated/checkout_session.rs#L162

To Reproduce

not relevant

Expected behavior

Expected the api version to be in-sync with the generated code.

Code snippets

No response

OS

not relevant

Rust version

not relevant

Library version

master branch

API version

not relevant

Additional context

No response

arlyon commented 1 year ago

Yes, you are correct. I have an open issue for this to derive this data from the codegen, but have not gotten around to it.

https://github.com/arlyon/async-stripe/issues/320

Edit: I have gotten round to it, should be fixed shortly :)

fd commented 1 year ago

@arlyon It seems that the crate is not being pushed to crates.io.