Skip to content
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

feat: add shared_secret to market resource #15

Closed
wants to merge 2 commits into from

Conversation

Bart-Kuipers
Copy link

Fixes #10

ENHANCEMENTS

  • Adds the shared_secret to the market resource on create and read.

Adding the shared_secret on create requires refetching the market after it is created. The CommerceLayer api does return the shared_secret field after creating, but the OpenApi spec does not list it in the response type of the POST/markets call.

@demeyerthom
Copy link
Member

@Bart-Kuipers had to make a few adjustments and generated docs, so I took over your branch: #16.

I was also inspired to do it a bit differently. I had forgotten that this SDK also returns the response object, so we are still getting the shared secret as part of the body. I deserialize that to fill the secret, which reduces the amount of calls ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

retrieving shared secret from external_*_url
2 participants