Skip to content

Commit 576f9af

Browse files
committed
build(codegen): updating SDK
1 parent 151cd1b commit 576f9af

22 files changed

+114
-29
lines changed

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/**
2323
* <p>Gets the current or staged representation of a Product by its ID in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory.</p>
2424
* <p>If ProductSelection is used, it affects the availability of the Product in the specified Store.</p>
25+
* <p>If a ProductTailoring exists for the Product with the given <code>id</code> and the given Store, this endpoint returns the ProductProjection with tailored data.</p>
2526
* <p>When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
2627
*
2728
* <hr>
@@ -41,7 +42,7 @@
4142
public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends
4243
TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet, com.commercetools.api.models.product.ProductProjection>
4344
implements
44-
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
45+
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4546
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4647
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4748
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/**
2323
* <p>Gets the current or staged representation of a Product by its key in the specified Store. If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, they are used for projections based on locale, price, and inventory.</p>
2424
* <p>If ProductSelection is used, it affects the availability of the Product in the specified Store.</p>
25+
* <p>If a ProductTailoring exists for the Product with the given <code>key</code> and the given Store, this endpoint returns the ProductProjection with tailored data.</p>
2526
* <p>When used with an API Client that has the <code>view_published_products:{projectKey}</code> scope, this endpoint only returns published (current) Product Projections.</p>
2627
*
2728
* <hr>
@@ -41,7 +42,7 @@
4142
public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet extends
4243
TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet, com.commercetools.api.models.product.ProductProjection>
4344
implements
44-
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
45+
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4546
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4647
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4748
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ByProjectKeyProductProjectionsByIDGet extends
4141
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyProductProjectionsByIDGet>,
4242
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyProductProjectionsByIDGet>,
4343
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyProductProjectionsByIDGet>,
44-
com.commercetools.api.client.StoreprojectingTrait<ByProjectKeyProductProjectionsByIDGet>,
44+
com.commercetools.api.client.StoreprojectingtailoringTrait<ByProjectKeyProductProjectionsByIDGet>,
4545
com.commercetools.api.client.ExpandableTrait<ByProjectKeyProductProjectionsByIDGet>,
4646
com.commercetools.api.client.ErrorableTrait<ByProjectKeyProductProjectionsByIDGet>,
4747
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyProductProjectionsByIDGet> {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ByProjectKeyProductProjectionsGet extends
4040
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyProductProjectionsGet>,
4141
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyProductProjectionsGet>,
4242
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyProductProjectionsGet>,
43-
com.commercetools.api.client.StoreprojectingTrait<ByProjectKeyProductProjectionsGet>,
43+
com.commercetools.api.client.StoreprojectingtailoringTrait<ByProjectKeyProductProjectionsGet>,
4444
com.commercetools.api.client.ExpandableTrait<ByProjectKeyProductProjectionsGet>,
4545
com.commercetools.api.client.SortableTrait<ByProjectKeyProductProjectionsGet>,
4646
com.commercetools.api.client.PagingTrait<ByProjectKeyProductProjectionsGet>,

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ByProjectKeyProductProjectionsKeyByKeyGet extends
4141
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
4242
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
4343
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
44-
com.commercetools.api.client.StoreprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
44+
com.commercetools.api.client.StoreprojectingtailoringTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
4545
com.commercetools.api.client.ExpandableTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
4646
com.commercetools.api.client.ErrorableTrait<ByProjectKeyProductProjectionsKeyByKeyGet>,
4747
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyProductProjectionsKeyByKeyGet> {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSearchGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ByProjectKeyProductProjectionsSearchGet extends
4343
com.commercetools.api.client.ProjectionselectingTrait<ByProjectKeyProductProjectionsSearchGet>,
4444
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyProductProjectionsSearchGet>,
4545
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyProductProjectionsSearchGet>,
46-
com.commercetools.api.client.StoreprojectingTrait<ByProjectKeyProductProjectionsSearchGet>,
46+
com.commercetools.api.client.StoreprojectingtailoringTrait<ByProjectKeyProductProjectionsSearchGet>,
4747
com.commercetools.api.client.ExpandableTrait<ByProjectKeyProductProjectionsSearchGet>,
4848
com.commercetools.api.client.ErrorableTrait<ByProjectKeyProductProjectionsSearchGet>,
4949
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyProductProjectionsSearchGet> {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import java.util.List;
5+
6+
import io.vrap.rmf.base.client.utils.Generated;
7+
8+
/**
9+
* ProjectionselectingtailoringTrait
10+
* @param <T> type of extending interface
11+
*/
12+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
13+
public interface ProjectionselectingtailoringTrait<T extends ProjectionselectingtailoringTrait<T>> {
14+
List<String> getStaged();
15+
16+
/**
17+
* set staged with the specificied value
18+
* @param staged value to be set
19+
* @param <TValue> value type
20+
* @return ProjectionselectingtailoringTrait
21+
*/
22+
<TValue> ProjectionselectingtailoringTrait<T> withStaged(final TValue staged);
23+
24+
/**
25+
* add additional staged query parameter
26+
* @param staged value to be added
27+
* @param <TValue> value type
28+
* @return ProjectionselectingtailoringTrait
29+
*/
30+
<TValue> ProjectionselectingtailoringTrait<T> addStaged(final TValue staged);
31+
32+
default ProjectionselectingtailoringTrait<T> asProjectionselectingtailoringTrait() {
33+
return this;
34+
}
35+
36+
@SuppressWarnings("unchecked")
37+
default T asProjectionselectingtailoringTraitToBaseType() {
38+
return (T) this;
39+
}
40+
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import java.util.List;
5+
6+
import io.vrap.rmf.base.client.utils.Generated;
7+
8+
/**
9+
* StoreprojectingtailoringTrait
10+
* @param <T> type of extending interface
11+
*/
12+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
13+
public interface StoreprojectingtailoringTrait<T extends StoreprojectingtailoringTrait<T>> {
14+
List<String> getStoreProjection();
15+
16+
/**
17+
* set storeProjection with the specificied value
18+
* @param storeProjection value to be set
19+
* @param <TValue> value type
20+
* @return StoreprojectingtailoringTrait
21+
*/
22+
<TValue> StoreprojectingtailoringTrait<T> withStoreProjection(final TValue storeProjection);
23+
24+
/**
25+
* add additional storeProjection query parameter
26+
* @param storeProjection value to be added
27+
* @param <TValue> value type
28+
* @return StoreprojectingtailoringTrait
29+
*/
30+
<TValue> StoreprojectingtailoringTrait<T> addStoreProjection(final TValue storeProjection);
31+
32+
default StoreprojectingtailoringTrait<T> asStoreprojectingtailoringTrait() {
33+
return this;
34+
}
35+
36+
@SuppressWarnings("unchecked")
37+
default T asStoreprojectingtailoringTraitToBaseType() {
38+
return (T) this;
39+
}
40+
41+
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public interface ProductSearchProjectionParams {
8585
public List<String> getLocaleProjection();
8686

8787
/**
88-
* <p><code>key</code> of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.</p>
88+
* <p><code>key</code> of an existing Store. If the Store has defined <code>languages</code>, <code>countries</code>, <code>distributionChannels</code>, or <code>supplyChannels</code>, they are used for projections based on locale, price, and inventory. For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account. Product Tailoring modifies the product information returned in API responses, but evaluating query expressions is restricted to the original product information.</p>
8989
* @return storeProjection
9090
*/
9191

@@ -158,7 +158,7 @@ public interface ProductSearchProjectionParams {
158158
public void setLocaleProjection(final List<String> localeProjection);
159159

160160
/**
161-
* <p><code>key</code> of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.</p>
161+
* <p><code>key</code> of an existing Store. If the Store has defined <code>languages</code>, <code>countries</code>, <code>distributionChannels</code>, or <code>supplyChannels</code>, they are used for projections based on locale, price, and inventory. For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account. Product Tailoring modifies the product information returned in API responses, but evaluating query expressions is restricted to the original product information.</p>
162162
* @param storeProjection value to be set
163163
*/
164164

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_search/ProductSearchProjectionParamsBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public ProductSearchProjectionParamsBuilder plusLocaleProjection(@Nullable final
175175
}
176176

177177
/**
178-
* <p><code>key</code> of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.</p>
178+
* <p><code>key</code> of an existing Store. If the Store has defined <code>languages</code>, <code>countries</code>, <code>distributionChannels</code>, or <code>supplyChannels</code>, they are used for projections based on locale, price, and inventory. For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account. Product Tailoring modifies the product information returned in API responses, but evaluating query expressions is restricted to the original product information.</p>
179179
* @param storeProjection value to be set
180180
* @return Builder
181181
*/
@@ -256,7 +256,7 @@ public java.util.List<String> getLocaleProjection() {
256256
}
257257

258258
/**
259-
* <p><code>key</code> of an existing Store. If the Store has defined some languages, countries, distribution or supply Channels, they are used for projections based on locale, price, and inventory. If the Store has defined Product Selections or Product Tailoring, they have no effect on the results of this query.</p>
259+
* <p><code>key</code> of an existing Store. If the Store has defined <code>languages</code>, <code>countries</code>, <code>distributionChannels</code>, or <code>supplyChannels</code>, they are used for projections based on locale, price, and inventory. For Projects with active Product Selections, the API does not take the availability of the Product in the specified Store into account. Product Tailoring modifies the product information returned in API responses, but evaluating query expressions is restricted to the original product information.</p>
260260
* @return storeProjection
261261
*/
262262

0 commit comments

Comments
 (0)