buildActions
@Nonnull
public static java.util.List<com.commercetools.api.models.tax_category.TaxCategoryUpdateAction> buildActions(@Nonnull
com.commercetools.api.models.tax_category.TaxCategory oldTaxCategory,
@Nonnull
com.commercetools.api.models.tax_category.TaxCategoryDraft newTaxCategory)
Compares all the fields of a TaxCategory
and a TaxCategoryDraft
. It returns a
List
of TaxCategoryUpdateAction
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.