You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be incredibly useful if there were Resource object classes that were returned rather than just a generic PHP object, if done correctly this would be fully backwards compatible as well. Could allow type hinting and such for IDE auto completion.
I'd be happy to contribute towards this via a PR if this is something that would be accepted
The text was updated successfully, but these errors were encountered:
Hi @JakeBooher, sorry for the delay I totally missed your message. I have been thinking about what you mentioned for a long time. I think it would be great to have something like what you mention.
We originally went for stdClasses so that all the new fields we add get immediately added to the objects. The main idea was to avoid creating friction if we need to release a new SDK version every time we add a new property to a resource.
If you have time for that, I'd love to see what you have in mind. If you want to contribute, I'd recommend opening an initial PR with just one single model, so we can get an agreement on how we want them to look like, and then we can work towards creating resource objects for the rest of the models.
Would be incredibly useful if there were Resource object classes that were returned rather than just a generic PHP object, if done correctly this would be fully backwards compatible as well. Could allow type hinting and such for IDE auto completion.
I'd be happy to contribute towards this via a PR if this is something that would be accepted
The text was updated successfully, but these errors were encountered: