square / square-dotnet-sdk

.NET client library for the Square API
https://developer.squareup.com
Other
55 stars 30 forks source link

Model classes for webhook payloads? #64

Open sblom opened 3 years ago

sblom commented 3 years ago

I love the explicit model support for API request/response objects, but I haven't been able to find implementations of the Webhook payload classes here (although it seems that other platforms have them). Am I overlooking something?

StephenJosey commented 3 years ago

Currently none of our SDKs have webhook models/support built in. This is a common ask, but I do not have an ETA on when/if it will come.

sblom commented 3 years ago

The go SDK does. For now, I just use the swagger metadata to generate my own. Since they're receive-only, they don't need the full builder treatment, etc.

Would y'all entertain a pull request that adds deserialization targets for webhook payloads probably in a separate project with a separate namespace?

sebastienlabine commented 2 years ago

@StephenJosey > Currently none of our SDKs have webhook models/support built in. This is a common ask, but I do not have an ETA on when/if it will come.

Any updates? It's a little weird having some payload like OrderCreated and OrderUpdated but nothing for others like customers.