Skip to content

Commit fe1e74a

Browse files
committed
build(codegen): updating SDK
1 parent 5a0614a commit fe1e74a

File tree

63 files changed

+3587
-51
lines changed

Some content is hidden

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

63 files changed

+3587
-51
lines changed

changes.md

+27
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,30 @@
1616
- added method `apiRoot.withProjectKey().channels().withKey().delete()`
1717
</details>
1818

19+
20+
<details>
21+
<summary>Added Type(s)</summary>
22+
23+
- added type `CartDiscountPatternTarget`
24+
- added type `CountOnCustomLineItemUnits`
25+
- added type `CountOnLineItemUnits`
26+
- added type `PatternComponent`
27+
</details>
28+
29+
30+
<details>
31+
<summary>Added Property(s)</summary>
32+
33+
- added property `applicationMode` to type `CartDiscountValueFixed`
34+
- added property `applicationMode` to type `CartDiscountValueFixedDraft`
35+
</details>
36+
37+
**History changes**
38+
39+
<details>
40+
<summary>Added Type(s)</summary>
41+
42+
- added type `ChangeTargetPatternChangeValue`
43+
- added type `PatternComponent`
44+
</details>
45+

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

+79
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,23 @@ type CartDiscountLimitsProjection {
18271827
totalActiveWithoutDiscountCodes: CartDiscountLimitWithCurrent!
18281828
}
18291829

