public final class SetCustomerEmail extends UpdateActionImpl<Cart>
See also CartInStoreUpdateCommand.
final Cart cart = createCartWithCountry(client()); assertThat(cart.getCustomerEmail()).isNull(); final String email = "info@commercetools.de"; final Cart cartWithEmail = client().executeBlocking(CartUpdateCommand.of(cart, SetCustomerEmail.of(email))); assertThat(cartWithEmail.getCustomerEmail()).contains(email);
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getEmail() |
static SetCustomerEmail |
of(String email) |
getAction
public static SetCustomerEmail of(String email)
public String getEmail()