
io.sphere.sdk.customers.commands.CustomerUpdateCommand Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.UpdateCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasUpdateCommand.
in the source class io.sphere.sdk.customers.Customer.
To render this class the handlebars template 'commands/updateCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.customers.commands;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.customers.expansion.CustomerExpansionModel;
import java.util.Collections;
import java.util.List;
/**
Updates a customer.
To update the properties {@link Customer#isEmailVerified()} or {@link Customer#getPassword()} special commands are required which are documented in the {@link Customer customer Javadoc}.
{@doc.gen list actions}
@see Customer
*/
public interface CustomerUpdateCommand extends UpdateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command to update a Customer selected by its ID using several update actions.
@param versioned the object to update (so directly a {@link Customer}) or just the version/ID information of it
@param updateActions the updates
*/
static CustomerUpdateCommand of(final Versioned versioned, final List extends UpdateAction> updateActions) {
return new CustomerUpdateCommandImpl(versioned, updateActions);
}
/**
Creates a command to update a Customer selected by its ID using one update action.
@param versioned the object to update (so directly a {@link Customer}) or just the version/ID information of it
@param updateAction the update to perform
*/
static CustomerUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
return new CustomerUpdateCommandImpl(versioned, Collections.singletonList(updateAction));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy