Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated SDKs #777

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,30 @@
- added method `apiRoot.withProjectKey().channels().withKey().delete()`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `CartDiscountPatternTarget`
- added type `CountOnCustomLineItemUnits`
- added type `CountOnLineItemUnits`
- added type `PatternComponent`
</details>


<details>
<summary>Added Property(s)</summary>

- added property `applicationMode` to type `CartDiscountValueFixed`
- added property `applicationMode` to type `CartDiscountValueFixedDraft`
</details>

**History changes**

<details>
<summary>Added Type(s)</summary>

- added type `ChangeTargetPatternChangeValue`
- added type `PatternComponent`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,23 @@ type CartDiscountLimitsProjection {
totalActiveWithoutDiscountCodes: CartDiscountLimitWithCurrent!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CartDiscountPatternTarget implements CartDiscountTarget {
triggerPattern: [PatternComponent!]!
targetPattern: [PatternComponent!]!
maxOccurrence: Int
selectionMode: SelectionMode!
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input CartDiscountPatternTargetInput {
triggerPattern: [PatternComponentInput!]!
targetPattern: [PatternComponentInput!]!
maxOccurrence: Int
selectionMode: SelectionMode
}

"Fields to access cartDiscounts. Includes direct access to a single cartDiscount and searching for cartDiscounts."
interface CartDiscountQueryInterface {
cartDiscount(
Expand Down Expand Up @@ -1875,6 +1892,9 @@ input CartDiscountTargetInput {
multiBuyLineItems: MultiBuyLineItemsTargetInput
multiBuyCustomLineItems: MultiBuyCustomLineItemsTargetInput
totalPrice: CartDiscountTotalPriceTargetInput

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
pattern: CartDiscountPatternTargetInput
}

type CartDiscountTotalPriceTarget implements CartDiscountTarget {
Expand Down Expand Up @@ -1921,11 +1941,13 @@ input CartDiscountValueBaseMoneyInput {
centAmount: Long
}


input CartDiscountValueInput {
relative: RelativeDiscountValueInput
absolute: AbsoluteDiscountValueInput
absoluteCart: AbsoluteCartDiscountValueInput
fixed: FixedPriceDiscountValueInput
fixedCart: FixedPriceCartDiscountValueInput
giftLineItem: GiftLineItemValueInput
}

Expand Down Expand Up @@ -3063,6 +3085,41 @@ input ConfluentCloudDestinationInput {
key: String
}


"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CountOnCustomLineItemUnits implements PatternComponent {
predicate: String!
minCount: Int
maxCount: Int
excludeCount: Int
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input CountOnCustomLineItemUnitsInput {
predicate: String!
minCount: Int = 1
maxCount: Int
excludeCount: Int
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CountOnLineItemUnits implements PatternComponent {
predicate: String!
minCount: Int
maxCount: Int
excludeCount: Int
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input CountOnLineItemUnitsInput {
predicate: String!
minCount: Int = 1
maxCount: Int
excludeCount: Int
}

"[ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code."
scalar Country

Expand Down Expand Up @@ -4447,6 +4504,17 @@ input FieldTypeSetTypeDraft {
elementType: FieldTypeSetElementTypeDraft!
}

type FixedPriceCartDiscountValue implements CartDiscountValue {
type: String!
money: [BaseMoney!]!
applicationMode: DiscountApplicationMode!
}

input FixedPriceCartDiscountValueInput {
money: [CartDiscountValueBaseMoneyInput!]!
applicationMode: DiscountApplicationMode!
}

type FixedPriceDiscountValue implements CartDiscountValue {
type: String!
money: [BaseMoney!]!
Expand Down Expand Up @@ -7283,6 +7351,17 @@ type ParcelTrackingDataUpdated implements MessagePayload & OrderMessagePayload {
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
interface PatternComponent {
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input PatternComponentInput {
CountOnLineItemUnits: CountOnLineItemUnitsInput
CountOnCustomLineItemUnits: CountOnCustomLineItemUnitsInput
}

"""
Payments hold information about the current state of receiving and/or refunding money.
[documentation](https://docs.commercetools.com/api/projects/payments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public interface CartAddCustomLineItemAction

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

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
* @param priceMode value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public CartAddCustomLineItemActionBuilder custom(

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

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
* @return priceMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public interface CustomLineItem extends com.commercetools.api.models.Customizabl
public ItemShippingDetails getShippingDetails();

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ public CustomLineItemBuilder shippingDetails(
}

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public interface CustomLineItemDraft extends com.commercetools.api.models.Custom

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

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
* @param priceMode value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public CustomLineItemDraftBuilder shippingDetails(

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

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
* @return priceMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public com.commercetools.api.models.cart.ItemShippingDetailsDraft getShippingDet

/**
* <ul>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.</li>
* <li>If <code>Standard</code>, Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.</li>
* <li>If <code>External</code>, Cart Discounts are not considered on the Custom Line Item.</li>
* </ul>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public com.commercetools.api.models.cart.ItemShippingDetails getShippingDetails(
}

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

public com.commercetools.api.models.cart.CustomLineItemPriceMode getPriceMode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface CustomLineItemPriceMode extends JsonEnum {
<p>This is the default mode for backwards compatibility.</p> */
CustomLineItemPriceMode STANDARD = CustomLineItemPriceModeEnum.STANDARD;
/**
<p>Deactivates application of Cart Discounts for the Custom Line Item, despite a matching CartDiscountCustomLineItemsTarget and MultiBuyCustomLineItemsTarget.</p> */
<p>Deactivates application of Cart Discounts for the Custom Line Item despite a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget.</p> */
CustomLineItemPriceMode EXTERNAL = CustomLineItemPriceModeEnum.EXTERNAL;

/**
Expand Down
Loading
Loading