From c0c3333943f477ff79ab5baa1868529af9bfe0b8 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:36:23 +0000 Subject: [PATCH] build(codegen): updating SDK --- changes.md | 7 + .../main/resources/graphql/schema.graphqls | 122 +++++++++++++----- .../api/models/cart/TaxedItemPrice.java | 35 +++++ .../models/cart/TaxedItemPriceBuilder.java | 113 +++++++++++++++- .../api/models/cart/TaxedItemPriceImpl.java | 30 ++++- .../api/models/category/Category.java | 4 +- .../api/models/category/CategoryBuilder.java | 4 +- .../api/models/category/CategoryDraft.java | 4 +- .../models/category/CategoryDraftBuilder.java | 4 +- .../models/category/CategoryDraftImpl.java | 2 +- .../api/models/category/CategoryImpl.java | 2 +- .../category/CategorySetExternalIdAction.java | 2 +- .../CategorySetExternalIdActionImpl.java | 2 +- .../api/models/customer/Customer.java | 4 +- .../api/models/customer/CustomerBuilder.java | 4 +- .../api/models/customer/CustomerDraft.java | 4 +- .../models/customer/CustomerDraftBuilder.java | 4 +- .../models/customer/CustomerDraftImpl.java | 2 +- .../api/models/customer/CustomerImpl.java | 2 +- .../api/models/tax_category/TaxRateDraft.java | 6 +- .../tax_category/TaxRateDraftBuilder.java | 16 +-- .../models/tax_category/TaxRateDraftImpl.java | 2 +- .../cart/TaxedItemPriceQueryBuilderDsl.java | 15 +++ .../api/models/cart/TaxedItemPriceTest.java | 14 ++ references.txt | 1 + 25 files changed, 339 insertions(+), 66 deletions(-) diff --git a/changes.md b/changes.md index 02a75726e51..92b770c97a0 100644 --- a/changes.md +++ b/changes.md @@ -81,3 +81,10 @@ - added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring` + +
+Added Property(s) + +- added property `taxPortions` to type `TaxedItemPrice` +
+ 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 bc2f94c4d9c..1a67b2b5e3d 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -2978,19 +2978,6 @@ input CreateProductSelectionDraft { custom: CustomFieldsDraft } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" -input ProductTailoringDraft { - product: ResourceIdentifierInput! - name: [LocalizedStringItemInputType!] - key: String - description: [LocalizedStringItemInputType!] - slug: [LocalizedStringItemInputType!] - metaTitle: [LocalizedStringItemInputType!] - metaDescription: [LocalizedStringItemInputType!] - metaKeywords: [LocalizedStringItemInputType!] - publish: Boolean -} - input CreateStandalonePrice { key: String sku: String! @@ -4392,6 +4379,51 @@ input GoogleCloudPubSubDestinationInput { topic: String! } +interface HasProductTailoringData { + name( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + nameAllLocales: [LocalizedString!] + description( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + descriptionAllLocales: [LocalizedString!] + slug( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + slugAllLocales: [LocalizedString!] + metaTitle( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaTitleAllLocales: [LocalizedString!] + metaDescription( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaDescriptionAllLocales: [LocalizedString!] + metaKeywords( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaKeywordsAllLocales: [LocalizedString!] +} + type HighPrecisionMoney implements BaseMoney { type: String! currencyCode: Currency! @@ -5958,9 +5990,7 @@ type Mutation { id: String, "Queries with specified key" - key: String, - - actions: [ProductTailoringUpdateAction!]!, version: Long!): ProductTailoring + key: String, actions: [ProductTailoringUpdateAction!]!, version: Long!): ProductTailoring "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" deleteProductTailoring( @@ -6755,8 +6785,8 @@ type OrderLineItemDiscountSet implements MessagePayload & OrderMessagePayload { lineItemKey: String discountedPricePerQuantity: [DiscountedLineItemPriceForQuantity!]! totalPrice: Money! - taxedPrice: TaxedItemPrice taxedPricePortions: [MethodTaxedPrice!]! + taxedPrice: TaxedItemPrice type: String! } @@ -6775,9 +6805,9 @@ type OrderLineItemRemoved implements MessagePayload & OrderMessagePayload { newQuantity: Long! newState: Set! newTotalPrice: Money! - newTaxedPrice: TaxedItemPrice newPrice: ProductPrice newShippingDetails: ItemShippingDetails + newTaxedPrice: TaxedItemPrice type: String! } @@ -7621,6 +7651,7 @@ type ProductImageAdded implements MessagePayload { type ProductLimitsProjection { pricesPerVariant: Limit! variants: Limit! + productTailoring: Limit! } type ProductOfSelection { @@ -8167,38 +8198,59 @@ type ProductTailoring implements Versioned { lastModifiedBy: Initiator } -type ProductTailoringCreated implements MessagePayload { - publish: Boolean! +type ProductTailoringCreated implements MessagePayload & HasProductTailoringData { + type: String! storeRef: KeyReference! productRef: Reference! key: String productKey: String + publish: Boolean! name( "String is defined for different locales. This argument specifies the desired locale." locale: Locale, "List of languages the client is able to understand, and which locale variant is preferred." acceptLanguage: [Locale!]): String + nameAllLocales: [LocalizedString!] description( "String is defined for different locales. This argument specifies the desired locale." locale: Locale, "List of languages the client is able to understand, and which locale variant is preferred." acceptLanguage: [Locale!]): String + descriptionAllLocales: [LocalizedString!] slug( "String is defined for different locales. This argument specifies the desired locale." locale: Locale, "List of languages the client is able to understand, and which locale variant is preferred." acceptLanguage: [Locale!]): String - nameAllLocales: [LocalizedString!] slugAllLocales: [LocalizedString!] - descriptionAllLocales: [LocalizedString!] - type: String! + metaTitle( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaTitleAllLocales: [LocalizedString!] + metaDescription( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaDescriptionAllLocales: [LocalizedString!] + metaKeywords( + "String is defined for different locales. This argument specifies the desired locale." + locale: Locale, + + "List of languages the client is able to understand, and which locale variant is preferred." + acceptLanguage: [Locale!]): String + metaKeywordsAllLocales: [LocalizedString!] } "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" -type ProductTailoringData { +type ProductTailoringData implements HasProductTailoringData { name( "String is defined for different locales. This argument specifies the desired locale." locale: Locale, @@ -8271,6 +8323,19 @@ type ProductTailoringDescriptionSet implements MessagePayload { type: String! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input ProductTailoringDraft { + product: ResourceIdentifierInput! + name: [LocalizedStringItemInputType!] + key: String + description: [LocalizedStringItemInputType!] + slug: [LocalizedStringItemInputType!] + metaTitle: [LocalizedStringItemInputType!] + metaDescription: [LocalizedStringItemInputType!] + metaKeywords: [LocalizedStringItemInputType!] + publish: Boolean +} + type ProductTailoringNameSet implements MessagePayload { storeRef: KeyReference! productRef: Reference! @@ -8303,8 +8368,6 @@ type ProductTailoringQueryResult { offset: Int! count: Int! total: Long! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" exists: Boolean! results: [ProductTailoring!]! } @@ -8659,13 +8722,13 @@ input ProjectSettingsUpdateAction { changeMyBusinessUnitStatusOnCreation: ChangeProjectSettingsMyBusinessUnitStatusOnCreation changeName: ChangeProjectSettingsName changeOrderSearchStatus: ChangeProjectSettingsOrderSearchStatus - changeProductSearchIndexingEnabled: ChangeProjectSettingsProductSearchIndexingEnabled changeShoppingListsConfiguration: ChangeProjectSettingsShoppingListsConfiguration setExternalOAuth: SetProjectSettingsExternalOAuth setShippingRateInputType: SetProjectSettingsShippingRateInputType "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" setMyBusinessUnitAssociateRoleOnCreation: SetProjectSettingsMyBusinessUnitAssociateRoleOnCreation + changeProductSearchIndexingEnabled: ChangeProjectSettingsProductSearchIndexingEnabled } input PublishProduct { @@ -8778,7 +8841,7 @@ type Query { "Queries with specified key" key: String): CartDiscount cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult! - discountCode( + discountCode( "Queries with specified ID" id: String, @@ -12604,12 +12667,12 @@ type ShippingInfo { taxRate: TaxRate deliveries: [Delivery!]! discountedPrice: DiscountedLineItemPrice - taxedPrice: TaxedItemPrice shippingMethodState: ShippingMethodState! shippingMethod: ShippingMethod shippingMethodRef: Reference taxCategory: TaxCategory taxCategoryRef: Reference + taxedPrice: TaxedItemPrice } input ShippingInfoImportDraft { @@ -13832,6 +13895,7 @@ input TaxRateInput { type TaxedItemPrice { totalNet: Money! totalGross: Money! + taxPortions: [TaxPortion!]! totalTax: Money } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPrice.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPrice.java index c4cc16d406c..64de18fe758 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPrice.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPrice.java @@ -4,6 +4,7 @@ import java.time.*; import java.util.*; import java.util.function.Function; +import java.util.stream.Collectors; import javax.annotation.Nullable; import javax.validation.Valid; @@ -25,6 +26,7 @@ * TaxedItemPrice taxedItemPrice = TaxedItemPrice.builder() * .totalNet(totalNetBuilder -> totalNetBuilder) * .totalGross(totalGrossBuilder -> totalGrossBuilder) + * .plusTaxPortions(taxPortionsBuilder -> taxPortionsBuilder) * .build() * * @@ -51,6 +53,16 @@ public interface TaxedItemPrice { @JsonProperty("totalGross") public CentPrecisionMoney getTotalGross(); + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @return taxPortions + */ + @NotNull + @Valid + @JsonProperty("taxPortions") + public List getTaxPortions(); + /** *

Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

* @return totalTax @@ -73,6 +85,23 @@ public interface TaxedItemPrice { public void setTotalGross(final CentPrecisionMoney totalGross); + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param taxPortions values to be set + */ + + @JsonIgnore + public void setTaxPortions(final TaxPortion... taxPortions); + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param taxPortions values to be set + */ + + public void setTaxPortions(final List taxPortions); + /** *

Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

* @param totalTax value to be set @@ -97,6 +126,7 @@ public static TaxedItemPrice of(final TaxedItemPrice template) { TaxedItemPriceImpl instance = new TaxedItemPriceImpl(); instance.setTotalNet(template.getTotalNet()); instance.setTotalGross(template.getTotalGross()); + instance.setTaxPortions(template.getTaxPortions()); instance.setTotalTax(template.getTotalTax()); return instance; } @@ -115,6 +145,11 @@ public static TaxedItemPrice deepCopy(@Nullable final TaxedItemPrice template) { instance.setTotalNet(com.commercetools.api.models.common.CentPrecisionMoney.deepCopy(template.getTotalNet())); instance.setTotalGross( com.commercetools.api.models.common.CentPrecisionMoney.deepCopy(template.getTotalGross())); + instance.setTaxPortions(Optional.ofNullable(template.getTaxPortions()) + .map(t -> t.stream() + .map(com.commercetools.api.models.cart.TaxPortion::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setTotalTax(com.commercetools.api.models.common.CentPrecisionMoney.deepCopy(template.getTotalTax())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceBuilder.java index 1bab08bcf63..b044bcbc892 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceBuilder.java @@ -18,6 +18,7 @@ * TaxedItemPrice taxedItemPrice = TaxedItemPrice.builder() * .totalNet(totalNetBuilder -> totalNetBuilder) * .totalGross(totalGrossBuilder -> totalGrossBuilder) + * .plusTaxPortions(taxPortionsBuilder -> taxPortionsBuilder) * .build() * * @@ -29,6 +30,8 @@ public class TaxedItemPriceBuilder implements Builder { private com.commercetools.api.models.common.CentPrecisionMoney totalGross; + private java.util.List taxPortions; + @Nullable private com.commercetools.api.models.common.CentPrecisionMoney totalTax; @@ -102,6 +105,100 @@ public TaxedItemPriceBuilder totalGross(final com.commercetools.api.models.commo return this; } + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param taxPortions value to be set + * @return Builder + */ + + public TaxedItemPriceBuilder taxPortions(final com.commercetools.api.models.cart.TaxPortion... taxPortions) { + this.taxPortions = new ArrayList<>(Arrays.asList(taxPortions)); + return this; + } + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

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

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param taxPortions value to be set + * @return Builder + */ + + public TaxedItemPriceBuilder plusTaxPortions(final com.commercetools.api.models.cart.TaxPortion... taxPortions) { + if (this.taxPortions == null) { + this.taxPortions = new ArrayList<>(); + } + this.taxPortions.addAll(Arrays.asList(taxPortions)); + return this; + } + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param builder function to build the taxPortions value + * @return Builder + */ + + public TaxedItemPriceBuilder plusTaxPortions( + Function builder) { + if (this.taxPortions == null) { + this.taxPortions = new ArrayList<>(); + } + this.taxPortions.add(builder.apply(com.commercetools.api.models.cart.TaxPortionBuilder.of()).build()); + return this; + } + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param builder function to build the taxPortions value + * @return Builder + */ + + public TaxedItemPriceBuilder withTaxPortions( + Function builder) { + this.taxPortions = new ArrayList<>(); + this.taxPortions.add(builder.apply(com.commercetools.api.models.cart.TaxPortionBuilder.of()).build()); + return this; + } + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param builder function to build the taxPortions value + * @return Builder + */ + + public TaxedItemPriceBuilder addTaxPortions( + Function builder) { + return plusTaxPortions(builder.apply(com.commercetools.api.models.cart.TaxPortionBuilder.of())); + } + + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @param builder function to build the taxPortions value + * @return Builder + */ + + public TaxedItemPriceBuilder setTaxPortions( + Function builder) { + return taxPortions(builder.apply(com.commercetools.api.models.cart.TaxPortionBuilder.of())); + } + /** *

Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

* @param builder function to build the totalTax value @@ -156,6 +253,16 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalGross() { return this.totalGross; } + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ * @return taxPortions + */ + + public java.util.List getTaxPortions() { + return this.taxPortions; + } + /** *

Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

* @return totalTax @@ -173,7 +280,8 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalTax() { public TaxedItemPrice build() { Objects.requireNonNull(totalNet, TaxedItemPrice.class + ": totalNet is missing"); Objects.requireNonNull(totalGross, TaxedItemPrice.class + ": totalGross is missing"); - return new TaxedItemPriceImpl(totalNet, totalGross, totalTax); + Objects.requireNonNull(taxPortions, TaxedItemPrice.class + ": taxPortions is missing"); + return new TaxedItemPriceImpl(totalNet, totalGross, taxPortions, totalTax); } /** @@ -181,7 +289,7 @@ public TaxedItemPrice build() { * @return TaxedItemPrice */ public TaxedItemPrice buildUnchecked() { - return new TaxedItemPriceImpl(totalNet, totalGross, totalTax); + return new TaxedItemPriceImpl(totalNet, totalGross, taxPortions, totalTax); } /** @@ -201,6 +309,7 @@ public static TaxedItemPriceBuilder of(final TaxedItemPrice template) { TaxedItemPriceBuilder builder = new TaxedItemPriceBuilder(); builder.totalNet = template.getTotalNet(); builder.totalGross = template.getTotalGross(); + builder.taxPortions = template.getTaxPortions(); builder.totalTax = template.getTotalTax(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceImpl.java index 692f38d8e9e..25dfc26a35e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/TaxedItemPriceImpl.java @@ -26,6 +26,8 @@ public class TaxedItemPriceImpl implements TaxedItemPrice, ModelBase { private com.commercetools.api.models.common.CentPrecisionMoney totalGross; + private java.util.List taxPortions; + private com.commercetools.api.models.common.CentPrecisionMoney totalTax; /** @@ -34,9 +36,11 @@ public class TaxedItemPriceImpl implements TaxedItemPrice, ModelBase { @JsonCreator TaxedItemPriceImpl(@JsonProperty("totalNet") final com.commercetools.api.models.common.CentPrecisionMoney totalNet, @JsonProperty("totalGross") final com.commercetools.api.models.common.CentPrecisionMoney totalGross, + @JsonProperty("taxPortions") final java.util.List taxPortions, @JsonProperty("totalTax") final com.commercetools.api.models.common.CentPrecisionMoney totalTax) { this.totalNet = totalNet; this.totalGross = totalGross; + this.taxPortions = taxPortions; this.totalTax = totalTax; } @@ -62,6 +66,15 @@ public com.commercetools.api.models.common.CentPrecisionMoney getTotalGross() { return this.totalGross; } + /** + *

Taxable portions added to the total net price.

+ *

Calculated from the TaxRates.

+ */ + + public java.util.List getTaxPortions() { + return this.taxPortions; + } + /** *

Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

*/ @@ -78,6 +91,14 @@ public void setTotalGross(final com.commercetools.api.models.common.CentPrecisio this.totalGross = totalGross; } + public void setTaxPortions(final com.commercetools.api.models.cart.TaxPortion... taxPortions) { + this.taxPortions = new ArrayList<>(Arrays.asList(taxPortions)); + } + + public void setTaxPortions(final java.util.List taxPortions) { + this.taxPortions = taxPortions; + } + public void setTotalTax(final com.commercetools.api.models.common.CentPrecisionMoney totalTax) { this.totalTax = totalTax; } @@ -94,22 +115,29 @@ public boolean equals(Object o) { return new EqualsBuilder().append(totalNet, that.totalNet) .append(totalGross, that.totalGross) + .append(taxPortions, that.taxPortions) .append(totalTax, that.totalTax) .append(totalNet, that.totalNet) .append(totalGross, that.totalGross) + .append(taxPortions, that.taxPortions) .append(totalTax, that.totalTax) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(totalNet).append(totalGross).append(totalTax).toHashCode(); + return new HashCodeBuilder(17, 37).append(totalNet) + .append(totalGross) + .append(taxPortions) + .append(totalTax) + .toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("totalNet", totalNet) .append("totalGross", totalGross) + .append("taxPortions", taxPortions) .append("totalTax", totalTax) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/Category.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/Category.java index 0def3ecb02d..b4d56ebcfbc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/Category.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/Category.java @@ -149,7 +149,7 @@ public interface Category extends BaseResource, CategoryMixin, com.commercetools public String getOrderHint(); /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ @@ -297,7 +297,7 @@ public interface Category extends BaseResource, CategoryMixin, com.commercetools public void setOrderHint(final String orderHint); /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryBuilder.java index 8db6adee9f0..8955060d618 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryBuilder.java @@ -435,7 +435,7 @@ public CategoryBuilder orderHint(final String orderHint) { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set * @return Builder */ @@ -797,7 +797,7 @@ public String getOrderHint() { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraft.java index d20508bd60d..1c52a5f5c89 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraft.java @@ -80,7 +80,7 @@ public interface CategoryDraft extends com.commercetools.api.models.Customizable public String getOrderHint(); /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ @@ -171,7 +171,7 @@ public interface CategoryDraft extends com.commercetools.api.models.Customizable public void setOrderHint(final String orderHint); /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftBuilder.java index 1e6421bd4bc..f501bd120da 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftBuilder.java @@ -214,7 +214,7 @@ public CategoryDraftBuilder orderHint(@Nullable final String orderHint) { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set * @return Builder */ @@ -514,7 +514,7 @@ public String getOrderHint() { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftImpl.java index 081e0d005be..abe8fc6dd01 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryDraftImpl.java @@ -122,7 +122,7 @@ public String getOrderHint() { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

*/ public String getExternalId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryImpl.java index c43eedf76b0..9e1b35de41d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryImpl.java @@ -205,7 +205,7 @@ public String getOrderHint() { } /** - *

Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

*/ public String getExternalId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdAction.java index ae75f58a8ac..e662b388337 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdAction.java @@ -13,7 +13,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

This update action sets a new ID that can be used as an additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

This update action sets a new ID that can be used as an additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* *
* Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdActionImpl.java index 1cfc0a1ff86..bd47d1cee32 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategorySetExternalIdActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

This update action sets a new ID that can be used as an additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

This update action sets a new ID that can be used as an additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class CategorySetExternalIdActionImpl implements CategorySetExternalIdAction, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java index 43706928978..1dde58479a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java @@ -85,7 +85,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools public String getCustomerNumber(); /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ @@ -327,7 +327,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools public void setCustomerNumber(final String customerNumber); /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java index 58938410148..cfd27ab8315 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerBuilder.java @@ -181,7 +181,7 @@ public CustomerBuilder customerNumber(@Nullable final String customerNumber) { } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set * @return Builder */ @@ -833,7 +833,7 @@ public String getCustomerNumber() { } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java index 0894bb407e2..3f487a2b7d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraft.java @@ -57,7 +57,7 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public String getCustomerNumber(); /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ @@ -279,7 +279,7 @@ public interface CustomerDraft extends com.commercetools.api.models.Customizable public void setCustomerNumber(final String customerNumber); /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java index 32bb315b378..375c162ae94 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftBuilder.java @@ -129,7 +129,7 @@ public CustomerDraftBuilder customerNumber(@Nullable final String customerNumber } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @param externalId value to be set * @return Builder */ @@ -741,7 +741,7 @@ public String getCustomerNumber() { } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

* @return externalId */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java index 5e3405a739f..e237ddac1e6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerDraftImpl.java @@ -155,7 +155,7 @@ public String getCustomerNumber() { } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

*/ public String getExternalId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java index e428e9d5b1e..19ab00291ac 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/CustomerImpl.java @@ -197,7 +197,7 @@ public String getCustomerNumber() { } /** - *

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

+ *

Optional identifier for use in external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

*/ public String getExternalId() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java index b106ac41eba..d755beaf087 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraft.java @@ -75,7 +75,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @return subRates */ @Valid @@ -126,7 +126,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param subRates values to be set */ @@ -134,7 +134,7 @@ public interface TaxRateDraft extends io.vrap.rmf.base.client.DraftUsed to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param subRates values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java index b6f64f0f9bf..8abb3b51ce7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftBuilder.java @@ -100,7 +100,7 @@ public TaxRateDraftBuilder state(@Nullable final String state) { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param subRates value to be set * @return Builder */ @@ -111,7 +111,7 @@ public TaxRateDraftBuilder subRates(@Nullable final com.commercetools.api.models } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param subRates value to be set * @return Builder */ @@ -123,7 +123,7 @@ public TaxRateDraftBuilder subRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param subRates value to be set * @return Builder */ @@ -138,7 +138,7 @@ public TaxRateDraftBuilder plusSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param builder function to build the subRates value * @return Builder */ @@ -153,7 +153,7 @@ public TaxRateDraftBuilder plusSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param builder function to build the subRates value * @return Builder */ @@ -166,7 +166,7 @@ public TaxRateDraftBuilder withSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param builder function to build the subRates value * @return Builder */ @@ -177,7 +177,7 @@ public TaxRateDraftBuilder addSubRates( } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @param builder function to build the subRates value * @return Builder */ @@ -246,7 +246,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

* @return subRates */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java index 29ae8563eae..3d265cec9a3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/tax_category/TaxRateDraftImpl.java @@ -101,7 +101,7 @@ public String getState() { } /** - *

Used to calculate the taxPortions field in a Cart or Order. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

+ *

Used to calculate the taxPortions field in a Cart or Order or (Custom) Line Items. It is useful if the total tax of a country (such as the US) is a combination of multiple taxes (such as state and local taxes). The total of all subrates must equal the TaxRate amount.

*/ public java.util.List getSubRates() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/TaxedItemPriceQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/TaxedItemPriceQueryBuilderDsl.java index 6675947ba39..46239033f8f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/TaxedItemPriceQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/cart/TaxedItemPriceQueryBuilderDsl.java @@ -29,6 +29,21 @@ public CombinationQueryPredicate totalGross( TaxedItemPriceQueryBuilderDsl::of); } + public CombinationQueryPredicate taxPortions( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("taxPortions")) + .inner(fn.apply(com.commercetools.api.predicates.query.cart.TaxPortionQueryBuilderDsl.of())), + TaxedItemPriceQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder taxPortions() { + return new CollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("taxPortions")), + p -> new CombinationQueryPredicate<>(p, TaxedItemPriceQueryBuilderDsl::of)); + } + public CombinationQueryPredicate totalTax( Function> fn) { return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/TaxedItemPriceTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/TaxedItemPriceTest.java index 2eacda5db22..5889a4e85f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/TaxedItemPriceTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/cart/TaxedItemPriceTest.java @@ -1,6 +1,8 @@ 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; @@ -29,6 +31,10 @@ public static Object[][] objectBuilder() { .totalNet(new com.commercetools.api.models.common.CentPrecisionMoneyImpl()) }, new Object[] { TaxedItemPrice.builder() .totalGross(new com.commercetools.api.models.common.CentPrecisionMoneyImpl()) }, + new Object[] { + TaxedItemPrice.builder() + .taxPortions(Collections + .singletonList(new com.commercetools.api.models.cart.TaxPortionImpl())) }, new Object[] { TaxedItemPrice.builder() .totalTax(new com.commercetools.api.models.common.CentPrecisionMoneyImpl()) } }; } @@ -49,6 +55,14 @@ public void totalGross() { .isEqualTo(new com.commercetools.api.models.common.CentPrecisionMoneyImpl()); } + @Test + public void taxPortions() { + TaxedItemPrice value = TaxedItemPrice.of(); + value.setTaxPortions(Collections.singletonList(new com.commercetools.api.models.cart.TaxPortionImpl())); + Assertions.assertThat(value.getTaxPortions()) + .isEqualTo(Collections.singletonList(new com.commercetools.api.models.cart.TaxPortionImpl())); + } + @Test public void totalTax() { TaxedItemPrice value = TaxedItemPrice.of(); diff --git a/references.txt b/references.txt index c90d7a6b6bd..9f3e84fb668 100644 --- a/references.txt +++ b/references.txt @@ -206,3 +206,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293 9dcfaf574c603be5533209cf591ed3c0c5f9b821 9426f11f6f1755829c81c7db9fce597fdda6ade6 c11681240a69eb894764895d5dcfd21bf6812352 +3ba147b34feaa34fdb19e7df9a6ad6bf8acc06e4