Class TaxCategorySyncUtils


  • public final class TaxCategorySyncUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.