Skip to content

Commit 0e37672

Browse files
committed
build(codegen): updating SDK
1 parent 3f16753 commit 0e37672

File tree

11 files changed

+33
-87
lines changed

11 files changed

+33
-87
lines changed

changes.md

Lines changed: 4 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,17 @@
11
**Api changes**
22

3-
<details>
4-
<summary>Added Type(s)</summary>
5-
6-
- added type `ExpiredCustomerEmailTokenError`
7-
- added type `ExpiredCustomerPasswordTokenError`
8-
- added type `GraphQLExpiredCustomerEmailTokenError`
9-
- added type `GraphQLExpiredCustomerPasswordTokenError`
10-
- added type `CheckoutOrderCreationFailedEvent`
11-
- added type `CheckoutPaymentAuthorizationCancelledEvent`
12-
- added type `CheckoutPaymentAuthorizationFailedEvent`
13-
- added type `CheckoutPaymentAuthorizedEvent`
14-
- added type `CheckoutPaymentCancelAuthorizationFailedEvent`
15-
- added type `CheckoutPaymentChargeFailedEvent`
16-
- added type `CheckoutPaymentChargedEvent`
17-
- added type `CheckoutPaymentRefundFailedEvent`
18-
- added type `CheckoutPaymentRefundedEvent`
19-
- added type `CheckoutMessageOrderPayloadBaseData`
20-
- added type `CheckoutMessagePaymentsPayloadBaseData`
21-
</details>
22-
23-
24-
<details>
25-
<summary>Added Property(s)</summary>
26-
27-
- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken`
28-
- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken`
29-
- added property `invalidateOlderTokens` to type `CustomerToken`
30-
- added property `value` to type `CustomerEmailTokenCreatedMessage`
31-
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
32-
- added property `value` to type `CustomerPasswordTokenCreatedMessage`
33-
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage`
34-
- added property `value` to type `CustomerEmailTokenCreatedMessagePayload`
35-
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload`
36-
- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload`
37-
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload`
38-
</details>
39-
40-
41-
<details>
42-
<summary>Added Enum(s)</summary>
43-
44-
- added enum `checkout` to type `EventSubscriptionResourceTypeId`
45-
- added enum `CheckoutOrderCreationFailed` to type `EventType`
46-
- added enum `CheckoutPaymentAuthorizationCancelled` to type `EventType`
47-
- added enum `CheckoutPaymentAuthorizationFailed` to type `EventType`
48-
- added enum `CheckoutPaymentAuthorized` to type `EventType`
49-
- added enum `CheckoutPaymentCancelAuthorizationFailed` to type `EventType`
50-
- added enum `CheckoutPaymentCharged` to type `EventType`
51-
- added enum `CheckoutPaymentChargeFailed` to type `EventType`
52-
- added enum `CheckoutPaymentRefunded` to type `EventType`
53-
- added enum `CheckoutPaymentRefundFailed` to type `EventType`
54-
</details>
55-
56-
**Import changes**
57-
583
<details>
594
<summary>Removed Property(s)</summary>
605

61-
- :warning: removed property `/^[a-z]{2}(-[A-Z]{2})?$/` from type `SearchKeywords`
62-
- :warning: removed property `/^[a-z]{2}(-[A-Z]{2})?$/` from type `LocalizedString`
6+
- :warning: removed property `/[0-9].[0-9]*[1-9]/` from type `CategoryOrderHints`
7+
- :warning: removed property `//` from type `ProductVariantChannelAvailabilityMap`
638
</details>
649

6510

6611
<details>
6712
<summary>Added Property(s)</summary>
6813

69-
- added property `/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/` to type `SearchKeywords`
70-
- added property `/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/` to type `LocalizedString`
14+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `CategoryOrderHints`
15+
- added property `/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/` to type `ProductVariantChannelAvailabilityMap`
7116
</details>
7217

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHints.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
import jakarta.validation.constraints.NotNull;
1616

