EasyPost / easypost-csharp

EasyPost Shipping API Client Library for .NET and .NET Framework applications
https://easypost.com/docs/api
MIT License
66 stars 74 forks source link

[Feat]: Create Parameters.Options.Create to be consistent with other Parameters.Shipment.Create property types #596

Open chadwixk opened 1 month ago

chadwixk commented 1 month ago

Feature Request Is New

Description of the feature

Parameters.Shipment.Create.cs properties are other Parameter types, except Options which use a non-parameter type and instead use the Model.API type.

nwithan8 commented 1 month ago

Hello, thanks for reaching out!

You are correct, the Options class is one of, if not the only, response-model class that does not have a corresponding parameter class. This is largely due to the fact that a) theOptions` class is quite large and could potentially fall out of sync trying to maintain two versions of it, and b) there is no difference between the request/parameter version and the response/model version, so we found it largely unnecessary to duplicate.

We are currently working on adding additional elements to the Options class, including documentation for every option, and will take your design suggestion under consideration. We apologize for the confusion.