public final class SetMethodInfoInterface extends UpdateActionImpl<Payment>
See also PaymentUpdateCommand.
withPayment(client(), payment -> {
final String methodInfoInterface = randomKey();
final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, SetMethodInfoInterface.of(methodInfoInterface)));
assertThat(updatedPayment.getPaymentMethodInfo().getPaymentInterface()).isEqualTo(methodInfoInterface);
return updatedPayment;
});
See the test code.
Payment
Modifier and Type | Method and Description |
---|---|
String |
getInterface() |
static SetMethodInfoInterface |
of(String _interface) |
getAction
public static SetMethodInfoInterface of(String _interface)
public String getInterface()