square/square-dotnet-sdk

Model classes for webhook payloads?

Opened this issue · 3 comments

sblom commented

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?

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

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?

@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.