From a33cb1908a106a31cb445307bd5741c5ced34932 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:45:33 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 160 ++++++------ .../main/resources/graphql/schema.graphqls | 6 + .../client/ByProjectKeyOrdersSearchHead.java | 2 +- ...rojectKeyProductProjectionsSuggestGet.java | 1 - .../cart/CartChangeLineItemsOrderAction.java | 135 ++++++++++ ...CartChangeLineItemsOrderActionBuilder.java | 107 ++++++++ .../CartChangeLineItemsOrderActionImpl.java | 98 ++++++++ .../models/cart/CartSetCustomerIdAction.java | 4 +- .../cart/CartSetCustomerIdActionBuilder.java | 4 +- .../cart/CartSetCustomerIdActionImpl.java | 2 +- .../api/models/cart/CartUpdateAction.java | 13 + .../models/cart/CartUpdateActionBuilder.java | 4 + .../me/MyCartChangeLineItemsOrderAction.java | 135 ++++++++++ ...CartChangeLineItemsOrderActionBuilder.java | 107 ++++++++ .../MyCartChangeLineItemsOrderActionImpl.java | 98 ++++++++ .../api/models/me/MyCartUpdateAction.java | 13 + .../models/me/MyCartUpdateActionBuilder.java | 4 + .../order/OrderSearchAnyValueBuilder.java | 11 +- .../models/order/OrderSearchAnyValueImpl.java | 12 +- .../models/order/OrderSearchCustomType.java | 235 ++++++++++++++++++ .../OrderSearchDateRangeValueBuilder.java | 11 +- .../order/OrderSearchDateRangeValueImpl.java | 11 +- .../OrderSearchFullTextValueBuilder.java | 11 +- .../order/OrderSearchFullTextValueImpl.java | 12 +- .../OrderSearchLongRangeValueBuilder.java | 11 +- .../order/OrderSearchLongRangeValueImpl.java | 12 +- .../OrderSearchNumberRangeValueBuilder.java | 11 +- .../OrderSearchNumberRangeValueImpl.java | 11 +- .../OrderSearchQueryExpressionValue.java | 8 +- ...rderSearchQueryExpressionValueBuilder.java | 11 +- .../OrderSearchQueryExpressionValueImpl.java | 11 +- .../api/models/order/OrderSearchRequest.java | 4 +- .../order/OrderSearchRequestBuilder.java | 4 +- .../models/order/OrderSearchRequestImpl.java | 2 +- .../order/OrderSearchStringValueBuilder.java | 11 +- .../order/OrderSearchStringValueImpl.java | 12 +- ...geLineItemsOrderActionQueryBuilderDsl.java | 26 ++ .../cart/CartUpdateActionQueryBuilderDsl.java | 7 + ...geLineItemsOrderActionQueryBuilderDsl.java | 26 ++ .../me/MyCartUpdateActionQueryBuilderDsl.java | 7 + .../CartChangeLineItemsOrderActionTest.java | 39 +++ .../MyCartChangeLineItemsOrderActionTest.java | 39 +++ .../OrderSearchQueryExpressionValueTest.java | 9 +- references.txt | 1 + 44 files changed, 1293 insertions(+), 165 deletions(-) create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderAction.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionBuilder.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionImpl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchCustomType.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartChangeLineItemsOrderActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartChangeLineItemsOrderActionQueryBuilderDsl.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionTest.java create mode 100644 commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionTest.java diff --git a/changes.md b/changes.md index b014bcc8163..52e704ebaf6 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,25 @@ **Api changes** +
+Added Resource(s) + +- added resource `/{projectKey}/customers/search` +- added resource `/{projectKey}/customers/search/indexing-status` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes` +- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images` +- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}` +- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}` +
+ +
Added Enum(s) @@ -17,47 +37,32 @@
-Added Method(s) +Removed QueryParameter(s) -- added method `apiRoot.withProjectKey().customers().search().post()` -- added method `apiRoot.withProjectKey().customers().search().head()` -- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().orderQuote().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().images().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().images().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().head()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().delete()` +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products` +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/key={key}` +- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}` +- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}` +- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}` +- :warning: removed query parameter `sort` from method `get /{projectKey}/product-projections/suggest` +- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest` +- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest` +
+ + +
+Changed Property(s) + +- :warning: changed property `customType` of type `OrderSearchAnyValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchDateRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchFullTextValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchLongRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchNumberRangeValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchQueryExpressionValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `customType` of type `OrderSearchStringValue` from type `string` to `OrderSearchCustomType`
@@ -112,12 +117,14 @@ - added type `BusinessUnitApprovalRuleMode` - added type `BusinessUnitChangeApprovalRuleModeAction` +- added type `CartChangeLineItemsOrderAction` - added type `CustomerIndexingProgress` - added type `CustomerIndexingStatus` - added type `CustomerPagedSearchResponse` - added type `CustomerSearchIndexingStatusResponse` - added type `CustomerSearchRequest` - added type `CustomerSearchResult` +- added type `MyCartChangeLineItemsOrderAction` - added type `BusinessUnitApprovalRuleModeChangedMessage` - added type `ProductPriceCustomFieldAddedMessage` - added type `ProductPriceCustomFieldChangedMessage` @@ -138,6 +145,7 @@ - added type `ProductTailoringImagesSetMessagePayload` - added type `ProductVariantTailoringAddedMessagePayload` - added type `ProductVariantTailoringRemovedMessagePayload` +- added type `OrderSearchCustomType` - added type `ProductVariantTailoring` - added type `ProductVariantTailoringDraft` - added type `ProductTailoringAddAssetAction` @@ -164,38 +172,46 @@
-Removed QueryParameter(s) - -- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products` -- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products` -- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/key={key}` -- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/key={key}` -- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/key={key}` -- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}` -- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}` -- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}` -- :warning: removed query parameter `sort` from method `get /{projectKey}/product-projections/suggest` -- :warning: removed query parameter `offset` from method `get /{projectKey}/product-projections/suggest` -- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/suggest` -
- - -
-Added Resource(s) +Added Method(s) -- added resource `/{projectKey}/customers/search` -- added resource `/{projectKey}/customers/search/indexing-status` -- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests` -- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes` -- added resource `/{projectKey}/in-store/key={storeKey}/quotes` -- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes` -- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images` -- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images` -- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}` -- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}` -- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}` +- added method `apiRoot.withProjectKey().customers().search().post()` +- added method `apiRoot.withProjectKey().customers().search().head()` +- added method `apiRoot.withProjectKey().customers().searchIndexingStatus().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().orderQuote().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductId().productTailoring().images().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().products().withProductKey().productTailoring().images().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quoteRequests().withId().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().stagedQuotes().withId().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withKey().delete()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().get()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().head()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().post()` +- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().quotes().withId().delete()`
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 b9eeb166c07..046576e12f1 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -2017,6 +2017,7 @@ input CartUpdateAction { changeCustomLineItemMoney: ChangeCartCustomLineItemMoney changeCustomLineItemPriceMode: ChangeCartCustomLineItemPriceMode changeCustomLineItemQuantity: ChangeCartCustomLineItemQuantity + changeLineItemsOrder: ChangeCartLineItemsOrder changeTaxCalculationMode: ChangeCartTaxCalculationMode changeTaxMode: ChangeCartTaxMode changeTaxRoundingMode: ChangeCartTaxRoundingMode @@ -2353,6 +2354,10 @@ input ChangeCartLineItemQuantity { externalTotalPrice: ExternalLineItemTotalPriceDraft } +input ChangeCartLineItemsOrder { + lineItemOrder: [String!]! +} + input ChangeCartTaxCalculationMode { taxCalculationMode: TaxCalculationMode! } @@ -6435,6 +6440,7 @@ input MyCartUpdateAction { addPayment: AddCartPayment addShoppingList: AddCartShoppingList applyDeltaToLineItemShippingDetailsTargets: ApplyCartDeltaToLineItemShippingDetailsTargets + changeLineItemsOrder: ChangeCartLineItemsOrder changeTaxMode: ChangeMyCartTaxMode recalculate: RecalculateCart removeDiscountCode: RemoveCartDiscountCode diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersSearchHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersSearchHead.java index 75ab08989b7..beb98ddd9d4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersSearchHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersSearchHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks whether a search index for the Project's Orders exists.

+ *

Checks whether a search index for the Project's Orders exists. Returns a 200 OK status if the index exists or a 404 Not Found error otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSuggestGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSuggestGet.java index 82c3d120f9a..5b0cbc44554 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSuggestGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsSuggestGet.java @@ -30,7 +30,6 @@ * .productProjections() * .suggest() * .get() - * .with/searchKeywords[aZ]{2}([AZ]{2})?/(/searchKeywords[aZ]{2}([AZ]{2})?/) * .execute() * } *
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderAction.java new file mode 100644 index 00000000000..792b054f49a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderAction.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.cart; + +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; + +/** + * CartChangeLineItemsOrderAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = CartChangeLineItemsOrderAction.builder()
+ *             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = CartChangeLineItemsOrderActionImpl.class) +public interface CartChangeLineItemsOrderAction extends CartUpdateAction { + + /** + * discriminator value for CartChangeLineItemsOrderAction + */ + String CHANGE_LINE_ITEMS_ORDER = "changeLineItemsOrder"; + + /** + *

All existing LineItem ids in the desired new order.

+ * @return lineItemOrder + */ + @NotNull + @JsonProperty("lineItemOrder") + public List getLineItemOrder(); + + /** + *

All existing LineItem ids in the desired new order.

+ * @param lineItemOrder values to be set + */ + + @JsonIgnore + public void setLineItemOrder(final String... lineItemOrder); + + /** + *

All existing LineItem ids in the desired new order.

+ * @param lineItemOrder values to be set + */ + + public void setLineItemOrder(final List lineItemOrder); + + /** + * factory method + * @return instance of CartChangeLineItemsOrderAction + */ + public static CartChangeLineItemsOrderAction of() { + return new CartChangeLineItemsOrderActionImpl(); + } + + /** + * factory method to create a shallow copy CartChangeLineItemsOrderAction + * @param template instance to be copied + * @return copy instance + */ + public static CartChangeLineItemsOrderAction of(final CartChangeLineItemsOrderAction template) { + CartChangeLineItemsOrderActionImpl instance = new CartChangeLineItemsOrderActionImpl(); + instance.setLineItemOrder(template.getLineItemOrder()); + return instance; + } + + /** + * factory method to create a deep copy of CartChangeLineItemsOrderAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static CartChangeLineItemsOrderAction deepCopy(@Nullable final CartChangeLineItemsOrderAction template) { + if (template == null) { + return null; + } + CartChangeLineItemsOrderActionImpl instance = new CartChangeLineItemsOrderActionImpl(); + instance.setLineItemOrder(Optional.ofNullable(template.getLineItemOrder()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for CartChangeLineItemsOrderAction + * @return builder + */ + public static CartChangeLineItemsOrderActionBuilder builder() { + return CartChangeLineItemsOrderActionBuilder.of(); + } + + /** + * create builder for CartChangeLineItemsOrderAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartChangeLineItemsOrderActionBuilder builder(final CartChangeLineItemsOrderAction template) { + return CartChangeLineItemsOrderActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withCartChangeLineItemsOrderAction(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/cart/CartChangeLineItemsOrderActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionBuilder.java new file mode 100644 index 00000000000..c69f5b9778c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.cart; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * CartChangeLineItemsOrderActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = CartChangeLineItemsOrderAction.builder()
+ *             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartChangeLineItemsOrderActionBuilder implements Builder { + + private java.util.List lineItemOrder; + + /** + *

All existing LineItem ids in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public CartChangeLineItemsOrderActionBuilder lineItemOrder(final String... lineItemOrder) { + this.lineItemOrder = new ArrayList<>(Arrays.asList(lineItemOrder)); + return this; + } + + /** + *

All existing LineItem ids in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public CartChangeLineItemsOrderActionBuilder lineItemOrder(final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + return this; + } + + /** + *

All existing LineItem ids in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public CartChangeLineItemsOrderActionBuilder plusLineItemOrder(final String... lineItemOrder) { + if (this.lineItemOrder == null) { + this.lineItemOrder = new ArrayList<>(); + } + this.lineItemOrder.addAll(Arrays.asList(lineItemOrder)); + return this; + } + + /** + *

All existing LineItem ids in the desired new order.

+ * @return lineItemOrder + */ + + public java.util.List getLineItemOrder() { + return this.lineItemOrder; + } + + /** + * builds CartChangeLineItemsOrderAction with checking for non-null required values + * @return CartChangeLineItemsOrderAction + */ + public CartChangeLineItemsOrderAction build() { + Objects.requireNonNull(lineItemOrder, CartChangeLineItemsOrderAction.class + ": lineItemOrder is missing"); + return new CartChangeLineItemsOrderActionImpl(lineItemOrder); + } + + /** + * builds CartChangeLineItemsOrderAction without checking for non-null required values + * @return CartChangeLineItemsOrderAction + */ + public CartChangeLineItemsOrderAction buildUnchecked() { + return new CartChangeLineItemsOrderActionImpl(lineItemOrder); + } + + /** + * factory method for an instance of CartChangeLineItemsOrderActionBuilder + * @return builder + */ + public static CartChangeLineItemsOrderActionBuilder of() { + return new CartChangeLineItemsOrderActionBuilder(); + } + + /** + * create builder for CartChangeLineItemsOrderAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static CartChangeLineItemsOrderActionBuilder of(final CartChangeLineItemsOrderAction template) { + CartChangeLineItemsOrderActionBuilder builder = new CartChangeLineItemsOrderActionBuilder(); + builder.lineItemOrder = template.getLineItemOrder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionImpl.java new file mode 100644 index 00000000000..af13557d2f1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.cart; + +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; + +/** + * CartChangeLineItemsOrderAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class CartChangeLineItemsOrderActionImpl implements CartChangeLineItemsOrderAction, ModelBase { + + private String action; + + private java.util.List lineItemOrder; + + /** + * create instance with all properties + */ + @JsonCreator + CartChangeLineItemsOrderActionImpl(@JsonProperty("lineItemOrder") final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + this.action = CHANGE_LINE_ITEMS_ORDER; + } + + /** + * create empty instance + */ + public CartChangeLineItemsOrderActionImpl() { + this.action = CHANGE_LINE_ITEMS_ORDER; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

All existing LineItem ids in the desired new order.

+ */ + + public java.util.List getLineItemOrder() { + return this.lineItemOrder; + } + + public void setLineItemOrder(final String... lineItemOrder) { + this.lineItemOrder = new ArrayList<>(Arrays.asList(lineItemOrder)); + } + + public void setLineItemOrder(final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + CartChangeLineItemsOrderActionImpl that = (CartChangeLineItemsOrderActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(lineItemOrder, that.lineItemOrder) + .append(action, that.action) + .append(lineItemOrder, that.lineItemOrder) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(lineItemOrder).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("lineItemOrder", lineItemOrder) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdAction.java index 34b64c5318d..b8ff3df5e0e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdAction.java @@ -35,7 +35,7 @@ public interface CartSetCustomerIdAction extends CartUpdateAction { String SET_CUSTOMER_ID = "setCustomerId"; /** - *

id of an existing Customer. If empty, any value is removed.

+ *

id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.

* @return customerId */ @@ -43,7 +43,7 @@ public interface CartSetCustomerIdAction extends CartUpdateAction { public String getCustomerId(); /** - *

id of an existing Customer. If empty, any value is removed.

+ *

id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.

* @param customerId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionBuilder.java index dc3f5f17983..8320762b880 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionBuilder.java @@ -26,7 +26,7 @@ public class CartSetCustomerIdActionBuilder implements Builderid of an existing Customer. If empty, any value is removed.

+ *

id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.

* @param customerId value to be set * @return Builder */ @@ -37,7 +37,7 @@ public CartSetCustomerIdActionBuilder customerId(@Nullable final String customer } /** - *

id of an existing Customer. If empty, any value is removed.

+ *

id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.

* @return customerId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionImpl.java index 93d78eefeb5..c6ffd72a8d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCustomerIdActionImpl.java @@ -52,7 +52,7 @@ public String getAction() { } /** - *

id of an existing Customer. If empty, any value is removed.

+ *

id of an existing Customer. If the Customer is assigned to a CustomerGroup, this update action also sets the value for the customerGroup field. If empty, the update action removes the value for both customerId and customerGroup.

*/ public String getCustomerId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateAction.java index 98c549c3195..9a73f149cdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateAction.java @@ -44,6 +44,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeCustomLineItemPriceModeActionImpl.class, name = CartChangeCustomLineItemPriceModeAction.CHANGE_CUSTOM_LINE_ITEM_PRICE_MODE), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeCustomLineItemQuantityActionImpl.class, name = CartChangeCustomLineItemQuantityAction.CHANGE_CUSTOM_LINE_ITEM_QUANTITY), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeLineItemQuantityActionImpl.class, name = CartChangeLineItemQuantityAction.CHANGE_LINE_ITEM_QUANTITY), + @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeLineItemsOrderActionImpl.class, name = CartChangeLineItemsOrderAction.CHANGE_LINE_ITEMS_ORDER), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeTaxCalculationModeActionImpl.class, name = CartChangeTaxCalculationModeAction.CHANGE_TAX_CALCULATION_MODE), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeTaxModeActionImpl.class, name = CartChangeTaxModeAction.CHANGE_TAX_MODE), @JsonSubTypes.Type(value = com.commercetools.api.models.cart.CartChangeTaxRoundingModeActionImpl.class, name = CartChangeTaxRoundingModeAction.CHANGE_TAX_ROUNDING_MODE), @@ -180,6 +181,10 @@ public static CartUpdateAction deepCopy(@Nullable final CartUpdateAction templat return com.commercetools.api.models.cart.CartChangeLineItemQuantityAction .deepCopy((com.commercetools.api.models.cart.CartChangeLineItemQuantityAction) template); } + if (template instanceof com.commercetools.api.models.cart.CartChangeLineItemsOrderAction) { + return com.commercetools.api.models.cart.CartChangeLineItemsOrderAction + .deepCopy((com.commercetools.api.models.cart.CartChangeLineItemsOrderAction) template); + } if (template instanceof com.commercetools.api.models.cart.CartChangeTaxCalculationModeAction) { return com.commercetools.api.models.cart.CartChangeTaxCalculationModeAction .deepCopy((com.commercetools.api.models.cart.CartChangeTaxCalculationModeAction) template); @@ -520,6 +525,14 @@ public static com.commercetools.api.models.cart.CartChangeLineItemQuantityAction return com.commercetools.api.models.cart.CartChangeLineItemQuantityActionBuilder.of(); } + /** + * builder for changeLineItemsOrder subtype + * @return builder + */ + public static com.commercetools.api.models.cart.CartChangeLineItemsOrderActionBuilder changeLineItemsOrderBuilder() { + return com.commercetools.api.models.cart.CartChangeLineItemsOrderActionBuilder.of(); + } + /** * builder for changeTaxCalculationMode subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateActionBuilder.java index 474e236cc33..c90450d1f28 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartUpdateActionBuilder.java @@ -67,6 +67,10 @@ public com.commercetools.api.models.cart.CartChangeLineItemQuantityActionBuilder return com.commercetools.api.models.cart.CartChangeLineItemQuantityActionBuilder.of(); } + public com.commercetools.api.models.cart.CartChangeLineItemsOrderActionBuilder changeLineItemsOrderBuilder() { + return com.commercetools.api.models.cart.CartChangeLineItemsOrderActionBuilder.of(); + } + public com.commercetools.api.models.cart.CartChangeTaxCalculationModeActionBuilder changeTaxCalculationModeBuilder() { return com.commercetools.api.models.cart.CartChangeTaxCalculationModeActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderAction.java new file mode 100644 index 00000000000..6cd9feeec46 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderAction.java @@ -0,0 +1,135 @@ + +package com.commercetools.api.models.me; + +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; + +/** + * MyCartChangeLineItemsOrderAction + * + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     MyCartChangeLineItemsOrderAction myCartChangeLineItemsOrderAction = MyCartChangeLineItemsOrderAction.builder()
+ *             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = MyCartChangeLineItemsOrderActionImpl.class) +public interface MyCartChangeLineItemsOrderAction extends MyCartUpdateAction { + + /** + * discriminator value for MyCartChangeLineItemsOrderAction + */ + String CHANGE_LINE_ITEMS_ORDER = "changeLineItemsOrder"; + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @return lineItemOrder + */ + @NotNull + @JsonProperty("lineItemOrder") + public List getLineItemOrder(); + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @param lineItemOrder values to be set + */ + + @JsonIgnore + public void setLineItemOrder(final String... lineItemOrder); + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @param lineItemOrder values to be set + */ + + public void setLineItemOrder(final List lineItemOrder); + + /** + * factory method + * @return instance of MyCartChangeLineItemsOrderAction + */ + public static MyCartChangeLineItemsOrderAction of() { + return new MyCartChangeLineItemsOrderActionImpl(); + } + + /** + * factory method to create a shallow copy MyCartChangeLineItemsOrderAction + * @param template instance to be copied + * @return copy instance + */ + public static MyCartChangeLineItemsOrderAction of(final MyCartChangeLineItemsOrderAction template) { + MyCartChangeLineItemsOrderActionImpl instance = new MyCartChangeLineItemsOrderActionImpl(); + instance.setLineItemOrder(template.getLineItemOrder()); + return instance; + } + + /** + * factory method to create a deep copy of MyCartChangeLineItemsOrderAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static MyCartChangeLineItemsOrderAction deepCopy(@Nullable final MyCartChangeLineItemsOrderAction template) { + if (template == null) { + return null; + } + MyCartChangeLineItemsOrderActionImpl instance = new MyCartChangeLineItemsOrderActionImpl(); + instance.setLineItemOrder(Optional.ofNullable(template.getLineItemOrder()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for MyCartChangeLineItemsOrderAction + * @return builder + */ + public static MyCartChangeLineItemsOrderActionBuilder builder() { + return MyCartChangeLineItemsOrderActionBuilder.of(); + } + + /** + * create builder for MyCartChangeLineItemsOrderAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static MyCartChangeLineItemsOrderActionBuilder builder(final MyCartChangeLineItemsOrderAction template) { + return MyCartChangeLineItemsOrderActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withMyCartChangeLineItemsOrderAction(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/me/MyCartChangeLineItemsOrderActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionBuilder.java new file mode 100644 index 00000000000..c5d37a4b60f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.me; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * MyCartChangeLineItemsOrderActionBuilder + *
+ * Example to create an instance using the builder pattern + *
+ *

+ *     MyCartChangeLineItemsOrderAction myCartChangeLineItemsOrderAction = MyCartChangeLineItemsOrderAction.builder()
+ *             .plusLineItemOrder(lineItemOrderBuilder -> lineItemOrderBuilder)
+ *             .build()
+ * 
+ *
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class MyCartChangeLineItemsOrderActionBuilder implements Builder { + + private java.util.List lineItemOrder; + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public MyCartChangeLineItemsOrderActionBuilder lineItemOrder(final String... lineItemOrder) { + this.lineItemOrder = new ArrayList<>(Arrays.asList(lineItemOrder)); + return this; + } + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public MyCartChangeLineItemsOrderActionBuilder lineItemOrder(final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + return this; + } + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @param lineItemOrder value to be set + * @return Builder + */ + + public MyCartChangeLineItemsOrderActionBuilder plusLineItemOrder(final String... lineItemOrder) { + if (this.lineItemOrder == null) { + this.lineItemOrder = new ArrayList<>(); + } + this.lineItemOrder.addAll(Arrays.asList(lineItemOrder)); + return this; + } + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ * @return lineItemOrder + */ + + public java.util.List getLineItemOrder() { + return this.lineItemOrder; + } + + /** + * builds MyCartChangeLineItemsOrderAction with checking for non-null required values + * @return MyCartChangeLineItemsOrderAction + */ + public MyCartChangeLineItemsOrderAction build() { + Objects.requireNonNull(lineItemOrder, MyCartChangeLineItemsOrderAction.class + ": lineItemOrder is missing"); + return new MyCartChangeLineItemsOrderActionImpl(lineItemOrder); + } + + /** + * builds MyCartChangeLineItemsOrderAction without checking for non-null required values + * @return MyCartChangeLineItemsOrderAction + */ + public MyCartChangeLineItemsOrderAction buildUnchecked() { + return new MyCartChangeLineItemsOrderActionImpl(lineItemOrder); + } + + /** + * factory method for an instance of MyCartChangeLineItemsOrderActionBuilder + * @return builder + */ + public static MyCartChangeLineItemsOrderActionBuilder of() { + return new MyCartChangeLineItemsOrderActionBuilder(); + } + + /** + * create builder for MyCartChangeLineItemsOrderAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static MyCartChangeLineItemsOrderActionBuilder of(final MyCartChangeLineItemsOrderAction template) { + MyCartChangeLineItemsOrderActionBuilder builder = new MyCartChangeLineItemsOrderActionBuilder(); + builder.lineItemOrder = template.getLineItemOrder(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionImpl.java new file mode 100644 index 00000000000..53043415e1c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.me; + +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; + +/** + * MyCartChangeLineItemsOrderAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class MyCartChangeLineItemsOrderActionImpl implements MyCartChangeLineItemsOrderAction, ModelBase { + + private String action; + + private java.util.List lineItemOrder; + + /** + * create instance with all properties + */ + @JsonCreator + MyCartChangeLineItemsOrderActionImpl(@JsonProperty("lineItemOrder") final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + this.action = CHANGE_LINE_ITEMS_ORDER; + } + + /** + * create empty instance + */ + public MyCartChangeLineItemsOrderActionImpl() { + this.action = CHANGE_LINE_ITEMS_ORDER; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

All existing LineItem ids of the Cart in the desired new order.

+ */ + + public java.util.List getLineItemOrder() { + return this.lineItemOrder; + } + + public void setLineItemOrder(final String... lineItemOrder) { + this.lineItemOrder = new ArrayList<>(Arrays.asList(lineItemOrder)); + } + + public void setLineItemOrder(final java.util.List lineItemOrder) { + this.lineItemOrder = lineItemOrder; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + MyCartChangeLineItemsOrderActionImpl that = (MyCartChangeLineItemsOrderActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(lineItemOrder, that.lineItemOrder) + .append(action, that.action) + .append(lineItemOrder, that.lineItemOrder) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(lineItemOrder).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("lineItemOrder", lineItemOrder) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java index 29af2570297..a8d762403ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateAction.java @@ -34,6 +34,7 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartAddPaymentActionImpl.class, name = MyCartAddPaymentAction.ADD_PAYMENT), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartApplyDeltaToLineItemShippingDetailsTargetsActionImpl.class, name = MyCartApplyDeltaToLineItemShippingDetailsTargetsAction.APPLY_DELTA_TO_LINE_ITEM_SHIPPING_DETAILS_TARGETS), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartChangeLineItemQuantityActionImpl.class, name = MyCartChangeLineItemQuantityAction.CHANGE_LINE_ITEM_QUANTITY), + @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartChangeLineItemsOrderActionImpl.class, name = MyCartChangeLineItemsOrderAction.CHANGE_LINE_ITEMS_ORDER), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartChangeTaxModeActionImpl.class, name = MyCartChangeTaxModeAction.CHANGE_TAX_MODE), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartRecalculateActionImpl.class, name = MyCartRecalculateAction.RECALCULATE), @JsonSubTypes.Type(value = com.commercetools.api.models.me.MyCartRemoveDiscountCodeActionImpl.class, name = MyCartRemoveDiscountCodeAction.REMOVE_DISCOUNT_CODE), @@ -103,6 +104,10 @@ public static MyCartUpdateAction deepCopy(@Nullable final MyCartUpdateAction tem return com.commercetools.api.models.me.MyCartChangeLineItemQuantityAction .deepCopy((com.commercetools.api.models.me.MyCartChangeLineItemQuantityAction) template); } + if (template instanceof com.commercetools.api.models.me.MyCartChangeLineItemsOrderAction) { + return com.commercetools.api.models.me.MyCartChangeLineItemsOrderAction + .deepCopy((com.commercetools.api.models.me.MyCartChangeLineItemsOrderAction) template); + } if (template instanceof com.commercetools.api.models.me.MyCartChangeTaxModeAction) { return com.commercetools.api.models.me.MyCartChangeTaxModeAction .deepCopy((com.commercetools.api.models.me.MyCartChangeTaxModeAction) template); @@ -243,6 +248,14 @@ public static com.commercetools.api.models.me.MyCartChangeLineItemQuantityAction return com.commercetools.api.models.me.MyCartChangeLineItemQuantityActionBuilder.of(); } + /** + * builder for changeLineItemsOrder subtype + * @return builder + */ + public static com.commercetools.api.models.me.MyCartChangeLineItemsOrderActionBuilder changeLineItemsOrderBuilder() { + return com.commercetools.api.models.me.MyCartChangeLineItemsOrderActionBuilder.of(); + } + /** * builder for changeTaxMode subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java index 1c85d00a5de..0008c8ec621 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/me/MyCartUpdateActionBuilder.java @@ -35,6 +35,10 @@ public com.commercetools.api.models.me.MyCartChangeLineItemQuantityActionBuilder return com.commercetools.api.models.me.MyCartChangeLineItemQuantityActionBuilder.of(); } + public com.commercetools.api.models.me.MyCartChangeLineItemsOrderActionBuilder changeLineItemsOrderBuilder() { + return com.commercetools.api.models.me.MyCartChangeLineItemsOrderActionBuilder.of(); + } + public com.commercetools.api.models.me.MyCartChangeTaxModeActionBuilder changeTaxModeBuilder() { return com.commercetools.api.models.me.MyCartChangeTaxModeActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueBuilder.java index 81a146d0979..8268674e035 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueBuilder.java @@ -29,7 +29,7 @@ public class OrderSearchAnyValueBuilder implements Builder private Integer boost; @Nullable - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private java.lang.Object value; @@ -62,12 +62,13 @@ public OrderSearchAnyValueBuilder boost(@Nullable final Integer boost) { } /** - * set the value to the customType + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchAnyValueBuilder customType(@Nullable final String customType) { + public OrderSearchAnyValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -125,12 +126,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueImpl.java index 3c49e184554..b00513a5ef3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchAnyValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchAnyValueImpl implements OrderSearchAnyValue, ModelBase { private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private java.lang.Object value; @@ -39,8 +39,8 @@ public class OrderSearchAnyValueImpl implements OrderSearchAnyValue, ModelBase { */ @JsonCreator OrderSearchAnyValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, - @JsonProperty("customType") final String customType, @JsonProperty("value") final java.lang.Object value, - @JsonProperty("language") final String language, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, + @JsonProperty("value") final java.lang.Object value, @JsonProperty("language") final String language, @JsonProperty("caseInsensitive") final Boolean caseInsensitive) { this.field = field; this.boost = boost; @@ -73,10 +73,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -112,7 +112,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchCustomType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchCustomType.java new file mode 100644 index 00000000000..920d7d30613 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchCustomType.java @@ -0,0 +1,235 @@ + +package com.commercetools.api.models.order; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

Possible values for the customType property on query expressions indicating the data type of the field.

+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface OrderSearchCustomType extends JsonEnum { + + /** +

For CustomFieldBooleanType Custom Fields.

*/ + OrderSearchCustomType BOOLEAN_TYPE = OrderSearchCustomTypeEnum.BOOLEAN_TYPE; + /** +

For CustomFieldStringType Custom Fields.

*/ + OrderSearchCustomType STRING_TYPE = OrderSearchCustomTypeEnum.STRING_TYPE; + /** +

For CustomFieldLocalizedStringType Custom Fields.

*/ + OrderSearchCustomType LOCALIZED_STRING_TYPE = OrderSearchCustomTypeEnum.LOCALIZED_STRING_TYPE; + /** +

For CustomFieldEnumType Custom Fields.

*/ + OrderSearchCustomType ENUM_TYPE = OrderSearchCustomTypeEnum.ENUM_TYPE; + /** +

For CustomFieldLocalizedEnumType Custom Fields.

*/ + OrderSearchCustomType LOCALIZED_ENUM_TYPE = OrderSearchCustomTypeEnum.LOCALIZED_ENUM_TYPE; + /** +

For CustomFieldNumberType Custom Fields.

*/ + OrderSearchCustomType NUMBER_TYPE = OrderSearchCustomTypeEnum.NUMBER_TYPE; + /** +

For CustomFieldDateType Custom Fields.

*/ + OrderSearchCustomType DATE_TYPE = OrderSearchCustomTypeEnum.DATE_TYPE; + /** +

For CustomFieldTimeType Custom Fields.

*/ + OrderSearchCustomType TIME_TYPE = OrderSearchCustomTypeEnum.TIME_TYPE; + /** +

For CustomFieldDateTimeType Custom Fields.

*/ + OrderSearchCustomType DATE_TIME_TYPE = OrderSearchCustomTypeEnum.DATE_TIME_TYPE; + /** +

For CustomFieldSetType of StringType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_STRING_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_STRING_TYPE; + /** +

For CustomFieldSetType of LocalizedStringType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_LOCALIZED_STRING_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_LOCALIZED_STRING_TYPE; + /** +

For CustomFieldSetType of EnumType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_ENUM_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_ENUM_TYPE; + /** +

For CustomFieldSetType of LocalizedEnumType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_LOCALIZED_ENUM_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_LOCALIZED_ENUM_TYPE; + /** +

For CustomFieldSetType of NumberType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_NUMBER_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_NUMBER_TYPE; + /** +

For CustomFieldSetType of DateType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_DATE_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_DATE_TYPE; + /** +

For CustomFieldSetType of TimeType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_TIME_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_TIME_TYPE; + /** +

For CustomFieldSetType of DateTimeType Custom Fields.

*/ + OrderSearchCustomType SET_TYPE_DATE_TIME_TYPE = OrderSearchCustomTypeEnum.SET_TYPE_DATE_TIME_TYPE; + + /** + * possible values of OrderSearchCustomType + */ + enum OrderSearchCustomTypeEnum implements OrderSearchCustomType { + /** + * BooleanType + */ + BOOLEAN_TYPE("BooleanType"), + + /** + * StringType + */ + STRING_TYPE("StringType"), + + /** + * LocalizedStringType + */ + LOCALIZED_STRING_TYPE("LocalizedStringType"), + + /** + * EnumType + */ + ENUM_TYPE("EnumType"), + + /** + * LocalizedEnumType + */ + LOCALIZED_ENUM_TYPE("LocalizedEnumType"), + + /** + * NumberType + */ + NUMBER_TYPE("NumberType"), + + /** + * DateType + */ + DATE_TYPE("DateType"), + + /** + * TimeType + */ + TIME_TYPE("TimeType"), + + /** + * DateTimeType + */ + DATE_TIME_TYPE("DateTimeType"), + + /** + * SetType.StringType + */ + SET_TYPE_STRING_TYPE("SetType.StringType"), + + /** + * SetType.LocalizedStringType + */ + SET_TYPE_LOCALIZED_STRING_TYPE("SetType.LocalizedStringType"), + + /** + * SetType.EnumType + */ + SET_TYPE_ENUM_TYPE("SetType.EnumType"), + + /** + * SetType.LocalizedEnumType + */ + SET_TYPE_LOCALIZED_ENUM_TYPE("SetType.LocalizedEnumType"), + + /** + * SetType.NumberType + */ + SET_TYPE_NUMBER_TYPE("SetType.NumberType"), + + /** + * SetType.DateType + */ + SET_TYPE_DATE_TYPE("SetType.DateType"), + + /** + * SetType.TimeType + */ + SET_TYPE_TIME_TYPE("SetType.TimeType"), + + /** + * SetType.DateTimeType + */ + SET_TYPE_DATE_TIME_TYPE("SetType.DateTimeType"); + private final String jsonName; + + private OrderSearchCustomTypeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of OrderSearchCustomType + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static OrderSearchCustomType findEnum(String value) { + return findEnumViaJsonName(value).orElse(new OrderSearchCustomType() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static OrderSearchCustomType[] values() { + return OrderSearchCustomTypeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueBuilder.java index c77ae3c01b9..e4870de080d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueBuilder.java @@ -29,7 +29,7 @@ public class OrderSearchDateRangeValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchDateRangeValueBuilder customType(@Nullable final String customType) { + public OrderSearchDateRangeValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -112,12 +113,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueImpl.java index 366f0e2a1f0..a350058d1dd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchDateRangeValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchDateRangeValueImpl implements OrderSearchDateRangeValue, private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private java.time.ZonedDateTime gte; @@ -37,7 +37,8 @@ public class OrderSearchDateRangeValueImpl implements OrderSearchDateRangeValue, */ @JsonCreator OrderSearchDateRangeValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, - @JsonProperty("customType") final String customType, @JsonProperty("gte") final java.time.ZonedDateTime gte, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, + @JsonProperty("gte") final java.time.ZonedDateTime gte, @JsonProperty("lte") final java.time.ZonedDateTime lte) { this.field = field; this.boost = boost; @@ -69,10 +70,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -100,7 +101,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueBuilder.java index 8fadf48850f..7f59fc645e7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueBuilder.java @@ -30,7 +30,7 @@ public class OrderSearchFullTextValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchFullTextValueBuilder customType(@Nullable final String customType) { + public OrderSearchFullTextValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -127,12 +128,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueImpl.java index 97f115b9994..545a02c2dfe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchFullTextValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchFullTextValueImpl implements OrderSearchFullTextValue, M private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private String value; @@ -39,8 +39,8 @@ public class OrderSearchFullTextValueImpl implements OrderSearchFullTextValue, M */ @JsonCreator OrderSearchFullTextValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, - @JsonProperty("customType") final String customType, @JsonProperty("value") final String value, - @JsonProperty("language") final String language, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, + @JsonProperty("value") final String value, @JsonProperty("language") final String language, @JsonProperty("mustMatch") final com.commercetools.api.models.order.OrderSearchMatchType mustMatch) { this.field = field; this.boost = boost; @@ -73,10 +73,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -112,7 +112,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueBuilder.java index 34af6c92409..6a28d239f04 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueBuilder.java @@ -29,7 +29,7 @@ public class OrderSearchLongRangeValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchLongRangeValueBuilder customType(@Nullable final String customType) { + public OrderSearchLongRangeValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -112,12 +113,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueImpl.java index a7718f888b7..52ddb92f4af 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchLongRangeValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchLongRangeValueImpl implements OrderSearchLongRangeValue, private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private Long gte; @@ -37,8 +37,8 @@ public class OrderSearchLongRangeValueImpl implements OrderSearchLongRangeValue, */ @JsonCreator OrderSearchLongRangeValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, - @JsonProperty("customType") final String customType, @JsonProperty("gte") final Long gte, - @JsonProperty("lte") final Long lte) { + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, + @JsonProperty("gte") final Long gte, @JsonProperty("lte") final Long lte) { this.field = field; this.boost = boost; this.customType = customType; @@ -69,10 +69,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -100,7 +100,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueBuilder.java index 4d4e13dada7..ec214a28470 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueBuilder.java @@ -29,7 +29,7 @@ public class OrderSearchNumberRangeValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchNumberRangeValueBuilder customType(@Nullable final String customType) { + public OrderSearchNumberRangeValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -112,12 +113,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueImpl.java index 73ee13b0514..8bfee3c2f51 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchNumberRangeValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchNumberRangeValueImpl implements OrderSearchNumberRangeVa private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private Double gte; @@ -37,7 +37,8 @@ public class OrderSearchNumberRangeValueImpl implements OrderSearchNumberRangeVa */ @JsonCreator OrderSearchNumberRangeValueImpl(@JsonProperty("field") final String field, - @JsonProperty("boost") final Integer boost, @JsonProperty("customType") final String customType, + @JsonProperty("boost") final Integer boost, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, @JsonProperty("gte") final Double gte, @JsonProperty("lte") final Double lte) { this.field = field; this.boost = boost; @@ -69,10 +70,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -100,7 +101,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValue.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValue.java index 230a3f45de1..7d0d03d4068 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValue.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValue.java @@ -48,12 +48,12 @@ public interface OrderSearchQueryExpressionValue { public Integer getBoost(); /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @JsonProperty("customType") - public String getCustomType(); + public OrderSearchCustomType getCustomType(); /** * set field @@ -70,11 +70,11 @@ public interface OrderSearchQueryExpressionValue { public void setBoost(final Integer boost); /** - * set customType + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set */ - public void setCustomType(final String customType); + public void setCustomType(final OrderSearchCustomType customType); /** * factory method diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueBuilder.java index 525aec789e6..e81840d3e2f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueBuilder.java @@ -29,7 +29,7 @@ public class OrderSearchQueryExpressionValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchQueryExpressionValueBuilder customType(@Nullable final String customType) { + public OrderSearchQueryExpressionValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -84,12 +85,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueImpl.java index b0e10969c4b..e0293a7edbc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueImpl.java @@ -26,14 +26,15 @@ public class OrderSearchQueryExpressionValueImpl implements OrderSearchQueryExpr private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; /** * create instance with all properties */ @JsonCreator OrderSearchQueryExpressionValueImpl(@JsonProperty("field") final String field, - @JsonProperty("boost") final Integer boost, @JsonProperty("customType") final String customType) { + @JsonProperty("boost") final Integer boost, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.field = field; this.boost = boost; this.customType = customType; @@ -62,10 +63,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -77,7 +78,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java index c77975b47b3..9126b91cd60 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequest.java @@ -51,7 +51,7 @@ public interface OrderSearchRequest { public List getSort(); /** - *

The maximum number of search results to be returned.

+ *

The maximum number of search results to be returned on one page.

* @return limit */ @@ -89,7 +89,7 @@ public interface OrderSearchRequest { public void setSort(final List sort); /** - *

The maximum number of search results to be returned.

+ *

The maximum number of search results to be returned on one page.

* @param limit value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java index 2424b64ef0a..efa8985c717 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestBuilder.java @@ -160,7 +160,7 @@ public OrderSearchRequestBuilder setSort( } /** - *

The maximum number of search results to be returned.

+ *

The maximum number of search results to be returned on one page.

* @param limit value to be set * @return Builder */ @@ -201,7 +201,7 @@ public java.util.List get } /** - *

The maximum number of search results to be returned.

+ *

The maximum number of search results to be returned on one page.

* @return limit */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java index 9ccf38a87fb..1e40549e248 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchRequestImpl.java @@ -66,7 +66,7 @@ public java.util.List get } /** - *

The maximum number of search results to be returned.

+ *

The maximum number of search results to be returned on one page.

*/ public Integer getLimit() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueBuilder.java index cfc413f5834..2aa5def26b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueBuilder.java @@ -30,7 +30,7 @@ public class OrderSearchStringValueBuilder implements BuilderPossible values for the customType property on query expressions indicating the data type of the field.

* @param customType value to be set * @return Builder */ - public OrderSearchStringValueBuilder customType(@Nullable final String customType) { + public OrderSearchStringValueBuilder customType( + @Nullable final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; return this; } @@ -126,12 +127,12 @@ public Integer getBoost() { } /** - * value of customType} + *

Possible values for the customType property on query expressions indicating the data type of the field.

* @return customType */ @Nullable - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueImpl.java index 3b664d1307e..c18580b5993 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/OrderSearchStringValueImpl.java @@ -26,7 +26,7 @@ public class OrderSearchStringValueImpl implements OrderSearchStringValue, Model private Integer boost; - private String customType; + private com.commercetools.api.models.order.OrderSearchCustomType customType; private String value; @@ -39,8 +39,8 @@ public class OrderSearchStringValueImpl implements OrderSearchStringValue, Model */ @JsonCreator OrderSearchStringValueImpl(@JsonProperty("field") final String field, @JsonProperty("boost") final Integer boost, - @JsonProperty("customType") final String customType, @JsonProperty("value") final String value, - @JsonProperty("language") final String language, + @JsonProperty("customType") final com.commercetools.api.models.order.OrderSearchCustomType customType, + @JsonProperty("value") final String value, @JsonProperty("language") final String language, @JsonProperty("caseInsensitive") final Boolean caseInsensitive) { this.field = field; this.boost = boost; @@ -73,10 +73,10 @@ public Integer getBoost() { } /** - * + *

Possible values for the customType property on query expressions indicating the data type of the field.

*/ - public String getCustomType() { + public com.commercetools.api.models.order.OrderSearchCustomType getCustomType() { return this.customType; } @@ -112,7 +112,7 @@ public void setBoost(final Integer boost) { this.boost = boost; } - public void setCustomType(final String customType) { + public void setCustomType(final com.commercetools.api.models.order.OrderSearchCustomType customType) { this.customType = customType; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartChangeLineItemsOrderActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartChangeLineItemsOrderActionQueryBuilderDsl.java new file mode 100644 index 00000000000..3bef7da33dc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartChangeLineItemsOrderActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.cart; + +import com.commercetools.api.predicates.query.*; + +public class CartChangeLineItemsOrderActionQueryBuilderDsl { + public CartChangeLineItemsOrderActionQueryBuilderDsl() { + } + + public static CartChangeLineItemsOrderActionQueryBuilderDsl of() { + return new CartChangeLineItemsOrderActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, CartChangeLineItemsOrderActionQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder lineItemOrder() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lineItemOrder")), + p -> new CombinationQueryPredicate<>(p, CartChangeLineItemsOrderActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartUpdateActionQueryBuilderDsl.java index 1e09f9dfa8d..a659498ea0a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/CartUpdateActionQueryBuilderDsl.java @@ -121,6 +121,13 @@ public CombinationQueryPredicate asChangeLineIt CartUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asChangeLineItemsOrder( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.cart.CartChangeLineItemsOrderActionQueryBuilderDsl.of()), + CartUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asChangeTaxCalculationMode( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartChangeLineItemsOrderActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartChangeLineItemsOrderActionQueryBuilderDsl.java new file mode 100644 index 00000000000..0a11c875260 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartChangeLineItemsOrderActionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.me; + +import com.commercetools.api.predicates.query.*; + +public class MyCartChangeLineItemsOrderActionQueryBuilderDsl { + public MyCartChangeLineItemsOrderActionQueryBuilderDsl() { + } + + public static MyCartChangeLineItemsOrderActionQueryBuilderDsl of() { + return new MyCartChangeLineItemsOrderActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, MyCartChangeLineItemsOrderActionQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder lineItemOrder() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lineItemOrder")), + p -> new CombinationQueryPredicate<>(p, MyCartChangeLineItemsOrderActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java index 8b97726da30..58365b49cbb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/me/MyCartUpdateActionQueryBuilderDsl.java @@ -62,6 +62,13 @@ public CombinationQueryPredicate asChangeLine MyCartUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asChangeLineItemsOrder( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.me.MyCartChangeLineItemsOrderActionQueryBuilderDsl.of()), + MyCartUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asChangeTaxMode( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionTest.java new file mode 100644 index 00000000000..d6cf2b10385 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/CartChangeLineItemsOrderActionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.cart; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class CartChangeLineItemsOrderActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(CartChangeLineItemsOrderActionBuilder builder) { + CartChangeLineItemsOrderAction cartChangeLineItemsOrderAction = builder.buildUnchecked(); + Assertions.assertThat(cartChangeLineItemsOrderAction).isInstanceOf(CartChangeLineItemsOrderAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { + CartChangeLineItemsOrderAction.builder().lineItemOrder(Collections.singletonList("lineItemOrder")) } }; + } + + @Test + public void lineItemOrder() { + CartChangeLineItemsOrderAction value = CartChangeLineItemsOrderAction.of(); + value.setLineItemOrder(Collections.singletonList("lineItemOrder")); + Assertions.assertThat(value.getLineItemOrder()).isEqualTo(Collections.singletonList("lineItemOrder")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionTest.java new file mode 100644 index 00000000000..034e4319bd6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/me/MyCartChangeLineItemsOrderActionTest.java @@ -0,0 +1,39 @@ + +package com.commercetools.api.models.me; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class MyCartChangeLineItemsOrderActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(MyCartChangeLineItemsOrderActionBuilder builder) { + MyCartChangeLineItemsOrderAction myCartChangeLineItemsOrderAction = builder.buildUnchecked(); + Assertions.assertThat(myCartChangeLineItemsOrderAction).isInstanceOf(MyCartChangeLineItemsOrderAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { MyCartChangeLineItemsOrderAction.builder() + .lineItemOrder(Collections.singletonList("lineItemOrder")) } }; + } + + @Test + public void lineItemOrder() { + MyCartChangeLineItemsOrderAction value = MyCartChangeLineItemsOrderAction.of(); + value.setLineItemOrder(Collections.singletonList("lineItemOrder")); + Assertions.assertThat(value.getLineItemOrder()).isEqualTo(Collections.singletonList("lineItemOrder")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueTest.java index 1047f124b4b..8ba64ff463a 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/order/OrderSearchQueryExpressionValueTest.java @@ -26,7 +26,9 @@ public void buildUnchecked(OrderSearchQueryExpressionValueBuilder builder) { public static Object[][] objectBuilder() { return new Object[][] { new Object[] { OrderSearchQueryExpressionValue.builder().field("field") }, new Object[] { OrderSearchQueryExpressionValue.builder().boost(7) }, - new Object[] { OrderSearchQueryExpressionValue.builder().customType("customType") } }; + new Object[] { OrderSearchQueryExpressionValue.builder() + .customType( + com.commercetools.api.models.order.OrderSearchCustomType.findEnum("BooleanType")) } }; } @Test @@ -46,7 +48,8 @@ public void boost() { @Test public void customType() { OrderSearchQueryExpressionValue value = OrderSearchQueryExpressionValue.of(); - value.setCustomType("customType"); - Assertions.assertThat(value.getCustomType()).isEqualTo("customType"); + value.setCustomType(com.commercetools.api.models.order.OrderSearchCustomType.findEnum("BooleanType")); + Assertions.assertThat(value.getCustomType()) + .isEqualTo(com.commercetools.api.models.order.OrderSearchCustomType.findEnum("BooleanType")); } } diff --git a/references.txt b/references.txt index 536006986f7..196c6b78606 100644 --- a/references.txt +++ b/references.txt @@ -277,3 +277,4 @@ d74a87f613d9efd31448c3b11f505f7bf6bf57c0 369fbe55d487e70a626a9c12a2cf3cfe891b5bf0 4c21b32d2f4bd2b61a9ee586c736672ad4b4ff0b 292d2e67ff13394a226e7c259cbaf086bb0119ec +e07a21551ecb61f1f9d1578beb18de819f093feb