1830+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1831+
type CartDiscountPatternTarget implements CartDiscountTarget {
1832+
triggerPattern: [PatternComponent!]!
1833+
targetPattern: [PatternComponent!]!
1834+
maxOccurrence: Int
1835+
selectionMode: SelectionMode!
1836+
type: String!
1837+
}
1838+
1839+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1840+
input CartDiscountPatternTargetInput {
1841+
triggerPattern: [PatternComponentInput!]!
1842+
targetPattern: [PatternComponentInput!]!
1843+
maxOccurrence: Int
1844+
selectionMode: SelectionMode
1845+
}
1846+
18301847
"Fields to access cartDiscounts. Includes direct access to a single cartDiscount and searching for cartDiscounts."
18311848
interface CartDiscountQueryInterface {
18321849
cartDiscount(
@@ -1875,6 +1892,9 @@ input CartDiscountTargetInput {
18751892
multiBuyLineItems: MultiBuyLineItemsTargetInput
18761893
multiBuyCustomLineItems: MultiBuyCustomLineItemsTargetInput
18771894
totalPrice: CartDiscountTotalPriceTargetInput
1895+
1896+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1897+
pattern: CartDiscountPatternTargetInput
18781898
}
18791899

18801900
type CartDiscountTotalPriceTarget implements CartDiscountTarget {
@@ -1921,11 +1941,13 @@ input CartDiscountValueBaseMoneyInput {
19211941
centAmount: Long
19221942
}
19231943

1944+
19241945
input CartDiscountValueInput {
19251946
relative: RelativeDiscountValueInput
19261947
absolute: AbsoluteDiscountValueInput
19271948
absoluteCart: AbsoluteCartDiscountValueInput
19281949
fixed: FixedPriceDiscountValueInput
1950+
fixedCart: FixedPriceCartDiscountValueInput
19291951
giftLineItem: GiftLineItemValueInput
19301952
}
19311953

@@ -3063,6 +3085,41 @@ input ConfluentCloudDestinationInput {
30633085
key: String
30643086
}
30653087

3088+
3089+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3090+
type CountOnCustomLineItemUnits implements PatternComponent {
3091+
predicate: String!
3092+
minCount: Int
3093+
maxCount: Int
3094+
excludeCount: Int
3095+
type: String!
3096+
}
3097+
3098+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3099+
input CountOnCustomLineItemUnitsInput {
3100+
predicate: String!
3101+
minCount: Int = 1
3102+
maxCount: Int
3103+
excludeCount: Int
3104+
}
3105+
3106+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3107+
type CountOnLineItemUnits implements PatternComponent {
3108+
predicate: String!
3109+
minCount: Int
3110+
maxCount: Int
3111+
excludeCount: Int
3112+
type: String!
3113+
}
3114+
3115+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3116+
input CountOnLineItemUnitsInput {
3117+
predicate: String!
3118+
minCount: Int = 1
3119+
maxCount: Int
3120+
excludeCount: Int
3121+
}
3122+
30663123
"[ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code."
30673124
scalar Country
30683125

@@ -4447,6 +4504,17 @@ input FieldTypeSetTypeDraft {
44474504
elementType: FieldTypeSetElementTypeDraft!
44484505
}
44494506

4507+
type FixedPriceCartDiscountValue implements CartDiscountValue {
4508+
type: String!
4509+
money: [BaseMoney!]!
4510+
applicationMode: DiscountApplicationMode!
4511+
}
4512+
4513+
input FixedPriceCartDiscountValueInput {
4514+
money: [CartDiscountValueBaseMoneyInput!]!
4515+
applicationMode: DiscountApplicationMode!
4516+
}
4517+
44504518
type FixedPriceDiscountValue implements CartDiscountValue {
44514519
type: String!
44524520
money: [BaseMoney!]!
@@ -7283,6 +7351,17 @@ type ParcelTrackingDataUpdated implements MessagePayload & OrderMessagePayload {
72837351
type: String!
72847352
}
72857353

7354+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
7355+
interface PatternComponent {
7356+
type: String!
7357+
}
7358+
7359+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
7360+
input PatternComponentInput {
7361+
CountOnLineItemUnits: CountOnLineItemUnitsInput
7362+
CountOnCustomLineItemUnits: CountOnCustomLineItemUnitsInput
7363+
}
7364+
72867365
"""
72877366
Payments hold information about the current state of receiving and/or refunding money.
72887367
[documentation](https://docs.commercetools.com/api/projects/payments)

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddCustomLineItemAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public interface CartAddCustomLineItemAction
123123

124124
/**
125125
* <ul>
126-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
126+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
127127
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
128128
* </ul>
129129
* @return priceMode
@@ -198,7 +198,7 @@ public interface CartAddCustomLineItemAction
198198

199199
/**
200200
* <ul>
201-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
201+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
202202
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
203203
* </ul>
204204
* @param priceMode value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddCustomLineItemActionBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public CartAddCustomLineItemActionBuilder custom(
310310

311311
/**
312312
* <ul>
313-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
313+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
314314
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
315315
* </ul>
316316
* @param priceMode value to be set
@@ -413,7 +413,7 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
413413

414414
/**
415415
* <ul>
416-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
416+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
417417
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
418418
* </ul>
419419
* @return priceMode

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartAddCustomLineItemActionImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
162162

163163
/**
164164
* <ul>
165-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
165+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
166166
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
167167
* </ul>
168168
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItem.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public interface CustomLineItem extends com.commercetools.api.models.Customizabl
190190
public ItemShippingDetails getShippingDetails();
191191

192192
/**
193-
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</p>
193+
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</p>
194194
* @return priceMode
195195
*/
196196
@NotNull
@@ -347,7 +347,7 @@ public void setDiscountedPricePerQuantity(
347347
public void setShippingDetails(final ItemShippingDetails shippingDetails);
348348

349349
/**
350-
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</p>
350+
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</p>
351351
* @param priceMode value to be set
352352
*/
353353

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public CustomLineItemBuilder shippingDetails(
762762
}
763763

764764
/**
765-
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</p>
765+
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</p>
766766
* @param priceMode value to be set
767767
* @return Builder
768768
*/
@@ -927,7 +927,7 @@ public com.commercetools.api.models.cart.ItemShippingDetails getShippingDetails(
927927
}
928928

929929
/**
930-
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</p>
930+
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</p>
931931
* @return priceMode
932932
*/
933933

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemDraft.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public interface CustomLineItemDraft extends com.commercetools.api.models.Custom
115115

116116
/**
117117
* <ul>
118-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
118+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
119119
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
120120
* </ul>
121121
* @return priceMode
@@ -189,7 +189,7 @@ public interface CustomLineItemDraft extends com.commercetools.api.models.Custom
189189

190190
/**
191191
* <ul>
192-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
192+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
193193
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
194194
* </ul>
195195
* @param priceMode value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemDraftBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public CustomLineItemDraftBuilder shippingDetails(
307307

308308
/**
309309
* <ul>
310-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
310+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
311311
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
312312
* </ul>
313313
* @param priceMode value to be set
@@ -409,7 +409,7 @@ public com.commercetools.api.models.cart.ItemShippingDetailsDraft getShippingDet
409409

410410
/**
411411
* <ul>
412-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
412+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
413413
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
414414
* </ul>
415415
* @return priceMode

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemDraftImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public com.commercetools.api.models.cart.ItemShippingDetailsDraft getShippingDet
147147

148148
/**
149149
* <ul>
150-
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
150+
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
151151
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
152152
* </ul>
153153
*/

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public com.commercetools.api.models.cart.ItemShippingDetails getShippingDetails(
233233
}
234234

235235
/**
236-
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</p>
236+
* <p>Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</p>
237237
*/
238238

239239
public com.commercetools.api.models.cart.CustomLineItemPriceMode getPriceMode() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CustomLineItemPriceMode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface CustomLineItemPriceMode extends JsonEnum {
2121
<p>This is the default mode for backwards compatibility.</p> */
2222
CustomLineItemPriceMode STANDARD = CustomLineItemPriceModeEnum.STANDARD;
2323
/**
24-
<p>Deactivates application of Cart Discounts for the Custom Line Item, despite a matching CartDiscountCustomLineItemsTarget and MultiBuyCustomLineItemsTarget.</p> */
24+
<p>Deactivates application of Cart Discounts for the Custom Line Item despite a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget.</p> */
2525
CustomLineItemPriceMode EXTERNAL = CustomLineItemPriceModeEnum.EXTERNAL;
2626

2727
/**

0 commit comments

Comments
 (0)