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

io.sphere.sdk.customergroups.commands.CustomerGroupCreateCommand Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.CreateCommandImpl;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.customergroups.CustomerGroupDraft;

import static io.sphere.sdk.customergroups.commands.CustomerGroupEndpoint.ENDPOINT;

public class CustomerGroupCreateCommand extends CreateCommandImpl {
    private CustomerGroupCreateCommand(final CustomerGroupDraft draft) {
        super(draft, ENDPOINT);
    }

    public static CustomerGroupCreateCommand of(final CustomerGroupDraft draft) {
        return new CustomerGroupCreateCommand(draft);
    }

    public static CustomerGroupCreateCommand of(final String groupName) {
        return of(CustomerGroupDraft.of(groupName));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy