square-dotnet-sdk icon indicating copy to clipboard operation
square-dotnet-sdk copied to clipboard

Model classes for webhook payloads?

Open sblom opened this issue 4 years ago • 3 comments

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?

sblom avatar May 05 '21 21:05 sblom

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.

StephenJosey avatar May 05 '21 22:05 StephenJosey

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?

sblom avatar Jun 19 '21 18:06 sblom

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

sebastienlabine avatar Oct 20 '22 13:10 sebastienlabine