public final class SetStatusInterfaceCode 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 |
getInterfaceCode() |
static SetStatusInterfaceCode |
of(String interfaceCode) |
getAction
public static SetStatusInterfaceCode of(@Nullable String interfaceCode)