wyyerd/stripe-rs

Missing fn `SubscriptionItem::create`

thedodd opened this issue · 1 comments

Looks like the currently generated SubscriptionItem does not support the pattern described in the docs here: https://stripe.com/docs/api/subscription_items/create

I'll work on opening a PR for this.

Looks like the reason for this is that the code generator is discriminating, in part, based on whether or not the description of the openapi spec segment contains the word Create or create:

!doc_comment.contains("Create") && !doc_comment.contains("create")

I'll update that discriminator to also check for the words Adds or adds, as it should cover this specific case as well. We'll see what the code generator spits out.