public final class SetDescription extends UpdateActionImpl<ProductDiscount>
See also ProductDiscountUpdateCommand.
withUpdateableProductDiscount(client(), discount -> { final LocalizedString newDescription = randomSlug(); final ProductDiscount updatedDiscount = client().executeBlocking(ProductDiscountUpdateCommand.of(discount, SetDescription.of(newDescription))); assertThat(updatedDiscount.getDescription()).isEqualTo(newDescription); return updatedDiscount; });See the test code.
| Modifier and Type | Method and Description |
|---|---|
LocalizedString |
getDescription() |
static SetDescription |
of(LocalizedString description) |
getActionpublic static SetDescription of(@Nullable LocalizedString description)
@Nullable public LocalizedString getDescription()