Skip to content

Commit 57f1764

Browse files
committed
build(codegen): updating SDK
1 parent 0ef1a72 commit 57f1764

File tree

40 files changed

+4356
-43
lines changed

40 files changed

+4356
-43
lines changed

changes.md

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,9 @@
33
<details>
44
<summary>Added Type(s)</summary>
55

6-
- added type `CartDiscountSetRecurringOrderScopeAction`
7-
- added type `CartLock`
8-
- added type `FreezeStrategy`
9-
- added type `CartLockCartAction`
10-
- added type `CartSetPurchaseOrderNumberAction`
11-
- added type `CartUnlockCartAction`
12-
- added type `CartPurchaseOrderNumberSetMessage`
13-
- added type `CartPurchaseOrderNumberSetMessagePayload`
14-
- added type `AnyOrder`
15-
- added type `AnyOrderDraft`
16-
- added type `ApplicableRecurrencePolicies`
17-
- added type `ApplicableRecurrencePoliciesDraft`
18-
- added type `NonRecurringOrdersOnly`
19-
- added type `NonRecurringOrdersOnlyDraft`
20-
- added type `RecurringOrderScope`
21-
- added type `RecurringOrderScopeDraft`
22-
- added type `RecurringOrdersOnly`
23-
- added type `RecurringOrdersOnlyDraft`
24-
</details>
25-
26-
27-
<details>
28-
<summary>Required Property(s)</summary>
29-
30-
- :warning: changed property `deleteDaysAfterLastModification` of type `CartsConfiguration` to be required
31-
- :warning: changed property `deleteDaysAfterLastModification` of type `ShoppingListsConfiguration` to be required
32-
</details>
33-
34-
35-
<details>
36-
<summary>Added Property(s)</summary>
37-
38-
- added property `recurringOrderScope` to type `CartDiscount`
39-
- added property `recurringOrderScope` to type `CartDiscountDraft`
40-
- added property `freezeStrategy` to type `Cart`
41-
- added property `lock` to type `Cart`
42-
- added property `purchaseOrderNumber` to type `Cart`
43-
- added property `purchaseOrderNumber` to type `CartDraft`
44-
- added property `strategy` to type `CartFreezeCartAction`
6+
- added type `ExactLockConflictError`
7+
- added type `ValidityLockConflictError`
8+
- added type `GraphQLExactLockConflictError`
9+
- added type `GraphQLValidityLockConflictError`
4510
</details>
4611

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
*
23+
* <p>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
*
24+
* <p>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</p>
2525
*
2626
* <hr>
2727
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.apache.commons.lang3.builder.HashCodeBuilder;
2121

2222
/**
23-
*
23+
* <p>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</p>
2424
*
2525
* <hr>
2626
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.apache.commons.lang3.builder.HashCodeBuilder;
2222

2323
/**
24-
*
24+
* <p>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</p>
2525
*
2626
* <hr>
2727
* <div class=code-example>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* <ul>
2525
* <li>If the Standalone Price has the same price scope as an existing Standalone Price, a <a href="https://docs.commercetools.com/apis/ctp:api:type:DuplicateStandalonePriceScopeError" rel="nofollow">DuplicateStandalonePriceScope</a> error is returned.</li>
2626
* <li>If the Standalone Price has overlapping validity periods within the same price scope, a <a href="https://docs.commercetools.com/apis/ctp:api:type:OverlappingStandalonePriceValidityError" rel="nofollow">OverlappingStandalonePriceValidity</a> error is returned. A Price without validity period does not conflict with a Price defined for a time period.</li>
27+
* <li>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</li>
2728
* </ul>
2829
*
2930
* <hr>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* <ul>
2626
* <li>If the Standalone Price has the same price scope as an existing Standalone Price, a <a href="https://docs.commercetools.com/apis/ctp:api:type:DuplicateStandalonePriceScopeError" rel="nofollow">DuplicateStandalonePriceScope</a> error is returned.</li>
2727
* <li>If the Standalone Price has overlapping validity periods within the same price scope, a <a href="https://docs.commercetools.com/apis/ctp:api:type:OverlappingStandalonePriceValidityError" rel="nofollow">OverlappingStandalonePriceValidity</a> error is returned. A Price without validity period does not conflict with a Price defined for a time period.</li>
28+
* <li>If a modification is already in progress for the exact combination of SKU and price scope fields, an <a href="https://docs.commercetools.com/apis/ctp:api:type:ExactLockConflictError" rel="nofollow">ExactLockConflict</a> or <a href="https://docs.commercetools.com/apis/ctp:api:type:ValidityLockConflictError" rel="nofollow">ValidityLockConflict</a> error is returned.</li>
2829
* </ul>
2930
*
3031
* <hr>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObject.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,14 @@ public static com.commercetools.api.models.error.EnumValuesMustMatchErrorBuilder
287287
return com.commercetools.api.models.error.EnumValuesMustMatchErrorBuilder.of();
288288
}
289289

290+
/**
291+
* builder for exactLockConflict subtype
292+
* @return builder
293+
*/
294+
public static com.commercetools.api.models.error.ExactLockConflictErrorBuilder exactLockConflictBuilder() {
295+
return com.commercetools.api.models.error.ExactLockConflictErrorBuilder.of();
296+
}
297+
290298
/**
291299
* builder for expiredCustomerEmailToken subtype
292300
* @return builder
@@ -743,6 +751,14 @@ public static com.commercetools.api.models.error.SyntaxErrorErrorBuilder syntaxE
743751
return com.commercetools.api.models.error.SyntaxErrorErrorBuilder.of();
744752
}
745753

754+
/**
755+
* builder for validityLockConflict subtype
756+
* @return builder
757+
*/
758+
public static com.commercetools.api.models.error.ValidityLockConflictErrorBuilder validityLockConflictBuilder() {
759+
return com.commercetools.api.models.error.ValidityLockConflictErrorBuilder.of();
760+
}
761+
746762
/**
747763
* accessor map function
748764
* @param <T> mapped type

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/ErrorObjectBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ public com.commercetools.api.models.error.EnumValuesMustMatchErrorBuilder enumVa
107107
return com.commercetools.api.models.error.EnumValuesMustMatchErrorBuilder.of();
108108
}
109109

110+
public com.commercetools.api.models.error.ExactLockConflictErrorBuilder exactLockConflictBuilder() {
111+
return com.commercetools.api.models.error.ExactLockConflictErrorBuilder.of();
112+
}
113+
110114
public com.commercetools.api.models.error.ExpiredCustomerEmailTokenErrorBuilder expiredCustomerEmailTokenBuilder() {
111115
return com.commercetools.api.models.error.ExpiredCustomerEmailTokenErrorBuilder.of();
112116
}
@@ -335,6 +339,10 @@ public com.commercetools.api.models.error.SyntaxErrorErrorBuilder syntaxErrorBui
335339
return com.commercetools.api.models.error.SyntaxErrorErrorBuilder.of();
336340
}
337341

342+
public com.commercetools.api.models.error.ValidityLockConflictErrorBuilder validityLockConflictBuilder() {
343+
return com.commercetools.api.models.error.ValidityLockConflictErrorBuilder.of();
344+
}
345+
338346
/**
339347
* factory method for an instance of ErrorObjectBuilder
340348
* @return builder

0 commit comments

Comments
 (0)