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

io.sphere.sdk.customers.commands.updateactions.ChangeEmail Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.customers.Customer;

/**
 * Changes the customer email address.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#changeEmail()}
 */
public class ChangeEmail extends UpdateActionImpl {
    private final String email;

    private ChangeEmail(final String email) {
        super("changeEmail");
        this.email = email;
    }

    public static ChangeEmail of(final String email) {
        return new ChangeEmail(email);
    }

    public String getEmail() {
        return email;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy