stripe-dotnet icon indicating copy to clipboard operation
stripe-dotnet copied to clipboard

Required Parameters

Open jaymedavis opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

I originally tried making required parameters passed as arguments to the services, and any "optional" be passed in the XOptions classes. This broke down pretty fast, because services having a dozen arguments would be gnarly.

Describe the solution you'd like

Required Parameters to the rescue! The properties on the entity can now specify if they are "required" with regards to the service, or optional

https://blog.ndepend.com/c-11-required-members/

Describe alternatives you've considered

No response

Additional context

I think this would be a really cool feature to help developers know (without looking at documentation) which entity properties are required, and which ones are not.

jaymedavis avatar Nov 16 '22 20:11 jaymedavis

This indeed looks like a great fit for our Option classes.

pakrym-stripe avatar Nov 17 '22 16:11 pakrym-stripe