Skip to content

Commit 8faaeaa

Browse files
authored
Merge branch 'main' into hotfix-devx-714-fixing-release
2 parents 5c583b0 + b636787 commit 8faaeaa

212 files changed

Lines changed: 4419 additions & 711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

changes.md

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

6+
- added type `CartDiscountSetRecurringOrderScopeAction`
67
- added type `CartLock`
8+
- added type `FreezeStrategy`
79
- added type `CartLockCartAction`
810
- added type `CartSetPurchaseOrderNumberAction`
911
- added type `CartUnlockCartAction`
1012
- added type `CartPurchaseOrderNumberSetMessage`
1113
- 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`
1224
</details>
1325

1426

1527
<details>
1628
<summary>Added Property(s)</summary>
1729

30+
- added property `recurringOrderScope` to type `CartDiscount`
31+
- added property `recurringOrderScope` to type `CartDiscountDraft`
32+
- added property `freezeStrategy` to type `Cart`
1833
- added property `lock` to type `Cart`
1934
- added property `purchaseOrderNumber` to type `Cart`
2035
- added property `purchaseOrderNumber` to type `CartDraft`
36+
- added property `strategy` to type `CartFreezeCartAction`
2137
</details>
2238

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,26 @@ enum AnonymousCartSignInMode {
682682
UseAsNewActiveCustomerCart
683683
}
684684

685+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
686+
type AnyOrder implements RecurringOrderScope {
687+
type: RecurringOrderScopeType!
688+
}
689+
690+
input AnyOrderInput {
691+
dummy: String
692+
}
693+
694+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
695+
type ApplicableRecurrencePolicies implements RecurringOrderScope {
696+
recurrencePolicies: [RecurrencePolicy!]!
697+
type: RecurringOrderScopeType!
698+
recurrencePoliciesRef: [Reference!]!
699+
}
700+
701+
input ApplicableRecurrencePoliciesInput {
702+
recurrencePolicies: [ResourceIdentifierInput!]!
703+
}
704+
685705
type Applied implements OrderEditResult {
686706
excerptBeforeEdit: OrderExcerpt!
687707
excerptAfterEdit: OrderExcerpt!
@@ -1835,6 +1855,7 @@ type Cart implements Versioned & ReferenceExpandable {
18351855
shippingCustomFields: CustomFieldsType
18361856
discountTypeCombination: DiscountTypeCombination
18371857
cartState: CartState!
1858+
freezeStrategy: FreezeStrategy
18381859
key: String
18391860
lock: CartLock
18401861
custom: CustomFieldsType
@@ -1903,6 +1924,7 @@ type CartDiscount implements Versioned & ReferenceExpandable {
19031924
lastModifiedAt: DateTime!
19041925
createdBy: Initiator
19051926
lastModifiedBy: Initiator
1927+
recurringOrderScope: RecurringOrderScope!
19061928
}
19071929

19081930
type CartDiscountCreated implements MessagePayload {
@@ -1930,6 +1952,7 @@ input CartDiscountDraft {
19301952
key: String
19311953
stores: [ResourceIdentifierInput!]
19321954
discountGroup: ResourceIdentifierInput
1955+
recurringOrderScope: RecurringOrderScopeInput
19331956
}
19341957

19351958
type CartDiscountLimitWithCurrent implements LimitWithCurrent {
@@ -2035,6 +2058,7 @@ input CartDiscountUpdateAction {
20352058
setValidFromAndUntil: SetCartDiscountValidFromAndUntil
20362059
setValidUntil: SetCartDiscountValidUntil
20372060
setDiscountGroup: SetCartDiscountDiscountGroup
2061+
setRecurringOrderScope: SetCartDiscountRecurringOrderScope
20382062
}
20392063

20402064
interface CartDiscountValue {
@@ -4978,8 +5002,21 @@ input FixedPriceDiscountValueInput {
49785002
money: [CartDiscountValueBaseMoneyInput!]!
49795003
}
49805004

5005+
enum FreezeStrategy {
5006+
"""
5007+
More lenient version of a Cart freeze (See [Freeze a Cart](https://docs.commercetools.com/api/carts-orders-overview#freeze-a-cart) for details).
5008+
"""
5009+
SoftFreeze
5010+
5011+
"""
5012+
Stricter version of a Cart freeze (See [Freeze a Cart](https://docs.commercetools.com/api/carts-orders-overview#freeze-a-cart) for details).
5013+
"""
5014+
HardFreeze
5015+
}
5016+
49815017
input FreezeCart {
49825018
dummy: String
5019+
strategy: FreezeStrategy
49835020
}
49845021

49855022
interface Geometry {
@@ -7363,6 +7400,15 @@ type NestedAttributeDefinitionType implements AttributeDefinitionType {
73637400
name: String!
73647401
}
73657402

7403+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
7404+
type NonRecurringOrdersOnly implements RecurringOrderScope {
7405+
type: RecurringOrderScopeType!
7406+
}
7407+
7408+
input NonRecurringOrdersOnlyInput {
7409+
dummy: String
7410+
}
7411+
73667412
type NotProcessed implements OrderEditResult {
73677413
type: String!
73687414
}
@@ -11223,6 +11269,25 @@ type RecurringOrderScheduleSet implements MessagePayload {
1122311269
type: String!
1122411270
}
1122511271

11272+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
11273+
interface RecurringOrderScope {
11274+
type: RecurringOrderScopeType!
11275+
}
11276+
11277+
input RecurringOrderScopeInput {
11278+
AnyOrder: AnyOrderInput
11279+
RecurringOrdersOnly: RecurringOrdersOnlyInput
11280+
NonRecurringOrdersOnly: NonRecurringOrdersOnlyInput
11281+
ApplicableRecurrencePolicies: ApplicableRecurrencePoliciesInput
11282+
}
11283+
11284+
enum RecurringOrderScopeType {
11285+
AnyOrder
11286+
NonRecurringOrdersOnly
11287+
RecurringOrdersOnly
11288+
ApplicableRecurrencePolicies
11289+
}
11290+
1122611291
type RecurringOrderStartsAtSet implements MessagePayload {
1122711292
startsAt: DateTime!
1122811293
oldStartsAt: DateTime!
@@ -11271,6 +11336,15 @@ input RecurringOrderUpdateAction {
1127111336
transitionState: TransitionRecurringOrderState
1127211337
}
1127311338

11339+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
11340+
type RecurringOrdersOnly implements RecurringOrderScope {
11341+
type: RecurringOrderScopeType!
11342+
}
11343+
11344+
input RecurringOrdersOnlyInput {
11345+
dummy: String
11346+
}
11347+
1127411348
type Reference {
1127511349
typeId: String!
1127611350
id: String!
@@ -12168,13 +12242,18 @@ enum SearchFieldType {
1216812242

1216912243
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1217012244
input SearchFilterExpressionInput {
12245+
and: [SearchQueryInput!]
12246+
or: [SearchQueryInput!]
12247+
not: [SearchQueryInput!]
12248+
filter: [SearchQueryInput!]
1217112249
range: SearchQueryRangeExpressionInput
1217212250
fullText: SearchFullTextExpressionInput
1217312251
fullTextPrefix: SearchFullTextPrefixInput
1217412252
exists: SearchExistsInput
1217512253
prefix: SearchAnyValueExpressionInput
1217612254
wildcard: SearchAnyValueExpressionInput
1217712255
exact: SearchAnyValueExpressionInput
12256+
fuzzy: SearchFuzzyExpressionInput
1217812257
}
1217912258

1218012259
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
@@ -12615,6 +12694,10 @@ input SetCartDiscountKey {
1261512694
key: String
1261612695
}
1261712696

12697+
input SetCartDiscountRecurringOrderScope {
12698+
recurringOrderScope: RecurringOrderScopeInput!
12699+
}
12700+
1261812701
input SetCartDiscountStores {
1261912702
stores: [ResourceIdentifierInput!]
1262012703
}

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

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

1818
/**
19-
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information, see <span>Merge behavior</span>.</p>
19+
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see <span>Merge a Cart</span>.</p>
2020
*
2121
* <hr>
2222
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.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.HashCodeBuilder;
1818

1919
/**
20-
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information, see <span>Merge behavior</span>.</p>
20+
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see <span>Merge a Cart</span>.</p>
2121
*
2222
* <hr>
2323
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.</p>
2020
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceNotFoundError" rel="nofollow">ResourceNotFound</a> error is returned.</p>
21-
* <p>For more information, see <span>Merge behavior</span>.</p>
21+
* <p>For more information about merge mode behaviors, merge rules, and tax recalculation, see <span>Merge a Cart</span>.</p>
2222
*
2323
* <hr>
2424
* <div class=code-example>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* <p>Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.</p>
2121
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, a <a href="https://docs.commercetools.com/apis/ctp:api:type:ResourceNotFoundError" rel="nofollow">ResourceNotFound</a> error is returned.</p>
22-
* <p>For more information, see <span>Merge behavior</span>.</p>
22+
* <p>For more information about merge mode behaviors, merge rules, and tax recalculation, see <span>Merge a Cart</span>.</p>
2323
*
2424
* <hr>
2525
* <div class=code-example>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_rule/RuleRequester.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public interface RuleRequester {
3535

3636
/**
37-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
37+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
3838
* @return associateRole
3939
*/
4040
@NotNull
@@ -43,7 +43,7 @@ public interface RuleRequester {
4343
public AssociateRoleKeyReference getAssociateRole();
4444

4545
/**
46-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
46+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
4747
* @param associateRole value to be set
4848
*/
4949

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_rule/RuleRequesterBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class RuleRequesterBuilder implements Builder<RuleRequester> {
2525
private com.commercetools.api.models.associate_role.AssociateRoleKeyReference associateRole;
2626

2727
/**
28-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
28+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
2929
* @param builder function to build the associateRole value
3030
* @return Builder
3131
*/
@@ -39,7 +39,7 @@ public RuleRequesterBuilder associateRole(
3939
}
4040

4141
/**
42-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
42+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
4343
* @param builder function to build the associateRole value
4444
* @return Builder
4545
*/
@@ -52,7 +52,7 @@ public RuleRequesterBuilder withAssociateRole(
5252
}
5353

5454
/**
55-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
55+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
5656
* @param associateRole value to be set
5757
* @return Builder
5858
*/
@@ -64,7 +64,7 @@ public RuleRequesterBuilder associateRole(
6464
}
6565

6666
/**
67-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
67+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
6868
* @return associateRole
6969
*/
7070

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_rule/RuleRequesterDraft.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public interface RuleRequesterDraft extends io.vrap.rmf.base.client.Draft<RuleRequesterDraft> {
3535

3636
/**
37-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
37+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
3838
* @return associateRole
3939
*/
4040
@NotNull
@@ -43,7 +43,7 @@ public interface RuleRequesterDraft extends io.vrap.rmf.base.client.Draft<RuleRe
4343
public AssociateRoleResourceIdentifier getAssociateRole();
4444

4545
/**
46-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
46+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
4747
* @param associateRole value to be set
4848
*/
4949

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/approval_rule/RuleRequesterDraftBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class RuleRequesterDraftBuilder implements Builder<RuleRequesterDraft> {
2525
private com.commercetools.api.models.associate_role.AssociateRoleResourceIdentifier associateRole;
2626

2727
/**
28-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
28+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
2929
* @param builder function to build the associateRole value
3030
* @return Builder
3131
*/
@@ -39,7 +39,7 @@ public RuleRequesterDraftBuilder associateRole(
3939
}
4040

4141
/**
42-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
42+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
4343
* @param builder function to build the associateRole value
4444
* @return Builder
4545
*/
@@ -52,7 +52,7 @@ public RuleRequesterDraftBuilder withAssociateRole(
5252
}
5353

5454
/**
55-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
55+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
5656
* @param associateRole value to be set
5757
* @return Builder
5858
*/
@@ -64,7 +64,7 @@ public RuleRequesterDraftBuilder associateRole(
6464
}
6565

6666
/**
67-
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
67+
* <p>The <a href="https://docs.commercetools.com/apis/ctp:api:type:AssociateRole" rel="nofollow">Associate Role</a> that an <a href="https://docs.commercetools.com/apis/ctp:api:type:Associate" rel="nofollow">Associate</a> must hold for the Approval Rule to apply to the Orders they create.</p>
6868
* @return associateRole
6969
*/
7070

0 commit comments

Comments
 (0)