1717
/**
18-
* <p>JSON object where the key is a Category <code>id</code> and the value is an order hint. Allows controlling the order of Products and how they appear in Categories. Products with no order hint have an order score below <code>0</code>. Order hints are non-unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.</p>
18+
* <p>JSON object where the keys are Category <code>id</code>, and the values are order hint values: strings representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>. Order hints allow controlling the order of Products and how they appear in Categories. Products without order hints have an order score below <code>0</code>. Order hints are not unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.</p>
1919
*
2020
* <hr>
2121
* Example to create an instance using the builder pattern
2222
* <div class=code-example>
2323
* <pre><code class='java'>
2424
* CategoryOrderHints categoryOrderHints = CategoryOrderHints.builder()
25-
* ./[0-9].[0-9]*[1-9]/("{/[0-9].[0-9]*[1-9]/}")
25+
* ./^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/("{/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/}")
2626
* .build()
2727
* </code></pre>
2828
* </div>
@@ -32,15 +32,15 @@
3232
public interface CategoryOrderHints {
3333

3434
/**
35-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
35+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
3636
* @return map of the pattern property values
3737
*/
3838
@NotNull
3939
@JsonAnyGetter
4040
public Map<String, String> values();
4141

4242
/**
43-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
43+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
4444
* @param key property name
4545
* @param value property value
4646
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* <div class=code-example>
1414
* <pre><code class='java'>
1515
* CategoryOrderHints categoryOrderHints = CategoryOrderHints.builder()
16-
* ./[0-9].[0-9]*[1-9]/("{/[0-9].[0-9]*[1-9]/}")
16+
* ./^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/("{/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/}")
1717
* .build()
1818
* </code></pre>
1919
* </div>
@@ -24,7 +24,7 @@ public class CategoryOrderHintsBuilder implements Builder<CategoryOrderHints> {
2424
private Map<String, String> values = new HashMap<>();
2525

2626
/**
27-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
27+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
2828
* @param values properties to be set
2929
* @return Builder
3030
*/
@@ -35,7 +35,7 @@ public CategoryOrderHintsBuilder values(final Map<String, String> values) {
3535
}
3636

3737
/**
38-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
38+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
3939
* @param key property name
4040
* @param value property value
4141
* @return Builder
@@ -50,7 +50,7 @@ public CategoryOrderHintsBuilder addValue(final String key, final String value)
5050
}
5151

5252
/**
53-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
53+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
5454
* @return pattern properties
5555
*/
5656

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/CategoryOrderHintsImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.apache.commons.lang3.builder.ToStringStyle;
1919

