Closed mdreem closed 4 years ago
I actually now wonder what it was meant to represent in the first place 🤔
Should we just remove it?
Thanks for sending this PR btw, now I'm just questioning the rationale behind tracking it entirely :-)
@clintonb-stripe If you see this and happen to have a minute, do you mind chiming in? Would be greatly appreciated 🙏
It looks like the field existed too in the java-library a while ago. It may have been some API change that hasn't been propagated to all the clients. Getting clarification may be good though :)
Because "connect" as an input field is necessary (they behave differently) it should be tracked in my opinion. Without it being in the response I just do not see a direct way to fetch the value, this is why I mapped the application field. This is actually set in one case and not in the other.
Cool, thanks, I'll merge but only release asap! thanks folks!
According to https://stripe.com/docs/api/webhook_endpoints/ cannot be set or read directly, even though the stripe-go library seems to suggest otherwise. Trying to update it leads to the following error: Error: {"code":"parameter_unknown","status":400,"message":"Received unknown parameter: connect","param":"connect","request_id":"...","type":"invalid_request_error"} Therefore I added the ForceNew
As the connect field is not in the response it has been always set to false. It seems reasonable to deduce the current status from the field application.