Open oliverheywood451 opened 1 year ago
Thought of this because I saw there were breaking changes happening anyway ;)
@oliverheywood451 would be open to including this but honestly won't have any free time to dedicate to this for the next week or so. If you have bandwidth and are willing to add this functionality I will merge it in.
This is a minor enhancement idea. If you look at models in the C# SDK, type parameters are handled slightly better (IMHO). OrderWorksheet is a good comparison because its so complex
In the C# sdk types are expected that extend the SDK models like Order and LineItem. In the JS sdk types are expected that hold the xp fields. This means there are more type arguments. The C# method is less verbose in the sdk code and in the client project code.
It also does require the creation of models like
interface MyOrderPromotion extends OrderPromotion<MyOrderPromotionsXp> { }