stripe-rs
stripe-rs copied to clipboard
Integrated generated code for /v1/account_links
Simply includes the generated code and adds the mod
and pub use
statements in resources.rs. One modification from the generated code was made for API compliance: the generated AccountLinkType
enum had the options CustomAccountUpdate
and CustomAccountVerification
, but I changed it to AccountUpdate
and AccountOnboarding
to match the API documented here. The resulting functionality was tested a decent amount and seems to work properly.
Hello, apologies for the late reply. We are working on getting up to speed on pull requests. May I ask if you are still interested in merging this (we are!) that you rebase? Thank you.
As a general rule we should probably refrain from hand-editing the generated code, even though it deviates slightly from the spec, and instead look to change the codegen.
Hi, I can definitely get it working with the current master branch sometime soon. I'll take a look at the generation first too :)
Happy to give pointers if needed.
What are the issues in the codegen that are causing the generated field names to be incorrect? Is it using an old schema of the API for generation?