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