public final class SetMethodInfoMethod extends UpdateActionImpl<Payment>
See also PaymentUpdateCommand.
withPayment(client(), payment -> {
final String method = "method";
final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, SetMethodInfoMethod.of(method)));
assertThat(updatedPayment.getPaymentMethodInfo().getMethod()).isEqualTo(method);
return updatedPayment;
});
See the test code.
Payment
Modifier and Type | Method and Description |
---|---|
String |
getMethod() |
static SetMethodInfoMethod |
of(String method) |
getAction
public static SetMethodInfoMethod of(@Nullable String method)