-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retrieving shared secret from external_*_url #10
Comments
Hi @robbertstevens I will take a look! |
Awesome thanks 🙏 |
Hi @robbertstevens Looks like we never added shared_secret as a field. It is only returned from the GET endpoint, not the POST, so I think this was an oversight. Its not a bug, just a missing feature. If you want you can try picking it up (it should involve adding the field as computed to If I have some time I can also take a look, but that might be at a later stage |
@demeyerthom I can have a go (pun intented) at it tomorrow. No promises though! |
@demeyerthom we did some digging and the open api spec that is used for the commercelayer sdk doesn't have the shared secret. Because of that it doesn't come back in the types of the I couldn't get it to be put in the We notified the folk at commercelayer that the api spec is missing the secret. So I think first that has to be updated, then the sdk has to be updated and then the secret value can be added to the terraform provider. |
@robbertstevens Once they have, we can update the sdk no problem. An alternative would be to do a GET on the resource immediately after creation, as I think it is part of the GET response body |
@demeyerthom I've updated the commercelayer sdk |
@robbertstevens merged it back to main. I will wait with a release for your fix |
Hi @demeyerthom I've used your suggestion to do a GET on the market after creation since the CL OpenApi spec has been updated but it still doesn't include the shared_secret as part of the POST/markets response: #15 |
Check, I will review it! |
Describe the bug
I might be overlooking it, but when I add an
external_order_validation_url
I do not have a way to retrieve the shared secret.Any idea how to do this? Or is this a bug?
The text was updated successfully, but these errors were encountered: