buildActions
@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)
Compares all the fields of a 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.
- Parameters:
oldTaxCategory
- the TaxCategory
which should be updated.
newTaxCategory
- the TaxCategoryDraft
where we get the new data.
- Returns:
- A list of tax category-specific update actions.