commercetools / commercetools-sdk-java-v2

The e-commerce SDK from commercetools for Java.
https://commercetools.github.io/commercetools-sdk-java-v2/javadoc/index.html
Apache License 2.0
34 stars 15 forks source link

commercetools-sdk-java-api-7.3.0 does not contain the standard classes #237

Closed andrei-ivanov closed 2 years ago

andrei-ivanov commented 2 years ago

The classes from https://github.com/commercetools/commercetools-sdk-java-v2/tree/main/commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/models/custom_object are not present in the jar, only the generated classes from https://github.com/commercetools/commercetools-sdk-java-v2/tree/main/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/custom_object

andrei-ivanov commented 2 years ago

Hmm, it seems those classes were added 5 days ago, so I assume they were not yet released 😀 I'm trying to understand how to use the API by searching for various classes, like CustomObject in github, which lead me to the integration tests and those use the new classes.

I hope the actual tutorials in the site can be updated to use the new API version, since they seem to use the old version

jenschude commented 2 years ago

Could you point me to were you found a tutorial with the old version? So that it can be directly updated

andrei-ivanov commented 2 years ago

I think all of the tutorials that have Java code are affected...

https://docs.commercetools.com/tutorials/nested-types https://docs.commercetools.com/tutorials/custom-types https://docs.commercetools.com/tutorials/custom-fields-prices https://docs.commercetools.com/tutorials/assets https://docs.commercetools.com/tutorials/review-ratings

andrei-ivanov commented 2 years ago

Also some white papers have examples using old APIs

andrei-ivanov commented 2 years ago

Should I create a separate ticket for the tutorials?

jenschude commented 2 years ago

The docs are maintained in a private repository. So it makes no sense to track these changes inside this one. :)

We will update them over time.