2020
/**
21-
* <p>JSON object where the key is a Category <code>id</code> and the value is an order hint. Allows controlling the order of Products and how they appear in Categories. Products with no order hint have an order score below <code>0</code>. Order hints are non-unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.</p>
21+
* <p>JSON object where the keys are Category <code>id</code>, and the values are order hint values: strings representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>. Order hints allow controlling the order of Products and how they appear in Categories. Products without order hints have an order score below <code>0</code>. Order hints are not unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.</p>
2222
*/
2323
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2424
public class CategoryOrderHintsImpl implements CategoryOrderHints, ModelBase {
@@ -40,7 +40,7 @@ public CategoryOrderHintsImpl() {
4040
}
4141

4242
/**
43-
* <p>A string representing a number between 0 and 1 that must start with <code>0.</code> and cannot end with <code>0</code>.</p>
43+
* <p>A string representing a number between <code>0</code> and <code>1</code>, but not ending in <code>0</code>.</p>
4444
*/
4545

4646
public Map<String, String> values() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMap.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
import jakarta.validation.constraints.NotNull;
1717

1818
/**
19-
* <p>JSON object where the key is a supply Channel <code>id</code> and the value is the ProductVariantChannelAvailability of the InventoryEntry.</p>
19+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
2020
*
2121
* <hr>
2222
* Example to create an instance using the builder pattern
2323
* <div class=code-example>
2424
* <pre><code class='java'>
2525
* ProductVariantChannelAvailabilityMap productVariantChannelAvailabilityMap = ProductVariantChannelAvailabilityMap.builder()
26-
* .//(//Builder -> //Builder)
26+
* ./^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Builder -> /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Builder)
2727
* .build()
2828
* </code></pre>
2929
* </div>
@@ -33,7 +33,7 @@
3333
public interface ProductVariantChannelAvailabilityMap {
3434

3535
/**
36-
*
36+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
3737
* @return map of the pattern property values
3838
*/
3939
@NotNull
@@ -42,7 +42,7 @@ public interface ProductVariantChannelAvailabilityMap {
4242
public Map<String, ProductVariantChannelAvailability> values();
4343

4444
/**
45-
* set pattern property
45+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
4646
* @param key property name
4747
* @param value property value
4848
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* <div class=code-example>
1414
* <pre><code class='java'>
1515
* ProductVariantChannelAvailabilityMap productVariantChannelAvailabilityMap = ProductVariantChannelAvailabilityMap.builder()
16-
* .//(//Builder -> //Builder)
16+
* ./^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Builder -> /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Builder)
1717
* .build()
1818
* </code></pre>
1919
* </div>
@@ -24,7 +24,7 @@ public class ProductVariantChannelAvailabilityMapBuilder implements Builder<Prod
2424
private Map<String, com.commercetools.api.models.product.ProductVariantChannelAvailability> values = new HashMap<>();
2525

2626
/**
27-
* assign pattern properties to the builder
27+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
2828
* @param values properties to be set
2929
* @return Builder
3030
*/
@@ -36,7 +36,7 @@ public ProductVariantChannelAvailabilityMapBuilder values(
3636
}
3737

3838
/**
39-
* assign a pattern property to the builder
39+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
4040
* @param key property name
4141
* @param value property value
4242
* @return Builder
@@ -52,7 +52,7 @@ public ProductVariantChannelAvailabilityMapBuilder addValue(final String key,
5252
}
5353

5454
/**
55-
* values of pattern properties
55+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
5656
* @return pattern properties
5757
*/
5858

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantChannelAvailabilityMapImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.apache.commons.lang3.builder.ToStringStyle;
1919

2020
/**
21-
* <p>JSON object where the key is a supply Channel <code>id</code> and the value is the ProductVariantChannelAvailability of the InventoryEntry.</p>
21+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
2222
*/
2323
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2424
public class ProductVariantChannelAvailabilityMapImpl implements ProductVariantChannelAvailabilityMap, ModelBase {
@@ -41,7 +41,7 @@ public ProductVariantChannelAvailabilityMapImpl() {
4141
}
4242

4343
/**
44-
*
44+
* <p>JSON object where the keys are supply Channel <code>id</code>, and the values are ProductVariantChannelAvailability.</p>
4545
*/
4646

4747
public Map<String, com.commercetools.api.models.product.ProductVariantChannelAvailability> values() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywords.java

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

1818
/**
19-
* <p>Search keywords are JSON objects primarily used by Product Suggestions, but are also considered for a full text search. The keys are of type Locale, and the values are an array of SearchKeyword.</p>
19+
* <p>Although search keywords are primarily used by Product Suggestions, they are also considered for a full text search. The keys are of type Locale, and the values are an array of SearchKeyword.</p>
2020
*
2121
* <hr>
2222
* Example to create an instance using the builder pattern
@@ -33,7 +33,7 @@
3333
public interface SearchKeywords {
3434

3535
/**
36-
*
36+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
3737
* @return map of the pattern property values
3838
*/
3939
@NotNull
@@ -42,7 +42,7 @@ public interface SearchKeywords {
4242
public Map<String, List<SearchKeyword>> values();
4343

4444
/**
45-
* set pattern property
45+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
4646
* @param key property name
4747
* @param value property value
4848
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class SearchKeywordsBuilder implements Builder<SearchKeywords> {
2424
private Map<String, java.util.List<com.commercetools.api.models.product.SearchKeyword>> values = new HashMap<>();
2525

2626
/**
27-
* assign pattern properties to the builder
27+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
2828
* @param values properties to be set
2929
* @return Builder
3030
*/
@@ -36,7 +36,7 @@ public SearchKeywordsBuilder values(
3636
}
3737

3838
/**
39-
* assign a pattern property to the builder
39+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
4040
* @param key property name
4141
* @param value property value
4242
* @return Builder
@@ -52,7 +52,7 @@ public SearchKeywordsBuilder addValue(final String key,
5252
}
5353

5454
/**
55-
* values of pattern properties
55+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
5656
* @return pattern properties
5757
*/
5858

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/SearchKeywordsImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.apache.commons.lang3.builder.ToStringStyle;
1919

2020
/**
21-
* <p>Search keywords are JSON objects primarily used by Product Suggestions, but are also considered for a full text search. The keys are of type Locale, and the values are an array of SearchKeyword.</p>
21+
* <p>Although search keywords are primarily used by Product Suggestions, they are also considered for a full text search. The keys are of type Locale, and the values are an array of SearchKeyword.</p>
2222
*/
2323
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
2424
public class SearchKeywordsImpl implements SearchKeywords, ModelBase {
@@ -41,7 +41,7 @@ public SearchKeywordsImpl() {
4141
}
4242

4343
/**
44-
*
44+
* <p>Key-value pair where the keys are of type Locale and the values are an array of SearchKeyword.</p>
4545
*/
4646

4747
public Map<String, java.util.List<com.commercetools.api.models.product.SearchKeyword>> values() {

0 commit comments

Comments
 (0)