-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Terminal resources #1388
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment, but looks great overall.
Also, could you add the new resources in the StripeObjectConverter
dictionary? Not sure if these can appear in webhook events, but better safe than sorry. (Also, I think I forgot to ask you to do the same for the new Radar resources too.)
|
||
public override string BasePath => "/terminal/connection_tokens"; | ||
|
||
public virtual ConnectionToken Create(ConnectionTokenCreateOptions options, RequestOptions requestOptions = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should provide overloads with no options. It seems a little bit silly to force users to create a ConnectionTokenCreateOptions
instance that contains nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hear you but then it becomes a mess of overloads and I'm not a big fan, we saw what it did to stripe-java.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested it, and we can simply set null
as the default value for the options
argument. It still satisfies the interface and makes the argument optional without requiring an overload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, PTAL
7585321
to
ea8670c
Compare
@ob-stripe Already did for the |
ea8670c
to
8be061b
Compare
Released as 21.2.0. |
r? @ob-stripe
cc @stripe/api-libraries @stevene-stripe