diff --git a/changes.md b/changes.md
index 021af15caf9..4d6aede894f 100644
--- a/changes.md
+++ b/changes.md
@@ -1,37 +1,15 @@
**Api changes**
-Required Property(s)
+Removed Property(s)
-- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
-- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
-- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
-- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
-- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
-- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
-- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
-- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
-- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
-- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
-- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
-- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
+- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
Added Property(s)
-- added property `interfaceId` to type `MyTransactionDraft`
-- added property `interfaceId` to type `Transaction`
-- added property `interfaceId` to type `TransactionDraft`
-
-
-
-
-Added Type(s)
-
-- added type `PaymentTransactionInterfaceIdSetMessage`
-- added type `PaymentTransactionInterfaceIdSetMessagePayload`
-- added type `PaymentSetTransactionInterfaceIdAction`
+- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
index 2d77f28dadc..33807e23928 100644
--- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
+++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
@@ -2021,6 +2021,7 @@ input CartDiscountValueBaseMoneyInput {
input CartDiscountValueInput {
relative: RelativeDiscountValueInput
+ relativeCart: RelativeCartDiscountValueInput
absolute: AbsoluteDiscountValueInput
absoluteCart: AbsoluteCartDiscountValueInput
fixed: FixedPriceDiscountValueInput
@@ -10963,7 +10964,7 @@ input RecurringOrderDraft {
custom: CustomFieldsDraft
cart: ResourceIdentifierInput!
cartVersion: Long!
- startsAt: DateTime!
+ startsAt: DateTime
expiresAt: DateTime
state: ResourceIdentifierInput
recurringOrderState: RecurringOrderState
@@ -11117,6 +11118,17 @@ input RejectApprovalFlow {
reason: String
}
+type RelativeCartDiscountValue implements CartDiscountValue {
+ permyriad: Int!
+ applicationMode: DiscountApplicationMode!
+ type: String!
+}
+
+input RelativeCartDiscountValueInput {
+ permyriad: Int!
+ applicationMode: DiscountApplicationMode!
+}
+
type RelativeDiscountValue implements CartDiscountValue & ProductDiscountValue {
permyriad: Int!
type: String!
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/AttributefilteringTrait.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/AttributefilteringTrait.java
new file mode 100644
index 00000000000..b4c5f650a04
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/AttributefilteringTrait.java
@@ -0,0 +1,41 @@
+
+package com.commercetools.api.client;
+
+import java.util.List;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * AttributefilteringTrait
+ * @param type of extending interface
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public interface AttributefilteringTrait> {
+ List getFilterAttributes();
+
+ /**
+ * set filterAttributes with the specificied value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return AttributefilteringTrait
+ */
+ AttributefilteringTrait withFilterAttributes(final TValue filterAttributes);
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return AttributefilteringTrait
+ */
+ AttributefilteringTrait addFilterAttributes(final TValue filterAttributes);
+
+ default AttributefilteringTrait asAttributefilteringTrait() {
+ return this;
+ }
+
+ @SuppressWarnings("unchecked")
+ default T asAttributefilteringTraitToBaseType() {
+ return (T) this;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java
index b3bff350587..f16b20e3052 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java
@@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends
com.commercetools.api.client.ProjectionselectingtailoringTrait,
com.commercetools.api.client.PriceselectingTrait,
com.commercetools.api.client.LocaleprojectingTrait,
+ com.commercetools.api.client.AttributefilteringTrait,
com.commercetools.api.client.ExpandableTrait,
com.commercetools.api.client.ErrorableTrait,
com.commercetools.api.client.Deprecatable200Trait {
@@ -139,6 +140,10 @@ public List getLocaleProjection() {
return this.getQueryParam("localeProjection");
}
+ public List getFilterAttributes() {
+ return this.getQueryParam("filter[attributes]");
+ }
+
public List getExpand() {
return this.getQueryParam("expand");
}
@@ -856,6 +861,95 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addLoc
.collect(Collectors.toList()));
}
+ /**
+ * set filterAttributes with the specified value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
+ final TValue filterAttributes) {
+ return copy().withQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
+ final TValue filterAttributes) {
+ return copy().addQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
+ final Supplier supplier) {
+ return copy().withQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
+ final Supplier supplier) {
+ return copy().addQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
+ final Function op) {
+ return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
+ final Function op) {
+ return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set filterAttributes with the specified values
+ * @param filterAttributes values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().withoutQueryParam("filter[attributes]")
+ .addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional filterAttributes query parameters
+ * @param filterAttributes values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
/**
* set expand with the specified value
* @param expand value to be set
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java
index 8eb60606cbc..4202c88ade9 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java
@@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet exten
com.commercetools.api.client.ProjectionselectingtailoringTrait,
com.commercetools.api.client.PriceselectingTrait,
com.commercetools.api.client.LocaleprojectingTrait,
+ com.commercetools.api.client.AttributefilteringTrait,
com.commercetools.api.client.ExpandableTrait,
com.commercetools.api.client.ErrorableTrait,
com.commercetools.api.client.Deprecatable200Trait {
@@ -139,6 +140,10 @@ public List getLocaleProjection() {
return this.getQueryParam("localeProjection");
}
+ public List getFilterAttributes() {
+ return this.getQueryParam("filter[attributes]");
+ }
+
public List getExpand() {
return this.getQueryParam("expand");
}
@@ -861,6 +866,95 @@ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet ad
.collect(Collectors.toList()));
}
+ /**
+ * set filterAttributes with the specified value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final TValue filterAttributes) {
+ return copy().withQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final TValue filterAttributes) {
+ return copy().addQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final Supplier supplier) {
+ return copy().withQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final Supplier supplier) {
+ return copy().addQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final Function op) {
+ return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final Function op) {
+ return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set filterAttributes with the specified values
+ * @param filterAttributes values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().withoutQueryParam("filter[attributes]")
+ .addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional filterAttributes query parameters
+ * @param filterAttributes values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
/**
* set expand with the specified value
* @param expand value to be set
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java
index e4fd56f25fa..80f1d64f1f5 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java
@@ -42,6 +42,7 @@ public class ByProjectKeyProductProjectionsByIDGet extends
com.commercetools.api.client.PriceselectingTrait,
com.commercetools.api.client.LocaleprojectingTrait,
com.commercetools.api.client.StoreprojectingtailoringTrait,
+ com.commercetools.api.client.AttributefilteringTrait,
com.commercetools.api.client.ExpandableTrait,
com.commercetools.api.client.ErrorableTrait,
com.commercetools.api.client.Deprecatable200Trait {
@@ -134,6 +135,10 @@ public List getStoreProjection() {
return this.getQueryParam("storeProjection");
}
+ public List getFilterAttributes() {
+ return this.getQueryParam("filter[attributes]");
+ }
+
public List getExpand() {
return this.getQueryParam("expand");
}
@@ -891,6 +896,89 @@ public ByProjectKeyProductProjectionsByIDGet addStoreProjection(final C
.collect(Collectors.toList()));
}
+ /**
+ * set filterAttributes with the specified value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet withFilterAttributes(final TValue filterAttributes) {
+ return copy().withQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet addFilterAttributes(final TValue filterAttributes) {
+ return copy().addQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet withFilterAttributes(final Supplier supplier) {
+ return copy().withQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet addFilterAttributes(final Supplier supplier) {
+ return copy().addQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet withFilterAttributes(final Function op) {
+ return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet addFilterAttributes(final Function op) {
+ return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set filterAttributes with the specified values
+ * @param filterAttributes values to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet withFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().withoutQueryParam("filter[attributes]")
+ .addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional filterAttributes query parameters
+ * @param filterAttributes values to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsByIDGet
+ */
+ public ByProjectKeyProductProjectionsByIDGet addFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
/**
* set expand with the specified value
* @param expand value to be set
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java
index 20b8fb52a31..9bda68ae72e 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsGet.java
@@ -41,6 +41,7 @@ public class ByProjectKeyProductProjectionsGet extends
com.commercetools.api.client.PriceselectingTrait,
com.commercetools.api.client.LocaleprojectingTrait,
com.commercetools.api.client.StoreprojectingtailoringTrait,
+ com.commercetools.api.client.AttributefilteringTrait,
com.commercetools.api.client.ExpandableTrait,
com.commercetools.api.client.SortableTrait,
com.commercetools.api.client.PagingTrait,
@@ -129,6 +130,10 @@ public List getStoreProjection() {
return this.getQueryParam("storeProjection");
}
+ public List getFilterAttributes() {
+ return this.getQueryParam("filter[attributes]");
+ }
+
public List getExpand() {
return this.getQueryParam("expand");
}
@@ -895,6 +900,87 @@ public ByProjectKeyProductProjectionsGet addStoreProjection(final Colle
.collect(Collectors.toList()));
}
+ /**
+ * set filterAttributes with the specified value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet withFilterAttributes(final TValue filterAttributes) {
+ return copy().withQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet addFilterAttributes(final TValue filterAttributes) {
+ return copy().addQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet withFilterAttributes(final Supplier supplier) {
+ return copy().withQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet addFilterAttributes(final Supplier supplier) {
+ return copy().addQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet withFilterAttributes(final Function op) {
+ return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet addFilterAttributes(final Function op) {
+ return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set filterAttributes with the specified values
+ * @param filterAttributes values to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet withFilterAttributes(final Collection filterAttributes) {
+ return copy().withoutQueryParam("filter[attributes]")
+ .addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional filterAttributes query parameters
+ * @param filterAttributes values to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsGet
+ */
+ public ByProjectKeyProductProjectionsGet addFilterAttributes(final Collection filterAttributes) {
+ return copy().addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
/**
* set expand with the specified value
* @param expand value to be set
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java
index 7fd1cf7fa52..aef5e76ef2c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyGet.java
@@ -42,6 +42,7 @@ public class ByProjectKeyProductProjectionsKeyByKeyGet extends
com.commercetools.api.client.PriceselectingTrait,
com.commercetools.api.client.LocaleprojectingTrait,
com.commercetools.api.client.StoreprojectingtailoringTrait,
+ com.commercetools.api.client.AttributefilteringTrait,
com.commercetools.api.client.ExpandableTrait,
com.commercetools.api.client.ErrorableTrait,
com.commercetools.api.client.Deprecatable200Trait {
@@ -134,6 +135,10 @@ public List getStoreProjection() {
return this.getQueryParam("storeProjection");
}
+ public List getFilterAttributes() {
+ return this.getQueryParam("filter[attributes]");
+ }
+
public List getExpand() {
return this.getQueryParam("expand");
}
@@ -900,6 +905,91 @@ public ByProjectKeyProductProjectionsKeyByKeyGet addStoreProjection(
.collect(Collectors.toList()));
}
+ /**
+ * set filterAttributes with the specified value
+ * @param filterAttributes value to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet withFilterAttributes(final TValue filterAttributes) {
+ return copy().withQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param filterAttributes value to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet addFilterAttributes(final TValue filterAttributes) {
+ return copy().addQueryParam("filter[attributes]", filterAttributes);
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet withFilterAttributes(final Supplier supplier) {
+ return copy().withQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet addFilterAttributes(final Supplier supplier) {
+ return copy().addQueryParam("filter[attributes]", supplier.get());
+ }
+
+ /**
+ * set filterAttributes with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final Function op) {
+ return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional filterAttributes query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final Function op) {
+ return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set filterAttributes with the specified values
+ * @param filterAttributes values to be set
+ * @param value type
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet withFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().withoutQueryParam("filter[attributes]")
+ .addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional filterAttributes query parameters
+ * @param filterAttributes values to be added
+ * @param value type
+ * @return ByProjectKeyProductProjectionsKeyByKeyGet
+ */
+ public ByProjectKeyProductProjectionsKeyByKeyGet addFilterAttributes(
+ final Collection filterAttributes) {
+ return copy().addQueryParams(filterAttributes.stream()
+ .map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
/**
* set expand with the specified value
* @param expand value to be set
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetAction.java
index 6ab0e935f1b..ad78a0e2505 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetAction.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetAction.java
@@ -40,6 +40,7 @@ public interface CartDiscountChangeTargetAction extends CartDiscountUpdateAction
/**
* New value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
* @return target
*/
@NotNull
@@ -49,6 +50,7 @@ public interface CartDiscountChangeTargetAction extends CartDiscountUpdateAction
/**
* New value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
* @param target value to be set
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionBuilder.java
index 391f03620b9..3241ff15715 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionBuilder.java
@@ -26,6 +26,7 @@ public class CartDiscountChangeTargetActionBuilder implements BuilderNew value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
* @param target value to be set
* @return Builder
*/
@@ -38,6 +39,7 @@ public CartDiscountChangeTargetActionBuilder target(
/**
* New value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
* @param builder function to build the target value
* @return Builder
*/
@@ -50,6 +52,7 @@ public CartDiscountChangeTargetActionBuilder target(
/**
* New value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
* @return target
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionImpl.java
index bf336e832f9..2fb1c0e1c5a 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeTargetActionImpl.java
@@ -53,6 +53,7 @@ public String getAction() {
/**
* New value to set.
+ * For a CartDiscountValueRelative, if applicationMode is set, the target must be CartDiscountPatternTarget. If applicationMode is ProportionateDistribution or EvenDistribution, the CartDiscountPatternTarget triggerPattern must be non-empty. If either conditions are not met, an InvalidOperation error is returned.
*/
public com.commercetools.api.models.cart_discount.CartDiscountTarget getTarget() {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueAction.java
index a46da58356a..e43cf231e7f 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueAction.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueAction.java
@@ -39,7 +39,8 @@ public interface CartDiscountChangeValueAction extends CartDiscountUpdateAction
String CHANGE_VALUE = "changeValue";
/**
- * New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
* @return value
*/
@NotNull
@@ -48,7 +49,8 @@ public interface CartDiscountChangeValueAction extends CartDiscountUpdateAction
public CartDiscountValueDraft getValue();
/**
- * New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
* @param value value to be set
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionBuilder.java
index d7a34302dd3..9ab9a9f8a3d 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionBuilder.java
@@ -25,7 +25,8 @@ public class CartDiscountChangeValueActionBuilder implements BuilderNew value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
* @param value value to be set
* @return Builder
*/
@@ -37,7 +38,8 @@ public CartDiscountChangeValueActionBuilder value(
}
/**
- * New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
* @param builder function to build the value value
* @return Builder
*/
@@ -50,7 +52,8 @@ public CartDiscountChangeValueActionBuilder value(
}
/**
- * New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
* @return value
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionImpl.java
index 45015957945..680bdca6948 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountChangeValueActionImpl.java
@@ -52,7 +52,8 @@ public String getAction() {
}
/**
- * New value to set. When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
+ * New value to set.
+ * When trying to set a CartDiscountValueGiftLineItemDraft an InvalidInput error is returned.
*/
public com.commercetools.api.models.cart_discount.CartDiscountValueDraft getValue() {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelative.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelative.java
index 88430c39e5e..d39e317a143 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelative.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelative.java
@@ -45,6 +45,18 @@ public interface CartDiscountValueRelative extends CartDiscountValue, CartDiscou
@JsonProperty("permyriad")
public Long getPermyriad();
+ /**
+ * Indicates how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @return applicationMode
+ */
+
+ @JsonProperty("applicationMode")
+ public DiscountApplicationMode getApplicationMode();
+
/**
* Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @param permyriad value to be set
@@ -52,6 +64,17 @@ public interface CartDiscountValueRelative extends CartDiscountValue, CartDiscou
public void setPermyriad(final Long permyriad);
+ /**
+ * Indicates how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @param applicationMode value to be set
+ */
+
+ public void setApplicationMode(final DiscountApplicationMode applicationMode);
+
/**
* factory method
* @return instance of CartDiscountValueRelative
@@ -68,6 +91,7 @@ public static CartDiscountValueRelative of() {
public static CartDiscountValueRelative of(final CartDiscountValueRelative template) {
CartDiscountValueRelativeImpl instance = new CartDiscountValueRelativeImpl();
instance.setPermyriad(template.getPermyriad());
+ instance.setApplicationMode(template.getApplicationMode());
return instance;
}
@@ -85,6 +109,7 @@ public static CartDiscountValueRelative deepCopy(@Nullable final CartDiscountVal
}
CartDiscountValueRelativeImpl instance = new CartDiscountValueRelativeImpl();
instance.setPermyriad(template.getPermyriad());
+ instance.setApplicationMode(template.getApplicationMode());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeBuilder.java
index c88b226f362..feae9c0b359 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeBuilder.java
@@ -3,6 +3,8 @@
import java.util.*;
+import javax.annotation.Nullable;
+
import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;
@@ -23,6 +25,9 @@ public class CartDiscountValueRelativeBuilder implements BuilderFraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @param permyriad value to be set
@@ -34,6 +39,22 @@ public CartDiscountValueRelativeBuilder permyriad(final Long permyriad) {
return this;
}
+ /**
+ * Indicates how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @param applicationMode value to be set
+ * @return Builder
+ */
+
+ public CartDiscountValueRelativeBuilder applicationMode(
+ @Nullable final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
+ this.applicationMode = applicationMode;
+ return this;
+ }
+
/**
* Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @return permyriad
@@ -43,13 +64,27 @@ public Long getPermyriad() {
return this.permyriad;
}
+ /**
+ * Indicates how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @return applicationMode
+ */
+
+ @Nullable
+ public com.commercetools.api.models.cart_discount.DiscountApplicationMode getApplicationMode() {
+ return this.applicationMode;
+ }
+
/**
* builds CartDiscountValueRelative with checking for non-null required values
* @return CartDiscountValueRelative
*/
public CartDiscountValueRelative build() {
Objects.requireNonNull(permyriad, CartDiscountValueRelative.class + ": permyriad is missing");
- return new CartDiscountValueRelativeImpl(permyriad);
+ return new CartDiscountValueRelativeImpl(permyriad, applicationMode);
}
/**
@@ -57,7 +92,7 @@ public CartDiscountValueRelative build() {
* @return CartDiscountValueRelative
*/
public CartDiscountValueRelative buildUnchecked() {
- return new CartDiscountValueRelativeImpl(permyriad);
+ return new CartDiscountValueRelativeImpl(permyriad, applicationMode);
}
/**
@@ -76,6 +111,7 @@ public static CartDiscountValueRelativeBuilder of() {
public static CartDiscountValueRelativeBuilder of(final CartDiscountValueRelative template) {
CartDiscountValueRelativeBuilder builder = new CartDiscountValueRelativeBuilder();
builder.permyriad = template.getPermyriad();
+ builder.applicationMode = template.getApplicationMode();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraft.java
index ed83410e7d3..0fbde0b385c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraft.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraft.java
@@ -46,6 +46,18 @@ public interface CartDiscountValueRelativeDraft
@JsonProperty("permyriad")
public Long getPermyriad();
+ /**
+ * Determines how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @return applicationMode
+ */
+
+ @JsonProperty("applicationMode")
+ public DiscountApplicationMode getApplicationMode();
+
/**
* Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @param permyriad value to be set
@@ -53,6 +65,17 @@ public interface CartDiscountValueRelativeDraft
public void setPermyriad(final Long permyriad);
+ /**
+ * Determines how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @param applicationMode value to be set
+ */
+
+ public void setApplicationMode(final DiscountApplicationMode applicationMode);
+
/**
* factory method
* @return instance of CartDiscountValueRelativeDraft
@@ -69,6 +92,7 @@ public static CartDiscountValueRelativeDraft of() {
public static CartDiscountValueRelativeDraft of(final CartDiscountValueRelativeDraft template) {
CartDiscountValueRelativeDraftImpl instance = new CartDiscountValueRelativeDraftImpl();
instance.setPermyriad(template.getPermyriad());
+ instance.setApplicationMode(template.getApplicationMode());
return instance;
}
@@ -86,6 +110,7 @@ public static CartDiscountValueRelativeDraft deepCopy(@Nullable final CartDiscou
}
CartDiscountValueRelativeDraftImpl instance = new CartDiscountValueRelativeDraftImpl();
instance.setPermyriad(template.getPermyriad());
+ instance.setApplicationMode(template.getApplicationMode());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftBuilder.java
index 0e51743357d..d97b376f59c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftBuilder.java
@@ -3,6 +3,8 @@
import java.util.*;
+import javax.annotation.Nullable;
+
import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;
@@ -23,6 +25,9 @@ public class CartDiscountValueRelativeDraftBuilder implements BuilderFraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @param permyriad value to be set
@@ -34,6 +39,22 @@ public CartDiscountValueRelativeDraftBuilder permyriad(final Long permyriad) {
return this;
}
+ /**
+ * Determines how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @param applicationMode value to be set
+ * @return Builder
+ */
+
+ public CartDiscountValueRelativeDraftBuilder applicationMode(
+ @Nullable final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
+ this.applicationMode = applicationMode;
+ return this;
+ }
+
/**
* Fraction (per ten thousand) the price is reduced by. For example, 1000 will result in a 10% price reduction.
* @return permyriad
@@ -43,13 +64,27 @@ public Long getPermyriad() {
return this.permyriad;
}
+ /**
+ * Determines how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ * @return applicationMode
+ */
+
+ @Nullable
+ public com.commercetools.api.models.cart_discount.DiscountApplicationMode getApplicationMode() {
+ return this.applicationMode;
+ }
+
/**
* builds CartDiscountValueRelativeDraft with checking for non-null required values
* @return CartDiscountValueRelativeDraft
*/
public CartDiscountValueRelativeDraft build() {
Objects.requireNonNull(permyriad, CartDiscountValueRelativeDraft.class + ": permyriad is missing");
- return new CartDiscountValueRelativeDraftImpl(permyriad);
+ return new CartDiscountValueRelativeDraftImpl(permyriad, applicationMode);
}
/**
@@ -57,7 +92,7 @@ public CartDiscountValueRelativeDraft build() {
* @return CartDiscountValueRelativeDraft
*/
public CartDiscountValueRelativeDraft buildUnchecked() {
- return new CartDiscountValueRelativeDraftImpl(permyriad);
+ return new CartDiscountValueRelativeDraftImpl(permyriad, applicationMode);
}
/**
@@ -76,6 +111,7 @@ public static CartDiscountValueRelativeDraftBuilder of() {
public static CartDiscountValueRelativeDraftBuilder of(final CartDiscountValueRelativeDraft template) {
CartDiscountValueRelativeDraftBuilder builder = new CartDiscountValueRelativeDraftBuilder();
builder.permyriad = template.getPermyriad();
+ builder.applicationMode = template.getApplicationMode();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftImpl.java
index 820e3bcb99b..a19e0fd6324 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftImpl.java
@@ -26,12 +26,16 @@ public class CartDiscountValueRelativeDraftImpl implements CartDiscountValueRela
private Long permyriad;
+ private com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode;
+
/**
* create instance with all properties
*/
@JsonCreator
- CartDiscountValueRelativeDraftImpl(@JsonProperty("permyriad") final Long permyriad) {
+ CartDiscountValueRelativeDraftImpl(@JsonProperty("permyriad") final Long permyriad,
+ @JsonProperty("applicationMode") final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
this.permyriad = permyriad;
+ this.applicationMode = applicationMode;
this.type = RELATIVE;
}
@@ -58,10 +62,27 @@ public Long getPermyriad() {
return this.permyriad;
}
+ /**
+ * Determines how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ */
+
+ public com.commercetools.api.models.cart_discount.DiscountApplicationMode getApplicationMode() {
+ return this.applicationMode;
+ }
+
public void setPermyriad(final Long permyriad) {
this.permyriad = permyriad;
}
+ public void setApplicationMode(
+ final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
+ this.applicationMode = applicationMode;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o)
@@ -74,20 +95,23 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(permyriad, that.permyriad)
+ .append(applicationMode, that.applicationMode)
.append(type, that.type)
.append(permyriad, that.permyriad)
+ .append(applicationMode, that.applicationMode)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type).append(permyriad).toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(permyriad).append(applicationMode).toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("permyriad", permyriad)
+ .append("applicationMode", applicationMode)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeImpl.java
index 2c6297e7452..5b1060049e4 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeImpl.java
@@ -26,12 +26,16 @@ public class CartDiscountValueRelativeImpl implements CartDiscountValueRelative,
private Long permyriad;
+ private com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode;
+
/**
* create instance with all properties
*/
@JsonCreator
- CartDiscountValueRelativeImpl(@JsonProperty("permyriad") final Long permyriad) {
+ CartDiscountValueRelativeImpl(@JsonProperty("permyriad") final Long permyriad,
+ @JsonProperty("applicationMode") final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
this.permyriad = permyriad;
+ this.applicationMode = applicationMode;
this.type = RELATIVE;
}
@@ -58,10 +62,27 @@ public Long getPermyriad() {
return this.permyriad;
}
+ /**
+ * Indicates how the discount applies when using CartDiscountPatternTarget.
+ *
+ * - If the mode is
IndividualApplication, the discounted percentage is applied on each unit's price. The units matching the triggerPattern are not considered.
+ * - If the mode is
ProportionateDistribution and EvenDistribution the discounted value is calculated from the total value of the units matching the targetPattern and distributed among the units matching the targetPattern or triggerPattern. These modes are allowed only if CartDiscountPatternTarget triggerPattern is non-empty.
+ *
+ */
+
+ public com.commercetools.api.models.cart_discount.DiscountApplicationMode getApplicationMode() {
+ return this.applicationMode;
+ }
+
public void setPermyriad(final Long permyriad) {
this.permyriad = permyriad;
}
+ public void setApplicationMode(
+ final com.commercetools.api.models.cart_discount.DiscountApplicationMode applicationMode) {
+ this.applicationMode = applicationMode;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o)
@@ -74,20 +95,23 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(permyriad, that.permyriad)
+ .append(applicationMode, that.applicationMode)
.append(type, that.type)
.append(permyriad, that.permyriad)
+ .append(applicationMode, that.applicationMode)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type).append(permyriad).toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(permyriad).append(applicationMode).toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("permyriad", permyriad)
+ .append("applicationMode", applicationMode)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/DiscountApplicationMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/DiscountApplicationMode.java
index b0589e87121..ba6f75e8ffe 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/DiscountApplicationMode.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/DiscountApplicationMode.java
@@ -11,7 +11,7 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * This mode determines how absolute Discounts are applied on Line Items or Custom Line Items.
+ * This mode determines how Discounts are distributed among items in a Cart.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface DiscountApplicationMode extends JsonEnum {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraft.java
index 40632ccc2cf..08469ef6dab 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraft.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraft.java
@@ -29,7 +29,6 @@
* RecurringOrderDraft recurringOrderDraft = RecurringOrderDraft.builder()
* .cart(cartBuilder -> cartBuilder)
* .cartVersion(0.3)
- * .startsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .build()
*
*
@@ -64,10 +63,10 @@ public interface RecurringOrderDraft extends io.vrap.rmf.base.client.DraftDate and time (UTC) when the RecurringOrder will start.
+ * Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
* @return startsAt
*/
- @NotNull
+
@JsonProperty("startsAt")
public ZonedDateTime getStartsAt();
@@ -117,7 +116,7 @@ public interface RecurringOrderDraft extends io.vrap.rmf.base.client.DraftDate and time (UTC) when the RecurringOrder will start.
+ * Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
* @param startsAt value to be set
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftBuilder.java
index 3dcf515b3b6..3a1e0dd0c2e 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftBuilder.java
@@ -18,7 +18,6 @@
* RecurringOrderDraft recurringOrderDraft = RecurringOrderDraft.builder()
* .cart(cartBuilder -> cartBuilder)
* .cartVersion(0.3)
- * .startsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .build()
*
*
@@ -33,6 +32,7 @@ public class RecurringOrderDraftBuilder implements Builder
private Long cartVersion;
+ @Nullable
private java.time.ZonedDateTime startsAt;
@Nullable
@@ -102,12 +102,12 @@ public RecurringOrderDraftBuilder cartVersion(final Long cartVersion) {
}
/**
- * Date and time (UTC) when the RecurringOrder will start.
+ * Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
* @param startsAt value to be set
* @return Builder
*/
- public RecurringOrderDraftBuilder startsAt(final java.time.ZonedDateTime startsAt) {
+ public RecurringOrderDraftBuilder startsAt(@Nullable final java.time.ZonedDateTime startsAt) {
this.startsAt = startsAt;
return this;
}
@@ -224,10 +224,11 @@ public Long getCartVersion() {
}
/**
- * Date and time (UTC) when the RecurringOrder will start.
+ * Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
* @return startsAt
*/
+ @Nullable
public java.time.ZonedDateTime getStartsAt() {
return this.startsAt;
}
@@ -269,7 +270,6 @@ public com.commercetools.api.models.type.CustomFieldsDraft getCustom() {
public RecurringOrderDraft build() {
Objects.requireNonNull(cart, RecurringOrderDraft.class + ": cart is missing");
Objects.requireNonNull(cartVersion, RecurringOrderDraft.class + ": cartVersion is missing");
- Objects.requireNonNull(startsAt, RecurringOrderDraft.class + ": startsAt is missing");
return new RecurringOrderDraftImpl(key, cart, cartVersion, startsAt, expiresAt, state, custom);
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftImpl.java
index 263047b4e62..521d6782a7d 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderDraftImpl.java
@@ -87,7 +87,7 @@ public Long getCartVersion() {
}
/**
- * Date and time (UTC) when the RecurringOrder will start.
+ * Date and time (UTC) when the RecurringOrder will start. When specified, the date and time must be in the future. If not specified, the recurring order will start immediately.
*/
public java.time.ZonedDateTime getStartsAt() {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationAction.java
index 15ea33350fd..e759e70b9fa 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationAction.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationAction.java
@@ -39,11 +39,11 @@ public interface RecurringOrderSetOrderSkipConfigurationAction extends Recurring
/**
* Configuration for skipping future orders of the Recurring Order.
- * @return skipConfiguration
+ * @return skipConfigurationInputDraft
*/
@Valid
- @JsonProperty("skipConfiguration")
- public SkipConfigurationDraft getSkipConfiguration();
+ @JsonProperty("skipConfigurationInputDraft")
+ public SkipConfigurationDraft getSkipConfigurationInputDraft();
/**
* Date and time (UTC) the Recurring Order will expire and stop generating new orders.
@@ -55,10 +55,10 @@ public interface RecurringOrderSetOrderSkipConfigurationAction extends Recurring
/**
* Configuration for skipping future orders of the Recurring Order.
- * @param skipConfiguration value to be set
+ * @param skipConfigurationInputDraft value to be set
*/
- public void setSkipConfiguration(final SkipConfigurationDraft skipConfiguration);
+ public void setSkipConfigurationInputDraft(final SkipConfigurationDraft skipConfigurationInputDraft);
/**
* Date and time (UTC) the Recurring Order will expire and stop generating new orders.
@@ -83,7 +83,7 @@ public static RecurringOrderSetOrderSkipConfigurationAction of() {
public static RecurringOrderSetOrderSkipConfigurationAction of(
final RecurringOrderSetOrderSkipConfigurationAction template) {
RecurringOrderSetOrderSkipConfigurationActionImpl instance = new RecurringOrderSetOrderSkipConfigurationActionImpl();
- instance.setSkipConfiguration(template.getSkipConfiguration());
+ instance.setSkipConfigurationInputDraft(template.getSkipConfigurationInputDraft());
instance.setUpdatedExpiresAt(template.getUpdatedExpiresAt());
return instance;
}
@@ -102,8 +102,8 @@ public static RecurringOrderSetOrderSkipConfigurationAction deepCopy(
return null;
}
RecurringOrderSetOrderSkipConfigurationActionImpl instance = new RecurringOrderSetOrderSkipConfigurationActionImpl();
- instance.setSkipConfiguration(com.commercetools.api.models.recurring_order.SkipConfigurationDraft
- .deepCopy(template.getSkipConfiguration()));
+ instance.setSkipConfigurationInputDraft(com.commercetools.api.models.recurring_order.SkipConfigurationDraft
+ .deepCopy(template.getSkipConfigurationInputDraft()));
instance.setUpdatedExpiresAt(template.getUpdatedExpiresAt());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionBuilder.java
index 9d7176200e8..65d092d5454 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionBuilder.java
@@ -25,32 +25,32 @@ public class RecurringOrderSetOrderSkipConfigurationActionBuilder
implements Builder {
@Nullable
- private com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfiguration;
+ private com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfigurationInputDraft;
@Nullable
private java.time.ZonedDateTime updatedExpiresAt;
/**
* Configuration for skipping future orders of the Recurring Order.
- * @param skipConfiguration value to be set
+ * @param skipConfigurationInputDraft value to be set
* @return Builder
*/
- public RecurringOrderSetOrderSkipConfigurationActionBuilder skipConfiguration(
- @Nullable final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfiguration) {
- this.skipConfiguration = skipConfiguration;
+ public RecurringOrderSetOrderSkipConfigurationActionBuilder skipConfigurationInputDraft(
+ @Nullable final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfigurationInputDraft) {
+ this.skipConfigurationInputDraft = skipConfigurationInputDraft;
return this;
}
/**
* Configuration for skipping future orders of the Recurring Order.
- * @param builder function to build the skipConfiguration value
+ * @param builder function to build the skipConfigurationInputDraft value
* @return Builder
*/
- public RecurringOrderSetOrderSkipConfigurationActionBuilder skipConfiguration(
+ public RecurringOrderSetOrderSkipConfigurationActionBuilder skipConfigurationInputDraft(
Function> builder) {
- this.skipConfiguration = builder
+ this.skipConfigurationInputDraft = builder
.apply(com.commercetools.api.models.recurring_order.SkipConfigurationDraftBuilder.of())
.build();
return this;
@@ -70,12 +70,12 @@ public RecurringOrderSetOrderSkipConfigurationActionBuilder updatedExpiresAt(
/**
* Configuration for skipping future orders of the Recurring Order.
- * @return skipConfiguration
+ * @return skipConfigurationInputDraft
*/
@Nullable
- public com.commercetools.api.models.recurring_order.SkipConfigurationDraft getSkipConfiguration() {
- return this.skipConfiguration;
+ public com.commercetools.api.models.recurring_order.SkipConfigurationDraft getSkipConfigurationInputDraft() {
+ return this.skipConfigurationInputDraft;
}
/**
@@ -93,7 +93,7 @@ public java.time.ZonedDateTime getUpdatedExpiresAt() {
* @return RecurringOrderSetOrderSkipConfigurationAction
*/
public RecurringOrderSetOrderSkipConfigurationAction build() {
- return new RecurringOrderSetOrderSkipConfigurationActionImpl(skipConfiguration, updatedExpiresAt);
+ return new RecurringOrderSetOrderSkipConfigurationActionImpl(skipConfigurationInputDraft, updatedExpiresAt);
}
/**
@@ -101,7 +101,7 @@ public RecurringOrderSetOrderSkipConfigurationAction build() {
* @return RecurringOrderSetOrderSkipConfigurationAction
*/
public RecurringOrderSetOrderSkipConfigurationAction buildUnchecked() {
- return new RecurringOrderSetOrderSkipConfigurationActionImpl(skipConfiguration, updatedExpiresAt);
+ return new RecurringOrderSetOrderSkipConfigurationActionImpl(skipConfigurationInputDraft, updatedExpiresAt);
}
/**
@@ -120,7 +120,7 @@ public static RecurringOrderSetOrderSkipConfigurationActionBuilder of() {
public static RecurringOrderSetOrderSkipConfigurationActionBuilder of(
final RecurringOrderSetOrderSkipConfigurationAction template) {
RecurringOrderSetOrderSkipConfigurationActionBuilder builder = new RecurringOrderSetOrderSkipConfigurationActionBuilder();
- builder.skipConfiguration = template.getSkipConfiguration();
+ builder.skipConfigurationInputDraft = template.getSkipConfigurationInputDraft();
builder.updatedExpiresAt = template.getUpdatedExpiresAt();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionImpl.java
index 0749ea1714c..b5bd8bae683 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionImpl.java
@@ -25,7 +25,7 @@ public class RecurringOrderSetOrderSkipConfigurationActionImpl
private String action;
- private com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfiguration;
+ private com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfigurationInputDraft;
private java.time.ZonedDateTime updatedExpiresAt;
@@ -34,9 +34,9 @@ public class RecurringOrderSetOrderSkipConfigurationActionImpl
*/
@JsonCreator
RecurringOrderSetOrderSkipConfigurationActionImpl(
- @JsonProperty("skipConfiguration") final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfiguration,
+ @JsonProperty("skipConfigurationInputDraft") final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfigurationInputDraft,
@JsonProperty("updatedExpiresAt") final java.time.ZonedDateTime updatedExpiresAt) {
- this.skipConfiguration = skipConfiguration;
+ this.skipConfigurationInputDraft = skipConfigurationInputDraft;
this.updatedExpiresAt = updatedExpiresAt;
this.action = SET_ORDER_SKIP_CONFIGURATION;
}
@@ -60,8 +60,8 @@ public String getAction() {
* Configuration for skipping future orders of the Recurring Order.
*/
- public com.commercetools.api.models.recurring_order.SkipConfigurationDraft getSkipConfiguration() {
- return this.skipConfiguration;
+ public com.commercetools.api.models.recurring_order.SkipConfigurationDraft getSkipConfigurationInputDraft() {
+ return this.skipConfigurationInputDraft;
}
/**
@@ -72,9 +72,9 @@ public java.time.ZonedDateTime getUpdatedExpiresAt() {
return this.updatedExpiresAt;
}
- public void setSkipConfiguration(
- final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfiguration) {
- this.skipConfiguration = skipConfiguration;
+ public void setSkipConfigurationInputDraft(
+ final com.commercetools.api.models.recurring_order.SkipConfigurationDraft skipConfigurationInputDraft) {
+ this.skipConfigurationInputDraft = skipConfigurationInputDraft;
}
public void setUpdatedExpiresAt(final java.time.ZonedDateTime updatedExpiresAt) {
@@ -92,10 +92,10 @@ public boolean equals(Object o) {
RecurringOrderSetOrderSkipConfigurationActionImpl that = (RecurringOrderSetOrderSkipConfigurationActionImpl) o;
return new EqualsBuilder().append(action, that.action)
- .append(skipConfiguration, that.skipConfiguration)
+ .append(skipConfigurationInputDraft, that.skipConfigurationInputDraft)
.append(updatedExpiresAt, that.updatedExpiresAt)
.append(action, that.action)
- .append(skipConfiguration, that.skipConfiguration)
+ .append(skipConfigurationInputDraft, that.skipConfigurationInputDraft)
.append(updatedExpiresAt, that.updatedExpiresAt)
.isEquals();
}
@@ -103,7 +103,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37).append(action)
- .append(skipConfiguration)
+ .append(skipConfigurationInputDraft)
.append(updatedExpiresAt)
.toHashCode();
}
@@ -111,7 +111,7 @@ public int hashCode() {
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action)
- .append("skipConfiguration", skipConfiguration)
+ .append("skipConfigurationInputDraft", skipConfigurationInputDraft)
.append("updatedExpiresAt", updatedExpiresAt)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpression.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpression.java
new file mode 100644
index 00000000000..69adb55abbc
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpression.java
@@ -0,0 +1,126 @@
+
+package com.commercetools.api.models.search;
+
+import java.time.*;
+import java.util.*;
+import java.util.function.Function;
+
+import javax.annotation.Nullable;
+
+import com.fasterxml.jackson.annotation.*;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * SearchFuzzyExpression
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * SearchFuzzyExpression searchFuzzyExpression = SearchFuzzyExpression.builder()
+ * .fuzzy(fuzzyBuilder -> fuzzyBuilder)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = SearchFuzzyExpressionImpl.class)
+public interface SearchFuzzyExpression extends SearchQueryExpression {
+
+ /**
+ *
+ * @return fuzzy
+ */
+ @NotNull
+ @Valid
+ @JsonProperty("fuzzy")
+ public SearchFuzzyValue getFuzzy();
+
+ /**
+ * set fuzzy
+ * @param fuzzy value to be set
+ */
+
+ public void setFuzzy(final SearchFuzzyValue fuzzy);
+
+ /**
+ * factory method
+ * @return instance of SearchFuzzyExpression
+ */
+ public static SearchFuzzyExpression of() {
+ return new SearchFuzzyExpressionImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy SearchFuzzyExpression
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static SearchFuzzyExpression of(final SearchFuzzyExpression template) {
+ SearchFuzzyExpressionImpl instance = new SearchFuzzyExpressionImpl();
+ instance.setFuzzy(template.getFuzzy());
+ return instance;
+ }
+
+ public SearchFuzzyExpression copyDeep();
+
+ /**
+ * factory method to create a deep copy of SearchFuzzyExpression
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static SearchFuzzyExpression deepCopy(@Nullable final SearchFuzzyExpression template) {
+ if (template == null) {
+ return null;
+ }
+ SearchFuzzyExpressionImpl instance = new SearchFuzzyExpressionImpl();
+ instance.setFuzzy(com.commercetools.api.models.search.SearchFuzzyValue.deepCopy(template.getFuzzy()));
+ return instance;
+ }
+
+ /**
+ * builder factory method for SearchFuzzyExpression
+ * @return builder
+ */
+ public static SearchFuzzyExpressionBuilder builder() {
+ return SearchFuzzyExpressionBuilder.of();
+ }
+
+ /**
+ * create builder for SearchFuzzyExpression instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static SearchFuzzyExpressionBuilder builder(final SearchFuzzyExpression template) {
+ return SearchFuzzyExpressionBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withSearchFuzzyExpression(Function helper) {
+ return helper.apply(this);
+ }
+
+ /**
+ * gives a TypeReference for usage with Jackson DataBind
+ * @return TypeReference
+ */
+ public static com.fasterxml.jackson.core.type.TypeReference typeReference() {
+ return new com.fasterxml.jackson.core.type.TypeReference() {
+ @Override
+ public String toString() {
+ return "TypeReference";
+ }
+ };
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionBuilder.java
new file mode 100644
index 00000000000..3fe32c7357d
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionBuilder.java
@@ -0,0 +1,107 @@
+
+package com.commercetools.api.models.search;
+
+import java.util.*;
+import java.util.function.Function;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * SearchFuzzyExpressionBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * SearchFuzzyExpression searchFuzzyExpression = SearchFuzzyExpression.builder()
+ * .fuzzy(fuzzyBuilder -> fuzzyBuilder)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class SearchFuzzyExpressionBuilder implements Builder {
+
+ private com.commercetools.api.models.search.SearchFuzzyValue fuzzy;
+
+ /**
+ * set the value to the fuzzy using the builder function
+ * @param builder function to build the fuzzy value
+ * @return Builder
+ */
+
+ public SearchFuzzyExpressionBuilder fuzzy(
+ Function builder) {
+ this.fuzzy = builder.apply(com.commercetools.api.models.search.SearchFuzzyValueBuilder.of()).build();
+ return this;
+ }
+
+ /**
+ * set the value to the fuzzy using the builder function
+ * @param builder function to build the fuzzy value
+ * @return Builder
+ */
+
+ public SearchFuzzyExpressionBuilder withFuzzy(
+ Function builder) {
+ this.fuzzy = builder.apply(com.commercetools.api.models.search.SearchFuzzyValueBuilder.of());
+ return this;
+ }
+
+ /**
+ * set the value to the fuzzy
+ * @param fuzzy value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyExpressionBuilder fuzzy(final com.commercetools.api.models.search.SearchFuzzyValue fuzzy) {
+ this.fuzzy = fuzzy;
+ return this;
+ }
+
+ /**
+ * value of fuzzy}
+ * @return fuzzy
+ */
+
+ public com.commercetools.api.models.search.SearchFuzzyValue getFuzzy() {
+ return this.fuzzy;
+ }
+
+ /**
+ * builds SearchFuzzyExpression with checking for non-null required values
+ * @return SearchFuzzyExpression
+ */
+ public SearchFuzzyExpression build() {
+ Objects.requireNonNull(fuzzy, SearchFuzzyExpression.class + ": fuzzy is missing");
+ return new SearchFuzzyExpressionImpl(fuzzy);
+ }
+
+ /**
+ * builds SearchFuzzyExpression without checking for non-null required values
+ * @return SearchFuzzyExpression
+ */
+ public SearchFuzzyExpression buildUnchecked() {
+ return new SearchFuzzyExpressionImpl(fuzzy);
+ }
+
+ /**
+ * factory method for an instance of SearchFuzzyExpressionBuilder
+ * @return builder
+ */
+ public static SearchFuzzyExpressionBuilder of() {
+ return new SearchFuzzyExpressionBuilder();
+ }
+
+ /**
+ * create builder for SearchFuzzyExpression instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static SearchFuzzyExpressionBuilder of(final SearchFuzzyExpression template) {
+ SearchFuzzyExpressionBuilder builder = new SearchFuzzyExpressionBuilder();
+ builder.fuzzy = template.getFuzzy();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionImpl.java
new file mode 100644
index 00000000000..1368e151c54
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionImpl.java
@@ -0,0 +1,80 @@
+
+package com.commercetools.api.models.search;
+
+import java.time.*;
+import java.util.*;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.ModelBase;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * SearchFuzzyExpression
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class SearchFuzzyExpressionImpl implements SearchFuzzyExpression, ModelBase {
+
+ private com.commercetools.api.models.search.SearchFuzzyValue fuzzy;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ SearchFuzzyExpressionImpl(@JsonProperty("fuzzy") final com.commercetools.api.models.search.SearchFuzzyValue fuzzy) {
+ this.fuzzy = fuzzy;
+ }
+
+ /**
+ * create empty instance
+ */
+ public SearchFuzzyExpressionImpl() {
+ }
+
+ /**
+ *
+ */
+
+ public com.commercetools.api.models.search.SearchFuzzyValue getFuzzy() {
+ return this.fuzzy;
+ }
+
+ public void setFuzzy(final com.commercetools.api.models.search.SearchFuzzyValue fuzzy) {
+ this.fuzzy = fuzzy;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ SearchFuzzyExpressionImpl that = (SearchFuzzyExpressionImpl) o;
+
+ return new EqualsBuilder().append(fuzzy, that.fuzzy).append(fuzzy, that.fuzzy).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(fuzzy).toHashCode();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("fuzzy", fuzzy).build();
+ }
+
+ @Override
+ public SearchFuzzyExpression copyDeep() {
+ return SearchFuzzyExpression.deepCopy(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValue.java
new file mode 100644
index 00000000000..6ea318d67c6
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValue.java
@@ -0,0 +1,192 @@
+
+package com.commercetools.api.models.search;
+
+import java.time.*;
+import java.util.*;
+import java.util.function.Function;
+
+import javax.annotation.Nullable;
+
+import com.fasterxml.jackson.annotation.*;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * SearchFuzzyValue
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * SearchFuzzyValue searchFuzzyValue = SearchFuzzyValue.builder()
+ * .field("{field}")
+ * .level(0.3)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = SearchFuzzyValueImpl.class)
+public interface SearchFuzzyValue extends SearchQueryExpressionValue {
+
+ /**
+ * The search term to find fuzzy matches for. If multiple terms are provided (separated by whitespace), the fuzziness level is applied to each term individually.
+ * @return value
+ */
+ @NotNull
+ @JsonProperty("value")
+ public Object getValue();
+
+ /**
+ * The maximum fuzziness level desired for the search term. Allowed values are 0, 1, and 2. The API automatically adjusts the effective fuzziness level based on the length of the search term if it exceeds the maximum allowed for the given string length according to the following rules:
+ *
+ * - Terms with 1-2 characters: 0 (exact match)
+ * - Terms with 3-5 characters: 1 (up to one difference is allowed)
+ * - Terms with more than 5 characters: 2 (up to two differences are allowed)
+ *
+ * @return level
+ */
+ @NotNull
+ @JsonProperty("level")
+ public Integer getLevel();
+
+ /**
+ * Language of the localized value. Must be provided when the field is of type localizedTextField. The provided Locale must be one of the Project's languages.
+ * @return language
+ */
+
+ @JsonProperty("language")
+ public String getLanguage();
+
+ /**
+ * Controls whether all of the provided terms must match (all, default) or any of those (any).
+ * @return mustMatch
+ */
+
+ @JsonProperty("mustMatch")
+ public SearchMatchType getMustMatch();
+
+ /**
+ * The search term to find fuzzy matches for. If multiple terms are provided (separated by whitespace), the fuzziness level is applied to each term individually.
+ * @param value value to be set
+ */
+
+ public void setValue(final Object value);
+
+ /**
+ * The maximum fuzziness level desired for the search term. Allowed values are 0, 1, and 2. The API automatically adjusts the effective fuzziness level based on the length of the search term if it exceeds the maximum allowed for the given string length according to the following rules:
+ *
+ * - Terms with 1-2 characters: 0 (exact match)
+ * - Terms with 3-5 characters: 1 (up to one difference is allowed)
+ * - Terms with more than 5 characters: 2 (up to two differences are allowed)
+ *
+ * @param level value to be set
+ */
+
+ public void setLevel(final Integer level);
+
+ /**
+ * Language of the localized value. Must be provided when the field is of type localizedTextField. The provided Locale must be one of the Project's languages.
+ * @param language value to be set
+ */
+
+ public void setLanguage(final String language);
+
+ /**
+ * Controls whether all of the provided terms must match (all, default) or any of those (any).
+ * @param mustMatch value to be set
+ */
+
+ public void setMustMatch(final SearchMatchType mustMatch);
+
+ /**
+ * factory method
+ * @return instance of SearchFuzzyValue
+ */
+ public static SearchFuzzyValue of() {
+ return new SearchFuzzyValueImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy SearchFuzzyValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static SearchFuzzyValue of(final SearchFuzzyValue template) {
+ SearchFuzzyValueImpl instance = new SearchFuzzyValueImpl();
+ instance.setField(template.getField());
+ instance.setBoost(template.getBoost());
+ instance.setFieldType(template.getFieldType());
+ instance.setValue(template.getValue());
+ instance.setLevel(template.getLevel());
+ instance.setLanguage(template.getLanguage());
+ instance.setMustMatch(template.getMustMatch());
+ return instance;
+ }
+
+ public SearchFuzzyValue copyDeep();
+
+ /**
+ * factory method to create a deep copy of SearchFuzzyValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static SearchFuzzyValue deepCopy(@Nullable final SearchFuzzyValue template) {
+ if (template == null) {
+ return null;
+ }
+ SearchFuzzyValueImpl instance = new SearchFuzzyValueImpl();
+ instance.setField(template.getField());
+ instance.setBoost(template.getBoost());
+ instance.setFieldType(template.getFieldType());
+ instance.setValue(template.getValue());
+ instance.setLevel(template.getLevel());
+ instance.setLanguage(template.getLanguage());
+ instance.setMustMatch(template.getMustMatch());
+ return instance;
+ }
+
+ /**
+ * builder factory method for SearchFuzzyValue
+ * @return builder
+ */
+ public static SearchFuzzyValueBuilder builder() {
+ return SearchFuzzyValueBuilder.of();
+ }
+
+ /**
+ * create builder for SearchFuzzyValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static SearchFuzzyValueBuilder builder(final SearchFuzzyValue template) {
+ return SearchFuzzyValueBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withSearchFuzzyValue(Function helper) {
+ return helper.apply(this);
+ }
+
+ /**
+ * gives a TypeReference for usage with Jackson DataBind
+ * @return TypeReference
+ */
+ public static com.fasterxml.jackson.core.type.TypeReference typeReference() {
+ return new com.fasterxml.jackson.core.type.TypeReference() {
+ @Override
+ public String toString() {
+ return "TypeReference";
+ }
+ };
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueBuilder.java
new file mode 100644
index 00000000000..4f7b6fc225e
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueBuilder.java
@@ -0,0 +1,245 @@
+
+package com.commercetools.api.models.search;
+
+import java.util.*;
+
+import javax.annotation.Nullable;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * SearchFuzzyValueBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * SearchFuzzyValue searchFuzzyValue = SearchFuzzyValue.builder()
+ * .field("{field}")
+ * .level(0.3)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class SearchFuzzyValueBuilder implements Builder {
+
+ private String field;
+
+ @Nullable
+ private Double boost;
+
+ @Nullable
+ private com.commercetools.api.models.search.SearchFieldType fieldType;
+
+ private java.lang.Object value;
+
+ private Integer level;
+
+ @Nullable
+ private String language;
+
+ @Nullable
+ private com.commercetools.api.models.search.SearchMatchType mustMatch;
+
+ /**
+ * set the value to the field
+ * @param field value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder field(final String field) {
+ this.field = field;
+ return this;
+ }
+
+ /**
+ * set the value to the boost
+ * @param boost value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder boost(@Nullable final Double boost) {
+ this.boost = boost;
+ return this;
+ }
+
+ /**
+ * Possible values for the fieldType property on simple expressions indicating the data type of the field.
+ * @param fieldType value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder fieldType(
+ @Nullable final com.commercetools.api.models.search.SearchFieldType fieldType) {
+ this.fieldType = fieldType;
+ return this;
+ }
+
+ /**
+ * The search term to find fuzzy matches for. If multiple terms are provided (separated by whitespace), the fuzziness level is applied to each term individually.
+ * @param value value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder value(final java.lang.Object value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * The maximum fuzziness level desired for the search term. Allowed values are 0, 1, and 2. The API automatically adjusts the effective fuzziness level based on the length of the search term if it exceeds the maximum allowed for the given string length according to the following rules:
+ *
+ * - Terms with 1-2 characters: 0 (exact match)
+ * - Terms with 3-5 characters: 1 (up to one difference is allowed)
+ * - Terms with more than 5 characters: 2 (up to two differences are allowed)
+ *
+ * @param level value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder level(final Integer level) {
+ this.level = level;
+ return this;
+ }
+
+ /**
+ * Language of the localized value. Must be provided when the field is of type localizedTextField. The provided Locale must be one of the Project's languages.
+ * @param language value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder language(@Nullable final String language) {
+ this.language = language;
+ return this;
+ }
+
+ /**
+ * Controls whether all of the provided terms must match (all, default) or any of those (any).
+ * @param mustMatch value to be set
+ * @return Builder
+ */
+
+ public SearchFuzzyValueBuilder mustMatch(
+ @Nullable final com.commercetools.api.models.search.SearchMatchType mustMatch) {
+ this.mustMatch = mustMatch;
+ return this;
+ }
+
+ /**
+ * value of field}
+ * @return field
+ */
+
+ public String getField() {
+ return this.field;
+ }
+
+ /**
+ * value of boost}
+ * @return boost
+ */
+
+ @Nullable
+ public Double getBoost() {
+ return this.boost;
+ }
+
+ /**
+ * Possible values for the fieldType property on simple expressions indicating the data type of the field.
+ * @return fieldType
+ */
+
+ @Nullable
+ public com.commercetools.api.models.search.SearchFieldType getFieldType() {
+ return this.fieldType;
+ }
+
+ /**
+ * The search term to find fuzzy matches for. If multiple terms are provided (separated by whitespace), the fuzziness level is applied to each term individually.
+ * @return value
+ */
+
+ public java.lang.Object getValue() {
+ return this.value;
+ }
+
+ /**
+ * The maximum fuzziness level desired for the search term. Allowed values are 0, 1, and 2. The API automatically adjusts the effective fuzziness level based on the length of the search term if it exceeds the maximum allowed for the given string length according to the following rules:
+ *
+ * - Terms with 1-2 characters: 0 (exact match)
+ * - Terms with 3-5 characters: 1 (up to one difference is allowed)
+ * - Terms with more than 5 characters: 2 (up to two differences are allowed)
+ *
+ * @return level
+ */
+
+ public Integer getLevel() {
+ return this.level;
+ }
+
+ /**
+ * Language of the localized value. Must be provided when the field is of type localizedTextField. The provided Locale must be one of the Project's languages.
+ * @return language
+ */
+
+ @Nullable
+ public String getLanguage() {
+ return this.language;
+ }
+
+ /**
+ * Controls whether all of the provided terms must match (all, default) or any of those (any).
+ * @return mustMatch
+ */
+
+ @Nullable
+ public com.commercetools.api.models.search.SearchMatchType getMustMatch() {
+ return this.mustMatch;
+ }
+
+ /**
+ * builds SearchFuzzyValue with checking for non-null required values
+ * @return SearchFuzzyValue
+ */
+ public SearchFuzzyValue build() {
+ Objects.requireNonNull(field, SearchFuzzyValue.class + ": field is missing");
+ Objects.requireNonNull(value, SearchFuzzyValue.class + ": value is missing");
+ Objects.requireNonNull(level, SearchFuzzyValue.class + ": level is missing");
+ return new SearchFuzzyValueImpl(field, boost, fieldType, value, level, language, mustMatch);
+ }
+
+ /**
+ * builds SearchFuzzyValue without checking for non-null required values
+ * @return SearchFuzzyValue
+ */
+ public SearchFuzzyValue buildUnchecked() {
+ return new SearchFuzzyValueImpl(field, boost, fieldType, value, level, language, mustMatch);
+ }
+
+ /**
+ * factory method for an instance of SearchFuzzyValueBuilder
+ * @return builder
+ */
+ public static SearchFuzzyValueBuilder of() {
+ return new SearchFuzzyValueBuilder();
+ }
+
+ /**
+ * create builder for SearchFuzzyValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static SearchFuzzyValueBuilder of(final SearchFuzzyValue template) {
+ SearchFuzzyValueBuilder builder = new SearchFuzzyValueBuilder();
+ builder.field = template.getField();
+ builder.boost = template.getBoost();
+ builder.fieldType = template.getFieldType();
+ builder.value = template.getValue();
+ builder.level = template.getLevel();
+ builder.language = template.getLanguage();
+ builder.mustMatch = template.getMustMatch();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueImpl.java
new file mode 100644
index 00000000000..f497b500213
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/search/SearchFuzzyValueImpl.java
@@ -0,0 +1,207 @@
+
+package com.commercetools.api.models.search;
+
+import java.time.*;
+import java.util.*;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.ModelBase;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * SearchFuzzyValue
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class SearchFuzzyValueImpl implements SearchFuzzyValue, ModelBase {
+
+ private String field;
+
+ private Double boost;
+
+ private com.commercetools.api.models.search.SearchFieldType fieldType;
+
+ private java.lang.Object value;
+
+ private Integer level;
+
+ private String language;
+
+ private com.commercetools.api.models.search.SearchMatchType mustMatch;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ SearchFuzzyValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Double boost,
+ @JsonProperty("fieldType") final com.commercetools.api.models.search.SearchFieldType fieldType,
+ @JsonProperty("value") final java.lang.Object value, @JsonProperty("level") final Integer level,
+ @JsonProperty("language") final String language,
+ @JsonProperty("mustMatch") final com.commercetools.api.models.search.SearchMatchType mustMatch) {
+ this.field = field;
+ this.boost = boost;
+ this.fieldType = fieldType;
+ this.value = value;
+ this.level = level;
+ this.language = language;
+ this.mustMatch = mustMatch;
+ }
+
+ /**
+ * create empty instance
+ */
+ public SearchFuzzyValueImpl() {
+ }
+
+ /**
+ *
+ */
+
+ public String getField() {
+ return this.field;
+ }
+
+ /**
+ *
+ */
+
+ public Double getBoost() {
+ return this.boost;
+ }
+
+ /**
+ * Possible values for the fieldType property on simple expressions indicating the data type of the field.
+ */
+
+ public com.commercetools.api.models.search.SearchFieldType getFieldType() {
+ return this.fieldType;
+ }
+
+ /**
+ * The search term to find fuzzy matches for. If multiple terms are provided (separated by whitespace), the fuzziness level is applied to each term individually.
+ */
+
+ public java.lang.Object getValue() {
+ return this.value;
+ }
+
+ /**
+ * The maximum fuzziness level desired for the search term. Allowed values are 0, 1, and 2. The API automatically adjusts the effective fuzziness level based on the length of the search term if it exceeds the maximum allowed for the given string length according to the following rules:
+ *
+ * - Terms with 1-2 characters: 0 (exact match)
+ * - Terms with 3-5 characters: 1 (up to one difference is allowed)
+ * - Terms with more than 5 characters: 2 (up to two differences are allowed)
+ *
+ */
+
+ public Integer getLevel() {
+ return this.level;
+ }
+
+ /**
+ * Language of the localized value. Must be provided when the field is of type localizedTextField. The provided Locale must be one of the Project's languages.
+ */
+
+ public String getLanguage() {
+ return this.language;
+ }
+
+ /**
+ * Controls whether all of the provided terms must match (all, default) or any of those (any).
+ */
+
+ public com.commercetools.api.models.search.SearchMatchType getMustMatch() {
+ return this.mustMatch;
+ }
+
+ public void setField(final String field) {
+ this.field = field;
+ }
+
+ public void setBoost(final Double boost) {
+ this.boost = boost;
+ }
+
+ public void setFieldType(final com.commercetools.api.models.search.SearchFieldType fieldType) {
+ this.fieldType = fieldType;
+ }
+
+ public void setValue(final java.lang.Object value) {
+ this.value = value;
+ }
+
+ public void setLevel(final Integer level) {
+ this.level = level;
+ }
+
+ public void setLanguage(final String language) {
+ this.language = language;
+ }
+
+ public void setMustMatch(final com.commercetools.api.models.search.SearchMatchType mustMatch) {
+ this.mustMatch = mustMatch;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ SearchFuzzyValueImpl that = (SearchFuzzyValueImpl) o;
+
+ return new EqualsBuilder().append(field, that.field)
+ .append(boost, that.boost)
+ .append(fieldType, that.fieldType)
+ .append(value, that.value)
+ .append(level, that.level)
+ .append(language, that.language)
+ .append(mustMatch, that.mustMatch)
+ .append(field, that.field)
+ .append(boost, that.boost)
+ .append(fieldType, that.fieldType)
+ .append(value, that.value)
+ .append(level, that.level)
+ .append(language, that.language)
+ .append(mustMatch, that.mustMatch)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(field)
+ .append(boost)
+ .append(fieldType)
+ .append(value)
+ .append(level)
+ .append(language)
+ .append(mustMatch)
+ .toHashCode();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("field", field)
+ .append("boost", boost)
+ .append("fieldType", fieldType)
+ .append("value", value)
+ .append("level", level)
+ .append("language", language)
+ .append("mustMatch", mustMatch)
+ .build();
+ }
+
+ @Override
+ public SearchFuzzyValue copyDeep() {
+ return SearchFuzzyValue.deepCopy(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeDraftQueryBuilderDsl.java
index 020e800e82b..3f4111df660 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeDraftQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeDraftQueryBuilderDsl.java
@@ -23,4 +23,10 @@ public LongComparisonPredicateBuilder new CombinationQueryPredicate<>(p, CartDiscountValueRelativeDraftQueryBuilderDsl::of));
}
+ public StringComparisonPredicateBuilder applicationMode() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("applicationMode")),
+ p -> new CombinationQueryPredicate<>(p, CartDiscountValueRelativeDraftQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeQueryBuilderDsl.java
index 5f2cb31a40c..8ef494292b2 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart_discount/CartDiscountValueRelativeQueryBuilderDsl.java
@@ -23,4 +23,10 @@ public LongComparisonPredicateBuilder
p -> new CombinationQueryPredicate<>(p, CartDiscountValueRelativeQueryBuilderDsl::of));
}
+ public StringComparisonPredicateBuilder applicationMode() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("applicationMode")),
+ p -> new CombinationQueryPredicate<>(p, CartDiscountValueRelativeQueryBuilderDsl::of));
+ }
+
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/recurring_order/RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/recurring_order/RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl.java
index 2aa14b5d08d..b3398e32515 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/recurring_order/RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/recurring_order/RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl.java
@@ -19,10 +19,10 @@ public StringComparisonPredicateBuilder new CombinationQueryPredicate<>(p, RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl::of));
}
- public CombinationQueryPredicate skipConfiguration(
+ public CombinationQueryPredicate skipConfigurationInputDraft(
Function> fn) {
return new CombinationQueryPredicate<>(ContainerQueryPredicate.of()
- .parent(ConstantQueryPredicate.of().constant("skipConfiguration"))
+ .parent(ConstantQueryPredicate.of().constant("skipConfigurationInputDraft"))
.inner(fn.apply(
com.commercetools.api.predicates.query.recurring_order.SkipConfigurationDraftQueryBuilderDsl.of())),
RecurringOrderSetOrderSkipConfigurationActionQueryBuilderDsl::of);
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyExpressionQueryBuilderDsl.java
new file mode 100644
index 00000000000..53b6ddb9679
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyExpressionQueryBuilderDsl.java
@@ -0,0 +1,24 @@
+
+package com.commercetools.api.predicates.query.search;
+
+import java.util.function.Function;
+
+import com.commercetools.api.predicates.query.*;
+
+public class SearchFuzzyExpressionQueryBuilderDsl {
+ public SearchFuzzyExpressionQueryBuilderDsl() {
+ }
+
+ public static SearchFuzzyExpressionQueryBuilderDsl of() {
+ return new SearchFuzzyExpressionQueryBuilderDsl();
+ }
+
+ public CombinationQueryPredicate fuzzy(
+ Function> fn) {
+ return new CombinationQueryPredicate<>(ContainerQueryPredicate.of()
+ .parent(ConstantQueryPredicate.of().constant("fuzzy"))
+ .inner(fn.apply(com.commercetools.api.predicates.query.search.SearchFuzzyValueQueryBuilderDsl.of())),
+ SearchFuzzyExpressionQueryBuilderDsl::of);
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyValueQueryBuilderDsl.java
new file mode 100644
index 00000000000..d34509cf13a
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchFuzzyValueQueryBuilderDsl.java
@@ -0,0 +1,55 @@
+
+package com.commercetools.api.predicates.query.search;
+
+import com.commercetools.api.predicates.query.*;
+
+public class SearchFuzzyValueQueryBuilderDsl {
+ public SearchFuzzyValueQueryBuilderDsl() {
+ }
+
+ public static SearchFuzzyValueQueryBuilderDsl of() {
+ return new SearchFuzzyValueQueryBuilderDsl();
+ }
+
+ public StringComparisonPredicateBuilder field() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("field")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public DoubleComparisonPredicateBuilder boost() {
+ return new DoubleComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("boost")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder fieldType() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("fieldType")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder value() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("value")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public LongComparisonPredicateBuilder level() {
+ return new LongComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("level")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder language() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("language")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+ public StringComparisonPredicateBuilder mustMatch() {
+ return new StringComparisonPredicateBuilder<>(
+ BinaryQueryPredicate.of().left(new ConstantQueryPredicate("mustMatch")),
+ p -> new CombinationQueryPredicate<>(p, SearchFuzzyValueQueryBuilderDsl::of));
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionQueryBuilderDsl.java
index 871993a2352..10000a211c0 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionQueryBuilderDsl.java
@@ -55,6 +55,13 @@ public CombinationQueryPredicate asSearchF
SearchQueryExpressionQueryBuilderDsl::of);
}
+ public CombinationQueryPredicate asSearchFuzzyExpression(
+ Function> fn) {
+ return new CombinationQueryPredicate<>(
+ fn.apply(com.commercetools.api.predicates.query.search.SearchFuzzyExpressionQueryBuilderDsl.of()),
+ SearchQueryExpressionQueryBuilderDsl::of);
+ }
+
public CombinationQueryPredicate asSearchLongRangeExpression(
Function> fn) {
return new CombinationQueryPredicate<>(
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java
index bbc555dac4e..d9bdc66f3e1 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/search/SearchQueryExpressionValueQueryBuilderDsl.java
@@ -80,6 +80,13 @@ public CombinationQueryPredicate asSe
SearchQueryExpressionValueQueryBuilderDsl::of);
}
+ public CombinationQueryPredicate asSearchFuzzyValue(
+ Function> fn) {
+ return new CombinationQueryPredicate<>(
+ fn.apply(com.commercetools.api.predicates.query.search.SearchFuzzyValueQueryBuilderDsl.of()),
+ SearchQueryExpressionValueQueryBuilderDsl::of);
+ }
+
public CombinationQueryPredicate asSearchLongRangeValue(
Function> fn) {
return new CombinationQueryPredicate<>(
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java
index 5d3437eda61..63d3b3495e5 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDTest.java
@@ -136,6 +136,16 @@ public static Object[][] requestWithMethodParameters() {
.createHttpRequest(),
"get",
"test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?localeProjection=localeProjection", },
+ new Object[] {
+ apiRoot.withProjectKey("test_projectKey")
+ .inStoreKeyWithStoreKeyValue("test_storeKey")
+ .productProjections()
+ .withId("test_ID")
+ .get()
+ .withFilterAttributes("filter[attributes]")
+ .createHttpRequest(),
+ "get",
+ "test_projectKey/in-store/key=test_storeKey/product-projections/test_ID?filter[attributes]=filter%5Battributes%5D", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.inStoreKeyWithStoreKeyValue("test_storeKey")
@@ -214,6 +224,12 @@ public static Object[][] executeMethodParameters() {
.withId("test_ID")
.get()
.withLocaleProjection("localeProjection"), },
+ new Object[] { apiRoot.withProjectKey("test_projectKey")
+ .inStoreKeyWithStoreKeyValue("test_storeKey")
+ .productProjections()
+ .withId("test_ID")
+ .get()
+ .withFilterAttributes("filter[attributes]"), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.inStoreKeyWithStoreKeyValue("test_storeKey")
.productProjections()
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java
index 6105d90397f..3a6c6fa603b 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyTest.java
@@ -137,6 +137,16 @@ public static Object[][] requestWithMethodParameters() {
.createHttpRequest(),
"get",
"test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?localeProjection=localeProjection", },
+ new Object[] {
+ apiRoot.withProjectKey("test_projectKey")
+ .inStoreKeyWithStoreKeyValue("test_storeKey")
+ .productProjections()
+ .withKey("test_key")
+ .get()
+ .withFilterAttributes("filter[attributes]")
+ .createHttpRequest(),
+ "get",
+ "test_projectKey/in-store/key=test_storeKey/product-projections/key=test_key?filter[attributes]=filter%5Battributes%5D", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.inStoreKeyWithStoreKeyValue("test_storeKey")
@@ -215,6 +225,12 @@ public static Object[][] executeMethodParameters() {
.withKey("test_key")
.get()
.withLocaleProjection("localeProjection"), },
+ new Object[] { apiRoot.withProjectKey("test_projectKey")
+ .inStoreKeyWithStoreKeyValue("test_storeKey")
+ .productProjections()
+ .withKey("test_key")
+ .get()
+ .withFilterAttributes("filter[attributes]"), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.inStoreKeyWithStoreKeyValue("test_storeKey")
.productProjections()
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java
index 1cb4b21c14b..2c55644b901 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsByIDTest.java
@@ -131,6 +131,15 @@ public static Object[][] requestWithMethodParameters() {
.withStoreProjection("storeProjection")
.createHttpRequest(),
"get", "test_projectKey/product-projections/test_ID?storeProjection=storeProjection", },
+ new Object[] {
+ apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .withId("test_ID")
+ .get()
+ .withFilterAttributes("filter[attributes]")
+ .createHttpRequest(),
+ "get",
+ "test_projectKey/product-projections/test_ID?filter[attributes]=filter%5Battributes%5D", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
@@ -198,6 +207,11 @@ public static Object[][] executeMethodParameters() {
.withId("test_ID")
.get()
.withStoreProjection("storeProjection"), },
+ new Object[] { apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .withId("test_ID")
+ .get()
+ .withFilterAttributes("filter[attributes]"), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.withId("test_ID")
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java
index 211f203aab0..fe99f27a302 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsKeyByKeyTest.java
@@ -132,6 +132,15 @@ public static Object[][] requestWithMethodParameters() {
.withStoreProjection("storeProjection")
.createHttpRequest(),
"get", "test_projectKey/product-projections/key=test_key?storeProjection=storeProjection", },
+ new Object[] {
+ apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .withKey("test_key")
+ .get()
+ .withFilterAttributes("filter[attributes]")
+ .createHttpRequest(),
+ "get",
+ "test_projectKey/product-projections/key=test_key?filter[attributes]=filter%5Battributes%5D", },
new Object[] {
apiRoot.withProjectKey("test_projectKey")
.productProjections()
@@ -199,6 +208,11 @@ public static Object[][] executeMethodParameters() {
.withKey("test_key")
.get()
.withStoreProjection("storeProjection"), },
+ new Object[] { apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .withKey("test_key")
+ .get()
+ .withFilterAttributes("filter[attributes]"), },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.withKey("test_key")
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java
index 297a75e3d96..8509ca4caa9 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductProjectionsTest.java
@@ -119,6 +119,13 @@ public static Object[][] requestWithMethodParameters() {
.withStoreProjection("storeProjection")
.createHttpRequest(),
"get", "test_projectKey/product-projections?storeProjection=storeProjection", },
+ new Object[] {
+ apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .get()
+ .withFilterAttributes("filter[attributes]")
+ .createHttpRequest(),
+ "get", "test_projectKey/product-projections?filter[attributes]=filter%5Battributes%5D", },
new Object[] { apiRoot.withProjectKey("test_projectKey")
.productProjections()
.get()
@@ -203,6 +210,10 @@ public static Object[][] executeMethodParameters() {
.productProjections()
.get()
.withStoreProjection("storeProjection"), },
+ new Object[] { apiRoot.withProjectKey("test_projectKey")
+ .productProjections()
+ .get()
+ .withFilterAttributes("filter[attributes]"), },
new Object[] {
apiRoot.withProjectKey("test_projectKey").productProjections().get().withExpand("expand"), },
new Object[] { apiRoot.withProjectKey("test_projectKey").productProjections().get().withSort("sort"), },
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftTest.java
index fa5dd033d7c..a28dace3e02 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeDraftTest.java
@@ -16,7 +16,11 @@ public void buildUnchecked(String name, CartDiscountValueRelativeDraftBuilder bu
}
public static Object[][] objectBuilder() {
- return new Object[][] { new Object[] { "permyriad", CartDiscountValueRelativeDraft.builder().permyriad(1L) } };
+ return new Object[][] { new Object[] { "permyriad", CartDiscountValueRelativeDraft.builder().permyriad(1L) },
+ new Object[] { "applicationMode",
+ CartDiscountValueRelativeDraft.builder()
+ .applicationMode(com.commercetools.api.models.cart_discount.DiscountApplicationMode
+ .findEnum("ProportionateDistribution")) } };
}
@Test
@@ -25,4 +29,14 @@ public void permyriad() {
value.setPermyriad(1L);
Assertions.assertThat(value.getPermyriad()).isEqualTo(1L);
}
+
+ @Test
+ public void applicationMode() {
+ CartDiscountValueRelativeDraft value = CartDiscountValueRelativeDraft.of();
+ value.setApplicationMode(
+ com.commercetools.api.models.cart_discount.DiscountApplicationMode.findEnum("ProportionateDistribution"));
+ Assertions.assertThat(value.getApplicationMode())
+ .isEqualTo(com.commercetools.api.models.cart_discount.DiscountApplicationMode
+ .findEnum("ProportionateDistribution"));
+ }
}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeTest.java
index 1580d7524e4..b13deddd022 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart_discount/CartDiscountValueRelativeTest.java
@@ -16,7 +16,11 @@ public void buildUnchecked(String name, CartDiscountValueRelativeBuilder builder
}
public static Object[][] objectBuilder() {
- return new Object[][] { new Object[] { "permyriad", CartDiscountValueRelative.builder().permyriad(1L) } };
+ return new Object[][] { new Object[] { "permyriad", CartDiscountValueRelative.builder().permyriad(1L) },
+ new Object[] { "applicationMode",
+ CartDiscountValueRelative.builder()
+ .applicationMode(com.commercetools.api.models.cart_discount.DiscountApplicationMode
+ .findEnum("ProportionateDistribution")) } };
}
@Test
@@ -25,4 +29,14 @@ public void permyriad() {
value.setPermyriad(1L);
Assertions.assertThat(value.getPermyriad()).isEqualTo(1L);
}
+
+ @Test
+ public void applicationMode() {
+ CartDiscountValueRelative value = CartDiscountValueRelative.of();
+ value.setApplicationMode(
+ com.commercetools.api.models.cart_discount.DiscountApplicationMode.findEnum("ProportionateDistribution"));
+ Assertions.assertThat(value.getApplicationMode())
+ .isEqualTo(com.commercetools.api.models.cart_discount.DiscountApplicationMode
+ .findEnum("ProportionateDistribution"));
+ }
}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionTest.java
index b168336a158..389d127e90d 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/recurring_order/RecurringOrderSetOrderSkipConfigurationActionTest.java
@@ -21,19 +21,20 @@ public void buildUnchecked(String name, RecurringOrderSetOrderSkipConfigurationA
public static Object[][] objectBuilder() {
return new Object[][] {
- new Object[] { "skipConfiguration",
+ new Object[] { "skipConfigurationInputDraft",
RecurringOrderSetOrderSkipConfigurationAction.builder()
- .skipConfiguration(
+ .skipConfigurationInputDraft(
new com.commercetools.api.models.recurring_order.SkipConfigurationDraftImpl()) },
new Object[] { "updatedExpiresAt", RecurringOrderSetOrderSkipConfigurationAction.builder()
.updatedExpiresAt(ZonedDateTime.parse("2023-06-01T12:00Z")) } };
}
@Test
- public void skipConfiguration() {
+ public void skipConfigurationInputDraft() {
RecurringOrderSetOrderSkipConfigurationAction value = RecurringOrderSetOrderSkipConfigurationAction.of();
- value.setSkipConfiguration(new com.commercetools.api.models.recurring_order.SkipConfigurationDraftImpl());
- Assertions.assertThat(value.getSkipConfiguration())
+ value.setSkipConfigurationInputDraft(
+ new com.commercetools.api.models.recurring_order.SkipConfigurationDraftImpl());
+ Assertions.assertThat(value.getSkipConfigurationInputDraft())
.isEqualTo(new com.commercetools.api.models.recurring_order.SkipConfigurationDraftImpl());
}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionTest.java
new file mode 100644
index 00000000000..4ddcb5012b1
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyExpressionTest.java
@@ -0,0 +1,30 @@
+
+package com.commercetools.api.models.search;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+
+public class SearchFuzzyExpressionTest {
+
+ @ParameterizedTest(name = "#{index} with {0}")
+ @MethodSource("objectBuilder")
+ public void buildUnchecked(String name, SearchFuzzyExpressionBuilder builder) {
+ SearchFuzzyExpression searchFuzzyExpression = builder.buildUnchecked();
+ Assertions.assertThat(searchFuzzyExpression).isInstanceOf(SearchFuzzyExpression.class);
+ }
+
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { "fuzzy", SearchFuzzyExpression.builder()
+ .fuzzy(new com.commercetools.api.models.search.SearchFuzzyValueImpl()) } };
+ }
+
+ @Test
+ public void fuzzy() {
+ SearchFuzzyExpression value = SearchFuzzyExpression.of();
+ value.setFuzzy(new com.commercetools.api.models.search.SearchFuzzyValueImpl());
+ Assertions.assertThat(value.getFuzzy())
+ .isEqualTo(new com.commercetools.api.models.search.SearchFuzzyValueImpl());
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyValueTest.java
new file mode 100644
index 00000000000..c3fd52b7236
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/search/SearchFuzzyValueTest.java
@@ -0,0 +1,54 @@
+
+package com.commercetools.api.models.search;
+
+import org.assertj.core.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+
+public class SearchFuzzyValueTest {
+
+ @ParameterizedTest(name = "#{index} with {0}")
+ @MethodSource("objectBuilder")
+ public void buildUnchecked(String name, SearchFuzzyValueBuilder builder) {
+ SearchFuzzyValue searchFuzzyValue = builder.buildUnchecked();
+ Assertions.assertThat(searchFuzzyValue).isInstanceOf(SearchFuzzyValue.class);
+ }
+
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { "value", SearchFuzzyValue.builder().value("value") },
+ new Object[] { "level", SearchFuzzyValue.builder().level(2) },
+ new Object[] { "language", SearchFuzzyValue.builder().language("language") },
+ new Object[] { "mustMatch", SearchFuzzyValue.builder()
+ .mustMatch(com.commercetools.api.models.search.SearchMatchType.findEnum("any")) } };
+ }
+
+ @Test
+ public void value() {
+ SearchFuzzyValue value = SearchFuzzyValue.of();
+ value.setValue("value");
+ Assertions.assertThat(value.getValue()).isEqualTo("value");
+ }
+
+ @Test
+ public void level() {
+ SearchFuzzyValue value = SearchFuzzyValue.of();
+ value.setLevel(2);
+ Assertions.assertThat(value.getLevel()).isEqualTo(2);
+ }
+
+ @Test
+ public void language() {
+ SearchFuzzyValue value = SearchFuzzyValue.of();
+ value.setLanguage("language");
+ Assertions.assertThat(value.getLanguage()).isEqualTo("language");
+ }
+
+ @Test
+ public void mustMatch() {
+ SearchFuzzyValue value = SearchFuzzyValue.of();
+ value.setMustMatch(com.commercetools.api.models.search.SearchMatchType.findEnum("any"));
+ Assertions.assertThat(value.getMustMatch())
+ .isEqualTo(com.commercetools.api.models.search.SearchMatchType.findEnum("any"));
+ }
+}
diff --git a/reference.txt b/reference.txt
new file mode 100644
index 00000000000..430a44fb553
--- /dev/null
+++ b/reference.txt
@@ -0,0 +1 @@
+6a9abd6a4ebdcbfa51d95804400e301b91b1c4c1
diff --git a/references.txt b/references.txt
index 9beac608b90..ec109cabc71 100644
--- a/references.txt
+++ b/references.txt
@@ -471,3 +471,4 @@ e60554cf51abaeb40bb26716fb27ada4c135b40f
bf9886771c750bd43c1fc124dd6689ef4e3b45c5
ea7ba668e4084d845f2f3871c239999f43613b28
7c8466665829aaf9142b056c57fe5b32c4072076
+263e58a9f68bacfe67cd292b203c956d5ae9f264