public final class ChangeAmountPlanned extends UpdateActionImpl<Payment>
See also PaymentUpdateCommand.
withPayment(client(), (Payment payment) -> { assertThat(payment.getAmountPlanned()).isEqualTo(EURO_20); final PaymentUpdateCommand cmd = PaymentUpdateCommand.of(payment, ChangeAmountPlanned.of(EURO_10)); final Payment updatedPayment = client().executeBlocking(cmd); assertThat(updatedPayment.getAmountPlanned()).isEqualTo(EURO_10); return updatedPayment; });
See the test code.
Payment
Modifier and Type | Method and Description |
---|---|
javax.money.MonetaryAmount |
getAmount() |
static ChangeAmountPlanned |
of(javax.money.MonetaryAmount amount) |
getAction
public static ChangeAmountPlanned of(@Nullable javax.money.MonetaryAmount amount)
@Nullable public javax.money.MonetaryAmount getAmount()