public final class SetStatusInterfaceText extends UpdateActionImpl<Payment>
See also PaymentUpdateCommand.
withPayment(client(), payment -> { final String interfaceText = "Operation successful"; final String interfaceCode = "20000"; final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, SetStatusInterfaceText.of(interfaceText), SetStatusInterfaceCode.of(interfaceCode) )); assertThat(updatedPayment.getPaymentStatus().getInterfaceText()).isEqualTo(interfaceText); assertThat(updatedPayment.getPaymentStatus().getInterfaceCode()).isEqualTo(interfaceCode); return updatedPayment; });
See the test code.
Payment
Modifier and Type | Method and Description |
---|---|
String |
getinterfaceText() |
static SetStatusInterfaceText |
of(String interfaceText) |
getAction
public static SetStatusInterfaceText of(@Nullable String interfaceText)