public final class TaxCategorySyncUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.taxcategories.TaxCategory>> |
buildActions(io.sphere.sdk.taxcategories.TaxCategory oldTaxCategory,
io.sphere.sdk.taxcategories.TaxCategoryDraft newTaxCategory)
Compares all the fields of a
TaxCategory and a TaxCategoryDraft. |
@Nonnull
public static java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.taxcategories.TaxCategory>> buildActions(@Nonnull
io.sphere.sdk.taxcategories.TaxCategory oldTaxCategory,
@Nonnull
io.sphere.sdk.taxcategories.TaxCategoryDraft newTaxCategory)
TaxCategory and a TaxCategoryDraft. It returns a
List of UpdateAction<TaxCategory> as a result. If no update
action is needed, for example in case where both the TaxCategory and the TaxCategoryDraft have the same fields, an empty List is returned.oldTaxCategory - the TaxCategory which should be updated.newTaxCategory - the TaxCategoryDraft where we get the new data.