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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public java.util.List<String> getLocaleProjection() {
122122
}
123123

124124
/**
125-
* <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>
125+
* <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>
126126
*/
127127

128128
public String getStoreProjection() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoring.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import jakarta.validation.constraints.NotNull;
2525

2626
/**
27-
* <p>A single ProductTailoring representation contains the <em>current</em> and the <em>staged</em> representation of its product data tailored per Store.</p>
27+
* <p>A single ProductTailoring representation contains the <em>current</em> and the <em>staged</em> representation of its product information tailored per Store.</p>
2828
*
2929
* <hr>
3030
* Example to create an instance using the builder pattern
@@ -124,7 +124,7 @@ public interface ProductTailoring extends BaseResource {
124124
public ProductReference getProduct();
125125

126126
/**
127-
* <p><code>true</code> if the ProductTailoring is published.</p>
127+
* <p>If <code>true</code>, the tailored information contained in the <code>current</code> ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If <code>false</code>, only the original information contained in the ProductData is provided.</p>
128128
* @return published
129129
*/
130130
@NotNull
@@ -229,7 +229,7 @@ public interface ProductTailoring extends BaseResource {
229229
public void setProduct(final ProductReference product);
230230

231231
/**
232-
* <p><code>true</code> if the ProductTailoring is published.</p>
232+
* <p>If <code>true</code>, the tailored information contained in the <code>current</code> ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If <code>false</code>, only the original information contained in the ProductData is provided.</p>
233233
* @param published value to be set
234234
*/
235235

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public ProductTailoringBuilder product(final com.commercetools.api.models.produc
262262
}
263263

264264
/**
265-
* <p><code>true</code> if the ProductTailoring is published.</p>
265+
* <p>If <code>true</code>, the tailored information contained in the <code>current</code> ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If <code>false</code>, only the original information contained in the ProductData is provided.</p>
266266
* @param published value to be set
267267
* @return Builder
268268
*/
@@ -509,7 +509,7 @@ public com.commercetools.api.models.product.ProductReference getProduct() {
509509
}
510510

511511
/**
512-
* <p><code>true</code> if the ProductTailoring is published.</p>
512+
* <p>If <code>true</code>, the tailored information contained in the <code>current</code> ProductTailoringData is provided when retrieving the ProductProjection in Store. For information not part of the ProductTailoringData, the original information contained in the ProductData is provided. If <code>false</code>, only the original information contained in the ProductData is provided.</p>
513513
* @return published
514514
*/
515515

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import jakarta.validation.Valid;
1818

1919
/**
20-
* <p>Contains all the tailored data of a Product.</p>
20+
* <p>Contains all the tailored information of a Product.</p>
2121
*
2222
* <hr>
2323
* Example to create an instance using the builder pattern

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDataImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.apache.commons.lang3.builder.ToStringStyle;
1818

1919
/**
20-
* <p>Contains all the tailored data of a Product.</p>
20+
* <p>Contains all the tailored information of a Product.</p>
2121
*/
2222
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2323
public class ProductTailoringDataImpl implements ProductTailoringData, ModelBase {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraft.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import jakarta.validation.constraints.NotNull;
2121

2222
/**
23-
* <p>Contains all the tailored data of a Product.</p>
23+
* <p>Contains the information to be tailored for a Product.</p>
2424
*
2525
* <hr>
2626
* Example to create an instance using the builder pattern
@@ -112,7 +112,7 @@ public interface ProductTailoringDraft extends io.vrap.rmf.base.client.Draft<Pro
112112
public LocalizedString getSlug();
113113

114114
/**
115-
* <p>If <code>true</code>, the ProductTailoring is published immediately.</p>
115+
* <p>Set to <code>true</code> to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.</p>
116116
* @return publish
117117
*/
118118

@@ -191,7 +191,7 @@ public interface ProductTailoringDraft extends io.vrap.rmf.base.client.Draft<Pro
191191
public void setSlug(final LocalizedString slug);
192192

193193
/**
194-
* <p>If <code>true</code>, the ProductTailoring is published immediately.</p>
194+
* <p>Set to <code>true</code> to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.</p>
195195
* @param publish value to be set
196196
*/
197197

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_tailoring/ProductTailoringDraftBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public ProductTailoringDraftBuilder slug(@Nullable final com.commercetools.api.m
354354
}
355355

356356
/**
357-
* <p>If <code>true</code>, the ProductTailoring is published immediately.</p>
357+
* <p>Set to <code>true</code> to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.</p>
358358
* @param publish value to be set
359359
* @return Builder
360360
*/
@@ -548,7 +548,7 @@ public com.commercetools.api.models.common.LocalizedString getSlug() {
548548
}
549549

550550
/**
551-
* <p>If <code>true</code>, the ProductTailoring is published immediately.</p>
551+
* <p>Set to <code>true</code> to publish the ProductTailoring immediately. Otherwise, the tailored product information is just staged.</p>
552552
* @return publish
553553
*/
554554

0 commit comments

Comments
 (0)