io.sphere.sdk.customers.commands.CustomerCreateCommand Maven / Gradle / Ivy
package io.sphere.sdk.customers.commands;
import io.sphere.sdk.commands.CreateCommandImpl;
import io.sphere.sdk.customers.CustomerDraft;
import io.sphere.sdk.customers.CustomerSignInResult;
/**
* Creates/signs up a customer.
*
* {@include.example io.sphere.sdk.customers.commands.CustomerCreateCommandTest#createCustomer()}
*
* {@include.example io.sphere.sdk.customers.commands.CustomerCreateCommandTest#createCustomerWithCart()}
*/
public class CustomerCreateCommand extends CreateCommandImpl {
private CustomerCreateCommand(final CustomerDraft body) {
super(body, CustomersEndpoint.ENDPOINT_SIGNIN_RESULT);
}
public static CustomerCreateCommand of(final CustomerDraft draft) {
return new CustomerCreateCommand(draft);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy