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

io.sphere.sdk.customers.commands.CustomerUpdateCommand Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.customers.commands;

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.commands.UpdateCommandDslImpl;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Versioned;

import java.util.List;

import static java.util.Arrays.asList;

/**
 {@doc.gen list actions}
 */
public class CustomerUpdateCommand extends UpdateCommandDslImpl {
    private CustomerUpdateCommand(final Versioned versioned, final List> updateActions) {
        super(versioned, updateActions, CustomersEndpoint.ENDPOINT);
    }

    public static CustomerUpdateCommand of(final Versioned versioned, final List> updateActions) {
        return new CustomerUpdateCommand(versioned, updateActions);
    }

    public static CustomerUpdateCommand of(final Versioned versioned, final UpdateAction updateAction) {
        return of(versioned, asList(updateAction));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy