public final class SetDeleteDaysAfterLastModification extends UpdateActionImpl<Cart>
Cart.getDeleteDaysAfterLastModification()
of the cart.
See also CartInStoreUpdateCommand.
withCart(client(), cart -> { final int deleteDaysAfterLastModification = 11; final Cart updatedCart = client().executeBlocking( CartUpdateCommand.of(cart, SetDeleteDaysAfterLastModification.of(deleteDaysAfterLastModification))); assertThat(updatedCart.getDeleteDaysAfterLastModification()).isEqualTo(deleteDaysAfterLastModification); return updatedCart; });
See the test code.
Modifier and Type | Method and Description |
---|---|
Integer |
getDeleteDaysAfterLastModification() |
static SetDeleteDaysAfterLastModification |
of(Integer deleteDaysAfterLastModification) |
static SetDeleteDaysAfterLastModification |
ofUnset() |
getAction
public static SetDeleteDaysAfterLastModification of(@Nullable Integer deleteDaysAfterLastModification)
public static SetDeleteDaysAfterLastModification ofUnset()