All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.sunrise.framework.hooks.ctpevents.CustomerUpdatedHook Maven / Gradle / Ivy

There is a newer version: 1.0.0-M10
Show newest version
package com.commercetools.sunrise.framework.hooks.ctpevents;

import com.commercetools.sunrise.framework.hooks.HookRunner;
import io.sphere.sdk.customers.Customer;

import java.util.concurrent.CompletionStage;

/**
 * Hook called for components with read access to the customer. The customer should not be changed here.
 */
public interface CustomerUpdatedHook extends CtpEventHook {

    CompletionStage onCustomerUpdated(final Customer customer);

    static CompletionStage runHook(final HookRunner hookRunner, final Customer customer) {
        return hookRunner.runEventHook(CustomerUpdatedHook.class, hook -> hook.onCustomerUpdated(customer));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy