com.commercetools.sync.services.TaxCategoryService Maven / Gradle / Ivy
package com.commercetools.sync.services;
import com.commercetools.api.models.tax_category.TaxCategory;
import com.commercetools.api.models.tax_category.TaxCategoryDraft;
import com.commercetools.api.models.tax_category.TaxCategoryUpdateAction;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletionStage;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public interface TaxCategoryService {
/**
* Filters out the keys which are already cached and fetches only the not-cached tax category keys
* from the CTP project defined in an injected {@link com.commercetools.api.client.ProjectApiRoot}
* and stores a mapping for every tax category to id in the cached map of keys -> ids and
* returns this cached map.
*
* @param taxCategoryKeys - a set of tax category keys to fetch and cache the ids for
* @return {@link java.util.concurrent.CompletionStage}<{@link java.util.Map}> in which the
* result of it's completion contains a map of requested tax category keys -> ids
*/
@Nonnull
CompletionStage
© 2015 - 2025 Weber Informatics LLC | Privacy Policy