Unique identifier of the AssociateRole.
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/associate_role/AssociateRoleReference.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/associate_role/AssociateRoleReference.java index 350c087f546..02212f08bab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/associate_role/AssociateRoleReference.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/associate_role/AssociateRoleReference.java @@ -30,7 +30,7 @@ */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @JsonDeserialize(as = AssociateRoleReferenceImpl.class) -public interface AssociateRoleReference extends Reference, com.commercetools.api.models.IdentifiableNew value to set. If absent or 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set. If absent or 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set. If absent or 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set. If absent or 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set. If absent or 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money
field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money
field, this Discount is not applied.
Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money
field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money
field, this Discount is not applied. If the quantity
of the Line Item eligible for the Discount is greater than 1
, the fixed price discount is only applied to the Line Item portion for which the money
value is lesser than their current price.
Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money
field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money
field, this Discount is not applied.
Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money
field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money
field, this Discount is not applied. If the quantity
of the Line Item eligible for the Discount is greater than 1
, the fixed price discount is only applied to the Line Item portion for which the money
value is lesser than their current price.
New value to set.
- *If 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set.
- *If 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set.
- *If 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set.
- *If 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
New value to set.
- *If 0
, the Line Item is removed from the Cart.
Amount to subtract from the LineItem's quantity
. If absent, the LineItem is removed from the Cart.
All Product Variants except the explicitly stated SKUs are part of the Product Selection.
- * - *
- * ProductVariantSelectionExclusion productVariantSelectionExclusion = ProductVariantSelectionExclusion.builder()
- * .plusSkus(skusBuilder -> skusBuilder)
- * .build()
- *
- * Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @return skus - */ - @NotNull - @JsonProperty("skus") - public ListNon-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @param skus values to be set - */ - - @JsonIgnore - public void setSkus(final String... skus); - - /** - *Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @param skus values to be set - */ - - public void setSkus(final List
- * ProductVariantSelectionExclusion productVariantSelectionExclusion = ProductVariantSelectionExclusion.builder()
- * .plusSkus(skusBuilder -> skusBuilder)
- * .build()
- *
- * Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionExclusionBuilder skus(final String... skus) { - this.skus = new ArrayList<>(Arrays.asList(skus)); - return this; - } - - /** - *Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionExclusionBuilder skus(final java.util.ListNon-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionExclusionBuilder plusSkus(final String... skus) { - if (this.skus == null) { - this.skus = new ArrayList<>(); - } - this.skus.addAll(Arrays.asList(skus)); - return this; - } - - /** - *Non-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- * @return skus - */ - - public java.util.ListAll Product Variants except the explicitly stated SKUs are part of the Product Selection.
- */ -@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -@Deprecated -public class ProductVariantSelectionExclusionImpl implements ProductVariantSelectionExclusion, ModelBase { - - private com.commercetools.api.models.product_selection.ProductVariantSelectionTypeEnum type; - - private java.util.ListNon-empty array of SKUs representing Product Variants to be excluded from the Product Selection.
- */ - - public java.util.List
- * ProductVariantSelectionInclusion productVariantSelectionInclusion = ProductVariantSelectionInclusion.builder()
- * .plusSkus(skusBuilder -> skusBuilder)
- * .build()
- *
- * Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionInclusionBuilder skus(final String... skus) { - this.skus = new ArrayList<>(Arrays.asList(skus)); - return this; - } - - /** - *Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionInclusionBuilder skus(final java.util.ListNon-empty array of SKUs representing Product Variants to be included into the Product Selection.
- * @param skus value to be set - * @return Builder - */ - - public ProductVariantSelectionInclusionBuilder plusSkus(final String... skus) { - if (this.skus == null) { - this.skus = new ArrayList<>(); - } - this.skus.addAll(Arrays.asList(skus)); - return this; - } - - /** - *Non-empty array of SKUs representing Product Variants to be included into the Product Selection.
- * @return skus - */ - - public java.util.ListChange triggered by the Add Associate update action.
+ * + *
+ * AddAssociateChange addAssociateChange = AddAssociateChange.builder()
+ * .change("{change}")
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value after the change.
+ * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Associate getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final Associate nextValue); + + /** + * factory method + * @return instance of AddAssociateChange + */ + public static AddAssociateChange of() { + return new AddAssociateChangeImpl(); + } + + /** + * factory method to create a shallow copy AddAssociateChange + * @param template instance to be copied + * @return copy instance + */ + public static AddAssociateChange of(final AddAssociateChange template) { + AddAssociateChangeImpl instance = new AddAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of AddAssociateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static AddAssociateChange deepCopy(@Nullable final AddAssociateChange template) { + if (template == null) { + return null; + } + AddAssociateChangeImpl instance = new AddAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setNextValue(com.commercetools.history.models.common.Associate.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for AddAssociateChange + * @return builder + */ + public static AddAssociateChangeBuilder builder() { + return AddAssociateChangeBuilder.of(); + } + + /** + * create builder for AddAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static AddAssociateChangeBuilder builder(final AddAssociateChange template) { + return AddAssociateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * AddAssociateChange addAssociateChange = AddAssociateChange.builder()
+ * .change("{change}")
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public AddAssociateChangeBuilder nextValue( + FunctionValue after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public AddAssociateChangeBuilder withNextValue( + FunctionValue after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public AddAssociateChangeBuilder nextValue(final com.commercetools.history.models.common.Associate nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.Associate getNextValue() { + return this.nextValue; + } + + /** + * builds AddAssociateChange with checking for non-null required values + * @return AddAssociateChange + */ + public AddAssociateChange build() { + Objects.requireNonNull(change, AddAssociateChange.class + ": change is missing"); + Objects.requireNonNull(nextValue, AddAssociateChange.class + ": nextValue is missing"); + return new AddAssociateChangeImpl(change, nextValue); + } + + /** + * builds AddAssociateChange without checking for non-null required values + * @return AddAssociateChange + */ + public AddAssociateChange buildUnchecked() { + return new AddAssociateChangeImpl(change, nextValue); + } + + /** + * factory method for an instance of AddAssociateChangeBuilder + * @return builder + */ + public static AddAssociateChangeBuilder of() { + return new AddAssociateChangeBuilder(); + } + + /** + * create builder for AddAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static AddAssociateChangeBuilder of(final AddAssociateChange template) { + AddAssociateChangeBuilder builder = new AddAssociateChangeBuilder(); + builder.change = template.getChange(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssociateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssociateChangeImpl.java new file mode 100644 index 00000000000..625992867e2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAssociateChangeImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Add Associate update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AddAssociateChangeImpl implements AddAssociateChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Associate nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + AddAssociateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Associate nextValue) { + this.change = change; + this.nextValue = nextValue; + this.type = ADD_ASSOCIATE_CHANGE; + } + + /** + * create empty instance + */ + public AddAssociateChangeImpl() { + this.type = ADD_ASSOCIATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.Associate getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setNextValue(final com.commercetools.history.models.common.Associate nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AddAssociateChangeImpl that = (AddAssociateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChange.java index a6392d5cb65..9cb31ef51fa 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChange.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChange.java @@ -9,6 +9,7 @@ import javax.validation.Valid; import javax.validation.constraints.NotNull; +import com.commercetools.history.models.common.ProductVariantSelection; import com.commercetools.history.models.common.Reference; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -25,6 +26,7 @@ * AddProductChange addProductChange = AddProductChange.builder() * .change("{change}") * .nextValue(nextValueBuilder -> nextValueBuilder) + * .variantSelection(variantSelectionBuilder -> variantSelectionBuilder) * .build() * * @@ -63,6 +65,15 @@ public interface AddProductChange extends Change { @JsonProperty("nextValue") public Reference getNextValue(); + /** + *The Product Variants included in the Product Selection.
+ * @return variantSelection + */ + @NotNull + @Valid + @JsonProperty("variantSelection") + public ProductVariantSelection getVariantSelection(); + /** * set change * @param change value to be set @@ -77,6 +88,13 @@ public interface AddProductChange extends Change { public void setNextValue(final Reference nextValue); + /** + *The Product Variants included in the Product Selection.
+ * @param variantSelection value to be set + */ + + public void setVariantSelection(final ProductVariantSelection variantSelection); + /** * factory method * @return instance of AddProductChange @@ -94,6 +112,7 @@ public static AddProductChange of(final AddProductChange template) { AddProductChangeImpl instance = new AddProductChangeImpl(); instance.setChange(template.getChange()); instance.setNextValue(template.getNextValue()); + instance.setVariantSelection(template.getVariantSelection()); return instance; } @@ -110,6 +129,8 @@ public static AddProductChange deepCopy(@Nullable final AddProductChange templat AddProductChangeImpl instance = new AddProductChangeImpl(); instance.setChange(template.getChange()); instance.setNextValue(com.commercetools.history.models.common.Reference.deepCopy(template.getNextValue())); + instance.setVariantSelection( + com.commercetools.history.models.common.ProductVariantSelection.deepCopy(template.getVariantSelection())); return instance; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeBuilder.java index 972c1ea83b3..afbec015029 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeBuilder.java @@ -16,6 +16,7 @@ * AddProductChange addProductChange = AddProductChange.builder() * .change("{change}") * .nextValue(nextValueBuilder -> nextValueBuilder) + * .variantSelection(variantSelectionBuilder -> variantSelectionBuilder) * .build() * * @@ -27,6 +28,8 @@ public class AddProductChangeBuilder implements BuilderThe Product Variants included in the Product Selection.
+ * @param builder function to build the variantSelection value + * @return Builder + */ + + public AddProductChangeBuilder variantSelection( + FunctionThe Product Variants included in the Product Selection.
+ * @param builder function to build the variantSelection value + * @return Builder + */ + + public AddProductChangeBuilder withVariantSelection( + FunctionThe Product Variants included in the Product Selection.
+ * @param variantSelection value to be set + * @return Builder + */ + + public AddProductChangeBuilder variantSelection( + final com.commercetools.history.models.common.ProductVariantSelection variantSelection) { + this.variantSelection = variantSelection; + return this; + } + /** * value of change} * @return change @@ -91,6 +133,15 @@ public com.commercetools.history.models.common.Reference getNextValue() { return this.nextValue; } + /** + *The Product Variants included in the Product Selection.
+ * @return variantSelection + */ + + public com.commercetools.history.models.common.ProductVariantSelection getVariantSelection() { + return this.variantSelection; + } + /** * builds AddProductChange with checking for non-null required values * @return AddProductChange @@ -98,7 +149,8 @@ public com.commercetools.history.models.common.Reference getNextValue() { public AddProductChange build() { Objects.requireNonNull(change, AddProductChange.class + ": change is missing"); Objects.requireNonNull(nextValue, AddProductChange.class + ": nextValue is missing"); - return new AddProductChangeImpl(change, nextValue); + Objects.requireNonNull(variantSelection, AddProductChange.class + ": variantSelection is missing"); + return new AddProductChangeImpl(change, nextValue, variantSelection); } /** @@ -106,7 +158,7 @@ public AddProductChange build() { * @return AddProductChange */ public AddProductChange buildUnchecked() { - return new AddProductChangeImpl(change, nextValue); + return new AddProductChangeImpl(change, nextValue, variantSelection); } /** @@ -126,6 +178,7 @@ public static AddProductChangeBuilder of(final AddProductChange template) { AddProductChangeBuilder builder = new AddProductChangeBuilder(); builder.change = template.getChange(); builder.nextValue = template.getNextValue(); + builder.variantSelection = template.getVariantSelection(); return builder; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeImpl.java index 00e3c7ab1d3..54a1d6c217f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductChangeImpl.java @@ -26,14 +26,18 @@ public class AddProductChangeImpl implements AddProductChange, ModelBase { private com.commercetools.history.models.common.Reference nextValue; + private com.commercetools.history.models.common.ProductVariantSelection variantSelection; + /** * create instance with all properties */ @JsonCreator AddProductChangeImpl(@JsonProperty("change") final String change, - @JsonProperty("nextValue") final com.commercetools.history.models.common.Reference nextValue) { + @JsonProperty("nextValue") final com.commercetools.history.models.common.Reference nextValue, + @JsonProperty("variantSelection") final com.commercetools.history.models.common.ProductVariantSelection variantSelection) { this.change = change; this.nextValue = nextValue; + this.variantSelection = variantSelection; this.type = ADD_PRODUCT_CHANGE; } @@ -68,6 +72,14 @@ public com.commercetools.history.models.common.Reference getNextValue() { return this.nextValue; } + /** + *The Product Variants included in the Product Selection.
+ */ + + public com.commercetools.history.models.common.ProductVariantSelection getVariantSelection() { + return this.variantSelection; + } + public void setChange(final String change) { this.change = change; } @@ -76,6 +88,11 @@ public void setNextValue(final com.commercetools.history.models.common.Reference this.nextValue = nextValue; } + public void setVariantSelection( + final com.commercetools.history.models.common.ProductVariantSelection variantSelection) { + this.variantSelection = variantSelection; + } + @Override public boolean equals(Object o) { if (this == o) @@ -89,12 +106,17 @@ public boolean equals(Object o) { return new EqualsBuilder().append(type, that.type) .append(change, that.change) .append(nextValue, that.nextValue) + .append(variantSelection, that.variantSelection) .isEquals(); } @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode(); + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(nextValue) + .append(variantSelection) + .toHashCode(); } } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductSelectionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductSelectionChange.java new file mode 100644 index 00000000000..502b9093d22 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddProductSelectionChange.java @@ -0,0 +1,176 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.ProductSelectionSetting; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Add Product Selection update action.
+ * + *
+ * AddProductSelectionChange addProductSelectionChange = AddProductSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ *
+ * AddProductSelectionChange addProductSelectionChange = AddProductSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Change triggered by the Add Product Selection update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class AddProductSelectionChangeImpl implements AddProductSelectionChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.ProductSelectionSetting previousValue; + + private com.commercetools.history.models.common.ProductSelectionSetting nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + AddProductSelectionChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.ProductSelectionSetting previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.ProductSelectionSetting nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = ADD_PRODUCT_SELECTION_CHANGE; + } + + /** + * create empty instance + */ + public AddProductSelectionChangeImpl() { + this.type = ADD_PRODUCT_SELECTION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + * + */ + + public com.commercetools.history.models.common.ProductSelectionSetting getPreviousValue() { + return this.previousValue; + } + + /** + * + */ + + public com.commercetools.history.models.common.ProductSelectionSetting getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.ProductSelectionSetting previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.ProductSelectionSetting nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + AddProductSelectionChangeImpl that = (AddProductSelectionChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java index 5cdfd8e1d13..7c70dbadf87 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java @@ -32,6 +32,7 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddAddressChangeImpl.class, name = AddAddressChange.ADD_ADDRESS_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddAssetChangeImpl.class, name = AddAssetChange.ADD_ASSET_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddAssociateChangeImpl.class, name = AddAssociateChange.ADD_ASSOCIATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddAttributeDefinitionChangeImpl.class, name = AddAttributeDefinitionChange.ADD_ATTRIBUTE_DEFINITION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddBillingAddressIdChangeImpl.class, name = AddBillingAddressIdChange.ADD_BILLING_ADDRESS_ID_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddChannelRolesChangeImpl.class, name = AddChannelRolesChange.ADD_CHANNEL_ROLES_CHANGE), @@ -51,6 +52,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddPlainEnumValueChangeImpl.class, name = AddPlainEnumValueChange.ADD_PLAIN_ENUM_VALUE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddPriceChangeImpl.class, name = AddPriceChange.ADD_PRICE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddProductChangeImpl.class, name = AddProductChange.ADD_PRODUCT_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddProductSelectionChangeImpl.class, name = AddProductSelectionChange.ADD_PRODUCT_SELECTION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddPropertyChangeImpl.class, name = AddPropertyChange.ADD_PROPERTY_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddReturnInfoChangeImpl.class, name = AddReturnInfoChange.ADD_RETURN_INFO_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.AddShippingAddressIdChangeImpl.class, name = AddShippingAddressIdChange.ADD_SHIPPING_ADDRESS_ID_CHANGE), @@ -66,6 +68,8 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAmountPlannedChangeImpl.class, name = ChangeAmountPlannedChange.CHANGE_AMOUNT_PLANNED_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAssetNameChangeImpl.class, name = ChangeAssetNameChange.CHANGE_ASSET_NAME_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAssetOrderChangeImpl.class, name = ChangeAssetOrderChange.CHANGE_ASSET_ORDER_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAssociateChangeImpl.class, name = ChangeAssociateChange.CHANGE_ASSOCIATE_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAssociateModeChangeImpl.class, name = ChangeAssociateModeChange.CHANGE_ASSOCIATE_MODE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAttributeConstraintChangeImpl.class, name = ChangeAttributeConstraintChange.CHANGE_ATTRIBUTE_CONSTRAINT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeAttributeOrderByNameChangeImpl.class, name = ChangeAttributeOrderByNameChange.CHANGE_ATTRIBUTE_ORDER_BY_NAME_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeCartDiscountsChangeImpl.class, name = ChangeCartDiscountsChange.CHANGE_CART_DISCOUNTS_CHANGE), @@ -93,11 +97,13 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeOrderHintChangeImpl.class, name = ChangeOrderHintChange.CHANGE_ORDER_HINT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeOrderStateChangeImpl.class, name = ChangeOrderStateChange.CHANGE_ORDER_STATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeParentChangeImpl.class, name = ChangeParentChange.CHANGE_PARENT_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeParentUnitChangeImpl.class, name = ChangeParentUnitChange.CHANGE_PARENT_UNIT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangePaymentStateChangeImpl.class, name = ChangePaymentStateChange.CHANGE_PAYMENT_STATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangePlainEnumValueLabelChangeImpl.class, name = ChangePlainEnumValueLabelChange.CHANGE_PLAIN_ENUM_VALUE_LABEL_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangePlainEnumValueOrderChangeImpl.class, name = ChangePlainEnumValueOrderChange.CHANGE_PLAIN_ENUM_VALUE_ORDER_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangePredicateChangeImpl.class, name = ChangePredicateChange.CHANGE_PREDICATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangePriceChangeImpl.class, name = ChangePriceChange.CHANGE_PRICE_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeProductSelectionActiveChangeImpl.class, name = ChangeProductSelectionActiveChange.CHANGE_PRODUCT_SELECTION_ACTIVE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeQuantityChangeImpl.class, name = ChangeQuantityChange.CHANGE_QUANTITY_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeQuoteRequestStateChangeImpl.class, name = ChangeQuoteRequestStateChange.CHANGE_QUOTE_REQUEST_STATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeQuoteStateChangeImpl.class, name = ChangeQuoteStateChange.CHANGE_QUOTE_STATE_CHANGE), @@ -111,6 +117,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeStackingModeChangeImpl.class, name = ChangeStackingModeChange.CHANGE_STACKING_MODE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeStagedQuoteStateChangeImpl.class, name = ChangeStagedQuoteStateChange.CHANGE_STAGED_QUOTE_STATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeStateTypeChangeImpl.class, name = ChangeStateTypeChange.CHANGE_STATE_TYPE_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeStatusChangeImpl.class, name = ChangeStatusChange.CHANGE_STATUS_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeTargetChangeImpl.class, name = ChangeTargetChange.CHANGE_TARGET_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeTaxCalculationModeChangeImpl.class, name = ChangeTaxCalculationModeChange.CHANGE_TAX_CALCULATION_MODE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.ChangeTaxModeChangeImpl.class, name = ChangeTaxModeChange.CHANGE_TAX_MODE_CHANGE), @@ -126,6 +133,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.PublishChangeImpl.class, name = PublishChange.PUBLISH_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveAddressChangeImpl.class, name = RemoveAddressChange.REMOVE_ADDRESS_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveAssetChangeImpl.class, name = RemoveAssetChange.REMOVE_ASSET_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveAssociateChangeImpl.class, name = RemoveAssociateChange.REMOVE_ASSOCIATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveAttributeDefinitionChangeImpl.class, name = RemoveAttributeDefinitionChange.REMOVE_ATTRIBUTE_DEFINITION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveBillingAddressIdChangeImpl.class, name = RemoveBillingAddressIdChange.REMOVE_BILLING_ADDRESS_ID_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveChannelRolesChangeImpl.class, name = RemoveChannelRolesChange.REMOVE_CHANNEL_ROLES_CHANGE), @@ -144,6 +152,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemovePaymentChangeImpl.class, name = RemovePaymentChange.REMOVE_PAYMENT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemovePriceChangeImpl.class, name = RemovePriceChange.REMOVE_PRICE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveProductChangeImpl.class, name = RemoveProductChange.REMOVE_PRODUCT_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveProductSelectionChangeImpl.class, name = RemoveProductSelectionChange.REMOVE_PRODUCT_SELECTION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemovePropertyChangeImpl.class, name = RemovePropertyChange.REMOVE_PROPERTY_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveShippingAddressIdChangeImpl.class, name = RemoveShippingAddressIdChange.REMOVE_SHIPPING_ADDRESS_ID_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveShoppingListLineItemChangeImpl.class, name = RemoveShoppingListLineItemChange.REMOVE_SHOPPING_LIST_LINE_ITEM_CHANGE), @@ -151,7 +160,10 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveTaxRateChangeImpl.class, name = RemoveTaxRateChange.REMOVE_TAX_RATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveTextLineItemChangeImpl.class, name = RemoveTextLineItemChange.REMOVE_TEXT_LINE_ITEM_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.RemoveVariantChangeImpl.class, name = RemoveVariantChange.REMOVE_VARIANT_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.RequestQuoteRenegotiationChangeImpl.class, name = RequestQuoteRenegotiationChange.REQUEST_QUOTE_RENEGOTIATION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetAddressChangeImpl.class, name = SetAddressChange.SET_ADDRESS_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetAddressCustomFieldChangeImpl.class, name = SetAddressCustomFieldChange.SET_ADDRESS_CUSTOM_FIELD_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetAddressCustomTypeChangeImpl.class, name = SetAddressCustomTypeChange.SET_ADDRESS_CUSTOM_TYPE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetAnonymousIdChangeImpl.class, name = SetAnonymousIdChange.SET_ANONYMOUS_ID_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetApplicationVersionChangeImpl.class, name = SetApplicationVersionChange.SET_APPLICATION_VERSION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetAssetCustomFieldChangeImpl.class, name = SetAssetCustomFieldChange.SET_ASSET_CUSTOM_FIELD_CHANGE), @@ -168,6 +180,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetCategoryOrderHintChangeImpl.class, name = SetCategoryOrderHintChange.SET_CATEGORY_ORDER_HINT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetChannelRolesChangeImpl.class, name = SetChannelRolesChange.SET_CHANNEL_ROLES_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetCompanyNameChangeImpl.class, name = SetCompanyNameChange.SET_COMPANY_NAME_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetContactEmailChangeImpl.class, name = SetContactEmailChange.SET_CONTACT_EMAIL_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetCountriesChangeImpl.class, name = SetCountriesChange.SET_COUNTRIES_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetCountryChangeImpl.class, name = SetCountryChange.SET_COUNTRY_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetCustomFieldChangeImpl.class, name = SetCustomFieldChange.SET_CUSTOM_FIELD_CHANGE), @@ -272,6 +285,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetStatusInterfaceCodeChangeImpl.class, name = SetStatusInterfaceCodeChange.SET_STATUS_INTERFACE_CODE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetStatusInterfaceTextChangeImpl.class, name = SetStatusInterfaceTextChange.SET_STATUS_INTERFACE_TEXT_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetStoreChangeImpl.class, name = SetStoreChange.SET_STORE_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetStoreModeChangeImpl.class, name = SetStoreModeChange.SET_STORE_MODE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetStoresChangeImpl.class, name = SetStoresChange.SET_STORES_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetSupplyChannelChangeImpl.class, name = SetSupplyChannelChange.SET_SUPPLY_CHANNEL_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetSupplyChannelsChangeImpl.class, name = SetSupplyChannelsChange.SET_SUPPLY_CHANNELS_CHANGE), @@ -289,6 +303,7 @@ @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetValidUntilChangeImpl.class, name = SetValidUntilChange.SET_VALID_UNTIL_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetValueChangeImpl.class, name = SetValueChange.SET_VALUE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetVariantAvailabilityChangeImpl.class, name = SetVariantAvailabilityChange.SET_VARIANT_AVAILABILITY_CHANGE), + @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetVariantSelectionChangeImpl.class, name = SetVariantSelectionChange.SET_VARIANT_SELECTION_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.SetVatIdChangeImpl.class, name = SetVatIdChange.SET_VAT_ID_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.TransitionCustomLineItemStateChangeImpl.class, name = TransitionCustomLineItemStateChange.TRANSITION_CUSTOM_LINE_ITEM_STATE_CHANGE), @JsonSubTypes.Type(value = com.commercetools.history.models.change.TransitionLineItemStateChangeImpl.class, name = TransitionLineItemStateChange.TRANSITION_LINE_ITEM_STATE_CHANGE), @@ -345,6 +360,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.AddAssetChange .deepCopy((com.commercetools.history.models.change.AddAssetChange) template); } + if (template instanceof com.commercetools.history.models.change.AddAssociateChange) { + return com.commercetools.history.models.change.AddAssociateChange + .deepCopy((com.commercetools.history.models.change.AddAssociateChange) template); + } if (template instanceof com.commercetools.history.models.change.AddAttributeDefinitionChange) { return com.commercetools.history.models.change.AddAttributeDefinitionChange .deepCopy((com.commercetools.history.models.change.AddAttributeDefinitionChange) template); @@ -421,6 +440,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.AddProductChange .deepCopy((com.commercetools.history.models.change.AddProductChange) template); } + if (template instanceof com.commercetools.history.models.change.AddProductSelectionChange) { + return com.commercetools.history.models.change.AddProductSelectionChange + .deepCopy((com.commercetools.history.models.change.AddProductSelectionChange) template); + } if (template instanceof com.commercetools.history.models.change.AddPropertyChange) { return com.commercetools.history.models.change.AddPropertyChange .deepCopy((com.commercetools.history.models.change.AddPropertyChange) template); @@ -481,6 +504,14 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.ChangeAssetOrderChange .deepCopy((com.commercetools.history.models.change.ChangeAssetOrderChange) template); } + if (template instanceof com.commercetools.history.models.change.ChangeAssociateChange) { + return com.commercetools.history.models.change.ChangeAssociateChange + .deepCopy((com.commercetools.history.models.change.ChangeAssociateChange) template); + } + if (template instanceof com.commercetools.history.models.change.ChangeAssociateModeChange) { + return com.commercetools.history.models.change.ChangeAssociateModeChange + .deepCopy((com.commercetools.history.models.change.ChangeAssociateModeChange) template); + } if (template instanceof com.commercetools.history.models.change.ChangeAttributeConstraintChange) { return com.commercetools.history.models.change.ChangeAttributeConstraintChange .deepCopy((com.commercetools.history.models.change.ChangeAttributeConstraintChange) template); @@ -589,6 +620,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.ChangeParentChange .deepCopy((com.commercetools.history.models.change.ChangeParentChange) template); } + if (template instanceof com.commercetools.history.models.change.ChangeParentUnitChange) { + return com.commercetools.history.models.change.ChangeParentUnitChange + .deepCopy((com.commercetools.history.models.change.ChangeParentUnitChange) template); + } if (template instanceof com.commercetools.history.models.change.ChangePaymentStateChange) { return com.commercetools.history.models.change.ChangePaymentStateChange .deepCopy((com.commercetools.history.models.change.ChangePaymentStateChange) template); @@ -609,6 +644,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.ChangePriceChange .deepCopy((com.commercetools.history.models.change.ChangePriceChange) template); } + if (template instanceof com.commercetools.history.models.change.ChangeProductSelectionActiveChange) { + return com.commercetools.history.models.change.ChangeProductSelectionActiveChange + .deepCopy((com.commercetools.history.models.change.ChangeProductSelectionActiveChange) template); + } if (template instanceof com.commercetools.history.models.change.ChangeQuantityChange) { return com.commercetools.history.models.change.ChangeQuantityChange .deepCopy((com.commercetools.history.models.change.ChangeQuantityChange) template); @@ -661,6 +700,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.ChangeStateTypeChange .deepCopy((com.commercetools.history.models.change.ChangeStateTypeChange) template); } + if (template instanceof com.commercetools.history.models.change.ChangeStatusChange) { + return com.commercetools.history.models.change.ChangeStatusChange + .deepCopy((com.commercetools.history.models.change.ChangeStatusChange) template); + } if (template instanceof com.commercetools.history.models.change.ChangeTargetChange) { return com.commercetools.history.models.change.ChangeTargetChange .deepCopy((com.commercetools.history.models.change.ChangeTargetChange) template); @@ -721,6 +764,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.RemoveAssetChange .deepCopy((com.commercetools.history.models.change.RemoveAssetChange) template); } + if (template instanceof com.commercetools.history.models.change.RemoveAssociateChange) { + return com.commercetools.history.models.change.RemoveAssociateChange + .deepCopy((com.commercetools.history.models.change.RemoveAssociateChange) template); + } if (template instanceof com.commercetools.history.models.change.RemoveAttributeDefinitionChange) { return com.commercetools.history.models.change.RemoveAttributeDefinitionChange .deepCopy((com.commercetools.history.models.change.RemoveAttributeDefinitionChange) template); @@ -793,6 +840,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.RemoveProductChange .deepCopy((com.commercetools.history.models.change.RemoveProductChange) template); } + if (template instanceof com.commercetools.history.models.change.RemoveProductSelectionChange) { + return com.commercetools.history.models.change.RemoveProductSelectionChange + .deepCopy((com.commercetools.history.models.change.RemoveProductSelectionChange) template); + } if (template instanceof com.commercetools.history.models.change.RemovePropertyChange) { return com.commercetools.history.models.change.RemovePropertyChange .deepCopy((com.commercetools.history.models.change.RemovePropertyChange) template); @@ -821,10 +872,22 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.RemoveVariantChange .deepCopy((com.commercetools.history.models.change.RemoveVariantChange) template); } + if (template instanceof com.commercetools.history.models.change.RequestQuoteRenegotiationChange) { + return com.commercetools.history.models.change.RequestQuoteRenegotiationChange + .deepCopy((com.commercetools.history.models.change.RequestQuoteRenegotiationChange) template); + } if (template instanceof com.commercetools.history.models.change.SetAddressChange) { return com.commercetools.history.models.change.SetAddressChange .deepCopy((com.commercetools.history.models.change.SetAddressChange) template); } + if (template instanceof com.commercetools.history.models.change.SetAddressCustomFieldChange) { + return com.commercetools.history.models.change.SetAddressCustomFieldChange + .deepCopy((com.commercetools.history.models.change.SetAddressCustomFieldChange) template); + } + if (template instanceof com.commercetools.history.models.change.SetAddressCustomTypeChange) { + return com.commercetools.history.models.change.SetAddressCustomTypeChange + .deepCopy((com.commercetools.history.models.change.SetAddressCustomTypeChange) template); + } if (template instanceof com.commercetools.history.models.change.SetAnonymousIdChange) { return com.commercetools.history.models.change.SetAnonymousIdChange .deepCopy((com.commercetools.history.models.change.SetAnonymousIdChange) template); @@ -889,6 +952,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.SetCompanyNameChange .deepCopy((com.commercetools.history.models.change.SetCompanyNameChange) template); } + if (template instanceof com.commercetools.history.models.change.SetContactEmailChange) { + return com.commercetools.history.models.change.SetContactEmailChange + .deepCopy((com.commercetools.history.models.change.SetContactEmailChange) template); + } if (template instanceof com.commercetools.history.models.change.SetCountriesChange) { return com.commercetools.history.models.change.SetCountriesChange .deepCopy((com.commercetools.history.models.change.SetCountriesChange) template); @@ -1305,6 +1372,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.SetStoreChange .deepCopy((com.commercetools.history.models.change.SetStoreChange) template); } + if (template instanceof com.commercetools.history.models.change.SetStoreModeChange) { + return com.commercetools.history.models.change.SetStoreModeChange + .deepCopy((com.commercetools.history.models.change.SetStoreModeChange) template); + } if (template instanceof com.commercetools.history.models.change.SetStoresChange) { return com.commercetools.history.models.change.SetStoresChange .deepCopy((com.commercetools.history.models.change.SetStoresChange) template); @@ -1373,6 +1444,10 @@ public static Change deepCopy(@Nullable final Change template) { return com.commercetools.history.models.change.SetVariantAvailabilityChange .deepCopy((com.commercetools.history.models.change.SetVariantAvailabilityChange) template); } + if (template instanceof com.commercetools.history.models.change.SetVariantSelectionChange) { + return com.commercetools.history.models.change.SetVariantSelectionChange + .deepCopy((com.commercetools.history.models.change.SetVariantSelectionChange) template); + } if (template instanceof com.commercetools.history.models.change.SetVatIdChange) { return com.commercetools.history.models.change.SetVatIdChange .deepCopy((com.commercetools.history.models.change.SetVatIdChange) template); @@ -1426,6 +1501,14 @@ public static com.commercetools.history.models.change.AddAssetChangeBuilder addA return com.commercetools.history.models.change.AddAssetChangeBuilder.of(); } + /** + * builder for addAssociateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.AddAssociateChangeBuilder addAssociateChangeBuilder() { + return com.commercetools.history.models.change.AddAssociateChangeBuilder.of(); + } + /** * builder for addAttributeDefinitionChange subtype * @return builder @@ -1578,6 +1661,14 @@ public static com.commercetools.history.models.change.AddProductChangeBuilder ad return com.commercetools.history.models.change.AddProductChangeBuilder.of(); } + /** + * builder for addProductSelectionChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.AddProductSelectionChangeBuilder addProductSelectionChangeBuilder() { + return com.commercetools.history.models.change.AddProductSelectionChangeBuilder.of(); + } + /** * builder for addPropertyChange subtype * @return builder @@ -1698,6 +1789,22 @@ public static com.commercetools.history.models.change.ChangeAssetOrderChangeBuil return com.commercetools.history.models.change.ChangeAssetOrderChangeBuilder.of(); } + /** + * builder for changeAssociateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeAssociateChangeBuilder changeAssociateChangeBuilder() { + return com.commercetools.history.models.change.ChangeAssociateChangeBuilder.of(); + } + + /** + * builder for changeAssociateModeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeAssociateModeChangeBuilder changeAssociateModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeAssociateModeChangeBuilder.of(); + } + /** * builder for changeAttributeConstraintChange subtype * @return builder @@ -1914,6 +2021,14 @@ public static com.commercetools.history.models.change.ChangeParentChangeBuilder return com.commercetools.history.models.change.ChangeParentChangeBuilder.of(); } + /** + * builder for changeParentUnitChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeParentUnitChangeBuilder changeParentUnitChangeBuilder() { + return com.commercetools.history.models.change.ChangeParentUnitChangeBuilder.of(); + } + /** * builder for changePaymentStateChange subtype * @return builder @@ -1954,6 +2069,14 @@ public static com.commercetools.history.models.change.ChangePriceChangeBuilder c return com.commercetools.history.models.change.ChangePriceChangeBuilder.of(); } + /** + * builder for changeProductSelectionActiveChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeProductSelectionActiveChangeBuilder changeProductSelectionActiveChangeBuilder() { + return com.commercetools.history.models.change.ChangeProductSelectionActiveChangeBuilder.of(); + } + /** * builder for changeQuantityChange subtype * @return builder @@ -2058,6 +2181,14 @@ public static com.commercetools.history.models.change.ChangeStateTypeChangeBuild return com.commercetools.history.models.change.ChangeStateTypeChangeBuilder.of(); } + /** + * builder for changeStatusChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.ChangeStatusChangeBuilder changeStatusChangeBuilder() { + return com.commercetools.history.models.change.ChangeStatusChangeBuilder.of(); + } + /** * builder for changeTargetChange subtype * @return builder @@ -2178,6 +2309,14 @@ public static com.commercetools.history.models.change.RemoveAssetChangeBuilder r return com.commercetools.history.models.change.RemoveAssetChangeBuilder.of(); } + /** + * builder for removeAssociateChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.RemoveAssociateChangeBuilder removeAssociateChangeBuilder() { + return com.commercetools.history.models.change.RemoveAssociateChangeBuilder.of(); + } + /** * builder for removeAttributeDefinitionChange subtype * @return builder @@ -2322,6 +2461,14 @@ public static com.commercetools.history.models.change.RemoveProductChangeBuilder return com.commercetools.history.models.change.RemoveProductChangeBuilder.of(); } + /** + * builder for removeProductSelectionChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.RemoveProductSelectionChangeBuilder removeProductSelectionChangeBuilder() { + return com.commercetools.history.models.change.RemoveProductSelectionChangeBuilder.of(); + } + /** * builder for removePropertyChange subtype * @return builder @@ -2378,6 +2525,14 @@ public static com.commercetools.history.models.change.RemoveVariantChangeBuilder return com.commercetools.history.models.change.RemoveVariantChangeBuilder.of(); } + /** + * builder for requestQuoteRenegotiationChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.RequestQuoteRenegotiationChangeBuilder requestQuoteRenegotiationChangeBuilder() { + return com.commercetools.history.models.change.RequestQuoteRenegotiationChangeBuilder.of(); + } + /** * builder for setAddressChange subtype * @return builder @@ -2386,6 +2541,22 @@ public static com.commercetools.history.models.change.SetAddressChangeBuilder se return com.commercetools.history.models.change.SetAddressChangeBuilder.of(); } + /** + * builder for setAddressCustomFieldChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetAddressCustomFieldChangeBuilder setAddressCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.SetAddressCustomFieldChangeBuilder.of(); + } + + /** + * builder for setAddressCustomTypeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetAddressCustomTypeChangeBuilder setAddressCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.SetAddressCustomTypeChangeBuilder.of(); + } + /** * builder for setAnonymousIdChange subtype * @return builder @@ -2514,6 +2685,14 @@ public static com.commercetools.history.models.change.SetCompanyNameChangeBuilde return com.commercetools.history.models.change.SetCompanyNameChangeBuilder.of(); } + /** + * builder for setContactEmailChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetContactEmailChangeBuilder setContactEmailChangeBuilder() { + return com.commercetools.history.models.change.SetContactEmailChangeBuilder.of(); + } + /** * builder for setCountriesChange subtype * @return builder @@ -3346,6 +3525,14 @@ public static com.commercetools.history.models.change.SetStoreChangeBuilder setS return com.commercetools.history.models.change.SetStoreChangeBuilder.of(); } + /** + * builder for setStoreModeChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetStoreModeChangeBuilder setStoreModeChangeBuilder() { + return com.commercetools.history.models.change.SetStoreModeChangeBuilder.of(); + } + /** * builder for setStoresChange subtype * @return builder @@ -3482,6 +3669,14 @@ public static com.commercetools.history.models.change.SetVariantAvailabilityChan return com.commercetools.history.models.change.SetVariantAvailabilityChangeBuilder.of(); } + /** + * builder for setVariantSelectionChange subtype + * @return builder + */ + public static com.commercetools.history.models.change.SetVariantSelectionChangeBuilder setVariantSelectionChangeBuilder() { + return com.commercetools.history.models.change.SetVariantSelectionChangeBuilder.of(); + } + /** * builder for setVatIdChange subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChange.java new file mode 100644 index 00000000000..cf4d55be2d7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChange.java @@ -0,0 +1,175 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.Associate; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Change Associate update action.
+ * + *
+ * ChangeAssociateChange changeAssociateChange = ChangeAssociateChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Associate getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public Associate getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Associate previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final Associate nextValue); + + /** + * factory method + * @return instance of ChangeAssociateChange + */ + public static ChangeAssociateChange of() { + return new ChangeAssociateChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeAssociateChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeAssociateChange of(final ChangeAssociateChange template) { + ChangeAssociateChangeImpl instance = new ChangeAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of ChangeAssociateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeAssociateChange deepCopy(@Nullable final ChangeAssociateChange template) { + if (template == null) { + return null; + } + ChangeAssociateChangeImpl instance = new ChangeAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Associate.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.Associate.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ChangeAssociateChange + * @return builder + */ + public static ChangeAssociateChangeBuilder builder() { + return ChangeAssociateChangeBuilder.of(); + } + + /** + * create builder for ChangeAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeAssociateChangeBuilder builder(final ChangeAssociateChange template) { + return ChangeAssociateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ChangeAssociateChange changeAssociateChange = ChangeAssociateChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public ChangeAssociateChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public ChangeAssociateChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public ChangeAssociateChangeBuilder previousValue( + final com.commercetools.history.models.common.Associate previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public ChangeAssociateChangeBuilder nextValue( + FunctionValue after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public ChangeAssociateChangeBuilder withNextValue( + FunctionValue after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public ChangeAssociateChangeBuilder nextValue(final com.commercetools.history.models.common.Associate nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.Associate getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.Associate getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeAssociateChange with checking for non-null required values + * @return ChangeAssociateChange + */ + public ChangeAssociateChange build() { + Objects.requireNonNull(change, ChangeAssociateChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ChangeAssociateChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeAssociateChange.class + ": nextValue is missing"); + return new ChangeAssociateChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ChangeAssociateChange without checking for non-null required values + * @return ChangeAssociateChange + */ + public ChangeAssociateChange buildUnchecked() { + return new ChangeAssociateChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeAssociateChangeBuilder + * @return builder + */ + public static ChangeAssociateChangeBuilder of() { + return new ChangeAssociateChangeBuilder(); + } + + /** + * create builder for ChangeAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeAssociateChangeBuilder of(final ChangeAssociateChange template) { + ChangeAssociateChangeBuilder builder = new ChangeAssociateChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChangeImpl.java new file mode 100644 index 00000000000..355277d0910 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateChangeImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Change Associate update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeAssociateChangeImpl implements ChangeAssociateChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Associate previousValue; + + private com.commercetools.history.models.common.Associate nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeAssociateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Associate previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.Associate nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_ASSOCIATE_CHANGE; + } + + /** + * create empty instance + */ + public ChangeAssociateChangeImpl() { + this.type = CHANGE_ASSOCIATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.Associate getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.Associate getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Associate previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.Associate nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeAssociateChangeImpl that = (ChangeAssociateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChange.java new file mode 100644 index 00000000000..5b9e76b9891 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChange.java @@ -0,0 +1,171 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.BusinessUnitAssociateMode; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Change Associate Mode update action.
+ * + *
+ * ChangeAssociateModeChange changeAssociateModeChange = ChangeAssociateModeChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitAssociateMode.EXPLICIT)
+ * .nextValue(BusinessUnitAssociateMode.EXPLICIT)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public BusinessUnitAssociateMode getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public BusinessUnitAssociateMode getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final BusinessUnitAssociateMode previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final BusinessUnitAssociateMode nextValue); + + /** + * factory method + * @return instance of ChangeAssociateModeChange + */ + public static ChangeAssociateModeChange of() { + return new ChangeAssociateModeChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeAssociateModeChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeAssociateModeChange of(final ChangeAssociateModeChange template) { + ChangeAssociateModeChangeImpl instance = new ChangeAssociateModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of ChangeAssociateModeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeAssociateModeChange deepCopy(@Nullable final ChangeAssociateModeChange template) { + if (template == null) { + return null; + } + ChangeAssociateModeChangeImpl instance = new ChangeAssociateModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ChangeAssociateModeChange + * @return builder + */ + public static ChangeAssociateModeChangeBuilder builder() { + return ChangeAssociateModeChangeBuilder.of(); + } + + /** + * create builder for ChangeAssociateModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeAssociateModeChangeBuilder builder(final ChangeAssociateModeChange template) { + return ChangeAssociateModeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ChangeAssociateModeChange changeAssociateModeChange = ChangeAssociateModeChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitAssociateMode.EXPLICIT)
+ * .nextValue(BusinessUnitAssociateMode.EXPLICIT)
+ * .build()
+ *
+ * Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public ChangeAssociateModeChangeBuilder previousValue( + final com.commercetools.history.models.common.BusinessUnitAssociateMode previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public ChangeAssociateModeChangeBuilder nextValue( + final com.commercetools.history.models.common.BusinessUnitAssociateMode nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.BusinessUnitAssociateMode getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.BusinessUnitAssociateMode getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeAssociateModeChange with checking for non-null required values + * @return ChangeAssociateModeChange + */ + public ChangeAssociateModeChange build() { + Objects.requireNonNull(change, ChangeAssociateModeChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ChangeAssociateModeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeAssociateModeChange.class + ": nextValue is missing"); + return new ChangeAssociateModeChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ChangeAssociateModeChange without checking for non-null required values + * @return ChangeAssociateModeChange + */ + public ChangeAssociateModeChange buildUnchecked() { + return new ChangeAssociateModeChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeAssociateModeChangeBuilder + * @return builder + */ + public static ChangeAssociateModeChangeBuilder of() { + return new ChangeAssociateModeChangeBuilder(); + } + + /** + * create builder for ChangeAssociateModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeAssociateModeChangeBuilder of(final ChangeAssociateModeChange template) { + ChangeAssociateModeChangeBuilder builder = new ChangeAssociateModeChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChangeImpl.java new file mode 100644 index 00000000000..a025fe3185a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeAssociateModeChangeImpl.java @@ -0,0 +1,122 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Change Associate Mode update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeAssociateModeChangeImpl implements ChangeAssociateModeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.BusinessUnitAssociateMode previousValue; + + private com.commercetools.history.models.common.BusinessUnitAssociateMode nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeAssociateModeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.BusinessUnitAssociateMode previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.BusinessUnitAssociateMode nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_ASSOCIATE_MODE_CHANGE; + } + + /** + * create empty instance + */ + public ChangeAssociateModeChangeImpl() { + this.type = CHANGE_ASSOCIATE_MODE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitAssociateMode getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitAssociateMode getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue( + final com.commercetools.history.models.common.BusinessUnitAssociateMode previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.BusinessUnitAssociateMode nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeAssociateModeChangeImpl that = (ChangeAssociateModeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java index 7fe025e8c36..150382b9f23 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeBuilder.java @@ -19,6 +19,10 @@ public com.commercetools.history.models.change.AddAssetChangeBuilder addAssetCha return com.commercetools.history.models.change.AddAssetChangeBuilder.of(); } + public com.commercetools.history.models.change.AddAssociateChangeBuilder addAssociateChangeBuilder() { + return com.commercetools.history.models.change.AddAssociateChangeBuilder.of(); + } + public com.commercetools.history.models.change.AddAttributeDefinitionChangeBuilder addAttributeDefinitionChangeBuilder() { return com.commercetools.history.models.change.AddAttributeDefinitionChangeBuilder.of(); } @@ -95,6 +99,10 @@ public com.commercetools.history.models.change.AddProductChangeBuilder addProduc return com.commercetools.history.models.change.AddProductChangeBuilder.of(); } + public com.commercetools.history.models.change.AddProductSelectionChangeBuilder addProductSelectionChangeBuilder() { + return com.commercetools.history.models.change.AddProductSelectionChangeBuilder.of(); + } + public com.commercetools.history.models.change.AddPropertyChangeBuilder addPropertyChangeBuilder() { return com.commercetools.history.models.change.AddPropertyChangeBuilder.of(); } @@ -155,6 +163,14 @@ public com.commercetools.history.models.change.ChangeAssetOrderChangeBuilder cha return com.commercetools.history.models.change.ChangeAssetOrderChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeAssociateChangeBuilder changeAssociateChangeBuilder() { + return com.commercetools.history.models.change.ChangeAssociateChangeBuilder.of(); + } + + public com.commercetools.history.models.change.ChangeAssociateModeChangeBuilder changeAssociateModeChangeBuilder() { + return com.commercetools.history.models.change.ChangeAssociateModeChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeAttributeConstraintChangeBuilder changeAttributeConstraintChangeBuilder() { return com.commercetools.history.models.change.ChangeAttributeConstraintChangeBuilder.of(); } @@ -263,6 +279,10 @@ public com.commercetools.history.models.change.ChangeParentChangeBuilder changeP return com.commercetools.history.models.change.ChangeParentChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeParentUnitChangeBuilder changeParentUnitChangeBuilder() { + return com.commercetools.history.models.change.ChangeParentUnitChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangePaymentStateChangeBuilder changePaymentStateChangeBuilder() { return com.commercetools.history.models.change.ChangePaymentStateChangeBuilder.of(); } @@ -283,6 +303,10 @@ public com.commercetools.history.models.change.ChangePriceChangeBuilder changePr return com.commercetools.history.models.change.ChangePriceChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeProductSelectionActiveChangeBuilder changeProductSelectionActiveChangeBuilder() { + return com.commercetools.history.models.change.ChangeProductSelectionActiveChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeQuantityChangeBuilder changeQuantityChangeBuilder() { return com.commercetools.history.models.change.ChangeQuantityChangeBuilder.of(); } @@ -335,6 +359,10 @@ public com.commercetools.history.models.change.ChangeStateTypeChangeBuilder chan return com.commercetools.history.models.change.ChangeStateTypeChangeBuilder.of(); } + public com.commercetools.history.models.change.ChangeStatusChangeBuilder changeStatusChangeBuilder() { + return com.commercetools.history.models.change.ChangeStatusChangeBuilder.of(); + } + public com.commercetools.history.models.change.ChangeTargetChangeBuilder changeTargetChangeBuilder() { return com.commercetools.history.models.change.ChangeTargetChangeBuilder.of(); } @@ -395,6 +423,10 @@ public com.commercetools.history.models.change.RemoveAssetChangeBuilder removeAs return com.commercetools.history.models.change.RemoveAssetChangeBuilder.of(); } + public com.commercetools.history.models.change.RemoveAssociateChangeBuilder removeAssociateChangeBuilder() { + return com.commercetools.history.models.change.RemoveAssociateChangeBuilder.of(); + } + public com.commercetools.history.models.change.RemoveAttributeDefinitionChangeBuilder removeAttributeDefinitionChangeBuilder() { return com.commercetools.history.models.change.RemoveAttributeDefinitionChangeBuilder.of(); } @@ -467,6 +499,10 @@ public com.commercetools.history.models.change.RemoveProductChangeBuilder remove return com.commercetools.history.models.change.RemoveProductChangeBuilder.of(); } + public com.commercetools.history.models.change.RemoveProductSelectionChangeBuilder removeProductSelectionChangeBuilder() { + return com.commercetools.history.models.change.RemoveProductSelectionChangeBuilder.of(); + } + public com.commercetools.history.models.change.RemovePropertyChangeBuilder removePropertyChangeBuilder() { return com.commercetools.history.models.change.RemovePropertyChangeBuilder.of(); } @@ -495,10 +531,22 @@ public com.commercetools.history.models.change.RemoveVariantChangeBuilder remove return com.commercetools.history.models.change.RemoveVariantChangeBuilder.of(); } + public com.commercetools.history.models.change.RequestQuoteRenegotiationChangeBuilder requestQuoteRenegotiationChangeBuilder() { + return com.commercetools.history.models.change.RequestQuoteRenegotiationChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetAddressChangeBuilder setAddressChangeBuilder() { return com.commercetools.history.models.change.SetAddressChangeBuilder.of(); } + public com.commercetools.history.models.change.SetAddressCustomFieldChangeBuilder setAddressCustomFieldChangeBuilder() { + return com.commercetools.history.models.change.SetAddressCustomFieldChangeBuilder.of(); + } + + public com.commercetools.history.models.change.SetAddressCustomTypeChangeBuilder setAddressCustomTypeChangeBuilder() { + return com.commercetools.history.models.change.SetAddressCustomTypeChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetAnonymousIdChangeBuilder setAnonymousIdChangeBuilder() { return com.commercetools.history.models.change.SetAnonymousIdChangeBuilder.of(); } @@ -563,6 +611,10 @@ public com.commercetools.history.models.change.SetCompanyNameChangeBuilder setCo return com.commercetools.history.models.change.SetCompanyNameChangeBuilder.of(); } + public com.commercetools.history.models.change.SetContactEmailChangeBuilder setContactEmailChangeBuilder() { + return com.commercetools.history.models.change.SetContactEmailChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetCountriesChangeBuilder setCountriesChangeBuilder() { return com.commercetools.history.models.change.SetCountriesChangeBuilder.of(); } @@ -979,6 +1031,10 @@ public com.commercetools.history.models.change.SetStoreChangeBuilder setStoreCha return com.commercetools.history.models.change.SetStoreChangeBuilder.of(); } + public com.commercetools.history.models.change.SetStoreModeChangeBuilder setStoreModeChangeBuilder() { + return com.commercetools.history.models.change.SetStoreModeChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetStoresChangeBuilder setStoresChangeBuilder() { return com.commercetools.history.models.change.SetStoresChangeBuilder.of(); } @@ -1047,6 +1103,10 @@ public com.commercetools.history.models.change.SetVariantAvailabilityChangeBuild return com.commercetools.history.models.change.SetVariantAvailabilityChangeBuilder.of(); } + public com.commercetools.history.models.change.SetVariantSelectionChangeBuilder setVariantSelectionChangeBuilder() { + return com.commercetools.history.models.change.SetVariantSelectionChangeBuilder.of(); + } + public com.commercetools.history.models.change.SetVatIdChangeBuilder setVatIdChangeBuilder() { return com.commercetools.history.models.change.SetVatIdChangeBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChange.java new file mode 100644 index 00000000000..304703479a2 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChange.java @@ -0,0 +1,175 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.KeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Change Parent Unit update action.
+ * + *
+ * ChangeParentUnitChange changeParentUnitChange = ChangeParentUnitChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public KeyReference getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public KeyReference getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final KeyReference previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final KeyReference nextValue); + + /** + * factory method + * @return instance of ChangeParentUnitChange + */ + public static ChangeParentUnitChange of() { + return new ChangeParentUnitChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeParentUnitChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeParentUnitChange of(final ChangeParentUnitChange template) { + ChangeParentUnitChangeImpl instance = new ChangeParentUnitChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of ChangeParentUnitChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeParentUnitChange deepCopy(@Nullable final ChangeParentUnitChange template) { + if (template == null) { + return null; + } + ChangeParentUnitChangeImpl instance = new ChangeParentUnitChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.KeyReference.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.KeyReference.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for ChangeParentUnitChange + * @return builder + */ + public static ChangeParentUnitChangeBuilder builder() { + return ChangeParentUnitChangeBuilder.of(); + } + + /** + * create builder for ChangeParentUnitChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeParentUnitChangeBuilder builder(final ChangeParentUnitChange template) { + return ChangeParentUnitChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ChangeParentUnitChange changeParentUnitChange = ChangeParentUnitChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public ChangeParentUnitChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public ChangeParentUnitChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public ChangeParentUnitChangeBuilder previousValue( + final com.commercetools.history.models.common.KeyReference previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public ChangeParentUnitChangeBuilder nextValue( + FunctionValue after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public ChangeParentUnitChangeBuilder withNextValue( + FunctionValue after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public ChangeParentUnitChangeBuilder nextValue( + final com.commercetools.history.models.common.KeyReference nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.KeyReference getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.KeyReference getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeParentUnitChange with checking for non-null required values + * @return ChangeParentUnitChange + */ + public ChangeParentUnitChange build() { + Objects.requireNonNull(change, ChangeParentUnitChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ChangeParentUnitChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeParentUnitChange.class + ": nextValue is missing"); + return new ChangeParentUnitChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ChangeParentUnitChange without checking for non-null required values + * @return ChangeParentUnitChange + */ + public ChangeParentUnitChange buildUnchecked() { + return new ChangeParentUnitChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeParentUnitChangeBuilder + * @return builder + */ + public static ChangeParentUnitChangeBuilder of() { + return new ChangeParentUnitChangeBuilder(); + } + + /** + * create builder for ChangeParentUnitChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeParentUnitChangeBuilder of(final ChangeParentUnitChange template) { + ChangeParentUnitChangeBuilder builder = new ChangeParentUnitChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChangeImpl.java new file mode 100644 index 00000000000..128268398dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeParentUnitChangeImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Change Parent Unit update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeParentUnitChangeImpl implements ChangeParentUnitChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.KeyReference previousValue; + + private com.commercetools.history.models.common.KeyReference nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeParentUnitChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.KeyReference previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.KeyReference nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_PARENT_UNIT_CHANGE; + } + + /** + * create empty instance + */ + public ChangeParentUnitChangeImpl() { + this.type = CHANGE_PARENT_UNIT_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.KeyReference getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.KeyReference getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.KeyReference previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.KeyReference nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeParentUnitChangeImpl that = (ChangeParentUnitChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChange.java new file mode 100644 index 00000000000..3da36a9177f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChange.java @@ -0,0 +1,193 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.Reference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Change Product Selection Active update action.
+ * + *
+ * ChangeProductSelectionActiveChange changeProductSelectionActiveChange = ChangeProductSelectionActiveChange.builder()
+ * .change("{change}")
+ * .productSelection(productSelectionBuilder -> productSelectionBuilder)
+ * .previousValue(true)
+ * .nextValue(true)
+ * .build()
+ *
+ * Reference to the Product Selection which was changed.
+ * @return productSelection + */ + @NotNull + @Valid + @JsonProperty("productSelection") + public Reference getProductSelection(); + + /** + *Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Boolean getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Boolean getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Reference to the Product Selection which was changed.
+ * @param productSelection value to be set + */ + + public void setProductSelection(final Reference productSelection); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Boolean previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final Boolean nextValue); + + /** + * factory method + * @return instance of ChangeProductSelectionActiveChange + */ + public static ChangeProductSelectionActiveChange of() { + return new ChangeProductSelectionActiveChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeProductSelectionActiveChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeProductSelectionActiveChange of(final ChangeProductSelectionActiveChange template) { + ChangeProductSelectionActiveChangeImpl instance = new ChangeProductSelectionActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setProductSelection(template.getProductSelection()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of ChangeProductSelectionActiveChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeProductSelectionActiveChange deepCopy( + @Nullable final ChangeProductSelectionActiveChange template) { + if (template == null) { + return null; + } + ChangeProductSelectionActiveChangeImpl instance = new ChangeProductSelectionActiveChangeImpl(); + instance.setChange(template.getChange()); + instance.setProductSelection( + com.commercetools.history.models.common.Reference.deepCopy(template.getProductSelection())); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ChangeProductSelectionActiveChange + * @return builder + */ + public static ChangeProductSelectionActiveChangeBuilder builder() { + return ChangeProductSelectionActiveChangeBuilder.of(); + } + + /** + * create builder for ChangeProductSelectionActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeProductSelectionActiveChangeBuilder builder(final ChangeProductSelectionActiveChange template) { + return ChangeProductSelectionActiveChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ChangeProductSelectionActiveChange changeProductSelectionActiveChange = ChangeProductSelectionActiveChange.builder()
+ * .change("{change}")
+ * .productSelection(productSelectionBuilder -> productSelectionBuilder)
+ * .previousValue(true)
+ * .nextValue(true)
+ * .build()
+ *
+ * Reference to the Product Selection which was changed.
+ * @param builder function to build the productSelection value + * @return Builder + */ + + public ChangeProductSelectionActiveChangeBuilder productSelection( + FunctionReference to the Product Selection which was changed.
+ * @param builder function to build the productSelection value + * @return Builder + */ + + public ChangeProductSelectionActiveChangeBuilder withProductSelection( + FunctionReference to the Product Selection which was changed.
+ * @param productSelection value to be set + * @return Builder + */ + + public ChangeProductSelectionActiveChangeBuilder productSelection( + final com.commercetools.history.models.common.Reference productSelection) { + this.productSelection = productSelection; + return this; + } + + /** + *Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public ChangeProductSelectionActiveChangeBuilder previousValue(final Boolean previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public ChangeProductSelectionActiveChangeBuilder nextValue(final Boolean nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Reference to the Product Selection which was changed.
+ * @return productSelection + */ + + public com.commercetools.history.models.common.Reference getProductSelection() { + return this.productSelection; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public Boolean getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeProductSelectionActiveChange with checking for non-null required values + * @return ChangeProductSelectionActiveChange + */ + public ChangeProductSelectionActiveChange build() { + Objects.requireNonNull(change, ChangeProductSelectionActiveChange.class + ": change is missing"); + Objects.requireNonNull(productSelection, + ChangeProductSelectionActiveChange.class + ": productSelection is missing"); + Objects.requireNonNull(previousValue, ChangeProductSelectionActiveChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeProductSelectionActiveChange.class + ": nextValue is missing"); + return new ChangeProductSelectionActiveChangeImpl(change, productSelection, previousValue, nextValue); + } + + /** + * builds ChangeProductSelectionActiveChange without checking for non-null required values + * @return ChangeProductSelectionActiveChange + */ + public ChangeProductSelectionActiveChange buildUnchecked() { + return new ChangeProductSelectionActiveChangeImpl(change, productSelection, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeProductSelectionActiveChangeBuilder + * @return builder + */ + public static ChangeProductSelectionActiveChangeBuilder of() { + return new ChangeProductSelectionActiveChangeBuilder(); + } + + /** + * create builder for ChangeProductSelectionActiveChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeProductSelectionActiveChangeBuilder of(final ChangeProductSelectionActiveChange template) { + ChangeProductSelectionActiveChangeBuilder builder = new ChangeProductSelectionActiveChangeBuilder(); + builder.change = template.getChange(); + builder.productSelection = template.getProductSelection(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChangeImpl.java new file mode 100644 index 00000000000..e13a87dc7dc --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeProductSelectionActiveChangeImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Change Product Selection Active update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeProductSelectionActiveChangeImpl implements ChangeProductSelectionActiveChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Reference productSelection; + + private Boolean previousValue; + + private Boolean nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeProductSelectionActiveChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("productSelection") final com.commercetools.history.models.common.Reference productSelection, + @JsonProperty("previousValue") final Boolean previousValue, + @JsonProperty("nextValue") final Boolean nextValue) { + this.change = change; + this.productSelection = productSelection; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_PRODUCT_SELECTION_ACTIVE_CHANGE; + } + + /** + * create empty instance + */ + public ChangeProductSelectionActiveChangeImpl() { + this.type = CHANGE_PRODUCT_SELECTION_ACTIVE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Reference to the Product Selection which was changed.
+ */ + + public com.commercetools.history.models.common.Reference getProductSelection() { + return this.productSelection; + } + + /** + *Value before the change.
+ */ + + public Boolean getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public Boolean getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setProductSelection(final com.commercetools.history.models.common.Reference productSelection) { + this.productSelection = productSelection; + } + + public void setPreviousValue(final Boolean previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final Boolean nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeProductSelectionActiveChangeImpl that = (ChangeProductSelectionActiveChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(productSelection, that.productSelection) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(productSelection) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChange.java new file mode 100644 index 00000000000..a3eb306440a --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChange.java @@ -0,0 +1,171 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.BusinessUnitStatus; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Change Status update action.
+ * + *
+ * ChangeStatusChange changeStatusChange = ChangeStatusChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitStatus.ACTIVE)
+ * .nextValue(BusinessUnitStatus.ACTIVE)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public BusinessUnitStatus getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public BusinessUnitStatus getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final BusinessUnitStatus previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final BusinessUnitStatus nextValue); + + /** + * factory method + * @return instance of ChangeStatusChange + */ + public static ChangeStatusChange of() { + return new ChangeStatusChangeImpl(); + } + + /** + * factory method to create a shallow copy ChangeStatusChange + * @param template instance to be copied + * @return copy instance + */ + public static ChangeStatusChange of(final ChangeStatusChange template) { + ChangeStatusChangeImpl instance = new ChangeStatusChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of ChangeStatusChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ChangeStatusChange deepCopy(@Nullable final ChangeStatusChange template) { + if (template == null) { + return null; + } + ChangeStatusChangeImpl instance = new ChangeStatusChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for ChangeStatusChange + * @return builder + */ + public static ChangeStatusChangeBuilder builder() { + return ChangeStatusChangeBuilder.of(); + } + + /** + * create builder for ChangeStatusChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeStatusChangeBuilder builder(final ChangeStatusChange template) { + return ChangeStatusChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ChangeStatusChange changeStatusChange = ChangeStatusChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitStatus.ACTIVE)
+ * .nextValue(BusinessUnitStatus.ACTIVE)
+ * .build()
+ *
+ * Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public ChangeStatusChangeBuilder previousValue( + final com.commercetools.history.models.common.BusinessUnitStatus previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public ChangeStatusChangeBuilder nextValue( + final com.commercetools.history.models.common.BusinessUnitStatus nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.BusinessUnitStatus getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.BusinessUnitStatus getNextValue() { + return this.nextValue; + } + + /** + * builds ChangeStatusChange with checking for non-null required values + * @return ChangeStatusChange + */ + public ChangeStatusChange build() { + Objects.requireNonNull(change, ChangeStatusChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, ChangeStatusChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, ChangeStatusChange.class + ": nextValue is missing"); + return new ChangeStatusChangeImpl(change, previousValue, nextValue); + } + + /** + * builds ChangeStatusChange without checking for non-null required values + * @return ChangeStatusChange + */ + public ChangeStatusChange buildUnchecked() { + return new ChangeStatusChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of ChangeStatusChangeBuilder + * @return builder + */ + public static ChangeStatusChangeBuilder of() { + return new ChangeStatusChangeBuilder(); + } + + /** + * create builder for ChangeStatusChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ChangeStatusChangeBuilder of(final ChangeStatusChange template) { + ChangeStatusChangeBuilder builder = new ChangeStatusChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChangeImpl.java new file mode 100644 index 00000000000..c3ef1be9692 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStatusChangeImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Change Status update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ChangeStatusChangeImpl implements ChangeStatusChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.BusinessUnitStatus previousValue; + + private com.commercetools.history.models.common.BusinessUnitStatus nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + ChangeStatusChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.BusinessUnitStatus previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.BusinessUnitStatus nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = CHANGE_STATUS_CHANGE; + } + + /** + * create empty instance + */ + public ChangeStatusChangeImpl() { + this.type = CHANGE_STATUS_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitStatus getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitStatus getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.BusinessUnitStatus previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.BusinessUnitStatus nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ChangeStatusChangeImpl that = (ChangeStatusChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChange.java new file mode 100644 index 00000000000..cbaed92d238 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChange.java @@ -0,0 +1,156 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.Associate; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Remove Associate update action.
+ * + *
+ * RemoveAssociateChange removeAssociateChange = RemoveAssociateChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public Associate getPreviousValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Associate previousValue); + + /** + * factory method + * @return instance of RemoveAssociateChange + */ + public static RemoveAssociateChange of() { + return new RemoveAssociateChangeImpl(); + } + + /** + * factory method to create a shallow copy RemoveAssociateChange + * @param template instance to be copied + * @return copy instance + */ + public static RemoveAssociateChange of(final RemoveAssociateChange template) { + RemoveAssociateChangeImpl instance = new RemoveAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + return instance; + } + + /** + * factory method to create a deep copy of RemoveAssociateChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static RemoveAssociateChange deepCopy(@Nullable final RemoveAssociateChange template) { + if (template == null) { + return null; + } + RemoveAssociateChangeImpl instance = new RemoveAssociateChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.Associate.deepCopy(template.getPreviousValue())); + return instance; + } + + /** + * builder factory method for RemoveAssociateChange + * @return builder + */ + public static RemoveAssociateChangeBuilder builder() { + return RemoveAssociateChangeBuilder.of(); + } + + /** + * create builder for RemoveAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveAssociateChangeBuilder builder(final RemoveAssociateChange template) { + return RemoveAssociateChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * RemoveAssociateChange removeAssociateChange = RemoveAssociateChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public RemoveAssociateChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public RemoveAssociateChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public RemoveAssociateChangeBuilder previousValue( + final com.commercetools.history.models.common.Associate previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.Associate getPreviousValue() { + return this.previousValue; + } + + /** + * builds RemoveAssociateChange with checking for non-null required values + * @return RemoveAssociateChange + */ + public RemoveAssociateChange build() { + Objects.requireNonNull(change, RemoveAssociateChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, RemoveAssociateChange.class + ": previousValue is missing"); + return new RemoveAssociateChangeImpl(change, previousValue); + } + + /** + * builds RemoveAssociateChange without checking for non-null required values + * @return RemoveAssociateChange + */ + public RemoveAssociateChange buildUnchecked() { + return new RemoveAssociateChangeImpl(change, previousValue); + } + + /** + * factory method for an instance of RemoveAssociateChangeBuilder + * @return builder + */ + public static RemoveAssociateChangeBuilder of() { + return new RemoveAssociateChangeBuilder(); + } + + /** + * create builder for RemoveAssociateChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveAssociateChangeBuilder of(final RemoveAssociateChange template) { + RemoveAssociateChangeBuilder builder = new RemoveAssociateChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChangeImpl.java new file mode 100644 index 00000000000..38d5c717d90 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveAssociateChangeImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Remove Associate update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RemoveAssociateChangeImpl implements RemoveAssociateChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Associate previousValue; + + /** + * create instance with all properties + */ + @JsonCreator + RemoveAssociateChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.Associate previousValue) { + this.change = change; + this.previousValue = previousValue; + this.type = REMOVE_ASSOCIATE_CHANGE; + } + + /** + * create empty instance + */ + public RemoveAssociateChangeImpl() { + this.type = REMOVE_ASSOCIATE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.Associate getPreviousValue() { + return this.previousValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.Associate previousValue) { + this.previousValue = previousValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + RemoveAssociateChangeImpl that = (RemoveAssociateChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChange.java new file mode 100644 index 00000000000..47c0b46d9a3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChange.java @@ -0,0 +1,156 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.ProductSelectionSetting; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Remove Product Selection update action.
+ * + *
+ * RemoveProductSelectionChange removeProductSelectionChange = RemoveProductSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public ProductSelectionSetting getPreviousValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final ProductSelectionSetting previousValue); + + /** + * factory method + * @return instance of RemoveProductSelectionChange + */ + public static RemoveProductSelectionChange of() { + return new RemoveProductSelectionChangeImpl(); + } + + /** + * factory method to create a shallow copy RemoveProductSelectionChange + * @param template instance to be copied + * @return copy instance + */ + public static RemoveProductSelectionChange of(final RemoveProductSelectionChange template) { + RemoveProductSelectionChangeImpl instance = new RemoveProductSelectionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + return instance; + } + + /** + * factory method to create a deep copy of RemoveProductSelectionChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static RemoveProductSelectionChange deepCopy(@Nullable final RemoveProductSelectionChange template) { + if (template == null) { + return null; + } + RemoveProductSelectionChangeImpl instance = new RemoveProductSelectionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.ProductSelectionSetting.deepCopy(template.getPreviousValue())); + return instance; + } + + /** + * builder factory method for RemoveProductSelectionChange + * @return builder + */ + public static RemoveProductSelectionChangeBuilder builder() { + return RemoveProductSelectionChangeBuilder.of(); + } + + /** + * create builder for RemoveProductSelectionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveProductSelectionChangeBuilder builder(final RemoveProductSelectionChange template) { + return RemoveProductSelectionChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * RemoveProductSelectionChange removeProductSelectionChange = RemoveProductSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public RemoveProductSelectionChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public RemoveProductSelectionChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public RemoveProductSelectionChangeBuilder previousValue( + final com.commercetools.history.models.common.ProductSelectionSetting previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.ProductSelectionSetting getPreviousValue() { + return this.previousValue; + } + + /** + * builds RemoveProductSelectionChange with checking for non-null required values + * @return RemoveProductSelectionChange + */ + public RemoveProductSelectionChange build() { + Objects.requireNonNull(change, RemoveProductSelectionChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, RemoveProductSelectionChange.class + ": previousValue is missing"); + return new RemoveProductSelectionChangeImpl(change, previousValue); + } + + /** + * builds RemoveProductSelectionChange without checking for non-null required values + * @return RemoveProductSelectionChange + */ + public RemoveProductSelectionChange buildUnchecked() { + return new RemoveProductSelectionChangeImpl(change, previousValue); + } + + /** + * factory method for an instance of RemoveProductSelectionChangeBuilder + * @return builder + */ + public static RemoveProductSelectionChangeBuilder of() { + return new RemoveProductSelectionChangeBuilder(); + } + + /** + * create builder for RemoveProductSelectionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RemoveProductSelectionChangeBuilder of(final RemoveProductSelectionChange template) { + RemoveProductSelectionChangeBuilder builder = new RemoveProductSelectionChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChangeImpl.java new file mode 100644 index 00000000000..7b601f31b80 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveProductSelectionChangeImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Remove Product Selection update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RemoveProductSelectionChangeImpl implements RemoveProductSelectionChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.ProductSelectionSetting previousValue; + + /** + * create instance with all properties + */ + @JsonCreator + RemoveProductSelectionChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.ProductSelectionSetting previousValue) { + this.change = change; + this.previousValue = previousValue; + this.type = REMOVE_PRODUCT_SELECTION_CHANGE; + } + + /** + * create empty instance + */ + public RemoveProductSelectionChangeImpl() { + this.type = REMOVE_PRODUCT_SELECTION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.ProductSelectionSetting getPreviousValue() { + return this.previousValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.ProductSelectionSetting previousValue) { + this.previousValue = previousValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + RemoveProductSelectionChangeImpl that = (RemoveProductSelectionChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChange.java new file mode 100644 index 00000000000..074b568e106 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChange.java @@ -0,0 +1,189 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.QuoteState; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Request Quote Renegotiation update action.
+ * + *
+ * RequestQuoteRenegotiationChange requestQuoteRenegotiationChange = RequestQuoteRenegotiationChange.builder()
+ * .change("{change}")
+ * .previousValue(QuoteState.PENDING)
+ * .nextValue(QuoteState.PENDING)
+ * .buyerComment("{buyerComment}")
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public QuoteState getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public QuoteState getNextValue(); + + /** + *Message from the Buyer regarding the Quote renegotiation request.
+ * @return buyerComment + */ + @NotNull + @JsonProperty("buyerComment") + public String getBuyerComment(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final QuoteState previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final QuoteState nextValue); + + /** + *Message from the Buyer regarding the Quote renegotiation request.
+ * @param buyerComment value to be set + */ + + public void setBuyerComment(final String buyerComment); + + /** + * factory method + * @return instance of RequestQuoteRenegotiationChange + */ + public static RequestQuoteRenegotiationChange of() { + return new RequestQuoteRenegotiationChangeImpl(); + } + + /** + * factory method to create a shallow copy RequestQuoteRenegotiationChange + * @param template instance to be copied + * @return copy instance + */ + public static RequestQuoteRenegotiationChange of(final RequestQuoteRenegotiationChange template) { + RequestQuoteRenegotiationChangeImpl instance = new RequestQuoteRenegotiationChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + instance.setBuyerComment(template.getBuyerComment()); + return instance; + } + + /** + * factory method to create a deep copy of RequestQuoteRenegotiationChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static RequestQuoteRenegotiationChange deepCopy(@Nullable final RequestQuoteRenegotiationChange template) { + if (template == null) { + return null; + } + RequestQuoteRenegotiationChangeImpl instance = new RequestQuoteRenegotiationChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + instance.setBuyerComment(template.getBuyerComment()); + return instance; + } + + /** + * builder factory method for RequestQuoteRenegotiationChange + * @return builder + */ + public static RequestQuoteRenegotiationChangeBuilder builder() { + return RequestQuoteRenegotiationChangeBuilder.of(); + } + + /** + * create builder for RequestQuoteRenegotiationChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RequestQuoteRenegotiationChangeBuilder builder(final RequestQuoteRenegotiationChange template) { + return RequestQuoteRenegotiationChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * RequestQuoteRenegotiationChange requestQuoteRenegotiationChange = RequestQuoteRenegotiationChange.builder()
+ * .change("{change}")
+ * .previousValue(QuoteState.PENDING)
+ * .nextValue(QuoteState.PENDING)
+ * .buyerComment("{buyerComment}")
+ * .build()
+ *
+ * Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public RequestQuoteRenegotiationChangeBuilder previousValue( + final com.commercetools.history.models.common.QuoteState previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public RequestQuoteRenegotiationChangeBuilder nextValue( + final com.commercetools.history.models.common.QuoteState nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *Message from the Buyer regarding the Quote renegotiation request.
+ * @param buyerComment value to be set + * @return Builder + */ + + public RequestQuoteRenegotiationChangeBuilder buyerComment(final String buyerComment) { + this.buyerComment = buyerComment; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.QuoteState getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.QuoteState getNextValue() { + return this.nextValue; + } + + /** + *Message from the Buyer regarding the Quote renegotiation request.
+ * @return buyerComment + */ + + public String getBuyerComment() { + return this.buyerComment; + } + + /** + * builds RequestQuoteRenegotiationChange with checking for non-null required values + * @return RequestQuoteRenegotiationChange + */ + public RequestQuoteRenegotiationChange build() { + Objects.requireNonNull(change, RequestQuoteRenegotiationChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, RequestQuoteRenegotiationChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, RequestQuoteRenegotiationChange.class + ": nextValue is missing"); + Objects.requireNonNull(buyerComment, RequestQuoteRenegotiationChange.class + ": buyerComment is missing"); + return new RequestQuoteRenegotiationChangeImpl(change, previousValue, nextValue, buyerComment); + } + + /** + * builds RequestQuoteRenegotiationChange without checking for non-null required values + * @return RequestQuoteRenegotiationChange + */ + public RequestQuoteRenegotiationChange buildUnchecked() { + return new RequestQuoteRenegotiationChangeImpl(change, previousValue, nextValue, buyerComment); + } + + /** + * factory method for an instance of RequestQuoteRenegotiationChangeBuilder + * @return builder + */ + public static RequestQuoteRenegotiationChangeBuilder of() { + return new RequestQuoteRenegotiationChangeBuilder(); + } + + /** + * create builder for RequestQuoteRenegotiationChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static RequestQuoteRenegotiationChangeBuilder of(final RequestQuoteRenegotiationChange template) { + RequestQuoteRenegotiationChangeBuilder builder = new RequestQuoteRenegotiationChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + builder.buyerComment = template.getBuyerComment(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChangeImpl.java new file mode 100644 index 00000000000..48878138a96 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RequestQuoteRenegotiationChangeImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Request Quote Renegotiation update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class RequestQuoteRenegotiationChangeImpl implements RequestQuoteRenegotiationChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.QuoteState previousValue; + + private com.commercetools.history.models.common.QuoteState nextValue; + + private String buyerComment; + + /** + * create instance with all properties + */ + @JsonCreator + RequestQuoteRenegotiationChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.QuoteState previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.QuoteState nextValue, + @JsonProperty("buyerComment") final String buyerComment) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.buyerComment = buyerComment; + this.type = REQUEST_QUOTE_RENEGOTIATION_CHANGE; + } + + /** + * create empty instance + */ + public RequestQuoteRenegotiationChangeImpl() { + this.type = REQUEST_QUOTE_RENEGOTIATION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.QuoteState getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.QuoteState getNextValue() { + return this.nextValue; + } + + /** + *Message from the Buyer regarding the Quote renegotiation request.
+ */ + + public String getBuyerComment() { + return this.buyerComment; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.QuoteState previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.QuoteState nextValue) { + this.nextValue = nextValue; + } + + public void setBuyerComment(final String buyerComment) { + this.buyerComment = buyerComment; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + RequestQuoteRenegotiationChangeImpl that = (RequestQuoteRenegotiationChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(buyerComment, that.buyerComment) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .append(buyerComment) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChange.java new file mode 100644 index 00000000000..e8fa7ae00e8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChange.java @@ -0,0 +1,225 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.Address; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Set Address Custom Field update action.
+ * + *
+ * SetAddressCustomFieldChange setAddressCustomFieldChange = SetAddressCustomFieldChange.builder()
+ * .change("{change}")
+ * .address(addressBuilder -> addressBuilder)
+ * .name("{name}")
+ * .customTypeId("{customTypeId}")
+ * .build()
+ *
+ * Address which was extended.
+ * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *Name of the Custom Field.
+ * @return name + */ + @NotNull + @JsonProperty("name") + public String getName(); + + /** + *id
of the referenced Type.
Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public Object getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public Object getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Address which was extended.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + *Name of the Custom Field.
+ * @param name value to be set + */ + + public void setName(final String name); + + /** + *id
of the referenced Type.
Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final Object previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final Object nextValue); + + /** + * factory method + * @return instance of SetAddressCustomFieldChange + */ + public static SetAddressCustomFieldChange of() { + return new SetAddressCustomFieldChangeImpl(); + } + + /** + * factory method to create a shallow copy SetAddressCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + public static SetAddressCustomFieldChange of(final SetAddressCustomFieldChange template) { + SetAddressCustomFieldChangeImpl instance = new SetAddressCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddress(template.getAddress()); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of SetAddressCustomFieldChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetAddressCustomFieldChange deepCopy(@Nullable final SetAddressCustomFieldChange template) { + if (template == null) { + return null; + } + SetAddressCustomFieldChangeImpl instance = new SetAddressCustomFieldChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddress(com.commercetools.history.models.common.Address.deepCopy(template.getAddress())); + instance.setName(template.getName()); + instance.setCustomTypeId(template.getCustomTypeId()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for SetAddressCustomFieldChange + * @return builder + */ + public static SetAddressCustomFieldChangeBuilder builder() { + return SetAddressCustomFieldChangeBuilder.of(); + } + + /** + * create builder for SetAddressCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetAddressCustomFieldChangeBuilder builder(final SetAddressCustomFieldChange template) { + return SetAddressCustomFieldChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * SetAddressCustomFieldChange setAddressCustomFieldChange = SetAddressCustomFieldChange.builder()
+ * .change("{change}")
+ * .address(addressBuilder -> addressBuilder)
+ * .name("{name}")
+ * .customTypeId("{customTypeId}")
+ * .build()
+ *
+ * Address which was extended.
+ * @param builder function to build the address value + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder address( + FunctionAddress which was extended.
+ * @param builder function to build the address value + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder withAddress( + FunctionAddress which was extended.
+ * @param address value to be set + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder address(final com.commercetools.history.models.common.Address address) { + this.address = address; + return this; + } + + /** + *Name of the Custom Field.
+ * @param name value to be set + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder name(final String name) { + this.name = name; + return this; + } + + /** + *id
of the referenced Type.
Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder previousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public SetAddressCustomFieldChangeBuilder nextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Address which was extended.
+ * @return address + */ + + public com.commercetools.history.models.common.Address getAddress() { + return this.address; + } + + /** + *Name of the Custom Field.
+ * @return name + */ + + public String getName() { + return this.name; + } + + /** + *id
of the referenced Type.
Value before the change.
+ * @return previousValue + */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + /** + * builds SetAddressCustomFieldChange with checking for non-null required values + * @return SetAddressCustomFieldChange + */ + public SetAddressCustomFieldChange build() { + Objects.requireNonNull(change, SetAddressCustomFieldChange.class + ": change is missing"); + Objects.requireNonNull(address, SetAddressCustomFieldChange.class + ": address is missing"); + Objects.requireNonNull(name, SetAddressCustomFieldChange.class + ": name is missing"); + Objects.requireNonNull(customTypeId, SetAddressCustomFieldChange.class + ": customTypeId is missing"); + Objects.requireNonNull(previousValue, SetAddressCustomFieldChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetAddressCustomFieldChange.class + ": nextValue is missing"); + return new SetAddressCustomFieldChangeImpl(change, address, name, customTypeId, previousValue, nextValue); + } + + /** + * builds SetAddressCustomFieldChange without checking for non-null required values + * @return SetAddressCustomFieldChange + */ + public SetAddressCustomFieldChange buildUnchecked() { + return new SetAddressCustomFieldChangeImpl(change, address, name, customTypeId, previousValue, nextValue); + } + + /** + * factory method for an instance of SetAddressCustomFieldChangeBuilder + * @return builder + */ + public static SetAddressCustomFieldChangeBuilder of() { + return new SetAddressCustomFieldChangeBuilder(); + } + + /** + * create builder for SetAddressCustomFieldChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetAddressCustomFieldChangeBuilder of(final SetAddressCustomFieldChange template) { + SetAddressCustomFieldChangeBuilder builder = new SetAddressCustomFieldChangeBuilder(); + builder.change = template.getChange(); + builder.address = template.getAddress(); + builder.name = template.getName(); + builder.customTypeId = template.getCustomTypeId(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChangeImpl.java new file mode 100644 index 00000000000..d67f08278bd --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomFieldChangeImpl.java @@ -0,0 +1,174 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Set Address Custom Field update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetAddressCustomFieldChangeImpl implements SetAddressCustomFieldChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Address address; + + private String name; + + private String customTypeId; + + private java.lang.Object previousValue; + + private java.lang.Object nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetAddressCustomFieldChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("address") final com.commercetools.history.models.common.Address address, + @JsonProperty("name") final String name, @JsonProperty("customTypeId") final String customTypeId, + @JsonProperty("previousValue") final java.lang.Object previousValue, + @JsonProperty("nextValue") final java.lang.Object nextValue) { + this.change = change; + this.address = address; + this.name = name; + this.customTypeId = customTypeId; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_ADDRESS_CUSTOM_FIELD_CHANGE; + } + + /** + * create empty instance + */ + public SetAddressCustomFieldChangeImpl() { + this.type = SET_ADDRESS_CUSTOM_FIELD_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Address which was extended.
+ */ + + public com.commercetools.history.models.common.Address getAddress() { + return this.address; + } + + /** + *Name of the Custom Field.
+ */ + + public String getName() { + return this.name; + } + + /** + *id
of the referenced Type.
Value before the change.
+ */ + + public java.lang.Object getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public java.lang.Object getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setAddress(final com.commercetools.history.models.common.Address address) { + this.address = address; + } + + public void setName(final String name) { + this.name = name; + } + + public void setCustomTypeId(final String customTypeId) { + this.customTypeId = customTypeId; + } + + public void setPreviousValue(final java.lang.Object previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final java.lang.Object nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetAddressCustomFieldChangeImpl that = (SetAddressCustomFieldChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(address, that.address) + .append(name, that.name) + .append(customTypeId, that.customTypeId) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(address) + .append(name) + .append(customTypeId) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChange.java new file mode 100644 index 00000000000..f33e8354a7f --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChange.java @@ -0,0 +1,195 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.Address; +import com.commercetools.history.models.common.CustomFields; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Set Address Custom Type update action.
+ * + *
+ * SetAddressCustomTypeChange setAddressCustomTypeChange = SetAddressCustomTypeChange.builder()
+ * .change("{change}")
+ * .address(addressBuilder -> addressBuilder)
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Address which was extended.
+ * @return address + */ + @NotNull + @Valid + @JsonProperty("address") + public Address getAddress(); + + /** + *Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public CustomFields getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public CustomFields getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Address which was extended.
+ * @param address value to be set + */ + + public void setAddress(final Address address); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final CustomFields previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final CustomFields nextValue); + + /** + * factory method + * @return instance of SetAddressCustomTypeChange + */ + public static SetAddressCustomTypeChange of() { + return new SetAddressCustomTypeChangeImpl(); + } + + /** + * factory method to create a shallow copy SetAddressCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + public static SetAddressCustomTypeChange of(final SetAddressCustomTypeChange template) { + SetAddressCustomTypeChangeImpl instance = new SetAddressCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddress(template.getAddress()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of SetAddressCustomTypeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetAddressCustomTypeChange deepCopy(@Nullable final SetAddressCustomTypeChange template) { + if (template == null) { + return null; + } + SetAddressCustomTypeChangeImpl instance = new SetAddressCustomTypeChangeImpl(); + instance.setChange(template.getChange()); + instance.setAddress(com.commercetools.history.models.common.Address.deepCopy(template.getAddress())); + instance.setPreviousValue( + com.commercetools.history.models.common.CustomFields.deepCopy(template.getPreviousValue())); + instance.setNextValue(com.commercetools.history.models.common.CustomFields.deepCopy(template.getNextValue())); + return instance; + } + + /** + * builder factory method for SetAddressCustomTypeChange + * @return builder + */ + public static SetAddressCustomTypeChangeBuilder builder() { + return SetAddressCustomTypeChangeBuilder.of(); + } + + /** + * create builder for SetAddressCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetAddressCustomTypeChangeBuilder builder(final SetAddressCustomTypeChange template) { + return SetAddressCustomTypeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * SetAddressCustomTypeChange setAddressCustomTypeChange = SetAddressCustomTypeChange.builder()
+ * .change("{change}")
+ * .address(addressBuilder -> addressBuilder)
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .build()
+ *
+ * Address which was extended.
+ * @param builder function to build the address value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder address( + FunctionAddress which was extended.
+ * @param builder function to build the address value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder withAddress( + FunctionAddress which was extended.
+ * @param address value to be set + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder address(final com.commercetools.history.models.common.Address address) { + this.address = address; + return this; + } + + /** + *Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder previousValue( + final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder nextValue( + FunctionValue after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder withNextValue( + FunctionValue after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public SetAddressCustomTypeChangeBuilder nextValue( + final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Address which was extended.
+ * @return address + */ + + public com.commercetools.history.models.common.Address getAddress() { + return this.address; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + /** + * builds SetAddressCustomTypeChange with checking for non-null required values + * @return SetAddressCustomTypeChange + */ + public SetAddressCustomTypeChange build() { + Objects.requireNonNull(change, SetAddressCustomTypeChange.class + ": change is missing"); + Objects.requireNonNull(address, SetAddressCustomTypeChange.class + ": address is missing"); + Objects.requireNonNull(previousValue, SetAddressCustomTypeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetAddressCustomTypeChange.class + ": nextValue is missing"); + return new SetAddressCustomTypeChangeImpl(change, address, previousValue, nextValue); + } + + /** + * builds SetAddressCustomTypeChange without checking for non-null required values + * @return SetAddressCustomTypeChange + */ + public SetAddressCustomTypeChange buildUnchecked() { + return new SetAddressCustomTypeChangeImpl(change, address, previousValue, nextValue); + } + + /** + * factory method for an instance of SetAddressCustomTypeChangeBuilder + * @return builder + */ + public static SetAddressCustomTypeChangeBuilder of() { + return new SetAddressCustomTypeChangeBuilder(); + } + + /** + * create builder for SetAddressCustomTypeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetAddressCustomTypeChangeBuilder of(final SetAddressCustomTypeChange template) { + SetAddressCustomTypeChangeBuilder builder = new SetAddressCustomTypeChangeBuilder(); + builder.change = template.getChange(); + builder.address = template.getAddress(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChangeImpl.java new file mode 100644 index 00000000000..cfae861c5c7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetAddressCustomTypeChangeImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Set Address Custom Type update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetAddressCustomTypeChangeImpl implements SetAddressCustomTypeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.Address address; + + private com.commercetools.history.models.common.CustomFields previousValue; + + private com.commercetools.history.models.common.CustomFields nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetAddressCustomTypeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("address") final com.commercetools.history.models.common.Address address, + @JsonProperty("previousValue") final com.commercetools.history.models.common.CustomFields previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.CustomFields nextValue) { + this.change = change; + this.address = address; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_ADDRESS_CUSTOM_TYPE_CHANGE; + } + + /** + * create empty instance + */ + public SetAddressCustomTypeChangeImpl() { + this.type = SET_ADDRESS_CUSTOM_TYPE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Address which was extended.
+ */ + + public com.commercetools.history.models.common.Address getAddress() { + return this.address; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.CustomFields getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.CustomFields getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setAddress(final com.commercetools.history.models.common.Address address) { + this.address = address; + } + + public void setPreviousValue(final com.commercetools.history.models.common.CustomFields previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.CustomFields nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetAddressCustomTypeChangeImpl that = (SetAddressCustomTypeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(address, that.address) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(address) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChange.java new file mode 100644 index 00000000000..d12ea689307 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChange.java @@ -0,0 +1,170 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Set Contact Email update action.
+ * + *
+ * SetContactEmailChange setContactEmailChange = SetContactEmailChange.builder()
+ * .change("{change}")
+ * .previousValue("{previousValue}")
+ * .nextValue("{nextValue}")
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public String getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public String getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final String previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final String nextValue); + + /** + * factory method + * @return instance of SetContactEmailChange + */ + public static SetContactEmailChange of() { + return new SetContactEmailChangeImpl(); + } + + /** + * factory method to create a shallow copy SetContactEmailChange + * @param template instance to be copied + * @return copy instance + */ + public static SetContactEmailChange of(final SetContactEmailChange template) { + SetContactEmailChangeImpl instance = new SetContactEmailChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of SetContactEmailChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetContactEmailChange deepCopy(@Nullable final SetContactEmailChange template) { + if (template == null) { + return null; + } + SetContactEmailChangeImpl instance = new SetContactEmailChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for SetContactEmailChange + * @return builder + */ + public static SetContactEmailChangeBuilder builder() { + return SetContactEmailChangeBuilder.of(); + } + + /** + * create builder for SetContactEmailChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetContactEmailChangeBuilder builder(final SetContactEmailChange template) { + return SetContactEmailChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * SetContactEmailChange setContactEmailChange = SetContactEmailChange.builder()
+ * .change("{change}")
+ * .previousValue("{previousValue}")
+ * .nextValue("{nextValue}")
+ * .build()
+ *
+ * Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public SetContactEmailChangeBuilder previousValue(final String previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public SetContactEmailChangeBuilder nextValue(final String nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public String getNextValue() { + return this.nextValue; + } + + /** + * builds SetContactEmailChange with checking for non-null required values + * @return SetContactEmailChange + */ + public SetContactEmailChange build() { + Objects.requireNonNull(change, SetContactEmailChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, SetContactEmailChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetContactEmailChange.class + ": nextValue is missing"); + return new SetContactEmailChangeImpl(change, previousValue, nextValue); + } + + /** + * builds SetContactEmailChange without checking for non-null required values + * @return SetContactEmailChange + */ + public SetContactEmailChange buildUnchecked() { + return new SetContactEmailChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of SetContactEmailChangeBuilder + * @return builder + */ + public static SetContactEmailChangeBuilder of() { + return new SetContactEmailChangeBuilder(); + } + + /** + * create builder for SetContactEmailChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetContactEmailChangeBuilder of(final SetContactEmailChange template) { + SetContactEmailChangeBuilder builder = new SetContactEmailChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChangeImpl.java new file mode 100644 index 00000000000..32ef59acf6b --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetContactEmailChangeImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Set Contact Email update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetContactEmailChangeImpl implements SetContactEmailChange, ModelBase { + + private String type; + + private String change; + + private String previousValue; + + private String nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetContactEmailChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final String previousValue, + @JsonProperty("nextValue") final String nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_CONTACT_EMAIL_CHANGE; + } + + /** + * create empty instance + */ + public SetContactEmailChangeImpl() { + this.type = SET_CONTACT_EMAIL_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public String getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public String getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final String previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final String nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetContactEmailChangeImpl that = (SetContactEmailChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChange.java new file mode 100644 index 00000000000..09f39c4f21c --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChange.java @@ -0,0 +1,171 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.BusinessUnitStoreMode; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Set Store Mode update action.
+ * + *
+ * SetStoreModeChange setStoreModeChange = SetStoreModeChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitStoreMode.EXPLICIT)
+ * .nextValue(BusinessUnitStoreMode.EXPLICIT)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @JsonProperty("previousValue") + public BusinessUnitStoreMode getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @JsonProperty("nextValue") + public BusinessUnitStoreMode getNextValue(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final BusinessUnitStoreMode previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final BusinessUnitStoreMode nextValue); + + /** + * factory method + * @return instance of SetStoreModeChange + */ + public static SetStoreModeChange of() { + return new SetStoreModeChangeImpl(); + } + + /** + * factory method to create a shallow copy SetStoreModeChange + * @param template instance to be copied + * @return copy instance + */ + public static SetStoreModeChange of(final SetStoreModeChange template) { + SetStoreModeChangeImpl instance = new SetStoreModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * factory method to create a deep copy of SetStoreModeChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetStoreModeChange deepCopy(@Nullable final SetStoreModeChange template) { + if (template == null) { + return null; + } + SetStoreModeChangeImpl instance = new SetStoreModeChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + return instance; + } + + /** + * builder factory method for SetStoreModeChange + * @return builder + */ + public static SetStoreModeChangeBuilder builder() { + return SetStoreModeChangeBuilder.of(); + } + + /** + * create builder for SetStoreModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetStoreModeChangeBuilder builder(final SetStoreModeChange template) { + return SetStoreModeChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * SetStoreModeChange setStoreModeChange = SetStoreModeChange.builder()
+ * .change("{change}")
+ * .previousValue(BusinessUnitStoreMode.EXPLICIT)
+ * .nextValue(BusinessUnitStoreMode.EXPLICIT)
+ * .build()
+ *
+ * Value before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public SetStoreModeChangeBuilder previousValue( + final com.commercetools.history.models.common.BusinessUnitStoreMode previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public SetStoreModeChangeBuilder nextValue( + final com.commercetools.history.models.common.BusinessUnitStoreMode nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.BusinessUnitStoreMode getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.BusinessUnitStoreMode getNextValue() { + return this.nextValue; + } + + /** + * builds SetStoreModeChange with checking for non-null required values + * @return SetStoreModeChange + */ + public SetStoreModeChange build() { + Objects.requireNonNull(change, SetStoreModeChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, SetStoreModeChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetStoreModeChange.class + ": nextValue is missing"); + return new SetStoreModeChangeImpl(change, previousValue, nextValue); + } + + /** + * builds SetStoreModeChange without checking for non-null required values + * @return SetStoreModeChange + */ + public SetStoreModeChange buildUnchecked() { + return new SetStoreModeChangeImpl(change, previousValue, nextValue); + } + + /** + * factory method for an instance of SetStoreModeChangeBuilder + * @return builder + */ + public static SetStoreModeChangeBuilder of() { + return new SetStoreModeChangeBuilder(); + } + + /** + * create builder for SetStoreModeChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetStoreModeChangeBuilder of(final SetStoreModeChange template) { + SetStoreModeChangeBuilder builder = new SetStoreModeChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChangeImpl.java new file mode 100644 index 00000000000..06b489c8ac4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStoreModeChangeImpl.java @@ -0,0 +1,121 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Set Store Mode update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetStoreModeChangeImpl implements SetStoreModeChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.BusinessUnitStoreMode previousValue; + + private com.commercetools.history.models.common.BusinessUnitStoreMode nextValue; + + /** + * create instance with all properties + */ + @JsonCreator + SetStoreModeChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.BusinessUnitStoreMode previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.BusinessUnitStoreMode nextValue) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.type = SET_STORE_MODE_CHANGE; + } + + /** + * create empty instance + */ + public SetStoreModeChangeImpl() { + this.type = SET_STORE_MODE_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitStoreMode getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.BusinessUnitStoreMode getNextValue() { + return this.nextValue; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.BusinessUnitStoreMode previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.BusinessUnitStoreMode nextValue) { + this.nextValue = nextValue; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetStoreModeChangeImpl that = (SetStoreModeChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChange.java new file mode 100644 index 00000000000..c1f660e3f27 --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChange.java @@ -0,0 +1,196 @@ + +package com.commercetools.history.models.change; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; + +import com.commercetools.history.models.common.ProductVariantSelection; +import com.commercetools.history.models.common.Reference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + *Change triggered by the Set Variant Selection update action.
+ * + *
+ * SetVariantSelectionChange setVariantSelectionChange = SetVariantSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .product(productBuilder -> productBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @return previousValue + */ + @NotNull + @Valid + @JsonProperty("previousValue") + public ProductVariantSelection getPreviousValue(); + + /** + *Value after the change.
+ * @return nextValue + */ + @NotNull + @Valid + @JsonProperty("nextValue") + public ProductVariantSelection getNextValue(); + + /** + *Reference to the updated Product.
+ * @return product + */ + @NotNull + @Valid + @JsonProperty("product") + public Reference getProduct(); + + /** + * set change + * @param change value to be set + */ + + public void setChange(final String change); + + /** + *Value before the change.
+ * @param previousValue value to be set + */ + + public void setPreviousValue(final ProductVariantSelection previousValue); + + /** + *Value after the change.
+ * @param nextValue value to be set + */ + + public void setNextValue(final ProductVariantSelection nextValue); + + /** + *Reference to the updated Product.
+ * @param product value to be set + */ + + public void setProduct(final Reference product); + + /** + * factory method + * @return instance of SetVariantSelectionChange + */ + public static SetVariantSelectionChange of() { + return new SetVariantSelectionChangeImpl(); + } + + /** + * factory method to create a shallow copy SetVariantSelectionChange + * @param template instance to be copied + * @return copy instance + */ + public static SetVariantSelectionChange of(final SetVariantSelectionChange template) { + SetVariantSelectionChangeImpl instance = new SetVariantSelectionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue(template.getPreviousValue()); + instance.setNextValue(template.getNextValue()); + instance.setProduct(template.getProduct()); + return instance; + } + + /** + * factory method to create a deep copy of SetVariantSelectionChange + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SetVariantSelectionChange deepCopy(@Nullable final SetVariantSelectionChange template) { + if (template == null) { + return null; + } + SetVariantSelectionChangeImpl instance = new SetVariantSelectionChangeImpl(); + instance.setChange(template.getChange()); + instance.setPreviousValue( + com.commercetools.history.models.common.ProductVariantSelection.deepCopy(template.getPreviousValue())); + instance.setNextValue( + com.commercetools.history.models.common.ProductVariantSelection.deepCopy(template.getNextValue())); + instance.setProduct(com.commercetools.history.models.common.Reference.deepCopy(template.getProduct())); + return instance; + } + + /** + * builder factory method for SetVariantSelectionChange + * @return builder + */ + public static SetVariantSelectionChangeBuilder builder() { + return SetVariantSelectionChangeBuilder.of(); + } + + /** + * create builder for SetVariantSelectionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetVariantSelectionChangeBuilder builder(final SetVariantSelectionChange template) { + return SetVariantSelectionChangeBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * SetVariantSelectionChange setVariantSelectionChange = SetVariantSelectionChange.builder()
+ * .change("{change}")
+ * .previousValue(previousValueBuilder -> previousValueBuilder)
+ * .nextValue(nextValueBuilder -> nextValueBuilder)
+ * .product(productBuilder -> productBuilder)
+ * .build()
+ *
+ * Value before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder previousValue( + FunctionValue before the change.
+ * @param builder function to build the previousValue value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder withPreviousValue( + FunctionValue before the change.
+ * @param previousValue value to be set + * @return Builder + */ + + public SetVariantSelectionChangeBuilder previousValue( + final com.commercetools.history.models.common.ProductVariantSelection previousValue) { + this.previousValue = previousValue; + return this; + } + + /** + *Value after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder nextValue( + FunctionValue after the change.
+ * @param builder function to build the nextValue value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder withNextValue( + FunctionValue after the change.
+ * @param nextValue value to be set + * @return Builder + */ + + public SetVariantSelectionChangeBuilder nextValue( + final com.commercetools.history.models.common.ProductVariantSelection nextValue) { + this.nextValue = nextValue; + return this; + } + + /** + *Reference to the updated Product.
+ * @param builder function to build the product value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder product( + FunctionReference to the updated Product.
+ * @param builder function to build the product value + * @return Builder + */ + + public SetVariantSelectionChangeBuilder withProduct( + FunctionReference to the updated Product.
+ * @param product value to be set + * @return Builder + */ + + public SetVariantSelectionChangeBuilder product(final com.commercetools.history.models.common.Reference product) { + this.product = product; + return this; + } + + /** + * value of change} + * @return change + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ * @return previousValue + */ + + public com.commercetools.history.models.common.ProductVariantSelection getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ * @return nextValue + */ + + public com.commercetools.history.models.common.ProductVariantSelection getNextValue() { + return this.nextValue; + } + + /** + *Reference to the updated Product.
+ * @return product + */ + + public com.commercetools.history.models.common.Reference getProduct() { + return this.product; + } + + /** + * builds SetVariantSelectionChange with checking for non-null required values + * @return SetVariantSelectionChange + */ + public SetVariantSelectionChange build() { + Objects.requireNonNull(change, SetVariantSelectionChange.class + ": change is missing"); + Objects.requireNonNull(previousValue, SetVariantSelectionChange.class + ": previousValue is missing"); + Objects.requireNonNull(nextValue, SetVariantSelectionChange.class + ": nextValue is missing"); + Objects.requireNonNull(product, SetVariantSelectionChange.class + ": product is missing"); + return new SetVariantSelectionChangeImpl(change, previousValue, nextValue, product); + } + + /** + * builds SetVariantSelectionChange without checking for non-null required values + * @return SetVariantSelectionChange + */ + public SetVariantSelectionChange buildUnchecked() { + return new SetVariantSelectionChangeImpl(change, previousValue, nextValue, product); + } + + /** + * factory method for an instance of SetVariantSelectionChangeBuilder + * @return builder + */ + public static SetVariantSelectionChangeBuilder of() { + return new SetVariantSelectionChangeBuilder(); + } + + /** + * create builder for SetVariantSelectionChange instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SetVariantSelectionChangeBuilder of(final SetVariantSelectionChange template) { + SetVariantSelectionChangeBuilder builder = new SetVariantSelectionChangeBuilder(); + builder.change = template.getChange(); + builder.previousValue = template.getPreviousValue(); + builder.nextValue = template.getNextValue(); + builder.product = template.getProduct(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChangeImpl.java new file mode 100644 index 00000000000..13e09e521bc --- /dev/null +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetVariantSelectionChangeImpl.java @@ -0,0 +1,139 @@ + +package com.commercetools.history.models.change; + +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; + +/** + *Change triggered by the Set Variant Selection update action.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SetVariantSelectionChangeImpl implements SetVariantSelectionChange, ModelBase { + + private String type; + + private String change; + + private com.commercetools.history.models.common.ProductVariantSelection previousValue; + + private com.commercetools.history.models.common.ProductVariantSelection nextValue; + + private com.commercetools.history.models.common.Reference product; + + /** + * create instance with all properties + */ + @JsonCreator + SetVariantSelectionChangeImpl(@JsonProperty("change") final String change, + @JsonProperty("previousValue") final com.commercetools.history.models.common.ProductVariantSelection previousValue, + @JsonProperty("nextValue") final com.commercetools.history.models.common.ProductVariantSelection nextValue, + @JsonProperty("product") final com.commercetools.history.models.common.Reference product) { + this.change = change; + this.previousValue = previousValue; + this.nextValue = nextValue; + this.product = product; + this.type = SET_VARIANT_SELECTION_CHANGE; + } + + /** + * create empty instance + */ + public SetVariantSelectionChangeImpl() { + this.type = SET_VARIANT_SELECTION_CHANGE; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + * + */ + + public String getChange() { + return this.change; + } + + /** + *Value before the change.
+ */ + + public com.commercetools.history.models.common.ProductVariantSelection getPreviousValue() { + return this.previousValue; + } + + /** + *Value after the change.
+ */ + + public com.commercetools.history.models.common.ProductVariantSelection getNextValue() { + return this.nextValue; + } + + /** + *Reference to the updated Product.
+ */ + + public com.commercetools.history.models.common.Reference getProduct() { + return this.product; + } + + public void setChange(final String change) { + this.change = change; + } + + public void setPreviousValue(final com.commercetools.history.models.common.ProductVariantSelection previousValue) { + this.previousValue = previousValue; + } + + public void setNextValue(final com.commercetools.history.models.common.ProductVariantSelection nextValue) { + this.nextValue = nextValue; + } + + public void setProduct(final com.commercetools.history.models.common.Reference product) { + this.product = product; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SetVariantSelectionChangeImpl that = (SetVariantSelectionChangeImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(change, that.change) + .append(previousValue, that.previousValue) + .append(nextValue, that.nextValue) + .append(product, that.product) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(change) + .append(previousValue) + .append(nextValue) + .append(product) + .toHashCode(); + } + +} diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java index f01d6f86ec1..9cb71320f45 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java @@ -16,6 +16,8 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface ChangeHistoryResourceType extends JsonEnum { + ChangeHistoryResourceType BUSINESS_UNIT = ChangeHistoryResourceTypeEnum.BUSINESS_UNIT; + ChangeHistoryResourceType CART_DISCOUNT = ChangeHistoryResourceTypeEnum.CART_DISCOUNT; ChangeHistoryResourceType CATEGORY = ChangeHistoryResourceTypeEnum.CATEGORY; @@ -68,6 +70,11 @@ public interface ChangeHistoryResourceType extends JsonEnum { * possible values of ChangeHistoryResourceType */ enum ChangeHistoryResourceTypeEnum implements ChangeHistoryResourceType { + /** + * business-unit + */ + BUSINESS_UNIT("business-unit"), + /** * cart-discount */ diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java index c0b93ac736d..667b0b8fbfd 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Record.java @@ -12,7 +12,7 @@ import com.commercetools.history.models.change.Change; import com.commercetools.history.models.common.KeyReference; -import com.commercetools.history.models.common.Reference; +import com.commercetools.history.models.common.ResourceIdentifier; import com.commercetools.history.models.label.Label; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.annotation.*; @@ -118,13 +118,13 @@ public interface Record { public ListReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @return resource */ @NotNull @Valid @JsonProperty("resource") - public Reference getResource(); + public ResourceIdentifier getResource(); /** *References to the Stores associated with the Change.
@@ -212,11 +212,11 @@ public interface Record { public void setChanges(final ListReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @param resource value to be set */ - public void setResource(final Reference resource); + public void setResource(final ResourceIdentifier resource); /** *References to the Stores associated with the Change.
@@ -294,7 +294,8 @@ public static Record deepCopy(@Nullable final Record template) { .map(com.commercetools.history.models.change.Change::deepCopy) .collect(Collectors.toList())) .orElse(null)); - instance.setResource(com.commercetools.history.models.common.Reference.deepCopy(template.getResource())); + instance.setResource( + com.commercetools.history.models.common.ResourceIdentifier.deepCopy(template.getResource())); instance.setStores(Optional.ofNullable(template.getStores()) .map(t -> t.stream() .map(com.commercetools.history.models.common.KeyReference::deepCopy) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java index 011fd62a6e3..3a3e4b5ea3a 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordBuilder.java @@ -48,7 +48,7 @@ public class RecordBuilder implements BuilderReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @param builder function to build the resource value * @return Builder */ public RecordBuilder resource( - FunctionReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @param builder function to build the resource value * @return Builder */ public RecordBuilder withResource( - FunctionReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @param resource value to be set * @return Builder */ - public RecordBuilder resource(final com.commercetools.history.models.common.Reference resource) { + public RecordBuilder resource(final com.commercetools.history.models.common.ResourceIdentifier resource) { this.resource = resource; return this; } @@ -457,11 +457,11 @@ public java.util.ListReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
* @return resource */ - public com.commercetools.history.models.common.Reference getResource() { + public com.commercetools.history.models.common.ResourceIdentifier getResource() { return this.resource; } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java index 1c5c2e0b974..c8c91e3a332 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/RecordImpl.java @@ -37,7 +37,7 @@ public class RecordImpl implements Record, ModelBase { private java.util.ListReference to the changed resource.
+ *ResourceIdentifier of the changed resource.
*/ - public com.commercetools.history.models.common.Reference getResource() { + public com.commercetools.history.models.common.ResourceIdentifier getResource() { return this.resource; } @@ -203,7 +203,7 @@ public void setChanges(final java.util.List
+ * Associate associate = Associate.builder()
+ * .plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
+ * .customer(customerBuilder -> customerBuilder)
+ * .build()
+ *
+ *
+ * Associate associate = Associate.builder()
+ * .plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
+ * .customer(customerBuilder -> customerBuilder)
+ * .build()
+ *
+ *